![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
计算机视觉
_rho
这个作者很懒,什么都没留下…
展开
-
为什么structure from motion只能提取出物体的比例信息?
首先,构建一个相机移动的模型。假设相机通过旋转矩阵RRR和位移向量TTT从prp_{r}pr的位置移动到plp_{l}pl的位置。世界坐标系中的物体PPP在不同位置的相机坐标系中的坐标是PrP_{r}Pr和PlP_{l}Pl。PPP和PlP_{l}Pl、PPP和PrP_{r}Pr之间的替换公式为:[XlYlZl]=Pl=RlP+Tl=Rl[XYZ]+Tl[XrYrZr]=Pr=RrP+Tr=Rr[XYZ]+Tr\begin{bmatrix} X_{l} \\ Y_{l} \\ Z_{l} \原创 2020-04-01 19:34:26 · 248 阅读 · 0 评论 -
OpenCV 基于色彩直方图进行肤色检测
色彩直方图是统计不同色彩在图像中的像素个数。例如,下图的猫咪在RGB色彩空间中每通道的灰度直方图(线条的颜色与其通道相对应)。将图像转为HSV色彩空间(Hue:色调;Saturation:饱和度;Value:亮度),我们可以更稳定地提取特定的颜色。本示例采用HSV色彩空间的H、S通道来进行颜色提取。H、S通道下的色彩直方图二维的展现形式如下(竖列为Hue通道,横行为Saturation通道,图像中的像素亮度越高,表明该色彩在原始图像中出现的频次越高):程序执行过程:截取若干张不同肤色的图片,最原创 2019-11-09 04:25:43 · 1052 阅读 · 15 评论 -
Face Swapping
Dataset: https://personalpages.manchester.ac.uk/staff/timothy.f.cootes/data/talking_face/talking_face.htmlstep 1: load images and pointsimport cv2from matplotlib import pyplot as pltimport osimport numpy as np%matplotlib inlinerandom_ind = np.rando原创 2019-06-29 13:48:13 · 935 阅读 · 0 评论 -
Active Shape Model Implementation
Dataset:https://personalpages.manchester.ac.uk/staff/timothy.f.cootes/data/talking_face/talking_face.htmlstep 1: load images and pointsimport cv2from matplotlib import pyplot as pltimport osimport mathimport numpy as np%matplotlib inlinerandom_ind原创 2019-07-12 21:12:23 · 415 阅读 · 0 评论 -
Active Shape Model
Active Shape Model转载 2019-07-12 21:06:42 · 539 阅读 · 0 评论 -
Start Face Recognition by PCA from scratch
Dataset: http://vision.ucsd.edu/content/yale-face-databaseImage pre-processingstep 1: convert images in gif to images in jpgimport osfrom PIL import Imageimport filetypeimages_dir = "./yalefaces/"for file in os.listdir(images_dir): if filetype原创 2019-06-21 19:46:52 · 289 阅读 · 0 评论 -
Kendall’s Shape Coordinates
Kendall’s Shape Coordinates翻译 2019-06-04 17:48:04 · 290 阅读 · 0 评论 -
Face Recognition with OpenCV built-in recognizer
Dataset: http://vision.ucsd.edu/content/yale-face-databaseImage pre-processingstep 1: convert images in gif to images in jpgimport osfrom PIL import Imageimport filetypeimages_dir = "./yalefaces/"for file in os.listdir(images_dir): if filetype原创 2019-06-20 11:27:10 · 177 阅读 · 0 评论 -
Bookstein Shape Coordinates
Bookstein Shape Coordinates翻译 2019-05-26 17:24:54 · 335 阅读 · 0 评论 -
Centroid Size
Centroid Size翻译 2019-05-25 10:54:00 · 725 阅读 · 0 评论 -
OpenCV 基于CAMShift算法的对象检测与跟踪
视频来源:http://edu.51cto.com/course/8837.html?source=so以下代码用OpenCV实现了视频中基于CAMShift算法的对象检测与跟踪,该方法实质上仍然是基于色彩的对象跟踪,不过是在HSV色彩空间,选取Hue通道,一定程度上降低了光照变化所造成的影响。//// main.cpp// opencv-learning//// Created by _R on 2019/1/9.// Copyright © 2019 _R. All rights原创 2019-02-20 21:24:00 · 506 阅读 · 1 评论 -
OpenCV 基于Lucas-Kanade光流算法的对象跟踪
视频来源:https://www.youtube.com/watch?v=EvIwL0aSCZY以下代码用OpenCV实现了视频中基于Lucas-Kanade光流算法【OpenCV中的实现为calcOpticalFlowPyrLK函数】的对象跟踪。为了规避孔径问题,以下代码实现仅对角点【通过goodFeaturesToTrack函数做角点检测】做光流计算。//// main.cpp// opencv-learning//// Created by _R on 2019/1/9.// C原创 2019-01-17 11:00:51 · 1081 阅读 · 0 评论 -
OpenCV 基于色彩的对象检测与跟踪
视频来源:https://www.youtube.com/watch?v=EvIwL0aSCZY以下代码用OpenCV实现了视频中基于色彩的对象检测与跟踪,该方法受光照变化影响较大。//// main.cpp// opencv-learning//// Created by _R on 2019/1/9.// Copyright © 2019 _R. All rights reserved.//#include <iostream>#include <open原创 2019-01-15 14:28:03 · 607 阅读 · 0 评论 -
OpenCV 背景消除和提取
视频来源:https://www.youtube.com/watch?v=oHFr0R6jQ6I以下代码用OpenCV实现了视频中背景消除和提取的建模,涉及到KNN(K近邻算法)和GMM(高斯混合模型)。//// main.cpp// opencv-learning//// Created by _R on 2019/1/9.// Copyright © 2019 _R. All rights reserved.//#include <iostream>#inclu原创 2019-01-13 21:36:29 · 18867 阅读 · 2 评论 -
Lucas-Kanade光流算法 — Lucas-Kanade Method
Lucas-Kanade光流算法翻译 2019-01-09 00:28:20 · 928 阅读 · 0 评论 -
Horn–Schunck光流算法 — Horn–Schunck Method
Horn-Schunck光流算法翻译 2018-12-29 16:36:58 · 5477 阅读 · 0 评论 -
光流 — Optical Flow
光流是环境中物体和照相机发生相对移动,物体投影在图像或者视网膜上的运动轨迹,即像素的移动。我们期望通过分析图像序列中像素变化来计算环境中物体和照相机所发生的相对运动轨迹。光流有一个前提假设:图像采集的时间间隔很小,因此,图像中某点像素的位置变化范围较小。且该点像素位置变化前后,其像素值保持不变。即:I(x,y,t)=I(x+Δx,y+Δy,t+Δt)I(x,y,t) = I(x+\Delta{x}, y+\Delta{y},t+\Delta{t})I(x,y,t)=I(x+Δx,y+Δy,t+Δt)原创 2018-12-27 13:45:05 · 986 阅读 · 0 评论 -
孔径问题 — The Aperture Problem
孔径问题翻译 2018-12-10 16:30:20 · 6898 阅读 · 2 评论