IP Library Granted Patent US 9,039,537
Granted Patent B2
US 9,039,537 · App. 13/693,051 · Granted May 26, 2015

Light gun and method for determining shot position

Inventors: Hou-Hsien Lee (New Taipei, TW); Chang-Jung Lee (New Taipei, TW); Chih-Ping Lo (New Taipei, TW)
Assignee: Zhongshan Innocloud Intellectual Property Services Co., Ltd.
A63F13/04A63F13/219A63F13/213A63F13/426
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,039,537
App. No.
13/693,051
Granted
May 26, 2015
Kind
B2
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.

Claims (57)

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.

2. The method according to claim 1 , wherein the screen template comprises a sub-image of a preset area enclosing the display screen and a reference distance between the lens of the image capturing device and the display screen in the preset area.

3. The method according to claim 2 , wherein the reference distance is determined as a distance between the lens of the image capturing device and a feature point in the preset area.

4. The method according to claim 2 , wherein the screen area is detected by:

obtaining the reference distance from the screen template, a reference ratio between a width and a height of the preset area in the screen template, and a reference size of the preset area in the screen template;

obtaining an image sub-area in the current image and a specified number of points in the image sub-area, and determining a current distance between each of the specified number of points and the lens of the image capturing device, a current ratio between a width and a height of the image sub-area, and a current size of the image sub-area; and

determining that the image sub-area is the screen area upon the condition that each of the current distances is equal to the reference distance, the current ratio is equal to the reference ratio, and the current size is equal to the reference size.

5. The method according to claim 2 , wherein the screen area is detected by:

obtaining the reference distance from the screen template, a reference ratio between a width and a height of the preset area in the screen template, and a reference size of the preset area in the screen template;

obtaining an image sub-area in the current image and a specified number of points in the image sub-area, and determining a current distance between each of the specified number of points and the lens of the image capturing device, a current ratio between a width and a height of the image sub-area, and a current size of the image sub-area; and

determining that the image sub-area is the screen area upon the condition that a first deviation value between each of the current distances and the reference distance falls in a first preset range, a second deviation value between the current ratio and the reference ratio falls in a second preset range, and a third deviation value between the current size and the reference size falls in a third preset range.

6. The method according to claim 2 , wherein the actual coordinates of the aimed point of the light gun on the display screen are calculated by:

creating a virtual coordinate system of the screen area and obtaining virtual coordinates of the aimed point of the light gun in the screen area;

creating an actual coordinate system of the display screen, and transforming the virtual coordinates to the actual coordinates of the aimed point of the light gun on the display screen according to a ratio between the virtual size of screen area and the actual size of the display screen.

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.

8. The light gun according to claim 7 , wherein the screen template comprises a sub-image of a preset area enclosing the display screen and a reference distance between the lens of the image capturing device and the display screen in the preset area.

9. The light gun according to claim 8 , wherein the reference distance is determined as a distance between the lens of the image capturing device and a feature point in the preset area.

10. The light gun according to claim 8 , wherein the screen area is detected by:

obtaining the reference distance from the screen template, a reference ratio between a width and a height of the preset area in the screen template, and a reference size of the preset area in the screen template;

obtaining an image sub-area in the current image and a specified number of points in the image sub-area, and determining a current distance between each of the specified number of points and the lens of the image capturing device, a current ratio between a width and a height of the image sub-area, and a current size of the image sub-area; and

determining that the image sub-area is the screen area upon the condition that each of the current distances is equal to the reference distance, the current ratio is equal to the reference ratio, and the current size is equal to the reference size.

11. The light gun according to claim 8 , wherein the screen area is detected by:

obtaining the reference distance from the screen template, a reference ratio between a width and a height of the preset area in the screen template, and a reference size of the preset area in the screen template;

obtaining an image sub-area in the current image and a specified number of points in the image sub-area, and determining a current distance between each of the specified number of points and the lens of the image capturing device, a current ratio between a width and a height of the image sub-area, and a current size of the image sub-area; and

