Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to detect characters from a certain image using trained models? #7

Closed
renwoxing2016 opened this issue Mar 25, 2018 · 4 comments
Closed

Comments

@renwoxing2016
Copy link

我正在看tutorial介绍及代码,希望能给与指导,利用已经训练的model,应该参考哪部分代码。

@yuantailing yuantailing changed the title 如何针对一张图像给出识别的文字结果 How to detect characters from a certain image using trained models? Mar 25, 2018
@yuantailing
Copy link
Owner

Refer to tutorial 3-detection,

  1. skip `Training steps' and download trained models to corresponding file path
  2. replace detection testing set with your image(s)
  3. run `Predicting steps'

@renwoxing2016
Copy link
Author

because skip training steps, I run predicting steps, but report 'assert os.path.exists(obj)' of exists_and_newer funciton, I guess that it has not the file of 'cates.json'. 'cates.json' can be download?

@yuantailing
Copy link
Owner

See #8 ,run python3 decide_cates.py with TRAIN+VAL.

@yuantailing
Copy link
Owner

Thanks for your good issue, tutorial is now updated, a new tip has been added:

If you are using trained models without training steps, you need to run python3 decide_cates.py (see 'Decide categories' section) with TRAIN+VAL to generate cates.json, the map from label ID to character category.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants