Skip to main content

Detect number plate in an image

Detect Number Plate transformation allows the user to detect all car number plates in the image. It returns a set of coordinates which can then be used for multiple purposes.

This transformation supports png, jpeg, jpg, webp, cr2, nef, rw2, dng, orf, raw, heic, heif, avif, tiff and tif type of files.

The result of Detect Number Plate is a JSON value with multiple sets of 4 coordinate points, such as:

{
"polygons": [
[
[1106, 4608],
[3960, 4800],
[3910, 6131],
[1164, 4988]
],
[
[1476, 3678],
[2960, 3807],
[2940, 4131],
[1464, 3983]
]
]
}

The above JSON response includes:

  • Two sets of coordinate points indicate two number plates on the image. Each set of coordinate points maps to a rectangle box that frames the number plate on the image. The coordinate points start from the top-left corner and proceed in a clockwise direction to create the box.

  • In the above example, there are two sets of coordinates, but there can be "n" sets of coordinates. If the response is empty, then there are no number plates.

note

Instead of getting the output in a traditional CDN URL, you will get the JSON output from the Context API, while the CDN URL will return the original image without any modifications.

The Context API Response tab consists of a JSON response that includes one set of coordinates, which indicates there is only one number plate on the image. The given set of coordinate points maps to a rectangle box that frames the number plate on the image. As shown in the below image, the coordinates of the number plate box's corners are calculated concerning the top-left corner of the image, which has (x, y) coordinates of (0, 0). The number plate box has the following (x, y) coordinates, and the coordinate points start from the top-left corner and proceed in a clockwise direction to create the box. As shown in the below image, the top-left is (451px, 290px), the top-right is (517px, 288px), the bottom-right is (451px, 312px), and the bottom-left is (518px, 309px).


Hide number plate

After knowing the exact coordinates of the number plate, you can use the wrap mode and polys parameter of PixelBin's merge transformation to hide or censor them.

info

Click here to learn step-by-step how this works.

Transform and enhance your images using our powerful AI technology. Organize your images in more efficient manner and our extensible APIs enables seamless integration with your system unleashing the power of our platform. Join the large community of users who use PixelBin to transform their image libraries and achieve excellent performance

Is this page useful?