simple http service to compare images using opencv2
docker build -t ic .
docker run -p 1234:8024 ic
docker run -p 1234:8024 ramimoshe/image-comparer
Method: POST
Route: compare
Body:
{
"method": "Correlation | Chi-Squared | Intersection | Hellinger",
"imageUrl1": "link to image 1",
"imageUrl2": "link to image 2"
}
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"
}'