Opencv
文章平均质量分 93
〓噯═硪
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
基于arm开发板Ubuntu16.04编译opencv-python
1. Install RequiredPackages 1.sudo apt-get install build-essential 2.sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev 3.sudo apt-get install python-dev python-numpy libtbb2 li...原创 2020-05-29 17:58:13 · 1309 阅读 · 0 评论 -
已知三个点坐标,求点到直线的距离(python)
import mathdef distance(pointx, pointy, x1,y1,x2,y2): a = y2 - y1 b = x1 - x2 x = x2 * y1 - x * y2 dis = (math.fabs(a * pointx + b * pointy + c )) / (math.pow(a * a + b * b, 0.5) return dis原创 2020-05-22 11:13:45 · 4088 阅读 · 1 评论 -
Opencv通过颜色阈值寻找图案
1. 读取图片img = cv2.imread(img_path)2.检测颜色范围(本案例以红色为主)color = [([5, 0, 180], [160, 120, 255])] # 数值按照[b, g, r]排布for (lower, upper) in color: # 创建numpy数组 lower = np.array(lower, dtype='uint8') upper = np.array(upper, dtype='uint8') #...原创 2020-05-21 15:07:12 · 2154 阅读 · 0 评论
分享