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

Process CASIA MPF Files #2

Open
brucegarro opened this issue Jul 4, 2019 · 2 comments
Open

Process CASIA MPF Files #2

brucegarro opened this issue Jul 4, 2019 · 2 comments

Comments

@brucegarro
Copy link

Hello @lucaskjaero,
I have a project similar to yours where I've implemented some Chinese character recognition models using the CASIA data sets. For my project, I've similarly used the CASIA competition GNT files, but I believe it should be easier to build performant models on the HWDB1.X and OLHWDB1.X data sets because they are five times larger. Unfortunately, those data sets use a different file format MPF. Do you have any idea how to process these files using Python?

Datasets:
http://www.nlpr.ia.ac.cn/databases/handwriting/Download.html

My Project:
https://github.com/brucegarro/chinese-character-recognition

@lucaskjaero
Copy link
Owner

Hi @brucegarro,
I see there's a file specification here. You can read these files in python as strings of binary format using the struct library. In this project, I do this here, which hopefully is a decent example.
Let me know if that helps -- I can see about implementing it here if it doesn't.
Best,
Lucas

@brucegarro
Copy link
Author

Thank you for your response @lucaskjaero 🙏

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