diff --git a/src/image_analyzer.py b/src/image_analyzer.py --- a/src/image_analyzer.py +++ b/src/image_analyzer.py @@ -14,7 +14,9 @@ class ImageAnalyzer: # let's not concern ourselves with sizecoef and shift here anymore. we want corners to come already properly recomputed def analyze(self,image): - if self.grid==None: return False + if self.grid==None: + log.info("ImageAnalyzer.analyze() aborted: no grid available.") + return False for r in range(19): for c in range(19): @@ -22,6 +24,9 @@ class ImageAnalyzer: self.board[r][c]=self.analyzePoint(image,r,c,intersection,*(self.grid.stoneSizeAt(r,c))) + boardStr="\n".join(str(row) for row in self.board) + log.info("board analyzed:\n%s",boardStr) + def analyzePoint(self,image,row,col,imageCoords,stoneWidth,stoneHeight): b=w=e=0