91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 59.09MB
    文件類型: .zip
    金幣: 2
    下載: 1 次
    發布日期: 2022-12-19
  • 語言: Java
  • 標簽: 車牌識別??

資源簡介

調試通過,包含所需依賴文件,導入工程即可使用。車牌識別Demo。

資源截圖

代碼片段和文件信息

package?org.easypr.core;

import?static?org.bytedeco.javacpp.opencv_core.CV_32FC1;
import?static?org.easypr.core.CoreFunc.features;

import?java.util.HashMap;
import?java.util.Map;

import?org.bytedeco.javacpp.opencv_core.Mat;
import?org.bytedeco.javacpp.opencv_ml.CvANN_MLP;
import?org.easypr.util.Convert;

/**
?*?@author?Created?by?fanwenjie
?*?@author?lin.yao
?*?
?*/
public?class?CharsIdentify?{

????public?CharsIdentify()?{
????????loadModel();

????????if?(this.map.isEmpty())?{
????????????map.put(“zh_cuan“?“川“);
????????????map.put(“zh_e“?“鄂“);
????????????map.put(“zh_gan“?“贛“);
????????????map.put(“zh_gan1“?“甘“);
????????????map.put(“zh_gui“?“貴“);
????????????map.put(“zh_gui1“?“桂“);
????????????map.put(“zh_hei“?“黑“);
????????????map.put(“zh_hu“?“滬“);
????????????map.put(“zh_ji“?“冀“);
????????????map.put(“zh_jin“?“津“);
????????????map.put(“zh_jing“?“京“);
????????????map.put(“zh_jl“?“吉“);
????????????map.put(“zh_liao“?“遼“);
????????????map.put(“zh_lu“?“魯“);
????????????map.put(“zh_meng“?“蒙“);
????????????map.put(“zh_min“?“閩“);
????????????map.put(“zh_ning“?“寧“);
????????????map.put(“zh_qing“?“青“);
????????????map.put(“zh_qiong“?“瓊“);
????????????map.put(“zh_shan“?“陜“);
????????????map.put(“zh_su“?“蘇“);
????????????map.put(“zh_sx“?“晉“);
????????????map.put(“zh_wan“?“皖“);
????????????map.put(“zh_xiang“?“湘“);
????????????map.put(“zh_xin“?“新“);
????????????map.put(“zh_yu“?“豫“);
????????????map.put(“zh_yu1“?“渝“);
????????????map.put(“zh_yue“?“粵“);
????????????map.put(“zh_yun“?“云“);
????????????map.put(“zh_zang“?“藏“);
????????????map.put(“zh_zhe“?“浙“);
????????}
????}

????/**
?????*?@param?input
?????*?@param?isChinese
?????*?@return
?????*/
????public?String?charsIdentify(final?Mat?input?final?Boolean?isChinese?final?Boolean?isSpeci)?{
????????String?result?=?““;

????????Mat?f?=?features(input?this.predictSize);

????????int?index?=?classify(f?isChinese?isSpeci);

????????if?(!isChinese)?{
????????????result?=?String.valueOf(strCharacters[index]);
????????}?else?{
????????????String?s?=?strChinese[index?-?numCharacter];
????????????result?=?map.get(s);
????????}
????????return?result;
????}

????private?int?classify(final?Mat?f?final?Boolean?isChinses?final?Boolean?isSpeci)?{
????????int?result?=?-1;
????????Mat?output?=?new?Mat(1?numAll?CV_32FC1);

????????ann.predict(f?output);

????????int?ann_min?=?(!isChinses)???((isSpeci)???10?:?0)?:?numCharacter;
????????int?ann_max?=?(!isChinses)???numCharacter?:?numAll;

????????float?maxVal?=?-2;

????????for?(int?j?=?ann_min;?j?????????????float?val?=?Convert.toFloat(output.ptr(0?j));
????????????if?(val?>?maxVal)?{
????????????????maxVal?=?val;
????????????????result?=?j;
????????????}
????????}

????????return?result;
????}

????private?void?loadModel()?{
????????loadModel(this.path);
????}

????public?void?loadModel(String?s)?{
????????this.ann.clear();
????????this.ann.load(s?“ann“);
????}

????static?boolean?hasPrint?=?false;

????publi

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-06-21?20:47??EasyPR-Java\
?????文件?????????756??2016-09-24?16:07??EasyPR-Java\.classpath
?????文件?????????268??2015-06-02?07:10??EasyPR-Java\.gitignore
?????目錄???????????0??2018-06-21?20:47??EasyPR-Java\.idea\
?????目錄???????????0??2018-06-21?20:47??EasyPR-Java\.idea\dictionaries\
?????文件??????????88??2015-06-02?07:10??EasyPR-Java\.idea\dictionaries\fanwenjie.xml
?????目錄???????????0??2018-06-21?20:47??EasyPR-Java\.idea\libraries\
?????文件?????????204??2015-06-02?07:10??EasyPR-Java\.idea\libraries\javacpp.xml
?????文件?????????202??2015-06-02?07:10??EasyPR-Java\.idea\libraries\javacv.xml
?????文件?????????202??2015-06-02?07:10??EasyPR-Java\.idea\libraries\opencv.xml
?????文件????????8792??2015-06-02?07:10??EasyPR-Java\.idea\uiDesigner.xml
?????文件?????????387??2015-06-02?07:10??EasyPR-Java\.project
?????目錄???????????0??2018-06-21?20:47??EasyPR-Java\bin\
?????目錄???????????0??2018-06-21?20:47??EasyPR-Java\bin\org\
?????目錄???????????0??2018-06-21?20:47??EasyPR-Java\bin\org\easypr\
?????目錄???????????0??2018-06-21?20:47??EasyPR-Java\bin\org\easypr\core\
?????文件????????5130??2018-06-21?20:47??EasyPR-Java\bin\org\easypr\core\CharsIdentify.class
?????文件????????3510??2018-06-21?20:47??EasyPR-Java\bin\org\easypr\core\CharsRecognise.class
?????文件???????11905??2018-06-21?20:47??EasyPR-Java\bin\org\easypr\core\CharsSegment.class
?????文件????????1139??2018-06-21?20:47??EasyPR-Java\bin\org\easypr\core\CoreFunc$Color.class
?????文件????????1175??2018-06-21?20:47??EasyPR-Java\bin\org\easypr\core\CoreFunc$Direction.class
?????文件????????7660??2018-06-21?20:47??EasyPR-Java\bin\org\easypr\core\CoreFunc.class
?????文件????????2525??2018-06-21?20:47??EasyPR-Java\bin\org\easypr\core\Features.class
?????文件????????3876??2018-06-21?20:47??EasyPR-Java\bin\org\easypr\core\PlateDetect.class
?????文件????????3459??2018-06-21?20:47??EasyPR-Java\bin\org\easypr\core\PlateJudge.class
?????文件???????10919??2018-06-21?20:47??EasyPR-Java\bin\org\easypr\core\PlateLocate.class
?????文件????????2348??2018-06-21?20:47??EasyPR-Java\bin\org\easypr\core\PlateRecognize.class
?????文件?????????427??2018-06-21?20:47??EasyPR-Java\bin\org\easypr\core\SVMCallback.class
?????目錄???????????0??2018-06-21?20:47??EasyPR-Java\bin\org\easypr\test\
?????文件????????5011??2018-07-03?13:40??EasyPR-Java\bin\org\easypr\test\EasyPrTest.class
?????目錄???????????0??2018-06-21?20:47??EasyPR-Java\bin\org\easypr\train\
............此處省略214個文件信息

評論

共有 條評論