Update test_segmentationFree.cpp

This commit is contained in:
syan
2018-10-08 11:41:20 +08:00
committed by GitHub
parent 46051e9bc2
commit c00ee52214
@@ -39,7 +39,7 @@ int main()
// cv::resize(image,image,cv::Size(160,40)); // cv::resize(image,image,cv::Size(160,40));
cv::imshow("xxx",image); cv::imshow("xxx",image);
cv::waitKey(0); cv::waitKey(0);
pr::SegmentationFreeRecognizer recognizr("model/SegmentFreeModel.prototxt","model/InceptionV3.caffemodel"); pr::SegmentationFreeRecognizer recognizr("model/SegmenationFree-Inception.prototxt","model/ISegmenationFree-Inception.caffemodel");
std::pair<std::string,float> res = recognizr.SegmentationFreeForSinglePlate(image,pr::CH_PLATE_CODE); std::pair<std::string,float> res = recognizr.SegmentationFreeForSinglePlate(image,pr::CH_PLATE_CODE);
std::cout<<res.first<<" " std::cout<<res.first<<" "
<<res.second<<std::endl; <<res.second<<std::endl;