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

If plate length not static #11

Open
linhqhta opened this issue Apr 19, 2018 · 2 comments
Open

If plate length not static #11

linhqhta opened this issue Apr 19, 2018 · 2 comments

Comments

@linhqhta
Copy link

How can i change Y_data[i] = text_to_labels(text) to Y_data[i, 0:len(text)] = text_to_labels(text) if length of license plate not static?

@safijari
Copy link

safijari commented Oct 15, 2018

I used

labels = text_to_labels(text)
Y_data[i, 0:len(labels)] = labels

@Sreerag-ibtl
Copy link

I added a space in the list letters which gets add to the labels if plate length is less than maximum text length.

lab_data = []
lab_data = text_to_labels(text)
if len(lab_data) < 11:
     for k in range((11-len(lab_data))):
                lab_data.append('36')
      Y_data[i] = lab_data

Where 36 is the index of the list letters where space is appended.

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

3 participants