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

I want to get the mask of test strip #1

Open
Razamalik4497 opened this issue Jan 26, 2024 · 1 comment
Open

I want to get the mask of test strip #1

Razamalik4497 opened this issue Jan 26, 2024 · 1 comment

Comments

@Razamalik4497
Copy link

sodapdf-converted (5)
sodapdf-converted (3)
sodapdf-converted (1)

@Seyed-Ali-Ahmadi
Copy link
Owner

Hey,
This is a challenging question due to multiple factors:

  • The rectangles may have different rotations in images,
  • The colors may have variations and near-black colors may exist in images,
  • The background is also black which makes the process more difficult.

Thus, in order to be able to get the mask of bars and decode them, you should decide whether you want to do it automatically or human interaction is acceptable. If you can use user inputs, then, you can ask for a bounding box around the bars, and after than, perform a simple thresholding operation. Otherwise, in case of automatic operation, you may have to do some more steps. I think, some morphological closing operations combined with a differencing operation could result in acceptable outputs.

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