This OpenCV tutorial is a very simple code example of GPU Cuda optical flow in OpenCV written in c++. The configuration of the project, code, and explanation are included for farneback Optical Flow method. Farneback algorithm is a dense method that is used to process all the pixels in the given image. The dense methods are slower but more accurate as all the pixels of the image are processed. In the following example, I am displaying just a few pixes based on a grid. I am not displaying all the pixes. In the opposite to dense method the sparse method like Lucas Kanade using just a selected subset of pixels. They are faster. Both methods have specific applications. Lucas-Kanade is widely used in tracking. The farneback can be used for the analysis of more complex movement in image scene and furder segmentation based on these changes. As dense methods are slightly slower, the GPU and Cuda implementation can lead to great performance improvements to calculate optical flow for all pixels o
This 10 channels are relatively simple to extract mainly by sobel derivatives (cv::sobel).
Yes, the implementation is mainly based on Opencv.
I am using this model param int modelRows = 88;
int modelCols =modelRows/4;
Init features are randomly generated. This is funny part. In some cases program hold 5GB is Ram memory and can cause shutdown of my PC. I cant find why. :)
Now, I am trying different approach of weak feature selectors by AdaBoost, GentleBoost, WaldBoost .
This is only personal research.
In our applications.
Waldboost on Haar + LBP features + Kalman are fast and good enough for me.
I know that Opencv Contrib module has ICF ACF feature extractor and Detector learned by waldboost. After some testing i try to implement my own version and this is the first results.
Adaboost ACF learning details
- I am using Adaboost 1000 weak classifier,
- Ped dataset is my own. 10 000 positive samples. I am working on this dataset time to time for more than 2 years.
- 8 000 Neg samples are generated randomly from my Travel pictures :)
Yes first results after 6 months.
Aggregate channel features first results
In this example is used Town Center Dataset only for demonstration. I can not find any condition of usage on this page. http://www.robots.ox.ac.uk Town Centre Dataset
[1] P.Dollar, R.Appel, S.Belongie and P.Perona. "Fast feature pyramids for object detection". TPAMI, 2014. 1, 2, 7
Hi Vlada, did you publish some of your test code online (for instance on github)?
ReplyDeleteI would like to. I still have some memory trouble, when I generate random feature structure to evaluate. Get this features is not complicated and right now i am testing this on some other learning algorithm like latent SVM. Code is not so much robust and prepared for public pre release.. Hope, I resolv these tasks soon.
ReplyDeleteI would like to,but....
ReplyDeleteHello
ReplyDeleteRegarding training the model for ACF.
i want to ask a couple of things:
1) i have a dataset of 10 categories of objects.
the images contain more than one objects. So total positive images are 750 and negative images are 150. How i need to divide the train and test data? 50% each?
2) I am confused that if i want to do object detection than first full dataset is used for the training and testing using ACF for proposal extraction and the again same positive samples use for training and testing for the Object detection?
I am working now on deep learning like any others :).. I put this project under the desk.. Sorry
ReplyDeleteHi
ReplyDeleteThanks for this post
Have you compared the speed with OpenCV's cascade? Which one is faster?