5
Non ho idea, perché questa funzione di openCV mi dà i valori di None, ho qualche pensiero su qualche corpo?cv2.cornersSubPix restituisce solo None
while True:
retval,frame = capture.read()
h, w = frame.shape[:2]
gray = cv2.cvtColor(frame, cv2.cv.CV_BGR2GRAY)
found, points = cv2.findChessboardCorners(gray, p_size)
if found!=0:
frame_count = frame_count + 1
objpoints.append(objp)
corners2 = cv2.cornerSubPix(gray, points, (11, 11), (-1,1), criteria)
imgpoints.append(corners2) </i>
Una nota per il futuro. Sembra che partendo da OpenCV 3.0 'cv2.cornerSubPix' restituirà' corners' piuttosto che 'None': [http://docs.opencv.org/trunk/modules/imgproc/doc/feature_detection.html](http:/ /docs.opencv.org/trunk/modules/imgproc/doc/feature_detection.html#cornersubpix) Entrambe le versioni dei documenti sono ora online, quindi alcuni utenti potrebbero essere confusi. – sastanin