yumaofan / jetson_nano_demo

Some great implement of deep learning algorithm in Nvidia jetson nano platform. Such as face recognition, object detection, etc.
70 stars 38 forks source link

warped = cv2.warpAffine(img,M,(image_size[1],image_size[0]), borderValue = 0.0)报错 #6

Closed HandsLing closed 5 years ago

HandsLing commented 5 years ago

请问我一张图片中出现两张脸,我逐个对脸进行处理的时候报这个错误 cv2.error: OpenCV(4.1.1) /io/opencv/modules/imgproc/src/imgwarp.cpp:2594: error: (-215:Assertion failed) src.cols > 0 && src.rows > 0 in function 'warpAffine' 在处理第一个脸的时候不报错,直到第二个脸才会报错,这要怎么解决呢? 谢谢了