Skip to content

Auto Cropping #788

Answered by HaleySchuhl
SeanCullen11 asked this question in Q&A
Jun 16, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hi @SeanCullen11 , thanks for reaching out! The pcv.find_objects function will return a list of contours from a binary mask. Another method that might be a better approach depending on your images would be to use pcv.roi.multi and then pcv.roi_objects to filter down the contours within a binary mask so they can each get autocropped (example here.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@SeanCullen11
Comment options

@HaleySchuhl
Comment options

@SeanCullen11
Comment options

Answer selected by nfahlgren
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants