Skip to content

simple http service to compare images using opencv2

Notifications You must be signed in to change notification settings

ramimoshe/image-comparer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Comparer

simple http service to compare images using opencv2

How to build

docker build -t ic .

How to run

local build
docker run -p 1234:8024 ic 
docker hub
docker run -p 1234:8024 ramimoshe/image-comparer

How to use

Method: POST
Route: compare
Body:

   {
   "method": "Correlation | Chi-Squared | Intersection | Hellinger",
   "imageUrl1": "link to image 1",
   "imageUrl2": "link to image 2"
   }
Example
curl -X POST \
  http://localhost:1234/compare \
  -H 'Content-Type: application/json' \
  -d '{
    "method": "Chi-Squared",
    "imageUrl1": "https://example.com/image1.png",
    "imageUrl2": "https://example.com/image2.png"
}'

About

simple http service to compare images using opencv2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published