Algorithm design for a gun simulator based on image processing

Yu Liu, Ping Wei, Jun Ke

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

In this paper, an algorithm is designed for shooting games under strong background light. Six LEDs are uniformly distributed on the edge of a game machine screen. They are located at the four corners and in the middle of the top and the bottom edges. Three LEDs are enlightened in the odd frames, and the other three are enlightened in the even frames. A simulator is furnished with one camera, which is used to obtain the image of the LEDs by applying inter-frame difference between the even and odd frames. In the resulting images, six LED are six bright spots. To obtain the LEDs™ coordinates rapidly, we proposed a method based on the area of the bright spots. After calibrating the camera based on a pinhole model, four equations can be found using the relationship between the image coordinate system and the world coordinate system with perspective transformation. The center point of the image of LEDs is supposed to be at the virtual shooting point. The perspective transformation matrix is applied to the coordinate of the center point. Then we can obtain the virtual shooting point™s coordinate in the world coordinate system. When a game player shoots a target about two meters away, using the method discussed in this paper, the calculated coordinate error is less than ten mm. We can obtain 65 coordinate results per second, which meets the requirement of a real-time system. It proves the algorithm is reliable and effective.

Original languageEnglish
Title of host publication2015 International Conference on Optical Instruments and Technology
Subtitle of host publicationOptoelectronic Imaging and Processing Technology, OIT 2015
EditorsGuangming Shi, Bormin Huang, Xuelong Li
PublisherSPIE
ISBN (Electronic)9781628418033
DOIs
Publication statusPublished - 2015
Event2015 International Conference on Optical Instruments and Technology: Optoelectronic Imaging and Processing Technology, OIT 2015 - Beijing, China
Duration: 17 May 201519 May 2015

Publication series

NameProceedings of SPIE - The International Society for Optical Engineering
Volume9622
ISSN (Print)0277-786X
ISSN (Electronic)1996-756X

Conference

Conference2015 International Conference on Optical Instruments and Technology: Optoelectronic Imaging and Processing Technology, OIT 2015
Country/TerritoryChina
CityBeijing
Period17/05/1519/05/15

Keywords

  • camera calibration
  • computer vision
  • perspective transformation
  • real-time system

Fingerprint

Dive into the research topics of 'Algorithm design for a gun simulator based on image processing'. Together they form a unique fingerprint.

Cite this