Giter VIP home page Giter VIP logo

java-image-compare's Introduction

Java Image Compare

This is a library for comparing images in java. It is based on pdiff with some improvements. The native dependencies are included in the resource folder. If you want to compile the native library for your platform (pdiffLIB) then use cmake to do so. This library is based on the work of Perceptual Image Diff algorithm written in C++

Building java snapshot

You can use maven to build the library.

Building the native library (Optional, only required if not exist in libnative resource folder)

Requirements

  • CMake
  • A compiler of your choice.

How to build

  1. Configure the project with cmake.

  2. Be sure to have a compiler configured (I recommend MinGw/g++)

  3. Set following variables Either use:

    • JDK_PATH - Will try to find out the library path (jvm.lib, jvm.dylib, jvm.so), the include file path (jni.h) and the include file path for the md file (jni_md.h)

    or if the above fails to configure, you can set these three variables:

    • JDK_PATH_INCLUDE_JNI - Path to jni.h
    • JDK_PATH_INCLUDE_JNI_MD - Path to jni_md.h
    • JDK_PATH_LIBRARY - Path to jvm.lib (windows) or jvm.dylib (OS X) or jvm.so (Linux)
  4. If you compiled your native library then copy your compiled library to /src/main/resources/natives/{arch}bit/{your library} Where {arch} is the architecture 32bit or 64bit. Be sure that your libary is called either libpdiff.dll, libpdiff.dylib, libpdiff.so.

  5. Now you can build your snapshot and use it.

java-image-compare's People

Contributors

kevinw1998 avatar lliugithub avatar

Watchers

 avatar  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.