added COLOR_... enumeration to imgproc.hpp and EVENT_... enumeration to highgui.hpp
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import numpy as np
|
||||
import cv2
|
||||
import cv2.cv as cv
|
||||
import os
|
||||
from common import splitfn
|
||||
|
||||
@@ -39,7 +38,7 @@ if __name__ == '__main__':
|
||||
term = ( cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_COUNT, 30, 0.1 )
|
||||
cv2.cornerSubPix(img, corners, (5, 5), (-1, -1), term)
|
||||
if debug_dir:
|
||||
vis = cv2.cvtColor(img, cv.CV_GRAY2BGR)
|
||||
vis = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR)
|
||||
cv2.drawChessboardCorners(vis, pattern_size, corners, found)
|
||||
path, name, ext = splitfn(fn)
|
||||
cv2.imwrite('%s/%s_chess.bmp' % (debug_dir, name), vis)
|
||||
|
||||
Reference in New Issue
Block a user