diff --git a/doc/01_开发环境搭建.md b/doc/01_开发环境搭建.md new file mode 100644 index 0000000..4d5d5e1 --- /dev/null +++ b/doc/01_开发环境搭建.md @@ -0,0 +1,52 @@ +## 基础概念 +- OpenCV是一个基于BSD许可(开源)发行的跨平台计算机视觉和机器学习软件库;轻量级而且高效,由一系列C函数和少量C++类构成;该库的核心是用C ++编写的 +- 本项目是java语言项目,其本质是通过java调用opencv c++的接口实现的。 +- 本项目,提供了两种方式去调用c++的接口, + - 1、通过javacpp调用;这种方式是原版EasyPR-Java项目的使用方式,在这里小编更新了javacpp版本,以及切换了依赖包的引用方式为maven pom引入 + - 2、通过opencv官方提供的java 语言的api调用,个人推荐这种方式调用,毕竟是官方的版本 + + 以上两种方式,本质上都是java调用c++的接口实现,具体可以自行了解一下jni或者jna,这里不做深入介绍了 + + +## 开发环境搭建 + +### 软件版本 + +- jdk 1.8.61+ +- maven 3.0+ +- opencv 4.0.1 ; javacpp1.4.4;opencv-platform 4.0.1-1.4.4 +- spring boot 2.1.5.RELEASE + +### 操作步骤 + +- 安装jdk,不会的自行百度 +- 安装maven,不会的自行百度 +- 将项目导入eclipse,不会的自行百度,其他的开发工具的自行百度 +- **javacpp方式调用:** + - 添加pom依赖坐标: + ```xml + + org.bytedeco.javacpp-presets + opencv + 4.0.1-1.4.4 + + + + + ``` + - 将 /lib/opencv-4.0.1-1.4.4-windows-x86_64.jar 依赖包添加到build path;也可以在pom文件中,使用opencv-platform,增加exclusion标签排出多余的包 + - maven update 一下项目即可 + - 如果不需要这种方式的实现,删除多余的代码即可 + +- **官方的api调用:** + - https://opencv.org/releases/ 官方下载对应版本的安装包;傻瓜式安装,不会的自行百度 + - 添加user library 方法:https://blog.csdn.net/qq_32447301/article/details/78494913 + - **注意:** 需要将opencv安装目录\build\java\x64目录下dll文件,拷贝到\build\x64\vc14\bin目录下,其中x64、vc14根据实际版本自行调整 + - 如果不需要这种方式的实现,删除多余的代码即可 + + + diff --git a/doc/doc_image/1.png b/doc/doc_image/1.png new file mode 100644 index 0000000..ed9c5a4 Binary files /dev/null and b/doc/doc_image/1.png differ diff --git a/doc/doc_image/107_screenblock.jpg b/doc/doc_image/107_screenblock.jpg new file mode 100644 index 0000000..556588b Binary files /dev/null and b/doc/doc_image/107_screenblock.jpg differ diff --git a/doc/doc_image/debug_Contours.jpg b/doc/doc_image/debug_Contours.jpg new file mode 100644 index 0000000..5936aff Binary files /dev/null and b/doc/doc_image/debug_Contours.jpg differ diff --git a/doc/doc_image/debug_GaussianBlur.jpg b/doc/doc_image/debug_GaussianBlur.jpg new file mode 100644 index 0000000..66be563 Binary files /dev/null and b/doc/doc_image/debug_GaussianBlur.jpg differ diff --git a/doc/doc_image/debug_Sobel.jpg b/doc/doc_image/debug_Sobel.jpg new file mode 100644 index 0000000..ad98320 Binary files /dev/null and b/doc/doc_image/debug_Sobel.jpg differ diff --git a/doc/doc_image/debug_char_auxRoi_0.jpg b/doc/doc_image/debug_char_auxRoi_0.jpg new file mode 100644 index 0000000..202720e Binary files /dev/null and b/doc/doc_image/debug_char_auxRoi_0.jpg differ diff --git a/doc/doc_image/debug_char_auxRoi_1.jpg b/doc/doc_image/debug_char_auxRoi_1.jpg new file mode 100644 index 0000000..07317d3 Binary files /dev/null and b/doc/doc_image/debug_char_auxRoi_1.jpg differ diff --git a/doc/doc_image/debug_char_auxRoi_2.jpg b/doc/doc_image/debug_char_auxRoi_2.jpg new file mode 100644 index 0000000..7b582c6 Binary files /dev/null and b/doc/doc_image/debug_char_auxRoi_2.jpg differ diff --git a/doc/doc_image/debug_char_auxRoi_3.jpg b/doc/doc_image/debug_char_auxRoi_3.jpg new file mode 100644 index 0000000..24d681b Binary files /dev/null and b/doc/doc_image/debug_char_auxRoi_3.jpg differ diff --git a/doc/doc_image/debug_char_auxRoi_4.jpg b/doc/doc_image/debug_char_auxRoi_4.jpg new file mode 100644 index 0000000..939fa10 Binary files /dev/null and b/doc/doc_image/debug_char_auxRoi_4.jpg differ diff --git a/doc/doc_image/debug_char_auxRoi_5.jpg b/doc/doc_image/debug_char_auxRoi_5.jpg new file mode 100644 index 0000000..143d5f3 Binary files /dev/null and b/doc/doc_image/debug_char_auxRoi_5.jpg differ diff --git a/doc/doc_image/debug_char_auxRoi_6.jpg b/doc/doc_image/debug_char_auxRoi_6.jpg new file mode 100644 index 0000000..fc350ec Binary files /dev/null and b/doc/doc_image/debug_char_auxRoi_6.jpg differ diff --git a/doc/doc_image/debug_char_clearLiuDing.jpg b/doc/doc_image/debug_char_clearLiuDing.jpg new file mode 100644 index 0000000..a3716a1 Binary files /dev/null and b/doc/doc_image/debug_char_clearLiuDing.jpg differ diff --git a/doc/doc_image/debug_char_threshold.jpg b/doc/doc_image/debug_char_threshold.jpg new file mode 100644 index 0000000..0f28f4f Binary files /dev/null and b/doc/doc_image/debug_char_threshold.jpg differ diff --git a/doc/doc_image/debug_chineseMat.jpg b/doc/doc_image/debug_chineseMat.jpg new file mode 100644 index 0000000..4867a87 Binary files /dev/null and b/doc/doc_image/debug_chineseMat.jpg differ diff --git a/doc/doc_image/debug_crop_1.jpg b/doc/doc_image/debug_crop_1.jpg new file mode 100644 index 0000000..46fa38a Binary files /dev/null and b/doc/doc_image/debug_crop_1.jpg differ diff --git a/doc/doc_image/debug_crop_2.jpg b/doc/doc_image/debug_crop_2.jpg new file mode 100644 index 0000000..af091c4 Binary files /dev/null and b/doc/doc_image/debug_crop_2.jpg differ diff --git a/doc/doc_image/debug_crop_3.jpg b/doc/doc_image/debug_crop_3.jpg new file mode 100644 index 0000000..5c23899 Binary files /dev/null and b/doc/doc_image/debug_crop_3.jpg differ diff --git a/doc/doc_image/debug_gray.jpg b/doc/doc_image/debug_gray.jpg new file mode 100644 index 0000000..31dba6b Binary files /dev/null and b/doc/doc_image/debug_gray.jpg differ diff --git a/doc/doc_image/debug_morphology.jpg b/doc/doc_image/debug_morphology.jpg new file mode 100644 index 0000000..da87285 Binary files /dev/null and b/doc/doc_image/debug_morphology.jpg differ diff --git a/doc/doc_image/debug_morphology1.jpg b/doc/doc_image/debug_morphology1.jpg new file mode 100644 index 0000000..e0d7adf Binary files /dev/null and b/doc/doc_image/debug_morphology1.jpg differ diff --git a/doc/doc_image/debug_resize_1.jpg b/doc/doc_image/debug_resize_1.jpg new file mode 100644 index 0000000..9557b3e Binary files /dev/null and b/doc/doc_image/debug_resize_1.jpg differ diff --git a/doc/doc_image/debug_resize_2.jpg b/doc/doc_image/debug_resize_2.jpg new file mode 100644 index 0000000..3625230 Binary files /dev/null and b/doc/doc_image/debug_resize_2.jpg differ diff --git a/doc/doc_image/debug_resize_3.jpg b/doc/doc_image/debug_resize_3.jpg new file mode 100644 index 0000000..582e6e6 Binary files /dev/null and b/doc/doc_image/debug_resize_3.jpg differ diff --git a/doc/doc_image/debug_specMat.jpg b/doc/doc_image/debug_specMat.jpg new file mode 100644 index 0000000..d5ea3ba Binary files /dev/null and b/doc/doc_image/debug_specMat.jpg differ diff --git a/doc/doc_image/debug_threshold.jpg b/doc/doc_image/debug_threshold.jpg new file mode 100644 index 0000000..d9764b9 Binary files /dev/null and b/doc/doc_image/debug_threshold.jpg differ diff --git a/doc/doc_image/result_0.png b/doc/doc_image/result_0.png new file mode 100644 index 0000000..b0a19f4 Binary files /dev/null and b/doc/doc_image/result_0.png differ