随笔分类 -  OpenCV

摘要:AHE:全称,含义 Adaptive自动 Histogram 直方图 equalization均衡,同等化 自适应的直方图均衡AHE(Adaptive Histogram Equalization) Contrast Limiting(CL) (CLAHE) 限制对比度的自适应直方图均衡化 1.算法 阅读全文
posted @ 2024-02-27 11:12 txwtech 阅读(418) 评论(0) 推荐(0)
摘要:对数极坐标变换: import math import numpy as np import cv2 def print_hi(str): print('hi,'+str) def print_3(str): print('hi3,'+str) def polar2(I, center, r, th 阅读全文
posted @ 2024-02-26 11:40 txwtech 阅读(100) 评论(0) 推荐(0)
摘要:import math import numpy as np import cv2 def print_hi(str): print('hi,'+str) def print_3(str): print('hi3,'+str) def polar2(I, center, r, theta=(0, 3 阅读全文
posted @ 2024-02-26 11:15 txwtech 阅读(172) 评论(0) 推荐(0)
摘要:问题1:python3中找不到xrange的定义,vscode中提示未定义 解决:改成range,因为python3中取消了vscode 问题2:python3中map函数返回的是迭代器,因此无法用len函数,python2返回的是list,因此可用len函数 解决:直接用 [ ] 或者在外面增加一 阅读全文
posted @ 2024-02-23 15:10 txwtech 阅读(90) 评论(0) 推荐(0)
摘要:打开anaconda (如果在pytorch环境,就先执行conda activate pytorch),参考文末 安装: pip3 install opencv-contrib-python -i https://pypi.tuna.tsinghua.edu.cn/simple 如下出现错误是网络 阅读全文
posted @ 2024-02-23 14:28 txwtech 阅读(412) 评论(0) 推荐(0)
摘要:透视变换原理 https://blog.csdn.net/xiaoyw71/article/details/128685438 翻译 搜索 复制 阅读全文
posted @ 2024-02-21 10:02 txwtech 阅读(91) 评论(0) 推荐(0)
摘要:python opencv仿射变化--缩放--平移--旋转 # This is a sample Python script. # Press Shift+F10 to execute it or replace it with your code. # Press Double Shift to 阅读全文
posted @ 2024-02-07 16:58 txwtech 阅读(144) 评论(0) 推荐(0)
摘要:python在图像上绘制文字-中文 simfang.ttf在c盘可以找到,复制到py的相同文件夹 """ coding=utf-8 cv2解决绘制中文乱码的问题 """ import cv2 import numpy as np from PIL import Image, ImageDraw, I 阅读全文
posted @ 2024-02-07 16:57 txwtech 阅读(632) 评论(1) 推荐(0)
摘要:对于使用矩阵相乘法计算仿射矩阵,前提是需要知道基本仿射变换步骤,即如果 (x,y)先缩放再平移,则变换后的矩阵形式为: 翻译 搜索 复制 阅读全文
posted @ 2024-02-06 13:32 txwtech 阅读(28) 评论(0) 推荐(0)
摘要:符号没有显示出来,排版问题 & gt; 和 & lt; 代表大于号> 和小于号< 以及其英文的全称 sy>1 翻译 搜索 复制 阅读全文
posted @ 2024-02-06 08:36 txwtech 阅读(37) 评论(0) 推荐(0)
摘要:1表示点 0表示向量 https://zhuanlan.zhihu.com/p/625678401?utm_id=0 https://blog.csdn.net/weixin_44026604/article/details/112131372 https://blog.csdn.net/qq_38 阅读全文
posted @ 2024-02-05 17:01 txwtech 阅读(38) 评论(0) 推荐(0)
摘要:python opencv读取图像矩阵加减乘除操作 # This is a sample Python script. # Press Shift+F10 to execute it or replace it with your code. # Press Double Shift to sear 阅读全文
posted @ 2024-02-05 13:37 txwtech 阅读(152) 评论(0) 推荐(0)
摘要:python numpy_ndarray NumPy(Numerical Python)是Python的一种开源的数值计算扩展。这种工具可用来存储和处理大型矩阵,比Python自身的嵌套列表(nested list structure)结构要高效的多(该结构也可以用来表示矩阵(matrix)),支持 阅读全文
posted @ 2024-02-05 08:37 txwtech 阅读(48) 评论(0) 推荐(0)
摘要:pip install python-opencv:错误 pip install opencv-python:正确 翻译 搜索 复制 阅读全文
posted @ 2024-01-23 12:02 txwtech 阅读(20) 评论(0) 推荐(0)
摘要:分别安装: OpenCvSharp4.4.8.0.20230708 OpenCvSharp4.Extensions.4.8.0.20230708 OpenCvSharp4.Windows.4.8.0.20230708 安装OpenCvSharp4.Extensions.4.8.0.20230708 阅读全文
posted @ 2023-12-05 13:32 txwtech 阅读(1451) 评论(7) 推荐(0)
摘要:官网下载地址https://opencv.org/releases/但是特别慢 快一些的就是git获取https://github.com/opencv/opencv/releases大概就4-5min https://pan.baidu.com/s/1iZhVhR4yWpxDuwynAefUOQ 阅读全文
posted @ 2023-11-20 14:38 txwtech 阅读(197) 评论(0) 推荐(0)
摘要:OpenCV解压后在\opencv\build\x64文件夹下可以看到几个文件夹 其对应关系为: vc10 = Visual Studio 2010 vc11 = Visual Studio 2012 vc12 = Visual Studio 2013 vc14 = Visual Studio 20 阅读全文
posted @ 2023-11-20 14:20 txwtech 阅读(486) 评论(0) 推荐(0)
摘要:OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cv::cvtColor, file C:\builds\master_PackSlave-win64-vc12-shared\opencv\modules\imgproc\src\co 阅读全文
posted @ 2021-05-27 15:51 txwtech 阅读(620) 评论(0) 推荐(0)
摘要:HoughCircles 霍夫圆变换原理及圆检测 霍夫圆变换的基本原理与霍夫线变换大体类似 对直线来说,一条直线能由极径极角(r,θ)表示,而对于圆来说,我们需要三个参数:圆心(a,b),半径 r 笛卡尔坐标系中圆的方程为: (x-a)2 + (y-b)2 = r2 化简便可得到: a = x - 阅读全文
posted @ 2021-04-27 22:33 txwtech 阅读(1118) 评论(1) 推荐(0)
摘要:OpenCV25-判断一个点是否在多边形的内部_点多边形测试pointPolygonTest opencv函数 pointPolygonTest: C++: double pointPolygonTest(InputArray contour, Point2f pt, bool measureDis 阅读全文
posted @ 2021-04-26 22:54 txwtech 阅读(1294) 评论(0) 推荐(0)