吴家洲, 江泽涛, 李志杰. 基于视觉的媒体播放器控制算法[J]. 微电子学与计算机, 2012, 29(2): 180-183.
引用本文: 吴家洲, 江泽涛, 李志杰. 基于视觉的媒体播放器控制算法[J]. 微电子学与计算机, 2012, 29(2): 180-183.
WU Jia-zhou, JIANG Ze-tao, LI Zhi-jie. Media Player Control Algorithm Based on Vision[J]. Microelectronics & Computer, 2012, 29(2): 180-183.
Citation: WU Jia-zhou, JIANG Ze-tao, LI Zhi-jie. Media Player Control Algorithm Based on Vision[J]. Microelectronics & Computer, 2012, 29(2): 180-183.

基于视觉的媒体播放器控制算法

Media Player Control Algorithm Based on Vision

  • 摘要: 采用有限状态自动机思想, 设计了通过动态手势来控制媒体播放器的算法.首先, 将序列图像从RGB颜色空间转变到YCrCb, 用大津法得到手势目标区域并计算目标中心;接着, 把目标中心位置和帧延时作为状态机的输入, 播放器的功能作为其状态, 通过输入信号和当前状态确认各种手势命令;最后调用windows系统函数keybd_event () 实现播放器的暂停/继续、下一首/上一首和音量调节等功能.实验表明, 本算法能实时有效地控制播放器, 状态机的应用很好地解决了Midas Touch问题.

     

    Abstract: Control algorithm of media player was proposed by dynamic hand gesture, using thinking in finite state automation.Firstly, sequences image was converted from RGB color space to YCrCb, in which gesture target region and it's center were obtained by means of otsu.Secondly, center of target region and frame delay time were input signal of finite state automation, different functions of media player were it's state, different gesture commands were decided by input signal and current state.Finally, functions of media player such as pause/continue、next/previous and volume adjustment were realized by windows system function keybd_event () .Experimental results show that media player can be controlled real-timely and effectively using the algorithm, Midas Touch program is perfectly solvable.

     

/

返回文章
返回