Technical Specifications
The web service starts with one thread. Each thread handles documents in a single-threaded mode that means that it can thread only one request at a time. The number of thread is limited by available hardware resources. So, if you submit many requests at once, they queue up and are processed one by one.
1. Considerations
The request processing speed depends on:
- The image quality.
- CPU performance.
- The CPU allocation per worker. Query stages are inherently parallelized, so a worker with 4 CPUs will execute the request more quickly compared to a worker with just 1 CPU.
1.1 Image requirements
In order to provide you with the best possible result, it is necessary that the images submitted meet the following requirements:
- The minimum image quality is 720p, 100dpi. It should always maintain the correct aspect ratio.
Invoicesshould be in A4 format.- For correct detection of the document, it is recommended that the image has a good contrast between the background and the document and that the four corners of the document are visible.
2. Hardware requirements
| Minimum requirement | Recommended requirement | |
|---|---|---|
| CPU | 4 cores CPU supporting SSE4.2 instructions set extension, >=2GHz | 8 cores, AVX2 ISA support |
| RAM | 4 Gb | 8 Gb |
| Disk | 4 Gb | SSD 4 Gb |
| Network | 100 Mbps | 1 Gbps |
3. Software requirements
- Docker 24.0 or higher or compatible software.
4. Performance statistics
The following figure shows the performance statistics made on Facephi OCR Service, in terms of times obtained in the following modules:
- IdCard
- Invoice
To carry out the measurements of the OCR extraction and interpretation, a device with the following characteristics was used:
- Intel(R) Xeon(R) Platinum 8275CL CPU 3.00GHz
- 16 Core processor
- 32Gb RAM
Bear in mind:
- Images are 1080p.
- Only one image per type.
- Invoices are full images, but cropped by our SDK.
| IdCard | Invoice | |
|---|---|---|
| Performance | 2175 ms | 4236 s |