Using Partitioned AI to deliver an ultra low cost car park system.
Cameras on Boomgates
OCR Command
You can access OCR in your Private Cyberspace using:
- Web Console (88.io)
- HTTP API
- Linux command line
88ioocr
.
88ioocr --image_dir ~/images/input/c1646598264x.jpg --use_angle_cls true --lang ch | jq
{
"filename": "c1646598264x.jpg",
"usage": {
"id": -1,
"amt": -1,
"node": -1
},
"filter": {
"pattern": "^[-·\\.皖A-Z0-9]{1,8}$",
"disallow": "[^A-Z0-9]"
},
"results": [
{
"box": [
[
2107,
696
],
[
2294,
674
],
[
2299,
718
],
[
2112,
741
]
],
"text": "EPV59J",
"score": 0.9417950510978699,
"dscore": 0.9417950510978699
}
]
}
OCR Pattern Filter
88ioocr --image_dir ~/images/input/c1646598264x.jpg --use_angle_cls true --lang ch --pattern='^[A-Z0-9]{1,7}$'
where [A-Z0-9]
are the characters allowed and {1,7}
means up to 7 of the pattern.
The ^
means from the start of the string and the $
means the end.