cv
young_s%
Rolling stone
展开
-
Python 经纬度,偏航角,距离计算
经纬度计算距离,偏航角参考https://blog.csdn.net/ETNJTOTG/article/details/84130971。原创 2022-09-01 15:32:47 · 1049 阅读 · 0 评论 -
H264转YUV,循环获取每一帧数据
使用ffmpeg解码h264视频, 并获得每一帧数据原创 2022-06-01 10:01:35 · 740 阅读 · 0 评论 -
FFmpeg编译配置方法
编译下载ffmpeg源码tar zxvf FFmpeg-n4.1.3.tar.gz进入FFmpeg-n4.2目录,执行configure:./configure --enable-shared --prefix=" " --disable-swresample执行编译命令: make -j4sudo make install配置环境变量 sudo vim /etc/ld.so.conf#最后一行添加/usr/local/ffmpeg/lib/sudo ldconfigsu原创 2022-05-24 16:14:25 · 251 阅读 · 1 评论 -
GradientDescent_LinearRegression_Dynamic_Show
from numpy import *import matplotlib.pyplot as pltimport numpy as npimport cv2# y = mx + b# m is slope, b is y-interceptdef compute_error_for_line_given_points(b, m, points): totalError = 0 for i in range(0, len(points)): x = points[.原创 2022-05-13 17:10:14 · 67 阅读 · 0 评论 -
Yolox目标检测训练实录--1. 数据准备
参考官方给出的教程train_custom_dataYOLOX官方链接配置环境, install yolox.准备voc dataset, 调试train代码.把自己的 dataset, 转换为voc格式, 调试train代码.选择不同的模型结构, 训练最终可使用的model.模型转换压缩, inference部署应用。本文重点介绍dataset的处理install yolox#服务器--pytorch环境git clone [email protected]:Megvii-BaseD原创 2022-03-20 11:28:22 · 4810 阅读 · 0 评论 -
pytorch transform数据处理转c++
python推理代码转c++ sdk过程遇到pytorch数据处理的转换python代码import torchfrom PIL import Imagefrom torchvision import transformsdata_transform = transforms.Compose( [transforms.Resize(256), transforms.CenterCrop(224), transforms.ToTensor(), t原创 2022-02-28 09:55:23 · 3288 阅读 · 2 评论 -
连续多帧图像光流对齐和光流运动检测
光流运动检测本方案适用于手持设备拍摄连续多帧拍摄, 使用光流检测场景运动信息.1. 由于设备或者手抖动, 产生画面的整体偏移--需要先对齐不同的帧.2. 为了计算性能, 将原始输入图, resize到较小尺寸(此处采用320x200).3. 从大图直接resize到小图容易产生明显的摩尔纹, 此处采用三级下采样, 有效避免摩尔纹的干扰.主要流程预测多帧图像的相对清晰度通过sobel算子,计算不同帧的图像平均梯度值sobelValue, 代表相对清晰度.sobelValue最大的作为Re原创 2022-01-12 17:33:12 · 4450 阅读 · 4 评论 -
Python-openCV查看图像像素值,获取鼠标位置
#showPixelValue.pyimport cv2import sys def main(imgName): img= cv2.imread(imgName) def onmouse(event, x, y, flags, param): if event==cv2.EVENT_MOUSEMOVE: print(img[y,x]) cv2.namedWindow("img") .原创 2022-01-12 10:17:17 · 3580 阅读 · 0 评论