svoid chessOCR_addBoardLocationsToAGIBlueTrainingImages() { new ChessOCR_SquareImagesCollector c; c.onBoardFound = voidfunc(S name, Rect r) { agiBlue_postInSlice(agiBlue_chessBoardRecognitionTrainingImagesSliceID(), name, "Board location", struct(r)); }; c.loadImagesFromAGIBlue(); }