bool GoBoardDetector::detectMove()
{
	
	detectBoard = findBoard(srcFrame);
	if(!detectBoard){
		fullBoardInScene = false;
		return false;
	}
	
	undistortBoard();
	detectHand();
	return true;
}
Exemple #2
0
	bool Calibration::add(Mat img) {
		addedImageSize = img.size();
		
		vector<Point2f> pointBuf;
		
		// find corners
		bool found = findBoard(img, pointBuf, true);
		
		if (found)
			imagePoints.push_back(pointBuf);
		else
			ofLog(OF_LOG_ERROR, "Calibration::add() failed, maybe your patternSize is wrong or the image has poor lighting?");
		return found;
	}