Hello,Thank you push the code on the GitHub,and I hava a question fllow.Can you give me advice? Thank you!!
PS C:\Users\Administrator\Desktop\watermeter-master\watermeter-master> python .\watermeter.py .\sample1.jpg
Traceback (most recent call last):
File ".\watermeter.py", line 237, in
val = findAngle(cut, redcut, (radius, radius), (radius*2))
File ".\watermeter.py", line 146, in findAngle
cv2.line(img, (tip[0], tip[1]), (center[0], center[1]), (255,0,255), 2)
TypeError: integer argument expected, got float
Hello,Thank you push the code on the GitHub,and I hava a question fllow.Can you give me advice? Thank you!! PS C:\Users\Administrator\Desktop\watermeter-master\watermeter-master> python .\watermeter.py .\sample1.jpg Traceback (most recent call last): File ".\watermeter.py", line 237, in
val = findAngle(cut, redcut, (radius, radius), (radius*2))
File ".\watermeter.py", line 146, in findAngle
cv2.line(img, (tip[0], tip[1]), (center[0], center[1]), (255,0,255), 2)
TypeError: integer argument expected, got float