Detect documents from an image
FormX will detect documents such as ID card and receipt from the uploaded image. It will return the bounding box and type of each detected document.
curl -X POST \
-H 'Content-Type: image/jpeg' \
-H 'X-WORKER-TOKEN: REPLACE-YOUR-WORKER-TOKEN-HERE' \
The simplest way is to send the image content in the body as raw binary data or base64, and send the parameters in the header
You can also send the image file in multipart/form-data.
Instead of attaching the image file in the request, you can also specify the URL to the image. Either send it in the header or in the body as multipart/form-data.
The document is returned in the
Here is the list of documents can be detected by FormX
- Passport (Personal data page):
- ID cards: