LIGHT GUN AND METHOD FOR DETERMINING SHOT POSITION
First Claim
1. A computer-implemented method for determining a shot position of a light gun on a display screen, the method comprising:
- obtaining a current image captured by an image capturing device of the light gun;
detecting a screen area in the current image by comparing the current image with a screen template of the display screen, the current image comprising distance information between a lens of the image capturing device and each point of the screen area in the current image;
calculating actual coordinates of the aimed point of the light gun on the display screen according to a virtual size of the screen area and an actual size of the display screen; and
transmitting the actual coordinates to a host computer in response to receiving a shot command of the light gun, and displaying a shot result of the light gun on the display screen using the host computer according to the actual coordinates.
4 Assignments
0 Petitions
Accused Products
Abstract
In a method for determining a shot position of a light gun on a display screen, a current image is captured by an image capturing device of the light gun. The method detects a screen area in the current image, calculates coordinates of an aimed point of the light gun on the display screen when the screen area has been detected, and transmits the coordinates of the aimed point of the light gun to a host computer so that a shot result of the light gun is displayed on the display screen by the host computer according to the coordinates of the aimed point of the light gun on the display screen.
13 Citations
18 Claims
-
1. A computer-implemented method for determining a shot position of a light gun on a display screen, the method comprising:
-
obtaining a current image captured by an image capturing device of the light gun; detecting a screen area in the current image by comparing the current image with a screen template of the display screen, the current image comprising distance information between a lens of the image capturing device and each point of the screen area in the current image; calculating actual coordinates of the aimed point of the light gun on the display screen according to a virtual size of the screen area and an actual size of the display screen; and transmitting the actual coordinates to a host computer in response to receiving a shot command of the light gun, and displaying a shot result of the light gun on the display screen using the host computer according to the actual coordinates. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A light gun, comprising:
-
a storage device; at least one processor; and one or more modules that are stored in the storage device and are executed by the at least one processor, the one or more modules comprising; an image obtaining module that obtains a current image captured by an image capturing device of the light gun; a screen area detection module that detects a screen area in the current image by comparing the current image with a screen template of the display screen, the current image comprising distance information between a lens of the image capturing device and each point of the screen area in the current image; a coordinate calculation module that calculates actual coordinates of an aimed point of the light gun on a display screen according to a virtual size of the screen area and an actual size of the display screen; and transmitting the actual coordinates to a host computer in response to receiving a shot command of the light gun, and displaying a shot result of the light gun on the display screen using the host computer according to the actual coordinates. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A non-transitory storage medium having stored thereon instructions that, when executed by a processor of a light gun, causes the light gun to perform a method for determining a shot position of the light gun on a display screen, the method comprising:
-
obtaining a current image captured by an image capturing device of the light gun; detecting a screen area in the current image by comparing the current image with a screen template of the display screen, the current image comprising distance information between a lens of the image capturing device and each point of the screen area in the current image; calculating actual coordinates of the aimed point of the light gun on the display screen according to a virtual size of the screen area and an actual size of the display screen; and transmitting the actual coordinates to a host computer in response to receiving a shot command of the light gun, and displaying a shot result of the light gun on the display screen using the host computer according to the actual coordinates. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification