Skip to content

euginfrancis/Java-Image-Comparing-with-OpenCV

Repository files navigation

🖼️ Java Image Comparing with OpenCV 🤖

Welcome to the Java Image Comparing with OpenCV repository! This project showcases how to effectively compare images using Java and the powerful OpenCV library. Whether you're building an image processing application or diving into computer vision, this repository has you covered!

📦 Table of Contents

✨ Features

  • 🖼️ Image comparison using various methods
  • 📏 Calculate similarity scores
  • 🔍 Easy integration with OpenCV
  • 📊 Visualize results with graphs

🛠️ Requirements

  • 🛠️ Java Development Kit (JDK 8 or higher)
  • 📦 OpenCV library
  • 📦 Maven or Gradle for dependency management

💻 Installation

  1. Clone the repository:

    git clone https://github.com/euginfrancis/Java-Image-Comparing-with-OpenCV.git
    cd Java-Image-Comparing-with-OpenCV
    
  2. Download OpenCV:

    Download and set up OpenCV from OpenCV's official website. Follow the installation instructions for your OS.

  3. Configure Your Project:

    • If using Maven, ensure your pom.xml includes the OpenCV dependency:
    <dependency>
        <groupId>org.opencv</groupId>
        <artifactId>opencv</artifactId>
        <version>4.5.1</version> <!-- Check for the latest version -->
    </dependency>

🚀 Usage

  1. Run the Application:

    After setting everything up, you can run the main class to compare images:

    java -cp target/classes:opencv-<version>.jar com.example.ImageComparator
    
  2. Input Your Images:

    Modify the input parameters in the code to specify the paths of the images you want to compare.

  3. Analyze the Results:

    The output will display similarity scores and visual comparisons!

🔧 Configuration

You can adjust comparison methods and thresholds in the ImageComparator.java file:

📚 License

This project is licensed under the MIT License. See the LICENSE file for more details.

🤝 Contributing

We welcome contributions! If you have suggestions or improvements, please open an issue or submit a pull request.

About

OpenCV based image compare program written in JAVA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages