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

extracting boxes from tambola ticket failed to separate 8th and 9th column #11

Open
thisisnottaken opened this issue May 11, 2021 · 2 comments

Comments

@thisisnottaken
Copy link

41
Please see attached image and output is
img_final_bin
My aim is to extract each box then read a number from it if it is not empty .
Can you suggest ?

Thanks.

@KananVyas
Copy link
Owner

Hey, great problem statement. As you can see the 8th and 9th columns are bit blurry. What you can try is:

  1. Try resizing the kernels for dilation/erosion. Use (3,3) instead of (5,5)
  2. Before applying any processing. lower the brightness of the image.

@thisisnottaken
Copy link
Author

thisisnottaken commented Nov 4, 2021

After saving my input file as 41.jpg and creating empty Images and Output folder
I am simply running

python src\box_detection.py

It seems you are already using 3x3 kernel in your code . I changed it to
kernel = cv2.getStructuringElement(cv2.MORPH_RECT, (5, 5))
but found no difference in output .
Can you suggest code change to lower brightness of image ?

Thanks.

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