determining that the image sub-area is the screen area upon the condition that a first deviation value between each of the current distances and the reference distance falls in a first preset range, a second deviation value between the current ratio and the reference ratio falls in a second preset range, and a third deviation value between the current size and the reference size falls in a third preset range.

12. The light gun according to claim 8 , wherein the coordinate calculation module calculates actual coordinates by:

creating a virtual coordinate system of the screen area and obtaining virtual coordinates of the aimed point of the light gun in the screen area;

creating an actual coordinate system of the display screen, and transforming the virtual coordinates to the actual coordinates of the aimed point of the light gun on the display screen according to a ratio between the virtual size of screen area and the actual size of the display screen.

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.

14. The non-transitory storage medium according to claim 13 , wherein the screen template comprises a sub-image of a preset area enclosing the display screen and a reference distance between the lens of the image capturing device and the display screen in the preset area.

15. The non-transitory storage medium according to claim 14 , wherein the reference distance is determined as a distance between the lens of the image capturing device and a feature point in the preset area.

16. The non-transitory storage medium according to claim 14 , wherein the screen area is detected by:

obtaining the reference distance from the screen template, a reference ratio between a width and a height of the preset area in the screen template, and a reference size of the preset area in the screen template;

obtaining an image sub-area in the current image and a specified number of points in the image sub-area, and determining a current distance between each of the specified number of points and the lens of the image capturing device, a current ratio between a width and a height of the image sub-area, and a current size of the image sub-area; and

determining that the image sub-area is the screen area upon the condition that each of the current distances is equal to the reference distance, the current ratio is equal to the reference ratio, and the current size is equal to the reference size.

17. The non-transitory storage medium according to claim 14 , wherein the screen area is detected by:

obtaining the reference distance from the screen template, a reference ratio between a width and a height of the preset area in the screen template, and a reference size of the preset area in the screen template;

obtaining an image sub-area in the current image and a specified number of points in the image sub-area, and determining a current distance between each of the specified number of points and the lens of the image capturing device, a current ratio between a width and a height of the image sub-area, and a current size of the image sub-area; and

determining that the image sub-area is the screen area upon the condition that a first deviation value between each of the current distances and the reference distance falls in a first preset range, a second deviation value between the current ratio and the reference ratio falls in a second preset range, and a third deviation value between the current size and the reference size falls in a third preset range.

18. The non-transitory storage medium according to claim 14 , wherein the actual coordinates of the aimed point of the light gun on the display screen are calculated by:

creating a virtual coordinate system of the screen area and obtaining virtual coordinates of the aimed point of the light gun in the screen area;

creating an actual coordinate system of the display screen, and transforming the virtual coordinates to the actual coordinates of the aimed point of the light gun on the display screen according to a ratio between the virtual size of screen area and the actual size of the display screen.

Assignments (4)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 10, 2019
From: ZHONGSHAN INNOCLOUD INTELLECTUAL PROPERTY SERVICES CO.,LTD.
To: SCIENBIZIP CONSULTING(SHENZHEN)CO.,LTD.
Reel/Frame 050709/0949 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 30, 2015
From: SCIENBIZIP CONSULTING(SHENZHEN)CO.,LTD.
To: ZHONGSHAN INNOCLOUD INTELLECTUAL PROPERTY SERVICES CO.,LTD.
Reel/Frame 035281/0365 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 3, 2015
From: HON HAI PRECISION INDUSTRY CO., LTD.
To: SCIENBIZIP CONSULTING(SHENZHEN)CO.,LTD.
Reel/Frame 035070/0704 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 4, 2012
From: LEE, HOU-HSIEN; LEE, CHANG-JUNG; LO, CHIH-PING
To: HON HAI PRECISION INDUSTRY CO., LTD.
Reel/Frame 029395/0823 →
Priority Claims (1)
TW 101117304 · May 16, 2012 · national
Continuity (1)
Related Publication 20130310123A1 · Nov 21, 2013