kinhong / OpenLabeler

OpenLabeler is an open source desktop application for annotating objects for AI appplications
Apache License 2.0
112 stars 11 forks source link

inference Error #13

Closed veonua closed 4 years ago

veonua commented 4 years ago

2020-02-07 15:51:40 WARNING com.easymobo.openlabeler.ui.TagGroup: Fail to detect java.io.IOException: Expected 3-byte BGR encoding in BufferedImage, found 0. This code could be made more robust at com.easymobo.openlabeler.tensorflow.ObjectDetector.makeImageTensor(ObjectDetector.java:261) at com.easymobo.openlabeler.tensorflow.ObjectDetector.detect(ObjectDetector.java:158) at com.easymobo.openlabeler.ui.TagGroup.lambda$findHints$36(TagGroup.java:501) at java.base/java.lang.Thread.run(Thread.java:834)

kinhong commented 4 years ago

@veonua According to the stack trace, OpenLabeler's object detector is expecting an image with 8-bit RGB color components with no alpha. Could you please post the image (or a compatible sample) in question?

veonua commented 4 years ago

it's an invoice, so I can not share it publicly.

but it might be greyscale image. is it possible to force convert all images to the same format

On Tue, Feb 11, 2020, 06:10 Kin Hong Wong notifications@github.com wrote:

@veonua https://github.com/veonua According to the stack trace, OpenLabeler's object detector is expecting an image with 8-bit RGB color components with no alpha. Could you please post the image (or a compatible sample) in question?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kinhong/OpenLabeler/issues/13?email_source=notifications&email_token=AALYALQFELOAQ34LCGGSJT3RCIXKTA5CNFSM4KRQC5N2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELLHL2I#issuecomment-584480233, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALYALVF7OANSZ7KTLGBDN3RCIXKTANCNFSM4KRQC5NQ .

kinhong commented 4 years ago

@veonua In the new v1.2.3 build, it will convert 8 and 16-bit grayscale images for object detection.