haar-wavelet

Wavelet transform in openCV

半腔热情 提交于 2019-12-20 09:01:04
问题 did someone tried to implement DWT in opencv or in C++? I saw older posts on this subject and i didn't find them useful for me, because I need a approximation coefficient and details as a result of wavelet transformation. I tried to add this (http://wavelet2d.sourceforge.net/) to my project but it's not working as well as planned. And this is to simple, because as a result parameters i need approximation coefficient and details: void haar1(float *vec, int n, int w) { int i=0; float *vecp =

Haar Cascades vs. LBP Cascades in Face Detection

和自甴很熟 提交于 2019-12-20 08:00:33
问题 I have been experimenting with face detection in OpenCV (Open Source Computer Vision Library), and found that one could use Haar cascades to detect faces as there are several of them provided with OpenCV. However, I have noticed that there are also several LBP cascades. After doing some research, I found that LBP stands for Local Binary Patterns, and it can also be used for face detection, according to the OpenCV Face Detection Documentation. What I would like to know is, which works better?

Is this wavelet transform implementation correct?

a 夏天 提交于 2019-12-06 07:55:37
问题 I am searching for alternatives to the FFT to create a spectrogram analyser in python. I heard that the wavelet transform is faster and provides better time accuracy than the short time FFT. I went in this wikipedia article that features the Haar wavelet transform implementation in Java: https://en.wikipedia.org/wiki/Discrete_wavelet_transform#Code_example I brutally converted it to python but I have no idea if the values I'm getting are correct. Can someone confirm? from math import * N = 8

Facial feature detection with OpenCV with eyes and mouth corners points

家住魔仙堡 提交于 2019-12-05 02:42:53
问题 I'm working on a face feature detection project and I do detect the eyes, nose and mouth using OpenCv withHaarcascade xml files. But, I want to have the eyes and mouth corners points and the nose center. The goal is using it to predict emotions. I found this link that shows how it works, and I need to get to this result using JAVA. Could any one help me? Thanks in advance. http://cmp.felk.cvut.cz/~uricamic/flandmark/ in this part we receve the face image and we drawRect on the face: public

Is this wavelet transform implementation correct?

百般思念 提交于 2019-12-04 13:08:36
I am searching for alternatives to the FFT to create a spectrogram analyser in python. I heard that the wavelet transform is faster and provides better time accuracy than the short time FFT. I went in this wikipedia article that features the Haar wavelet transform implementation in Java: https://en.wikipedia.org/wiki/Discrete_wavelet_transform#Code_example I brutally converted it to python but I have no idea if the values I'm getting are correct. Can someone confirm? from math import * N = 8 res = [sin(k) for k in xrange(N)] for k in xrange(N): print res[k] print def

Facial feature detection with OpenCV with eyes and mouth corners points

余生长醉 提交于 2019-12-03 20:45:50
I'm working on a face feature detection project and I do detect the eyes, nose and mouth using OpenCv withHaarcascade xml files. But, I want to have the eyes and mouth corners points and the nose center. The goal is using it to predict emotions. I found this link that shows how it works, and I need to get to this result using JAVA. Could any one help me? Thanks in advance. http://cmp.felk.cvut.cz/~uricamic/flandmark/ in this part we receve the face image and we drawRect on the face: public void drawFaces(BufferedImage image) { final List<PotentialFace> faces = FacialRecognition.run(image, db);

How can I detect yawn using Open CV

人盡茶涼 提交于 2019-12-03 06:13:53
问题 I am developing an application for iOS that needs to detect when the user yawns. What I did is include Open CV and find faces using a haar cascade, and then find mouth inside the faces (too using a haarcascade). The trouble that I have is that I believed that it would be so easy to detect a yawn like doing something like (face.y - mouth.y) < something = yawn. But the problem that I have is that the rects for face and mouth are "inestables", I mean every time that the loop runs X and Y values

Wavelet transform in openCV

拜拜、爱过 提交于 2019-12-02 17:37:40
did someone tried to implement DWT in opencv or in C++? I saw older posts on this subject and i didn't find them useful for me, because I need a approximation coefficient and details as a result of wavelet transformation. I tried to add this ( http://wavelet2d.sourceforge.net/ ) to my project but it's not working as well as planned. And this is to simple, because as a result parameters i need approximation coefficient and details: void haar1(float *vec, int n, int w) { int i=0; float *vecp = new float[n]; for(i=0;i<n;i++) vecp[i] = 0; w/=2; for(i=0;i<w;i++) { vecp[i] = (vec[2*i] + vec[2*i+1])

Haar Cascaded Classifier Data in OpenCV:

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 07:48:51
问题 I can't find any information about Data used for training Haar classifiers in OpenCV. I want to know what kind of, how many and how(manually or via program) these classifiers were generated. You can find these classifier's xml files in ..OpenCV2.3.1\opencv\data\haarcascades.. directory. Thanks 回答1: this research paper contains the answer Empirical Analysis of Detection Cascades of Boosted Classifiers for Rapid Object Detection by Dr Rainer Lienhart thanks guys for the help... 来源: https:/

How to use Haar wavelet to detect LINES on an image?

社会主义新天地 提交于 2019-11-30 13:58:11
So I have an image like this: I want to get something like this (I haven't drawn all lines I want but I hope you can get my idea): I want to use SURF ( (Speeded Up Robust Features) is a robust image descriptor, first presented by Herbert Bay et al. in 2006 ) or something that is based on sums of 2D Haar wavelet responses and makes an efficient use of integral images for finding all straight lines on image. I want to get relative to picture pixel coords start and end points of lines. So on this picture to find all lines between tiles and those 2 black lines on top. Is there any such Code