随笔分类 -  OpenCV

摘要:0x00007FFD908CB699 处(位于 SugarTvision.exe 中)有未经处理的异常: Microsoft C++ 异常: cv::Exception,位于内存位置 0x00000024BCB671D0 处。 cv::Mat image = cv::imread(cfile_ope 阅读全文
posted @ 2025-01-17 16:23 txwtech 阅读(9) 评论(0) 推荐(0) 编辑
摘要:0x00007FFD908CB699 处(位于 SugarTvision.exe 中)引发的异常: Microsoft C++ 异常: cv::Exception,位于内存位置 0x00000086D7EF7310 处。OpenCV(4.5.4) C:\build\master_winpack-bu 阅读全文
posted @ 2025-01-17 14:03 txwtech 阅读(34) 评论(0) 推荐(0) 编辑
摘要:matchTemplate执行后是否需要归一化处理取决于所使用的匹配方法。‌ OpenCV的matchTemplate函数提供了多种匹配方法,每种方法对结果的处理方式不同: ‌平方差匹配(cv2.TM_SQDIFF)‌:此方法通过计算模板与图像区域之间的平方差来进行匹配。平方差越小,匹配程度越高。最 阅读全文
posted @ 2025-01-09 08:18 txwtech 阅读(19) 评论(0) 推荐(0) 编辑
摘要:目前,视觉检测需求主要分为二维和三维两种类型:二维检测包括:识别定位,图像中的位置,角度OCR识别,字符识别二维码识别,条码识别测量,距离测量,尺寸,自动标注尺寸缺陷检测三维检测包括:多目标定位三维重建三维匹配等 阅读全文
posted @ 2025-01-08 09:31 txwtech 阅读(10) 评论(0) 推荐(0) 编辑
摘要:#双边滤波,代码实现 import numpy as np import math import cv2 def getClosenessHeight(sigma_g,H,W): r,c = np.mgrid[0:H:1,0:W:1] r-=(H-1)/2 c-=(W-1)/2 closeWeigh 阅读全文
posted @ 2024-04-07 15:54 txwtech 阅读(170) 评论(0) 推荐(0) 编辑
摘要:numpy.exp():返回e的幂次方,e是 常数,2.71828 np.power(): 计算 x 的 y 次方。 import numpy as np #计算常数e的幂次方 np.exp(2) #计算 x 的 y 次方 np.power(3,2) exp,高等数学里以自然常数e为底的指数函数,它 阅读全文
posted @ 2024-04-02 08:49 txwtech 阅读(131) 评论(0) 推荐(0) 编辑
摘要:import random import cv2 import numpy as np from datetime import datetime import math def printWithdate(str): time2 = datetime.now() time2a = time2.st 阅读全文
posted @ 2024-03-29 16:43 txwtech 阅读(54) 评论(0) 推荐(0) 编辑
摘要:import cv2 import numpy as np from datetime import datetime from scipy import signal #二维离散卷积运算 import math def printWithdate(str): time2 = datetime.no 阅读全文
posted @ 2024-03-22 13:45 txwtech 阅读(17) 评论(1) 推荐(0) 编辑
摘要:opencv python快速均值平滑 翻译 搜索 复制 阅读全文
posted @ 2024-03-22 08:21 txwtech 阅读(2) 评论(0) 推荐(0) 编辑
摘要:OpenCvSharp.OpenCVException:“could not find a writer for the specified extension” cv2.imwrite报错,记得加扩展名 翻译 搜索 复制 阅读全文
posted @ 2024-03-08 09:45 txwtech 阅读(474) 评论(0) 推荐(0) 编辑
摘要:python opencv 高斯平滑 import cv2 import numpy as np from datetime import datetime from scipy import signal #二维离散卷积运算 import math #full卷积,valid卷积, #same卷积 阅读全文
posted @ 2024-03-04 10:36 txwtech 阅读(83) 评论(0) 推荐(0) 编辑
摘要:python3.8安装opencv, pip install opencv-python cd D:\Program Files\Python38\Lib\site-packages pip install opencv-python 阅读全文
posted @ 2024-02-29 21:18 txwtech 阅读(220) 评论(0) 推荐(0) 编辑
摘要:python opencv图像对比度增强--暗变亮 import math import numpy as np import cv2 from datetime import datetime import matplotlib.pyplot as plt from PIL import Imag 阅读全文
posted @ 2024-02-27 11:46 txwtech 阅读(931) 评论(0) 推荐(0) 编辑
摘要:AHE:全称,含义 Adaptive自动 Histogram 直方图 equalization均衡,同等化 自适应的直方图均衡AHE(Adaptive Histogram Equalization) Contrast Limiting(CL) (CLAHE) 限制对比度的自适应直方图均衡化 1.算法 阅读全文
posted @ 2024-02-27 11:12 txwtech 阅读(272) 评论(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 阅读(68) 评论(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 阅读(94) 评论(0) 推荐(0) 编辑
摘要:问题1:python3中找不到xrange的定义,vscode中提示未定义 解决:改成range,因为python3中取消了vscode 问题2:python3中map函数返回的是迭代器,因此无法用len函数,python2返回的是list,因此可用len函数 解决:直接用 [ ] 或者在外面增加一 阅读全文
posted @ 2024-02-23 15:10 txwtech 阅读(66) 评论(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 阅读(266) 评论(0) 推荐(0) 编辑
摘要:透视变换原理 https://blog.csdn.net/xiaoyw71/article/details/128685438 翻译 搜索 复制 阅读全文
posted @ 2024-02-21 10:02 txwtech 阅读(60) 评论(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 阅读(111) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示