首页新闻找找看学习计划

一小段C++转换成C#代码

0
悬赏园豆:100 [待解决问题]
#include <iostream>
#include "include/plate_recognize.h"

using namespace easypr;

#pragma comment(lib,"lib/EasyPR_Dll.lib")

int main()
{
    cout << "test_plate_recognize" << endl;

    Mat src = imread("image/plate_recognize.jpg");

    CPlateRecognize pr;

    pr.LoadSVM("model/svm.xml");
    pr.LoadANN("model/ann.xml");

    pr.setGaussianBlurSize(5);
    pr.setMorphSizeWidth(17);

    pr.setVerifyMin(3);
    pr.setVerifyMax(20);

    pr.setLiuDingSize(7);
    pr.setColorThreshold(150);

    vector<string> plateVec;

    int result = pr.plateRecognize(src, plateVec);
    if (result == 0)
    {
        int num = plateVec.size();
        for (int j = 0; j < num; j++)
        {
            cout << "plateRecognize: " << plateVec[j] << endl;            
        }
    }


    int a;
    cin>>a;
    return 0;
}
爱程序,爱生活的主页 爱程序,爱生活 | 初学一级 | 园豆:12
提问于:2016-03-30 14:23
< >
分享
所有回答(1)
0

你先搞清楚C#里面有CPlateRecognize吗?

幕三少 | 园豆:1374 (小虾三级) | 2016-03-31 08:49
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册