| With the development of electronic technology, the initial human-computerinteraction is achieved by using mouse and keyboard. The way of subsequentidentification included the touch screen and smart handle, and so on. The research inthis paper is a system of control game based on the identification of the motion track.Communication between human and computers no longer need close contact and canoperate within a certain range. Currently, this technology abroad has relatively matureapplications, but not widely used in China. At the same time, research is also relativelyless. So, this research of interactive mode by using CMOS cameras to capture imageshas a high scientific value and commercial potential.Taking computer vision acquisition mode and the action trajectory way intoaccount, the object designed a system, which captured images by camera, and used theappropriate algorithm to obtain the trajectory, had two modes including PC mode andself-generated game mode. In embedded game mode, game interface is self-generatedby the embedded system. In PC mode, the game interface passed by an external PC.Main contents are as follows:(1) The hardware design of the system is mainly to build the hardware platformand design two hardware logic modules. Taking design requirements and functionalindicators into account, system selected TRDB-DC2as an image acquisition device,DE2development board as the design platform, complete the SOPC systemcustomization in FPGA, the external game interface access by self-designed VGAadapter plate, the ultimate effect choice VGA monitor to display, then complete thebuild of hardware platform. In order to meet the real-time requirements, the imageacquisition module and the VGA adapter module are designed by hardware logiclanguage. The image acquisition module completes the configuration of the camera andthe display and storage of image; the VGA adapter module completes the configurationof the external VGA adapter plate and image adapter.(2) System software design. According to the function of the system analysis, thesoftware design is mainly on the human body contour extraction algorithm, thetrajectory recognition algorithm, the serial PC design and the game interface designself-generating module. Body contour extraction used background subtraction andmorphological filtering. Players’ contours extracted from the sports scene and superimposed with the game interface; Trajectory recognition used the three law andfiltered to obtain the center of motion coordinates; Serial PC applications in the PCmode controlled mouse movement coordinates obtained through the serial port; Thegame interface generation module is used in embedded games mode, completed thegame interface design.The test results show that the program of control game system based on theidentification of the motion track is feasible. It can smoothly complete the two gamemodes and has good results. There are obvious advantages in real-time, accuracy,scalability, show effect and development cost, so the system has broad applicationprospects. |