Lines Matching refs:cv2
18 import cv2
63 return cv2.resize(img.copy(), dim, interpolation=cv2.INTER_AREA)
74 img_gray = cv2.cvtColor(img, cv2.COLOR_RGB2GRAY)
145 template = cv2.imread(self._file, cv2.IMREAD_ANYDEPTH)
197 result = cv2.matchTemplate(scene_scaled, chart, cv2.TM_CCOEFF)
198 _, opt_val, _, top_left_scaled = cv2.minMaxLoc(result)
280 thresh = cv2.adaptiveThreshold(
281 img, 255, cv2.ADAPTIVE_THRESH_MEAN_C, cv2.THRESH_BINARY, 201, 2)
285 cv2_version = cv2.__version__
287 contours, _ = cv2.findContours(
288 thresh, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
290 _, contours, _ = cv2.findContours(
291 thresh, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
297 rect = cv2.minAreaRect(contour)
307 area = cv2.contourArea(contour)
312 box = numpy.int0(cv2.cv.BoxPoints(rect))
314 box = numpy.int0(cv2.boxPoints(rect))
319 area = cv2.contourArea(contour)
327 area = cv2.contourArea(square)
332 _, (width, height), angle = cv2.minAreaRect(square)
356 chart = cv2.imread(chart_file, cv2.IMREAD_ANYDEPTH)
360 blur = cv2.blur(chart, (j, j))
377 normal_img = cv2.cvtColor(
378 cv2.imread(normal_img_path), cv2.COLOR_BGR2GRAY)
379 wide_img = cv2.cvtColor(
380 cv2.imread(wide_img_path), cv2.COLOR_BGR2GRAY)
409 normal_img = cv2.cvtColor(
410 cv2.imread(normal_img_path), cv2.COLOR_BGR2GRAY)
411 wide_img = cv2.cvtColor(
412 cv2.imread(wide_img_path), cv2.COLOR_BGR2GRAY)