-
Notifications
You must be signed in to change notification settings - Fork 0
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
version #2
Comments
Hi, I will answer you today or tomorrow 😉 |
Hi, thank you very much! It is very helpful! |
“cv.findcontours” can't find contours and hierarchy return "(0,0,0,0)" |
What is your data collection? |
png images are 8-bit depth gray images |
To correct this, “cv.findcontours” can't find contours and hierarchy return "(0,0,0,0)", are you modified correctly the json file "parameter", with the correct level of grey (in color option of each labels? Because my code work normally on RGB images as png |
Do you mean png images are RGB format? |
each color is a label, you can in grey, but you need to define each label to correspond at an intensity of grey (warning, it is not turple of value but 1D in json files if you use grey color) to test easilier, you can comment the two last line of the code and use :" # for j in range(l): |
A solution for you if intensity of grey = the label number mask=(image_label == category_id).all(-1) |
You are so enthusiastic! |
BE careful, i know, for example the png of citymap have a little image frame around, if it is it, you need to resize image of label and jpeg before to delete it. (it can explain the error you get “cv.findcontours” can't find contours and hierarchy return "(0,0,0,0)") Good luck |
ok, thanks a lot! |
numpy 1.20.2 I have updated the code, now it works with updated package |
Thank you so much!😉 |
Can you list the corresponding version of dependent packages?
I guess it influences a lot.
The text was updated successfully, but these errors were encountered: