Lines Matching refs:square
699 square = {}
731 square['angle'] = angle
732 square['left'] = shape['left'] - SQUARE_CROP_MARGIN
733 square['right'] = shape['right'] + SQUARE_CROP_MARGIN
734 square['top'] = shape['top'] - SQUARE_CROP_MARGIN
735 square['bottom'] = shape['bottom'] + SQUARE_CROP_MARGIN
736 square['w'] = shape['width'] + 2*SQUARE_CROP_MARGIN
737 square['h'] = shape['height'] + 2*SQUARE_CROP_MARGIN
746 return square
818 for square in square_contours:
819 area = cv2.contourArea(square)
823 filtered_squares.append(square)
824 _, (width, height), angle = cv2.minAreaRect(square)