Belval / CRNN

A TensorFlow implementation of https://github.com/bgshih/crnn
MIT License
297 stars 101 forks source link

Test shows nothing and date detection #43

Closed alexng88 closed 5 years ago

alexng88 commented 5 years ago

Hello, I have 2 questions:

  1. when I run the command python run.py -ex ../samples/ -m ./save/ --test --restore it only shows the following pic...with 0. what that means?
  2. Can I use crnn to detect the date like the one I attached? Thanks num4

error

alexng88 commented 5 years ago

I retrained the model and use textgenerator, with loss 0.2. then I try to recognize the image reault

the result is totally different, any suggestions?

Belval commented 5 years ago
  1. It's a bug when there aren't enough sample in the batch, there's a related issue.
  2. Yes, but you will have to change the data_manager.py file to read the labels from a file as slashes cannot be in filenames.
  3. How long did you train, how big was your training set?
alexng88 commented 5 years ago

date test: roi9 Recognized result: 2610m8

041018 Recognized result: 0amom8

d

Recognized result: 0310tm8

I used your pre-trained weight. I dont need the slash and I just need to number as accurate as possible, any clues?

Belval commented 5 years ago

If you only read dates, you can reduce the number of chars so you won't end up training letters when they can't be found in your images.

As for the slashes, if you don't want the model to predict them you can just remove them from the labels.

EDIT: Just to be clear, for the above to work you'd need to retrain the model.

alexng88 commented 5 years ago

Hello, thanks for your reply. I have changed another way to detect (use object detection methods) I will re-try again your method soon.

Belval commented 5 years ago

Closing for inactivity.