- Postgress service.
- Imagga Account's Auth Key.
cabal build
cabal run imageAnalyzer --
--dbname $DbName
--user $DBUserId
--password $DBPASSWORD
--authcode $IMAGGAAPIAUTHKEY
- Start the program.
- Upload images using the following curl command.
curl -v -H 'Content-Type: application/json' -d '{"url":"$PATH_TO_IMAGE", "source":"file", "is_det":true, "label":"gadget"}' -X POST "localhost:8081/upload" - Get all the images.
curl -v "http://localhost:8081/images" - Get all the images having
notebook.curl -v "http://localhost:8081/images_detect?objects=notebook" - Get Image with required ID
curl -v "http://localhost:8081/images/{imageId}"