diff --git a/Source/functions/solve/puzzleExtension.cpp b/Source/functions/solve/puzzleExtension.cpp index c7e9a00..d3ced5c 100644 --- a/Source/functions/solve/puzzleExtension.cpp +++ b/Source/functions/solve/puzzleExtension.cpp @@ -146,6 +146,7 @@ Mat Puzzle::resultImage( vector& log){ cout<<"partW "<& log){ int imageNumber = it.PieceCollector[0].second->GetPartID(); //cout<<"imageIndex: "<< imageNumber << endl; - Mat img = readImage(imageNumber,PATH); + sprintf(name, PATH, imageNumber); + Mat img = imread(name, 1); + int angle = it.PieceCollector[0].second->GetNumOfRotations()*90; Point2f center; center.x = img.cols/2;