Object Recognition
Object Recognition detects,locates, and recognizes individual objects in an image file. Zia Object Recognition can identify 80 different kinds of objects from images.
You can provide a .jpg/.jpeg or .png file as the input to the open() method. This method returns the image file object as a response. Refer to the API documentation for the request and response formats.
The detect_object() method is used detect and identify the objects in the image, and the input file is passed as an argument to this method. It returns the coordinates of each object, their type, and the confidence score of each recognition.
The zia reference used below is already defined in the component instance page.
copyimg = open('sample.jpg', 'rb') result = zia.detect_object(img)
A sample response is shown below :
copy{ "objects":[ { "co_ordinates":[ "322", "125", "708", "1201" ], "object_type":"person", "confidence":"99.82" } ] }
Last Updated 2023-12-18 16:20:08 +0530 +0530
Yes
No
Send your feedback to us