Skip to content

Latest commit

 

History

History
42 lines (37 loc) · 760 Bytes

README.md

File metadata and controls

42 lines (37 loc) · 760 Bytes

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"
}'