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

Change in detect.py can improve tolerance to noise #106

Open
mazcallu opened this issue Feb 3, 2019 · 0 comments
Open

Change in detect.py can improve tolerance to noise #106

mazcallu opened this issue Feb 3, 2019 · 0 comments

Comments

@mazcallu
Copy link

mazcallu commented Feb 3, 2019

I changed detect.py in order to improve efficiency, the detection in real images is very sensitive to noise, so instead of detecting the highest probability it returns the most voted plate:

    plates = []
    for letter_prob in letter_probs:plates.append(letter_probs_to_code(letter_prob))
    mostcommonplate =collections.Counter(plates).most_common(1)[0][0]
    yield (numpy.max(mins, axis=0).flatten(),
           numpy.min(maxs, axis=0).flatten(),
           numpy.max(present_probs),
           mostcommonplate 
           )

I have obtained much higher accuracy results using this approach and the detect algorithm is more robust.

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

1 participant