mlkit
mlkit copied to clipboard
`Entity.TYPE_DATE_TIME` extraction is too dumb to be useful
just an example (but could provide you tons more):
[The UPS Store, #275, 610 6. Bel Rd., D Suite AL, PhatA 85022-2193, (602) 863-6694
03/28/19 09/03 AM
...
we run this OCR output through
if (entity is DateTimeEntity) {
val date = SimpleDateFormat(
"yyyy-MM-dd",
Locale.getDefault()
).format(Date(entity.timestampMillis))
and we get "2003-09-01" (seems to be based on "09/03 AM") which is completely wrong
Thanks for the feedback ber4444.
We created internal bug to track it. Hopefully we can fix it in following releases.