haar-wavelet

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

大憨熊 提交于 2019-11-29 20:56:23
问题 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

haar training OpenCV assertion failed

本秂侑毒 提交于 2019-11-28 19:56:10
I am trying to train a haar-like classifier for pedestrians in OpenCV using 3340 positive images and 1224 negative images. (in a .txt file I keep the negative image names i.e negatives(1).bmp, and in a txt file I keep the positives i.e. picture(1).bmp 1 0 0 64 128. Actually positive examples are already cropped images of pedestrians so I only need specify one positive sample per image). At some point during the training process it stops and says : "Opencv Error: Assertion failed (elements_read==1)in unknown function, file c:\path\cvhaartraining.cpp, line 1858" Any ideas as to what is causing

haar training OpenCV assertion failed

為{幸葍}努か 提交于 2019-11-27 12:34:40
问题 I am trying to train a haar-like classifier for pedestrians in OpenCV using 3340 positive images and 1224 negative images. (in a .txt file I keep the negative image names i.e negatives(1).bmp, and in a txt file I keep the positives i.e. picture(1).bmp 1 0 0 64 128. Actually positive examples are already cropped images of pedestrians so I only need specify one positive sample per image). At some point during the training process it stops and says : "Opencv Error: Assertion failed (elements