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

Write a clever cropping/masking algorithm for the dot-to-dot #120

Open
JackBuck opened this issue Mar 8, 2017 · 1 comment
Open

Write a clever cropping/masking algorithm for the dot-to-dot #120

JackBuck opened this issue Mar 8, 2017 · 1 comment
Assignees
Projects
Milestone

Comments

@JackBuck
Copy link
Owner

JackBuck commented Mar 8, 2017

We need to be able to recognise numbers in an image containing multiple numbers (or one number and parts of other numbers).

We therefore need an algorithm which returns an image containing only the text (i.e. number and spot) for one number.

This could be done by

  • finding contours
  • grouping contours by proximity (e.g. by bounding box centre, or shortest distance between contours)

To begin with, we can probably assume that the desired spot is fairly central in the image. So if there are multiple spots, just consider the most central. A further enhancement could try to determine whether a spot in the image also has it's number fully in the image and so recognise multiple spots in the image.

@JackBuck JackBuck added this to the DotToDot milestone Mar 8, 2017
@JackBuck JackBuck added this to Short Term Todo's in Kanban Mar 8, 2017
@JackBuck JackBuck moved this from Short Term Todo's to In Progress in Kanban Mar 14, 2017
@JackBuck JackBuck self-assigned this Mar 14, 2017
JackBuck added a commit that referenced this issue Mar 17, 2017
JackBuck added a commit that referenced this issue Mar 17, 2017
JackBuck added a commit that referenced this issue Mar 22, 2017
JackBuck added a commit that referenced this issue Mar 22, 2017
JackBuck added a commit that referenced this issue Mar 23, 2017
…ass.

This is the best 'quick' solution since the spot radius doesn't increase in proportion with the fontsize.
@JackBuck
Copy link
Owner Author

Merged to milestone branch

@JackBuck JackBuck moved this from In Progress to Complete in Kanban Mar 23, 2017
@JackBuck JackBuck moved this from Complete to Ready for Review in Kanban Mar 23, 2017
@JackBuck JackBuck moved this from Ready for Review to Complete in Kanban Mar 23, 2017
@JackBuck JackBuck moved this from Complete to Ready for Review in Kanban Mar 24, 2017
@JackBuck JackBuck reopened this Mar 24, 2017
@JackBuck JackBuck moved this from Ready for Review to Complete in Kanban Mar 24, 2017
@JackBuck JackBuck moved this from Complete to Ready for Review in Kanban Mar 26, 2017
@JackBuck JackBuck reopened this Mar 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Kanban
Ready for Review
Development

No branches or pull requests

1 participant