1 | initial version |
Ok I found my mistake. In the detection_coins() dunction I changed into integers the corners coordonates. I changed that and I don't have this error anymore. Now Ihave the following error when I use the cv.imshow() function at the lasts lines of my program to see image_flow :
Traceback (most recent call last):
File "/Users/oliviersamin/Documents/Projets_perso/Projet_FORSOLAR/Developement/Traitement image/Premier developpement/Photos_References/essai.py", line 101, in <module>
cv.imshow("image avec flow",image_flow)
error: /tmp/opencv-tjJs/opencv-2.4.9/modules/highgui/src/utils.cpp:611: error: (-15) Source image must have 1, 3 or 4 channels in function cvConvertImage
Any help with that?