java opencv 4.1.1

 

 

First introduced dependence

    <!-- https://mvnrepository.com/artifact/org.bytedeco.javacpp-presets/opencv -->
<dependency>
    <groupId>org.bytedeco.javacpp-presets</groupId>
    <artifactId>opencv</artifactId>
    <version>4.0.1-1.4.4</version>
</dependency>

 

Go to the official website to download some stuff https://opencv.org/releases/

Because only the highest maven warehouse version 4.0.1 Therefore, the download time, find 4.0.1 download

 

 

 

Official website to download resources

Then run, some files will be unpacked

Dll jdk then thrown into the bin folder

 

The specific path to see their own situation

Then build it, see this jar package on the line,

 

Before you start it, you need to look at the issue ranks direction opencv

General picture needs to be graying and binarization,

Referring the FIG.

So basically can be identified, but there are some noise, it is best to go about noise

For a relatively low resolution images, noise basically one or two pixels

The simplest way is to calculate the surrounding black pixels of eight pixels are not all white, and if so, put the white point processing, if not, it's probably not the noise


There are slightly more complex approach to calculate the area communication domain

https://blog.csdn.net/marooon/article/details/81332487

 

Guess you like

Origin www.cnblogs.com/jnhs/p/11310471.html