• 大小: 484KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-14
  • 语言: 其他
  • 标签: 百度车牌  

资源简介

百度车牌识别例子,效果还可以,但有一个开源车牌识别算法,能够运行在openvino下,效果能够和百度相比较一下

资源截图

代码片段和文件信息

#include 
#include 
#include “ocr.h“


int main() {
    std::string app_id = “15078748“;
    std::string api_key = “qq05GW1TppEGx4jRhH2ibbNP“;
    std::string secret_key = “72F9rfkZ8s7L5GdjK2I1RDHt1L4bLs9L“;
    aip::Ocr client(app_id api_key secret_key);

    Json::Value result;
    std::string image;

    aip::get_file_content(“/home/rui/plate1.jpg“ &image);
    std::map options;
    cv::Mat img = cv::imread(“/home/rui/plate_test/8.JPG“);
    std::string str;
    std::vector buff;
    cv::imencode(“.jpg“ img buff);
    str.resize(buff.size());
    memcpy(&str[0] buff.data() buff.size());
    options[“detect_direction“] = “true“;
    options[“probability“] = “true“;
    options[“multi_detect“] = “true“;

//    result = client.general_basic(image aip::null);
//    result = client.general_basic(image options);
    result = client.license_plate(str options);
    std::cout << result << std::endl;
    std::cout << result[“words_result“][0][“number“] << std::endl;

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-02-22 05:37  baidu_ocr\
     文件         557  2019-01-07 07:02  baidu_ocr\CMakeLists.txt
     文件        1060  2019-02-22 05:37  baidu_ocr\main.cpp
     文件        7980  2018-11-09 07:19  baidu_ocr\body_analysis.h
     文件        6548  2018-11-09 07:19  baidu_ocr\content_censor.h
     文件        2443  2018-11-09 07:19  baidu_ocr\easydl.h
     文件       28074  2018-11-09 07:19  baidu_ocr\face.h
     文件       12386  2018-11-09 07:19  baidu_ocr\image_classify.h
     文件       36093  2018-11-09 07:19  baidu_ocr\image_search.h
     文件        6691  2018-11-09 07:19  baidu_ocr\kg.h
     文件       15597  2018-11-09 07:19  baidu_ocr\nlp.h
     文件       39348  2018-11-09 07:19  baidu_ocr\ocr.h
     文件        5106  2018-11-09 07:19  baidu_ocr\speech.h
     目录           0  2019-02-25 08:30  baidu_ocr\.idea\
     文件       13519  2019-02-25 08:30  baidu_ocr\.idea\workspace.xml
     文件         135  2019-01-07 06:42  baidu_ocr\.idea\encodings.xml
     文件          97  2018-12-11 11:49  baidu_ocr\.idea\baidu_ocr.iml
     文件         240  2018-12-11 11:49  baidu_ocr\.idea\misc.xml
     文件         270  2018-12-11 11:49  baidu_ocr\.idea\modules.xml
     目录           0  2019-02-21 02:51  baidu_ocr\cmake-build-debug\
     文件        7751  2019-02-21 02:40  baidu_ocr\cmake-build-debug\baidu_ocr.cbp
     文件      600136  2019-02-21 02:51  baidu_ocr\cmake-build-debug\baidu_ocr
     文件        5064  2019-02-21 02:40  baidu_ocr\cmake-build-debug\Makefile
     文件       50434  2019-01-07 06:58  baidu_ocr\cmake-build-debug\CMakeCache.txt
     文件        1547  2018-12-11 11:49  baidu_ocr\cmake-build-debug\cmake_install.cmake
     目录           0  2019-02-21 02:51  baidu_ocr\cmake-build-debug\CMakeFiles\
     文件          39  2019-02-21 02:40  baidu_ocr\cmake-build-debug\CMakeFiles\clion-environment.txt
     文件       46526  2019-01-07 06:42  baidu_ocr\cmake-build-debug\CMakeFiles\CMakeOutput.log
     目录           0  2019-01-07 06:42  baidu_ocr\cmake-build-debug\CMakeFiles\3.13.2\
     目录           0  2019-01-07 06:42  baidu_ocr\cmake-build-debug\CMakeFiles\3.13.2\CompilerIdC\
     目录           0  2019-01-07 06:42  baidu_ocr\cmake-build-debug\CMakeFiles\3.13.2\CompilerIdC\tmp\
............此处省略38个文件信息

评论

共有 条评论

相关资源