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

Detect Bounds of Elisa Plate #1

Closed
jakeisnt opened this issue Jan 19, 2020 · 1 comment
Closed

Detect Bounds of Elisa Plate #1

jakeisnt opened this issue Jan 19, 2020 · 1 comment
Assignees

Comments

@jakeisnt
Copy link
Collaborator

jakeisnt commented Jan 19, 2020

Motivation

We currently don't have a way to detect the bounds of an image with a rectangle. It would be helpful to be able to identify a clear rectangle from the ELISA plate, similar to a banking app that allows for the scanning of checks or a scanning app that shows the user what is being identified as the page.

Task

Utilizing OpenCV, write a Python script to read in an image file, identify the ELISA plate present in the image file, then draw a bounding box around it to match the border of the plate. Display this with cv2.imshow() or similar with the bounding box drawn on the image to verify that the box has been drawn correctly.

Logistics

This is a script we can easily integrate into a camera module when constructing the application. There should be quite a few tutorials on something similar on OpenCV, but the general process is the following:

  • convert the image to black and white
  • obtain the contours of the image
  • draw lines on important contours
  • connect these lines to form a rectangle
  • display such a rectangle on the image

Here are some tutorials to get started:

There might be some trouble identifying the bounding box on surfaces of certain colors; part of the assignment will be determining what the best background would be for the user to use. If something like this is necessary, checking the background color should also be integrated into the application (we can do something as simple as (if background not in range of colors we allow, throw error)).

@jakeisnt
Copy link
Collaborator Author

jakeisnt commented Feb 2, 2020

Merged! #16

@jakeisnt jakeisnt closed this as completed Feb 2, 2020
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