Skip to content

paulkamer/duplicate-image-detector

Repository files navigation

Duplicate image detector

OpenCV-based duplicate image detector.

Prerequisites

pip3 install -r requirements.txt 

Raspberry Pi

For running this script on a Raspberry Pi, the following additional libraries need to be installed:

sudo apt install libcblas-dev libhdf5-dev libhdf5-serial-dev libatlas-base-dev libjasper-dev libqtgui4 libqt4-test

Source: https://stackoverflow.com/a/53402396

Unit tests

python3 -m unittest discover -v -s ./tests

Coverage

  • Run coverage scan

    python3 -m coverage --source=src/ run -m unittest discover -s ./tests
    
    # Omit compare image renderer used for debugging
    python3 -m coverage run --source=src/ --omit=*/compare_image_renderers/* -m unittest discover -s ./tests 
  • View coverage report

    ./coverage_report.sh

TODO's:

  • Add more tests
  • Improve type hinting
  • store keypoints, features in SQLite DB
  • extract relevant part; remove BG

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published