Paper
5 August 2015 Algorithm design for a gun simulator based on image processing
Yu Liu, Ping Wei, Jun Ke
Author Affiliations +
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.
© (2015) COPYRIGHT Society of Photo-Optical Instrumentation Engineers (SPIE). Downloading of the abstract is permitted for personal use only.
Yu Liu, Ping Wei, and Jun Ke "Algorithm design for a gun simulator based on image processing", Proc. SPIE 9622, 2015 International Conference on Optical Instruments and Technology: Optoelectronic Imaging and Processing Technology, 96220O (5 August 2015); https://doi.org/10.1117/12.2193356
Advertisement
Advertisement
RIGHTS & PERMISSIONS
Get copyright permission  Get copyright permission on Copyright Marketplace
KEYWORDS
Light emitting diodes

Cameras

Distortion

Imaging systems

Calibration

Coded apertures

Image processing

RELATED CONTENT

Problem-oriented stereo vision quality evaluation complex
Proceedings of SPIE (December 08 2015)
Simple method for correction of distortion in images
Proceedings of SPIE (September 14 2016)
Bootstrap Stereo Error Simulations
Proceedings of SPIE (November 12 1981)

Back to Top