Open Armand1 opened 3 years ago
This has been catered for in three ways:
Updated the try/except in get_outline_contour so that it returns a list containing only point (0,0) in case of error in addition to "failed contour" print message. This way, if the code was automated in R to plot, it won't result in an error, and it would be obvious which image failed to have a contour as the plot would just show point (0,0).
This does not work. See failure on one vase and the loop stops
Sorry, I misread, I thought the try/except should be the contour extraction code, which is what I originally did. I've added it to the binarization code too now.
It still fails. This is the image that it is failing on. Same error message as above
Dear Armand, I'm rather confused, since this image works perfectly for me. The contour isn't perfect but I get no errors:
We need to implement a loop so that if the binarization fails the whole thing does not crash