# Object Detection API

> Locate and segment specific objects within an image via the Copyleaks API. Per-object RLE masks, multipart upload, and JPEG, PNG, WebP, and HEIC support.

The Copyleaks Object Detection API locates specific objects within an image and returns a pixel-level segmentation mask for each one it finds. You supply the list of objects to look for, and the API returns a Run-Length Encoded (RLE) mask per detected object in a single synchronous call.

Object detection performs segmentation only - it does not classify whether an image is AI-generated. For AI-generated content detection, use the [AI Image Detection API](/concepts/products/ai-image-detection-api).

## Capabilities

<CardGroup cols={2}>
  <Card title="Targeted Object Segmentation" icon="crosshairs">
    Provide up to three objects to locate per image and receive a precise per-object segmentation mask for each one found.
  </Card>
  <Card title="Pixel-Level Masks" icon="image">
    Each detected object comes with a Run-Length Encoded (RLE) mask you can decode to highlight, crop, or blur the object's region.
  </Card>
  <Card title="Synchronous Results" icon="gauge-high">
    Submit an image and receive the detected objects in the same API call - no webhook required.
  </Card>
  <Card title="Supported Formats" icon="file-image">
    Process `JPEG`, `PNG`, `WebP`, `BMP`, and `HEIC/HEIF` images up to 32MB and up to 27 megapixels in resolution.
  </Card>
</CardGroup>

## How it works

1. Submit an image via `multipart/form-data` along with an `objectDetection` list of the objects to locate.
2. The API segments the image and returns a `detectedObjects` array - one entry per object found, each with its RLE mask.
3. Decode the masks using the image dimensions returned in `imageInfo` to visualize or act on each object's region.

Objects that are requested but not found are omitted from the response, so look entries up by their `object` name rather than by position.

## Integrated Ecosystem

<CardGroup cols={2}>
  <Card title="AI Image Detection" icon="image" href="/concepts/products/ai-image-detection-api">Detect whether an image is AI-generated and gain insights into its origin.</Card>
  <Card title="Image Plagiarism Detection" icon="magnifying-glass" href="/concepts/products/image-plagiarism-detection-api">Search the web for unauthorized copies and usages of your images.</Card>
</CardGroup>

## Next Steps

<CardGroup cols={2}>
  <Card title="Start Building" icon="rocket" href="/guides/object-detection/detect-objects/">Get started with the Object Detection API and integrate it into your workflows.</Card>
  <Card title="Endpoint Documentation" icon="code" href="/reference/actions/object-detection/check/">Complete technical specifications for the Object Detection endpoint.</Card>
</CardGroup>
