Hidden Markov Models with C++ [closed]

谁说胖子不能爱 提交于 2019-12-18 10:49:15

问题


I've been looking into implementations of Hidden Markov Models in C++ lately. I was wondering If I could use any of the existing HMM libraries written in C++ out there to use with Action Recognition (with OpenCV)?

I'm tying to AVOID "re-inventing the wheel"!

Is it possible to use Torch3Vision even though(looks like) it was designed to work for speech recognition?

My idea is that, if we can convert the feature vectors into Symbols/Observations (using Vector Quantization - Kmeans clustering), we can use those symbols for decoding, inference, parameter learning (Baum–Welch algorithm). This way it would work with Torch3Vision in OpenCV.

Any help on this will be truly appreciated.


回答1:


You can take a look at http://www.ece.ucsb.edu/Faculty/Rabiner/ece259/Reprints/tutorial%20on%20hmm%20and%20applications.pdf for the theory behind HMMs. It's not hard to implement the algorithms yourself.

For a C-based version, you can take a look at my implementation, http://code.google.com/p/accelges/, which I've done for a Google Summer of Code project.




回答2:


There is also this implementation that I wrote several days ago. It is a class for discrete HMM using OpenCV. You may take a look here:

https://sourceforge.net/projects/cvhmm/

After quantization of your features, you can convert each feature vector to one label and use the sequence of labels to train a discrete HMM.



来源:https://stackoverflow.com/questions/8562545/hidden-markov-models-with-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!