-
Notifications
You must be signed in to change notification settings - Fork 275
Update algorithm to crop and unwarp card in detect_color_card
#1795
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
base: v5.0
Are you sure you want to change the base?
Conversation
"v" channel rather than rgb2gray
remove extra debugging plots
overwrite the adaptive radius if set by the user. also removing extra debugging steps
also rename variables to be more accurate given the current orientation
check matrix shape instead of labeled mask
|
Here's the code health analysis summary for commits Analysis Summary
Code Coverage Report
|
cropped card becomes warped so loosen aspect ratio and solidity restore contour detection on the cropped color card
embed new debug images, clarify output is now a color matrix
joshqsumner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, like the new debug image.
I think we could have more information about tuning these parameters but per Noah's comments in dev meeting they maybe don't belong in this PR cluttering the actual docs. Maybe we'll have a "using bad images" tutorial or something in the future where we highlight features meant to get around a bad imaging set up.
|
Note, problem here is with detecting the white chip, color chip numbering is not consistent post-warp per Haley's lab meeting |
Describe your changes
Use polygon to help describe color cards that might be both rotated and skewed. Crop the color card detected, and then create a color matrix directly.
Type of update
Is this a:
Associated issues
Reference associated issue numbers. Does this pull request close any issues?
Additional context
For the reviewer
See this page for instructions on how to review the pull request.
plantcv/mkdocs.ymlupdating.md