--- title: "Object-Recognition" url: https://docs.catalyst.zoho.com/en/sdk/java/v1/zia-services/object-recognition/ description: "This page describes the method to use the Object Recognition feature to locate objects in your Java application with sample code snippets" last_updated: 2026-06-09T07:46:16Z service: Zia Services type: general related_links: - name: "Image-Moderation - API" url: /en/api/code-reference/zia-services/image-moderation/#ImageModeration --- # 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 learn more from the [Object Recognition help page](https://docs.catalyst.zoho.com/en/zia-services/help/object-recognition/introduction). You can provide a ._jpg_/._jpeg_ or ._png_ file as the input. Refer to the [API documentation](https://docs.catalyst.zoho.com/en/api/code-reference/zia-services/object-recognition/#ObjectRecognition) for the request and response formats. The `detectObject()` method is used detect and identify the objects in the image. It returns the coordinates of each object, their type, and the confidence score of each recognition. #### Sample Code Snippet **Package Imports** ```java import com.zc.component.ml.ZCML; import com.zc.component.ml.ZCObjectDetectionData; import com.zc.component.ml.ZCObjectPoints; import java.io.File; ``` ```java File file = new File("{filePath}"); //Specify the file location List objects = ZCML.getInstance().detectObjects(file); //To detect the objects in the image for(ZCObjectDetectionData object : objects) { String objectType = object.getObjectType(); //To get the object type Double objConfidence = object.getConfidence(); //To get the confidence score of the recognition ZCObjectPoints objCoordinates = object.getObjectPoints(); //To get the coordinates of the object in the image } ```