You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run function(s) '....' card_mask = pcv.transform.detect_color_card(rgb_img=img)
See error
106 corners = corners[np.argsort([math.dist(corner, corners[white_index]) for corner in corners])[[0, 1, 3, 2]]]
107 # Increment amount is arbitrary, cell distances rescaled during perspective transform
IndexError: index 7145 is out of bounds for axis 1 with size 6960
Expected behavior
Trigger the warning message that a color card couldn't be IDed? Is it valid to have a partial color card?
Local environment (please complete the following information):
OS: [macOS]
Environment [conda, dev]
PlantCV Version [e.g. >4.3.0]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
It's possible for
pcv.transform.detect_color_card
to fatally error out, as was brought to our attention in issue #1606 .To Reproduce
Steps to reproduce the behavior (including sample data and code really help):
Starting with image '...'
IMG_9309.zip
Run function(s) '....'
card_mask = pcv.transform.detect_color_card(rgb_img=img)
See error
Expected behavior
Trigger the warning message that a color card couldn't be IDed? Is it valid to have a partial color card?
Local environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: