Git Product home page Git Product logo

blurry's Introduction

blurry

springboot + opencv 实现检测图片是否模糊、清晰度检测

第一步:引入opencv依赖

<dependency>
    <groupId>org.openpnp</groupId>
    <artifactId>opencv</artifactId>
    <version>4.5.3-1</version>
</dependency>

异常提示处理

如果运行提示下面信息,则继续完成第二步。

Instantiation of bean failed; nested exception is java.lang.UnsatisfiedLinkError: no opencv_java453 in java.library.path:

第二步:引入opencv依赖库文件

将项目oepncvlib中opencv_java453.dll或libopencv_java453.so放入jdk\bin目录下

Windows对应opencv_java453.dll

Linux对应libopencv_java453.so

注意

对模糊度、清晰度的判断值可自行调整

// 定义一个阈值判断图像是否模糊
double threshold = 100;

blurry's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.