摘要: # 导入工具包 import numpy as np import argparse import cv2 # 设置参数 def order_points(pts): # 一共4个坐标点 rect = np.zeros((4, 2), dtype = "float32") # 按顺序找到对应坐标01 阅读全文
posted @ 2020-09-19 17:23 爬到牢底坐穿 阅读(612) 评论(0) 推荐(0) 编辑
摘要: import cv2 def sort_contours(cnts, method="left-to-right"): reverse = False i = 0 if method == "right-to-left" or method == "bottom-to-top": reverse = 阅读全文
posted @ 2020-09-19 11:38 爬到牢底坐穿 阅读(659) 评论(0) 推荐(0) 编辑