Fixed type mismatch problem.

1.3
Micooz 10 years ago
parent b2b4132a53
commit 3af6a95e11

@ -1077,3 +1077,11 @@
总图片数:173张, 未识出图片:5张, 定位率:97.1098%
平均字符差距:0.482143个, 完全匹配数:130张, 完全匹配率:77.381%
总时间:152秒, 平均执行时间:0.878613秒
2015-06-11 19:24:04
总图片数:173张, 未识出图片:5张, 定位率:97.1098%
平均字符差距:0.47619个, 完全匹配数:130张, 完全匹配率:77.381%
总时间:59秒, 平均执行时间:0.34104秒
2015-06-11 19:26:37
总图片数:173张, 未识出图片:5张, 定位率:97.1098%
平均字符差距:0.47619个, 完全匹配数:130张, 完全匹配率:77.381%
总时间:54秒, 平均执行时间:0.312139秒

@ -21,7 +21,7 @@ cv::Mat detectAndMaskFace(cv::Mat& img, cv::CascadeClassifier& cascade,
cv::Size(30, 30));
for (auto r = faces.begin(); r != faces.end(); r++) {
cv::Rect facerect = *r;
cv::Mat roi = img(cv::Rect(facerect.x * scale, facerect.y * scale,
cv::Mat roi = img(cv::Rect_<double>(facerect.x * scale, facerect.y * scale,
facerect.width * scale,
facerect.height * scale));
int W = 18;

@ -65,7 +65,7 @@ int generate_gdts() {
cv::Mat imageProcess(cv::Mat img) {
int width = img.size().width;
int height = img.size().height;
cv::Rect rect(width * 0.01, height * 0.01, width * 0.99, height * 0.99);
cv::Rect_<double> rect(width * 0.01, height * 0.01, width * 0.99, height * 0.99);
cv::Mat dst = img(rect);
//GaussianBlur( dst, dst, Size(1, 1), 0, 0, BORDER_DEFAULT );

Loading…
Cancel
Save