Lines Matching refs:img_bw
137 _, img_bw = cv2.threshold(numpy.uint8(img_gray), 0, 255,
139 return img_bw
452 def find_circle_fill_metric(shape, img_bw, color): argument
466 matching += 1 if img_bw[y][shape['ctx']] == color else 0
469 matching += 1 if img_bw[shape['cty']][x] == color else 0
497 img_bw = cv2.adaptiveThreshold(img_gray, 255, cv2.ADAPTIVE_THRESH_MEAN_C,
502 img_bw = binarize_image(img_gray)
505 contours = find_all_contours(255-img_bw)
520 colour = img_bw[shape['cty']][shape['ctx']]
523 fill = find_circle_fill_metric(shape, img_bw, color)
707 img_bw = binarize_image(img_gray)
710 contours = find_all_contours(img_bw)
1166 img_bw = cv2.convertScaleAbs(
1169 numpy.uint8(img_bw), CV2_THESHOLD_LOWER_BLACK, CH_FULL_SCALE,