mlkit icon indicating copy to clipboard operation
mlkit copied to clipboard

`Entity.TYPE_DATE_TIME` extraction is too dumb to be useful

Open ber4444 opened this issue 4 years ago • 1 comments

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

ber4444 avatar Mar 24 '21 18:03 ber4444

Thanks for the feedback ber4444.

We created internal bug to track it. Hopefully we can fix it in following releases.

jackqdyulei avatar Apr 06 '21 21:04 jackqdyulei