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

cast contour tuple as a list in find_objects #830

Merged
merged 1 commit into from
Nov 4, 2021

Conversation

JorgeGtz
Copy link
Contributor

@JorgeGtz JorgeGtz commented Nov 4, 2021

Describe your changes
Cast the contours output from cv2.findContours as a list (they now are given as a tuple)

Type of update
Is this a:

  • Bug fix

Associated issues

Additional context
Some morphology tests failed in the unrelated PR #829.
The problem seems to be that in the version of OpenCV used by the tests in GitHub (3.4.16.57) the contours in findContours
are given as a tuple instead of as a list. Those tests pass locally using OpenCV 3.4.14.

@JorgeGtz JorgeGtz added bugfix Bug fixes work in progress Mark work in progress labels Nov 4, 2021
@codecov
Copy link

codecov bot commented Nov 4, 2021

Codecov Report

Merging #830 (657578f) into master (f0b4a24) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #830   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          142       142           
  Lines         6217      6218    +1     
=========================================
+ Hits          6217      6218    +1     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
plantcv/plantcv/find_objects.py 100.00% <100.00%> (ø)

@JorgeGtz JorgeGtz added ready to review and removed work in progress Mark work in progress labels Nov 4, 2021
@nfahlgren nfahlgren added this to In progress in PlantCV3 via automation Nov 4, 2021
@nfahlgren nfahlgren added this to the PlantCV v3.14.0 milestone Nov 4, 2021
Copy link
Member

@nfahlgren nfahlgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @JorgeGtz!

@nfahlgren nfahlgren merged commit 4d69e78 into master Nov 4, 2021
PlantCV3 automation moved this from In progress to Done Nov 4, 2021
@nfahlgren nfahlgren deleted the contours-list-cast-find_objects branch November 4, 2021 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
PlantCV3
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants