[go: up one dir, main page]

CN113426100A - Game gun photoelectric sensing method, photoelectric game system and readable storage medium - Google Patents

Game gun photoelectric sensing method, photoelectric game system and readable storage medium Download PDF

Info

Publication number
CN113426100A
CN113426100A CN202110551901.XA CN202110551901A CN113426100A CN 113426100 A CN113426100 A CN 113426100A CN 202110551901 A CN202110551901 A CN 202110551901A CN 113426100 A CN113426100 A CN 113426100A
Authority
CN
China
Prior art keywords
laser
gun
game
light
spot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110551901.XA
Other languages
Chinese (zh)
Inventor
李高华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Honghonghua Electronics Co ltd
Original Assignee
Shenzhen Honghonghua Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Honghonghua Electronics Co ltd filed Critical Shenzhen Honghonghua Electronics Co ltd
Priority to CN202110551901.XA priority Critical patent/CN113426100A/en
Publication of CN113426100A publication Critical patent/CN113426100A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/219Input arrangements for video game devices characterised by their sensors, purposes or types for aiming at specific areas on the display, e.g. light-guns
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • A63F13/426Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle involving on-screen location information, e.g. screen coordinates of an area at which the player is aiming with a light gun
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/837Shooting of targets
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8076Shooting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The application discloses a game gun photoelectric sensing method, a game gun photoelectric sensing system and a computer readable storage medium, wherein the method comprises the following steps: acquiring the screen resolution of a game screen, and establishing a position coordinate system of the game screen according to the screen resolution; sequentially starting the laser light sources of the laser guns in different preset time units, and controlling the infrared detection device to obtain laser spot images and equipment identifications of the laser guns in the different preset time units; determining the light spot coordinates and the light spot identifications of a plurality of laser spots of each laser gun on a game screen according to the position coordinate system, laser spot images and equipment identifications of the laser guns corresponding to different preset time units; and displaying a preset cursor at the light point coordinate position on the game screen for the laser gun corresponding to the light point identification based on each group of light point coordinates and the light point identification. The invention realizes the detection and the positioning of the laser points of the multiple laser guns of the single infrared detection device and reduces the hardware cost for identifying and manufacturing different laser guns of the game equipment.

Description

Game gun photoelectric sensing method, photoelectric game system and readable storage medium
Technical Field
The present application relates to the field of infrared detection technologies, and in particular, to a game gun photoelectric sensing method, system, and computer-readable storage medium.
Background
The laser gun that current game machine discerned different players adopts different laser guns to send the infrared laser of different wave bands, adopts different detection device to discern respectively to different laser guns, and for example laser gun 1 sends 900 nm's infrared light, and laser gun 2 sends 700 nm's infrared light, and detection device 1 is used for detecting 900nm infrared and detects laser gun 1 promptly, and detection device 2 is used for detecting 700nm infrared and detects laser gun 2 promptly. However, such a plurality of laser guns requires a plurality of detection devices for different detection bands, increasing the hardware cost of the game device for recognizing the different laser guns.
Disclosure of Invention
The embodiments of the present application mainly aim to provide a game gun photoelectric sensing method, a game gun photoelectric sensing system, and a computer readable storage medium, and aim to solve the technical problem that hardware cost is high when a game device identifies different laser guns.
In order to achieve the above object, an embodiment of the present application provides a game gun photoelectric sensing method, where the game gun photoelectric sensing method is applied to a photoelectric game system, and the photoelectric game system includes a game host, a position detection module, a game screen, at least one laser gun, and an infrared detection device;
the position detection module and the game screen are in communication connection with the game host, the infrared detection device and the laser gun are in communication connection with the position detection host, and the wavelength of the high-pass-rate light of the narrow-band optical filter is the same as the specified wavelength of the light emitted by the laser gun;
the photoelectric induction method of the game gun comprises the following steps:
acquiring the screen resolution of a game screen, and establishing a position coordinate system of the game screen according to the screen resolution;
sequentially starting the laser light sources of the laser guns in different preset time units, and controlling the infrared detection device to obtain laser spot images and equipment identifications of the laser guns in different preset time units; the method comprises the following steps that different preset time units are separated by preset vanishing periods, and when a laser light source of each laser gun is started, the infrared detection device is controlled to collect laser gun equipment identification corresponding to the current preset time unit and a laser point image on a game screen;
determining the light spot coordinates and the light spot identifications of a plurality of laser spots of each laser gun on a game screen according to the position coordinate system, laser spot images and equipment identifications of the laser guns corresponding to different preset time units;
and displaying a preset cursor for the laser gun corresponding to the light spot identification at the light spot coordinate on the game screen based on each group of the light spot coordinate and the light spot identification.
Optionally, the laser gun comprises a first laser gun and a second laser gun,
the step of sequentially starting the laser light sources of the laser guns in different preset time units and controlling the infrared detection device to acquire the laser spot images and the equipment identifications of the laser guns in the different preset time units comprises the following steps of:
starting a laser light source of a first laser gun in a preset time unit, closing a laser light source of a second laser gun, controlling an infrared detection device to acquire a laser spot image of a laser spot of the first laser gun on a game screen and acquiring an equipment identifier of the first laser gun; sending the laser point image of the first laser gun to a position detection module so that a game host can determine the light point coordinate of the laser point of the first laser gun on a game screen in the current preset time unit; sending the equipment identification of the first laser gun to a game host machine so that the game host machine can determine the light spot identification of the laser spot on the game screen in the current preset time unit;
closing the first laser gun, closing the second laser gun, and waiting for a preset shadow eliminating period;
starting a laser light source of a second laser gun in a next preset time unit, closing the laser light source of the first laser gun, controlling an infrared detection device to acquire a laser spot image of a laser spot of the second laser gun on a game screen and acquiring an equipment identifier of the second laser gun; sending a laser spot image of a second laser gun to a position detection module for a game host to determine a light spot coordinate of a laser spot of the second laser gun on a game screen in a current preset time unit, and sending an equipment identifier of the second laser gun to the game host for the game host to determine a light spot identifier of the laser spot on the game screen in the current preset time unit;
and circulating the control flows of the first laser gun, the second laser gun and the infrared detection device in the next preset time unit and the preset shadow elimination period to acquire the laser spot images and the equipment identification of the first laser gun and the second laser gun in the subsequent preset time unit.
Optionally, the game gun photoelectric sensing method further includes:
and when the infrared detection device is in a preset shadow elimination period, closing the infrared detection device.
Optionally, the infrared detection device includes a circuit board, a lens and a filtering component, the circuit board is provided with an image sensor, the lens is provided with a light path channel, the image sensor is arranged at an orthographic projection area of the light exit side of the light path channel on the circuit board, the filtering component includes a visible light filter, a long-wave pass filter and a narrow-band filter, and the visible light filter, the long-wave pass filter and the narrow-band filter are arranged in the light path channel.
Optionally, the step of establishing a position coordinate system of the game screen according to the screen resolution includes:
emitting reference light spots at four vertexes of a rectangular area of a game screen based on a laser gun, collecting the four reference light spots based on an infrared detection device, and constructing a virtual shooting area in a position detection module;
decomposing the virtual shooting area into positioning points with the size of M x N and the like along the length direction and the width direction, and decomposing the game screen into pixel points with the size of M x N and the like along the length direction and the width direction based on the screen resolution;
and (3) simulating the coincidence of the virtual shooting area and the game screen, and establishing a position mapping relation between a positioning point with coincident positions and pixel points so as to establish a position coordinate system of the game screen.
Optionally, the step of determining the light spot coordinates and the light spot identifiers of the multiple laser spots of each laser gun on the game screen according to the position coordinate system, the laser spot images and the device identifiers of the laser guns corresponding to different preset time units includes:
in each preset time unit, sending a laser point image of the currently started laser gun to a position detection module;
determining a hitting position of a laser point in the virtual shooting area in the laser point image based on a position detection module, and acquiring a target positioning point of the virtual shooting area at the hitting position;
acquiring a target pixel point of a target positioning point in a position coordinate system based on the position mapping relation;
determining the light spot coordinates of the laser spot of the currently started laser gun on the game screen according to the position of the target pixel point in the game screen, and generating a light spot identification for the laser spot of the currently started laser gun on the game screen correspondingly according to the equipment identification;
until determining the spot coordinates and spot identifications of the laser spots of the current laser gun on the game screen in all the preset time units.
Optionally, the step of determining, based on the position detection module, a hit position of a laser point in the laser point image in the virtual shot area, and acquiring a target location point of the virtual shot area at the hit position includes:
when the laser point image has trapezoidal distortion, performing a trapezoidal correction process:
based on a position detection module, acquiring the length of the upper bottom edge and the length and the height of the lower bottom edge of the trapezoidal laser point image, and the transverse edge distance and the longitudinal edge distance of the laser point in the laser point image;
determining the total transverse length of the laser point in the laser point image according to the length of the upper bottom edge, the length of the lower bottom edge, the height and the longitudinal edge distance;
determining the transverse position proportion of a laser point in the laser point image according to the transverse margin and the transverse total length; determining the longitudinal position proportion of a laser point in the laser point image according to the longitudinal edge distance and the height;
according to the transverse position proportion and the longitudinal position proportion, determining the hitting position of the laser point in the virtual shooting area in the laser point image, and further acquiring a target positioning point of the virtual shooting area at the hitting position.
Optionally, the step of determining the total transverse length of the laser spot in the laser spot image according to the length of the upper base edge, the length of the lower base edge, the height and the longitudinal edge distance includes:
in the trapezoidal correction process, only the trapezoidal distortion of the laser point image in the horizontal direction is considered, and the length L of the upper bottom edge, the length L of the lower bottom edge and the height h of the laser point image are set, the longitudinal edge distance hN of the laser point P in the laser point image, the transverse edge distance wN of the laser point P in the laser point image, the transverse total length lenN, the length d of one side edge of the upper bottom edge relative to the lower bottom edge and the length x of one side edge of the P point contour line relative to the lower bottom edge are set, wherein 2d is (L-L);
based on the plane geometric similarity principle, h/d is hN/x, and x is (hN/h) d;
thus, len ═ 2 × x + l ═ (hN/h) × d × 2+ l;
the step of determining the transverse position proportion of the laser point in the laser point image according to the transverse margin and the transverse total length comprises the following steps:
the transverse position ratio is wN/LenN;
the step of determining the longitudinal position proportion of the laser point in the laser point image according to the longitudinal margin and the height comprises the following steps:
the longitudinal position ratio is hN/h.
Optionally, the step of obtaining a target pixel point of the target positioning point in the position coordinate system based on the position mapping relationship includes:
acquiring the real horizontal pixel number wS and the real vertical pixel number hS of a game screen;
based on the formula Px ═ (wN/LenN) × wS and Py=(hN/h)*hS,
Obtaining the position (Px, P) of a target pixel point of a target positioning point in a position coordinate system in a game screeny)。
In order to achieve the experimental purpose, the invention also provides a photoelectric game system, which comprises a game host, a position detection module, a game screen, at least one laser gun and an infrared detection device;
the infrared detection device comprises a circuit board, a lens and a filtering component, wherein an image sensor is arranged on the circuit board, a light path channel is arranged in the lens, the image sensor is arranged at the light emitting side of the light path channel and in the orthographic projection area of the circuit board, the filtering component comprises a visible light filter, a long-wave pass filter and a narrow-band filter, and the visible light filter, the long-wave pass filter and the narrow-band filter are arranged in the light path channel;
the position detection module and the game screen are in communication connection with the game host, the infrared detection device and the laser gun are in communication connection with the position detection host, and the wavelength of the high-pass-rate light of the narrow-band optical filter is the same as the specified wavelength of the light emitted by the laser gun;
the game host comprises a processor and a memory, the memory is in communication connection with the processor, a computer program is stored on the memory, and when the computer program is executed by the processor, the processor realizes the steps of the game gun photoelectric sensing method.
In order to achieve the above experimental objects, the present invention further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the game gun photo-electric sensing method are implemented.
In the application, the appointed wavelength of the emitted light is the same as the wavelength of the high-pass rate light of the narrow-band light filter in the infrared detection device, the infrared detection device realizes the accurate and clear capture of the laser spot of the laser gun on the game screen, simultaneously, a time-sharing control thought is adopted, the infrared detection device and different laser guns are started in different preset time units, the laser guns started in each preset time unit are preset and known in advance by the infrared detection device, only one laser gun is started and different laser guns are started in different preset time units, the independent laser output of the laser guns to the game screen is realized, the mutual interference among the laser guns does not occur, thus the game host can detect whether different laser guns emit infrared laser or not in different preset time units based on the position detection module, and simultaneously, the preset time unit is far shorter than the operation reaction time of a player on the laser gun and the viewing reaction time of the player on the game screen, for the player, the infrared laser sent by the laser guns can be synchronously carried out, and the game experience is not influenced, so that the detection and the positioning of the laser points of the laser guns of the single infrared detection device are realized, and the hardware cost for identifying and manufacturing different laser guns of the game equipment is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a graph of a transmittance spectrum of a 650nm broadband IR-cut filter according to an embodiment of the present invention;
FIG. 2 is a graph of the transmittance spectrum of an embodiment of the infrared long-pass filter of the present invention being an 800nm long-pass filter;
FIG. 3 is a graph of the transmittance spectrum for an embodiment of the invention in which the narrowband filter is a 980nm narrowband filter;
FIG. 4 is a schematic view of an imaging scene in which the infrared detection device is only provided with a narrow-band filter;
FIG. 5 is a schematic view of another imaging scene in which the infrared detection device is only provided with a narrow-band filter;
FIG. 6 is a schematic view of an imaging scene in which the infrared detection device of the present invention is only provided with a visible light broadband filter and a long-pass filter;
FIG. 7 is a schematic view of an imaging scene in which the infrared detection apparatus of the present invention is only provided with a visible light broadband filter, a long-pass filter, and a narrow-band filter;
FIG. 8 is a schematic view of an exploded view of an infrared detection device according to an embodiment of the present invention;
FIG. 9 is an exploded view of another perspective of an infrared detection device in accordance with an embodiment of the present invention;
FIG. 10 is a schematic view of an assembly structure at a viewing angle according to an embodiment of the present invention;
FIG. 11 is a schematic view of an assembly structure at another viewing angle of an infrared detection device according to an embodiment of the present invention;
FIG. 12 is a block diagram of a frame structure of an embodiment of the optoelectronic game system of the present invention;
FIG. 13 is a flowchart illustrating a method for photoelectric sensing of a game gun according to an embodiment of the present invention;
FIG. 14 is a schematic view of a trapezoidal corrected geometric scene according to the present invention;
FIG. 15 is a diagram of a hardware framework of an embodiment of a game console of the present invention;
FIG. 16 is a timing diagram of the time-sharing control of the laser gun control and the infrared detection device according to the present invention.
The reference numbers illustrate:
Figure BDA0003075455130000061
Figure BDA0003075455130000071
the implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning by themselves. Thus, "module", "component" or "unit" may be used mixedly.
The existing infrared laser photoelectric game machine (namely a photoelectric game system) on the market uses an infrared light induction camera to sense light spots of infrared laser irradiated on a screen, but the existing infrared laser game machine can only be used in an environment with dark indoor light, when a strong light source is arranged in front of the infrared induction camera, or under outdoor natural light, the light sources can cause interference to the infrared induction camera, so that the whole game machine can not be normally used.
The photoelectric game system comprises a high-speed infrared induction camera (namely an infrared detection device), an infrared laser emission gun (namely a laser gun), a position detection module, a game machine host and a game screen. The high-speed camera is provided with a 650nm broadband filter, a long-pass filter above 800nm and a narrow-band infrared filter with a specific wavelength (such as a 980nm narrow-band filter), only infrared light with the specific wavelength can pass through the high-speed camera (such as 980nm), and visible light and light with wavelengths other than the specific wavelength cannot interfere with the high-speed camera, so that the high-speed camera can be used in any environment.
Specifically, the present invention provides an infrared detection device, and in an embodiment of the present invention, as shown in fig. 8 to 11, the infrared detection device includes:
the device comprises a shell 1, wherein a first mounting hole 15 is formed in one side of the shell 1;
the realization carrier of the infrared detection device can be a high-speed camera, a camera module and the like, and the shell 1 of the infrared detection device is preferably a dark color light-blocking material, for example, the shell 1 is a black light-blocking material. The shell 1 can be formed by splicing a front shell 11 and a rear shell 12, a first mounting hole 15 for mounting the lens 3 is formed in the front shell 11, the edge of the first mounting hole 15 and the edge of the lens 3 can be beneficial to the foam to be treated as dustproof light insulation, and external dust and light are prevented from entering the lens 3 from the first mounting hole 15. The front shell 11 is distinguished from the rear shell 12 by: the front shell 11 is a half shell of the housing 1 at the light incident side of the lens 3, and the rear shell 12 is a half shell of the housing 1 at the light emergent side of the lens 3. In an alternative embodiment, a threaded column 13 is disposed on an inner cavity wall of the front shell 11, the threaded column 13 is a hollow main body, threads are disposed on an inner wall of the main body of the threaded column 13, and a threaded hole 14 is disposed at a position of the rear shell 12 corresponding to the threaded column 13, for example, after the front shell 11 is spliced with the rear shell 12, 4 threaded columns 13 of the front shell 11 and 4 threaded holes 14 of the rear shell 12 are just butted, and then the front shell 11 and the rear shell 12 are fixed by screws.
The circuit board 2 is provided with an image sensor, and the circuit board 2 is arranged inside the shell 1;
the image sensor converts the light image on the light-sensitive surface into an electric signal in corresponding proportion to the light image by utilizing the photoelectric conversion function of a photoelectric device, the light-sensitive surface of the image sensor on the circuit board 2 is aligned with the light-emitting side of the light path channel of the lens 3, namely the light-emitting side of the light path channel of the lens 3 is superposed with the light-sensitive surface of the image sensor in the orthographic projection area of the circuit board 2, so that the image sensor detects the light signal transmitted by the lens 3.
In addition, a through hole 21 can be opened on the circuit board 2, the through hole 21 on the circuit board 2 is matched with the position of the threaded column 13 on the front shell 11, when the front shell 11 is spliced and fixed with the rear shell 12, the threaded column 13 passes through the through hole 21 on the circuit board 2 to be aligned with the threaded hole 14 of the rear shell 12, and then the screw sequentially passes through the rear and circuit boards 2 to be fixedly connected with the front shell 11 through the thread, so that the circuit board 2 is fixed inside the shell 1.
The lens 3 is arranged in the first mounting hole 15, a light path channel is arranged in the lens 3, and the image sensor is arranged in an orthographic projection area of the light emitting side of the light path channel on the circuit board 2;
lens 3 fixed mounting sets up the bubble cotton or sponge in the first mounting hole 15 of shell 1, lens 3 and the laminating department of first mounting hole 15 to sealed, dustproof, the installation that separates the light to lens 3, image sensor is separated light and seal installation in shell 1, has avoided light pollution. Alternatively, the outer surface of the lens 3 may be provided with or may be a black light-blocking layer. The inside of camera lens 3 sets up the light path passageway, and outside light signal gets into from the income light side of light path passageway, then projects image sensor's photosurface from the light-emitting side of light path passageway, and image sensor's photosurface promptly set up in the orthographic projection region of light path passageway light-emitting side at circuit board 2.
A filter assembly including a visible light filter 41 and a long-wave pass filter 42; the visible light filter 41 and the long-wave pass filter 42 are arranged in the optical path channel;
the visible light broadband filter 41 and the long-pass filter 42 are disposed in the sealed and light-blocking optical path channel, the inner wall of the optical path channel is tightly attached to the edge of each filter, and the optical signal (light) entering the optical path channel can only pass through the area where each filter is located.
The visible light broadband filter 41 is a filter through which visible light passes and which semi-cuts infrared light, and specifically, a spectrogram of the visible light broadband filter 41 is as shown in fig. 1, an abscissa of fig. 1 is a wavelength, an ordinate is a transmittance, the visible light broadband filter 41 can pass 98% of visible light (the wavelength is about 400nm to 650nm) and about 40% of infrared light, and ultraviolet light with the wavelength of 400nm or less is basically blocked (the transmittance is less than 5%). In one embodiment, the visible light broadband filter 41 is a 650nm broadband filter (filter), which is generally a lens used in a common camera, such as a lens 3 of a smart phone, and the 650nm filter can pass visible light and isolate infrared light to prevent the camera from generating color cast. Specifically, the visible light filter is a visible light broadband filter of 400nm-650 nm.
The long-pass filter 42 is a 700nm lower cut-off long-pass filter that passes 700nm or more, for example, the long-pass filter 42 is a long-pass filter with a wavelength of 800nm or 850nm, and the long-pass filter 42 is a long-pass filter that isolates visible light and attenuates a small amount of infrared light with a wavelength of 800nm or more, specifically, the spectrogram of the long-pass filter 42 is as shown in fig. 2, the abscissa of fig. 2 is a wavelength, the ordinate is a pass rate, the long-pass filter 42 isolates visible light with a wavelength of 750nm or less, the pass rate of infrared light with a wavelength of 800nm or more is 90%, and the long-pass filter 42 is a black glass filter that passes infrared light with a wavelength of 800nm or more.
In addition, infrared detection device still includes lens cap 5, lens cap 5 set up in light path channel's income light side, camera lens 3 and lens cap 5 are for separating light material spare and seamless concatenation.
The light transmission area is reserved in the middle of the lens cover 5, transparent dustproof glass can be arranged in the light transmission area of the lens cover 5, and after the lens cover 5 and the lens 3 are spliced in a seamless mode, the dustproof glass can effectively prevent dust and foreign matters from entering the light path channel. The lens cap 5 and the lens 3 are made of light-blocking material, such as black PE (polyethylene), and are opaque and stable in material performance.
In some infrared detection devices for shooting games, only a narrow-band infrared filter is generally separately arranged, and in an optical signal passing through the narrow-band infrared filter, natural light or infrared light with other wavelengths generally passes through the narrow-band infrared filter, the detection effect of the infrared detection device is as shown in fig. 4 and 5, a plurality of interference light sources exist, which cause serious interference to the detection result of infrared light spots, resulting in great reduction in the accuracy of infrared detection, in fig. 4 and 5, a laser light spot near the center is an optical signal to be detected by the infrared detection device, and light spots in other areas are interference light sources.
In this embodiment, the visible light wave filter and the long wave pass filter 42 are disposed in the optical path channel of the lens 3, so that the lens 3 basically isolates the visible light wave band and part of the infrared wave band entering the optical path channel, thereby eliminating most of the influence of the interference light source, and further filtering out the infrared light with other wavelengths except the wave band where the infrared detection device needs to detect the infrared light spot (the infrared laser emitted by the game laser gun matching with the infrared detection device), as shown in fig. 6, thereby greatly reducing the interference of the ambient light, improving the infrared detection precision of the infrared detection device, in fig. 6, the laser light spot near the center is the optical signal that the infrared detection device needs to detect, and only the upper left area has a few interference light sources with light spots.
Further, in order to further improve the ambient light interference elimination and the infrared detection accuracy of the infrared detection device, in another embodiment of the present application, the filtering component further includes a narrowband filter 43, and the narrowband filter 43 is disposed in the optical path channel.
The narrow band filter 43 is a narrow band filter 43 that can only pass specific wavelengths, such as specific wavelengths 708nm, 808nm, 850nm, 940nm, 980nm, 1100nm, etc., only the specific wavelengths of light can pass through, and other wavelengths of light will be substantially isolated and filtered. That is, the center wavelength of the narrow-band filter 43 may be 708nm, 808nm, 850nm, 940nm, 980nm, 1100nm, or the like, the bandwidth is 20nm, and the center wavelength of the high-transmittance light of the narrow-band filter 43 is the same as the wavelength of the light emitted by the laser gun of the supporting photoelectric game system. Specifically, in an alternative of the narrow band filter 43, the spectrum is as shown in fig. 3, the abscissa of fig. 3 is the wavelength, the ordinate is the transmittance, the center wavelength is 980nm, and only infrared light around 980nm can pass basically.
In the present embodiment, in the optical path channel of the lens 3, there are provided at the same time: a broadband filter 41 (such as a broadband filter with a central wavelength of 650nm) for visible light to pass and partially cutting infrared light, a narrowband filter 43 (such as a broadband filter with a central wavelength of 980nm) for substantially passing only infrared light with a specific wavelength, and a long-pass filter 42 (such as a broadband filter with a central wavelength of 800 nm) for substantially filtering visible light and passing infrared light with a wavelength of 800nm or more, although the visible light filter 41 and the long-pass filter 42 are used, there are still interference light sources with other wavelengths; however, the infrared light with a specific wavelength (e.g. 980nm) has the highest transmittance to the narrow-band (infrared) filter, and the infrared light with the specific wavelength still reaches more than 30% after passing through the visible light filter 41 and the narrow-band filter 43, but interference light with a wavelength less than 960nm and more than 1100nm (i.e. interference light not in the wavelength band of the specific wavelength) only remains about 1% after passing through the visible light filter 41 and the narrow-band filter 43; meanwhile, the long-pass filter 42 is adopted to attenuate all the light in all the wave bands smaller than 800nm (as shown in fig. 2), the light in a specific wave band (such as the wavelength of 980nm) required after being attenuated by the long-pass filter 42 is still kept by about 30%, but other interference light (such as the interference light smaller than 960 nm) larger than 1100nm is almost attenuated (the interference light is kept less than 0.1%), so that the anti-interference performance of the stacked long-pass filter 42, the broadband filter 41 and the narrow-band filter 43 is very strong, the effect is shown in fig. 7, the interference of ambient light is basically isolated, the infrared detection precision of the infrared detection device is greatly improved, and only the light signal of a laser spot to be detected by the infrared detection device close to the center in fig. 7 is filtered.
Optionally, the long-pass filter 42, the broadband filter 41, and the narrowband filter 43 are sequentially arranged along a direction from the light incident side to the light emergent side of the optical path channel, signal light entering the optical path channel of the lens 3 of the infrared detection device is filtered by the long-pass filter 42 to remove light in all wavelength bands smaller than 800nm, then is partially cut off by the broadband filter 41, and finally is filtered by the narrowband filter 43 to remove infrared light outside the wavelength band where a specific wavelength (for example, wavelength 980nm) is located, so that the retention amount of the infrared light with the specific wavelength reaching the image sensor of the PCB 2 is the largest, interference light with other wavelengths is attenuated in a set, and the influence of the interference light outside the specific wavelength is basically isolated.
Further, in another embodiment of the infrared detection device of the present application, the infrared detection device further includes a display screen 6, the display screen 6 is disposed on one side of the circuit board 2 deviating from the lens 3, the display screen 6 is electrically connected to the image sensor, a second mounting hole 16 for mounting and displaying the display screen 6 is disposed on one side of the housing 1 deviating from the lens 3, and one side of the display screen 6 deviating from the circuit board 2 is disposed in the second mounting hole 16. The display screen 6 is clamped in the second mounting hole 16 of the shell 1, the display screen 6 is electrically connected with the image sensor through the circuit board 2, the display screen 6 displays a signal light image collected by the image sensor, the display screen 6 is used for displaying a laser gun light spot on a game screen in the photoelectric game system shot by the infrared detection device, and a user can conveniently check the display screen 6 of the infrared detection device to determine whether the lens 3 is aligned with the game screen.
In addition, the infrared detection device further comprises a data transmission interface 7, the data transmission interface 7 is arranged on one side, away from the lens 3, of the circuit board 2, and the data transmission interface 7 penetrates through one side, away from the circuit board 2, of the shell 1. The data transmission interface 7 can be used for exporting the optical signal imaging data collected by the image sensor, and the data transmission interface 7 can be a USB interface.
Furthermore, can set up fixed connector 8 on infrared detection device's shell 1 to infrared detection device can be conveniently based on fixed connector 8 and install on strutting arrangement such as support frame, support arm, does benefit to the shooting height and the shooting position that set up infrared detection device.
Because a plurality of laser guns need a plurality of detection devices with different detection wave bands, the hardware cost of different laser guns is increased for game equipment, and in order to solve the problem, the infrared detection device of any one of the above embodiments is adopted, the structures of the laser guns can be completely the same, a time-sharing control technology is adopted, the laser light sources of the laser guns are turned on in different time units, then the infrared detection device (such as a high-speed camera) is started to collect the current frame image, so that the light spot coordinates of infrared laser emitted by the laser guns on a game screen can be independently output, mutual interference is avoided, therefore, based on the time-sharing turning on and turning off of the laser light sources of the laser guns, the position detection module can distinguish the light spot coordinates of a plurality of laser spots on the game screen based on the image frame of the infrared detection device, and can distinguish which laser gun the laser spot on the game screen is respectively emitted by the plurality of laser spots, then the position detection module can send the light spot coordinates and the light spot identification of the corresponding laser gun to the game host machine in a USB line data transmission or wireless transmission mode, so that the game host machine can distinguish the position of the laser spot and the laser gun.
The game gun photoelectric sensing method is applied to a photoelectric game system, and the photoelectric game system comprises a game host, a position detection module, a game screen, at least one laser gun and an infrared detection device;
the infrared detection device comprises a circuit board, a lens and a filtering component, wherein an image sensor is arranged on the circuit board, a light path channel is arranged in the lens, the image sensor is arranged at the light emitting side of the light path channel and in the orthographic projection area of the circuit board, the filtering component comprises a visible light filter, a long-wave pass filter and a narrow-band filter, and the visible light filter, the long-wave pass filter and the narrow-band filter are arranged in the light path channel;
the position detection module and the game screen are in communication connection with the game host, the infrared detection device and the laser gun are in communication connection with the position detection host, and the wavelength of the high-pass-rate light of the narrow-band optical filter is the same as the specified wavelength of the light emitted by the laser gun; therefore, the infrared detection device can basically filter the interference light except the infrared light wavelength emitted by the laser gun, and the infrared detection precision of the infrared detection device is greatly improved, so that the shooting position of the laser gun on the game screen in the whole photoelectric game system is more accurately and sensitively detected.
The position detection module is used for collecting an infrared light spot detection image sent by the infrared detection device and analyzing the detection image to determine the shooting position of the laser gun on the game screen, and the position detection module is a processing chip and can be arranged on a main control board of the game host.
The infrared detection device can be a camera, the infrared detection device is used for detecting light spots emitted to the game screen by an infrared laser gun (emitting infrared light with a specific wavelength, such as 980nm infrared light), an image sensor in the infrared detection device is used for detecting optical signals (namely light spot reflected light) on the game screen transmitted through a lens, the lens is mounted on the shell, the image sensor is mounted in the shell to avoid light pollution, and a light filtering component is mounted on the lens and used for filtering an interference light source.
The game gun photoelectric sensing method applied to the photoelectric game system, referring to fig. 13, may include the following steps:
step S10, acquiring the screen resolution of a game screen, and establishing a position coordinate system of the game screen according to the screen resolution;
the execution main body of each step of the game gun photoelectric sensing method can be a processor on a main control board of the game host, the main control board is provided with the processor and a memory which are in communication connection with each other, and the memory is prestored with the screen resolution of a game screen matched with the game host for use. And associating the screen resolution actually displayed by the game screen with the virtual shooting area of the game screen shot by the infrared detection device, and establishing a position coordinate system of the game screen.
Specifically, step S10 includes:
step A1, emitting reference light spots at four vertexes of a rectangular area of a game screen based on a laser gun, collecting the four reference light spots based on an infrared detection device, and constructing a virtual shooting area in a position detection module;
referring to fig. 12, the game console may guide the user to operate the laser gun to press the trigger at a point a on the upper left corner of the game screen, the infrared detection device captures the vertex angle picture of the point a and sends it to the position detection module, and then the user is sequentially guided to operate the laser gun to press the trigger at points B, C, and D on the game screen to emit infrared laser, so that the infrared detection device sequentially captures the vertex angle pictures of the points B, C, and D and sends them to the position detection module. The game host controls the position detection module to combine the four vertex angle pictures to construct a rectangular ABCD, and the rectangular ABCD is the virtual shooting area.
Step A2, decomposing the virtual shooting area into positioning points with the size of M × N and the like along the length direction and the width direction, and decomposing the game screen into pixel points with the size of M × N and the like along the length direction and the width direction based on the screen resolution;
step A3, simulating the coincidence of the virtual shooting area and the game screen, and establishing the position mapping relation between the positioning points and the pixel points of the position coincidence so as to establish the position coordinate system of the game screen.
For example, the virtual shot region is composed of positioning points with the size of 1600 × 1200, where M is 1600, and N is 2000; the screen resolution is 800 × 600, i.e., m is 800 and n is 600. The virtual shooting area and the game screen are overlapped, namely two positioning points correspond to pixel points of one screen, the two positioning points coincide with one pixel point, the position mapping relation of the positioning points and the pixel points of the position coincidence is further established, the two positioning points mapped by each pixel point in the game screen are further known, the position coordinate system of the game screen is further established, and the position detection module can know the game screen pixel points corresponding to the positioning points for shooting pictures through the position coordinate system.
Step S20, sequentially starting the laser light sources of the laser guns in different preset time units, and controlling the infrared detection device to obtain laser point images and equipment identifications of the laser guns in different preset time units; the method comprises the following steps that different preset time units are separated by preset vanishing periods, and when a laser light source of each laser gun is started, the infrared detection device is controlled to collect laser gun equipment identification corresponding to the current preset time unit and a laser point image on a game screen;
the preset time unit is at least less than 0.1s, because the visual response time of the natural human body to the light shadow and the nerve reflex time of the action are generally more than 0.1s, the preset time unit is preferably determined according to the number of frames of the image acquired by the infrared detection device, for example, 60 frames of images are acquired by the infrared detection device per second, then the preset time unit can be 1/60s, and the vanishing period can be one time or several times of the preset time unit.
The corresponding laser guns and the infrared detection device are controlled in a time-sharing mode, and the laser light sources of the laser guns are turned on and off one by one on the basis of a preset time unit, a preset vanishing period and a cycle period of the preset time unit.
Time-sharing control of the laser gun: and starting the laser light source of only one laser gun in a preset time unit, simultaneously closing the laser light source of the laser gun when the preset time unit is ended, then waiting for a preset shadow elimination period, starting the laser light source of another laser gun when the next preset time unit is reached, synchronously closing the laser light source of the other laser gun when the next preset time unit is ended, and repeating the steps.
Time-sharing control of the infrared detection device: in a preset time unit, the infrared detection device collects a laser spot image of a game screen, and at the moment, the infrared detection device knows an equipment identifier of a laser gun in the preset time unit, wherein the laser light source is in an on state, so that the infrared detection device respectively sends the laser spot image and the equipment identifier of the preset time unit to the position detection module and the game host, and the laser spot image and the equipment identifier are simultaneously closed when the preset time unit is finished; and then waiting for a preset vanishing period, when the next preset time unit is reached, restarting the infrared detection device to acquire the laser spot image and the equipment identifier of the next preset time unit, and repeating the steps.
Step S30, determining the light spot coordinates and light spot identifications of a plurality of laser spots of each laser gun on a game screen according to the position coordinate system, the laser spot images and the equipment identifications of the laser guns corresponding to different preset time units;
in each preset time unit, the game host knows which laser light source of the laser gun is started based on the equipment identification, records the light spot sent by which laser gun by the light spot identification, knows the light spot position of the laser spot on the game screen of the currently started laser gun based on the laser spot image and the position coordinate system, and records the light spot position of the laser spot by the light spot coordinate.
And step S40, based on each group of the light spot coordinates and the light spot identifications, displaying a preset cursor for the laser gun corresponding to the light spot identification at the light spot coordinates on the game screen.
Each time unit corresponds a set of light spot coordinate and light spot sign of predetermineeing, and the game host computer passes through each group light spot coordinate and light spot sign, can be fine distinguish a plurality of laser points and be which laser gun sends respectively, specifically at what position of game screen, do the laser gun that the light spot sign corresponds is on the game screen light spot coordinate department shows and predetermines the cursor, realizes that the cursor that predetermines of laser gun removes, realizes that the laser gun indicates which play which game effect, predetermines the cursor and can include host computer pointer, recreation center of accuracy and game cursor.
In this embodiment, the designated wavelength of the emitted light is the same as the wavelength of the high-pass rate light of the narrow-band filter in the infrared detection device, the infrared detection device realizes accurate and clear capture of the laser spot of the laser gun on the game screen, and at the same time, a time-sharing control idea is adopted, the infrared detection device and different laser guns are started in different preset time units, the laser guns started in each preset time unit are preset and known in advance by the infrared detection device, only one laser gun is started and different laser guns are started in different preset time units, so that the laser guns are independently output to the game screen, mutual interference does not occur among the laser guns, so that the game host can detect whether different laser guns emit infrared laser light or not in different preset time units based on the position detection module, and simultaneously, because the preset time unit is far shorter than the operation response time of the player to the laser gun and the viewing response time of the player to the game screen, for the player, the infrared laser sent by the laser guns can be synchronously carried out, and the game experience is not influenced, so that the laser point detection and the positioning of the laser guns of the single infrared detection device are realized, and the hardware cost of the game equipment for identifying different laser guns is reduced.
Further, in another embodiment of the present invention, the photoelectric sensing method for a game gun includes two laser guns of the photoelectric game system, and referring to fig. 16, the laser guns include a first laser gun and a second laser gun,
step S20 includes:
step B1, turning on the laser source of the first laser gun in a preset time unit, turning off the laser source of the second laser gun, controlling the infrared detection device to collect the laser spot image of the laser spot of the first laser gun on the game screen and acquiring the equipment identification of the first laser gun; sending the laser point image of the first laser gun to a position detection module so that a game host can determine the light point coordinate of the laser point of the first laser gun on a game screen in the current preset time unit; sending the equipment identification of the first laser gun to a game host machine so that the game host machine can determine the light spot identification of the laser spot on the game screen in the current preset time unit;
in a preset time unit, a first laser gun is started (can emit infrared laser in response to the operation of a player), at the moment, a second laser gun is closed (does not emit infrared laser in response to the operation of the player), at the moment, the laser point image of the laser point of the first laser gun is collected on a game screen by an infrared detection device, the laser point image and the equipment identification of the first laser gun are respectively sent to a position detection module and a game host by the infrared detection device, the position detection module analyzes the light point coordinate of the first laser gun in the preset time unit, the game host knows the light point identification marking the first laser gun, and the game host knows that the laser point pointed by the light point coordinate on the game screen is emitted by the first laser gun in the preset time unit.
Step B2, closing the first laser gun, closing the second laser gun, and waiting for a preset shadow eliminating period;
the preset vanishing period is set between the two preset time units, so as to prevent the residual image of the previous frame of laser point image of the previous preset time unit from influencing the laser point identification of the next frame of laser point image of the next preset time unit.
Step B3, turning on the laser source of the second laser gun in the next preset time unit, turning off the laser source of the first laser gun, controlling the infrared detection device to collect the laser spot image of the laser spot of the second laser gun on the game screen and acquiring the equipment identification of the second laser gun; sending a laser spot image of a second laser gun to a position detection module for a game host to determine a light spot coordinate of a laser spot of the second laser gun on a game screen in a current preset time unit, and sending an equipment identifier of the second laser gun to the game host for the game host to determine a light spot identifier of the laser spot on the game screen in the current preset time unit;
in the next time unit of predetermineeing, open the second laser gun, first laser gun is closed this moment, what this moment infrared detection device gathered on the recreation screen is the laser point image of the laser point of second laser gun, infrared detection device sends the laser point image and the equipment sign of second laser gun to position detection module and game host respectively, thereby position detection module analysis goes out the second laser gun and predetermines the light spot coordinate of time unit next here, the game host knows the light spot sign of sign second laser gun, thereby the game host knows in this next time unit of predetermineeing, the directional laser point of light spot coordinate is that the second laser gun sent on the recreation screen.
And step B4, circulating the control flows of the first laser gun, the second laser gun and the infrared detection device in the next preset time unit and the preset shadow elimination period to acquire the laser spot images and the equipment identification of the first laser gun and the second laser gun in the subsequent preset time unit.
And executing steps B1, B2 and B3 in a circulating mode, acquiring laser point images and equipment identifications of the first laser gun and the second laser gun in the subsequent preset time unit, and identifying the laser point position of the game screen and the emitted laser gun in the subsequent preset time unit.
In this embodiment, an implementation scenario of dual laser guns is provided, the preset time unit and the preset vanishing period are alternated, the game host identifies laser spot images and device identifiers of the first laser gun and the second laser gun independently in the preset time unit one by one, and then acquires the spot coordinates and the spot identifiers of the first laser gun and the second laser gun independently, the first laser gun and the second laser gun can be devices with the same hardware, the cost for manufacturing two different laser guns and different infrared detection devices is reduced, and the function of where the first laser gun and the second laser gun aim and hit is realized simultaneously.
Further, in another embodiment of the present invention, the step S30 includes:
step C1, in each preset time unit, sending the laser point image of the currently opened laser gun to the position detection module;
the method comprises the steps of taking the individual preset time units as step flow analysis objects, wherein in each preset time unit, a laser light source of a laser gun is started, and the laser gun is the currently started laser gun.
Step C2, based on the position detection module, determining the hitting position of the laser point in the virtual shooting area in the laser point image, and obtaining the target positioning point of the virtual shooting area at the hitting position;
the target positioning point is a positioning point of a laser point in a projection position of the virtual shooting area in a laser point image acquired by the infrared detection device.
Specifically, referring to fig. 14, step C2 specifically includes:
when the laser point image has trapezoidal distortion, performing a trapezoidal correction process, wherein the trapezoidal correction process comprises the following steps:
step D1, based on the position detection module, obtaining the length of the upper bottom edge and the length and the height of the lower bottom edge of the trapezoidal laser point image, and the transverse edge distance and the longitudinal edge distance of the laser point in the laser point image;
d2, determining the total transverse length of the laser point in the laser point image according to the length of the upper bottom edge, the length of the lower bottom edge, the height and the longitudinal edge distance;
specifically, in the trapezoidal correction process, only the trapezoidal distortion of the laser spot image in the horizontal direction is considered, and the length L of the upper bottom edge, the length L of the lower bottom edge, and the height h of the laser spot image are set, the longitudinal edge distance hN of the laser spot P in the laser spot image, the transverse edge distance wN of the laser spot P, the total transverse length lenN, the length d of one side edge of the upper bottom edge relative to the lower bottom edge, and the length x of one side edge of the P-spot contour line relative to the lower bottom edge are set, wherein 2d is (L-L);
based on the plane geometric similarity principle, h/d is hN/x, and x is (hN/h) d;
thus, len ═ 2 × x + l ═ (hN/h) × d × 2+ l;
step D3, determining the transverse position proportion of the laser point in the laser point image according to the transverse margin and the transverse total length; determining the longitudinal position proportion of a laser point in the laser point image according to the longitudinal edge distance and the height;
specifically, the step of determining the transverse position proportion of the laser point in the laser point image according to the transverse margin and the transverse total length comprises the following steps:
the transverse position ratio is wN/LenN;
specifically, the step of determining the longitudinal position proportion of the laser point in the laser point image according to the longitudinal margin and the height comprises the following steps:
the longitudinal position ratio is hN/h.
Step D4, determining the hitting position of the laser point in the virtual shooting area in the laser point image according to the transverse position proportion and the longitudinal position proportion, and further obtaining the target positioning point of the virtual shooting area at the hitting position;
for example, if the infrared detection device captures that the laser point in the laser point image is located at the center of the game screen, the horizontal position and the vertical position of the laser point are both half of the whole laser point image, that is, the horizontal position proportion and the vertical position proportion are both 50%, the hitting position of the laser point in the virtual shooting area is the center, and the locating point at the center of the laser point image is taken as the target locating point.
When no keystone distortion occurs in the laser spot image, the keystone correction flow is not performed, the step execution logic is basically the same as that in steps D1 to D4, only the length of the upper base line is changed to the length of the upper rectangular side, the length of the lower base line is changed to the length of the lower rectangular side, and the processing logic of other data volumes and data volumes is the same.
Step C3, acquiring a target pixel point of the target positioning point in the position coordinate system based on the position mapping relation;
specifically, step C3 includes:
acquiring the real horizontal pixel number wS and the real vertical pixel number hS of a game screen;
based on the formula Px ═ (wN/LenN) × wS and Py=(hN/h)*hS,
Obtaining the position (Px, P) of a target pixel point of a target positioning point in a position coordinate system in a game screeny). Thereby solving the specific position of the target pixel point.
Step C4, according to the position of the target pixel point in the game screen, determining the light spot coordinates of the laser spot of the currently opened laser gun on the game screen, and according to the equipment identification, generating a light spot identification for the laser spot of the currently opened laser gun on the game screen;
next to the above example, the positioning point at the center of the laser spot image is used as the target positioning point, so that the target pixel point is the pixel point at the center of the game screen in the actual scene, and the coordinate of the pixel point at the center of the game screen is the light spot coordinate of the laser spot of the currently-turned on laser gun on the game screen.
And step C5, until the spot coordinates and the spot identification of the laser spot of the current laser gun on the game screen in all the preset time units are determined.
And C1 to C4 are executed in a loop until the coordinates and the identification of the laser point of the current laser gun on the game screen in all the preset time units are determined.
In this embodiment, for each preset time unit, the transverse position ratio and the longitudinal position ratio of the laser spot in the laser spot image are obtained, then a target positioning point is determined in the virtual shooting area, a target pixel point is determined in the position coordinate system of the game screen, and finally the spot coordinates and the spot identifiers of the laser spots of the current laser guns on the game screen in all the preset time units are determined.
Meanwhile, in most cases, images acquired by the infrared detection device have certain deformation, and the deformed laser point imagesTo calculate the position coordinates (Px, P) of the target pixel point in the game screeny) Certain deviation can exist, and the deformation mainly comes from trapezoidal distortion, so that the embodiment provides a trapezoidal correction process for the laser spot image, and when the lens of the infrared detection device and the game screen are not coaxial, the position coordinates of the target pixel points in the game screen can be accurately realized.
In addition, the present invention also provides a photoelectric game system, referring to fig. 12, the photoelectric game system includes a game host, a position detection module, a game screen, at least one laser gun, and an infrared detection device;
the infrared detection device comprises a circuit board, a lens and a filtering component, wherein an image sensor is arranged on the circuit board, a light path channel is arranged in the lens, the image sensor is arranged at the light emitting side of the light path channel and in the orthographic projection area of the circuit board, the filtering component comprises a visible light filter, a long-wave pass filter and a narrow-band filter, and the visible light filter, the long-wave pass filter and the narrow-band filter are arranged in the light path channel;
the position detection module and the game screen are in communication connection with the game host, the infrared detection device and the laser gun are in communication connection with the position detection host, and the wavelength of the high-pass-rate light of the narrow-band optical filter is the same as the specified wavelength of the light emitted by the laser gun;
the game host comprises a processor and a memory, the memory is in communication connection with the processor, the memory is stored with a computer program, and when the computer program is executed by the processor, the processor realizes the steps of the game gun photoelectric sensing method.
Referring to fig. 15, the game host may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), a touch screen, and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the game host configuration shown in fig. 15 is not intended to be limiting of game hosts and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
In addition, the present invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the game gun photoelectric sensing method are realized.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or" and/or "as used herein are to be construed as inclusive or meaning any one or any combination. Thus, "A, B or C" or "A, B and/or C" means "any of the following: a; b; c; a and B; a and C; b and C; A. b and C ". An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
It should be noted that step numbers such as S10 and S20 are used herein for the purpose of more clearly and briefly describing the corresponding content, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S20 first and then S10 in specific implementation, which should be within the scope of the present application.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A game gun photoelectric sensing method is characterized in that the game gun photoelectric sensing method is applied to a photoelectric game system, and the photoelectric game system comprises a game host, a position detection module, a game screen, at least one laser gun and an infrared detection device;
the photoelectric induction method of the game gun comprises the following steps:
acquiring the screen resolution of a game screen, and establishing a position coordinate system of the game screen according to the screen resolution;
sequentially starting the laser light sources of the laser guns in different preset time units, and controlling the infrared detection device to obtain laser spot images and equipment identifications of the laser guns in different preset time units; the method comprises the following steps that different preset time units are separated by preset vanishing periods, and when a laser light source of each laser gun is started, the infrared detection device is controlled to collect laser gun equipment identification corresponding to the current preset time unit and a laser point image on a game screen;
determining the light spot coordinates and the light spot identifications of a plurality of laser spots of each laser gun on a game screen according to the position coordinate system, laser spot images and equipment identifications of the laser guns corresponding to different preset time units;
and displaying a preset cursor for the laser gun corresponding to the light spot identification at the light spot coordinate on the game screen based on each group of the light spot coordinate and the light spot identification.
2. The gaming gun photo-electric sensing method of claim 1, wherein said laser gun comprises a first laser gun and a second laser gun,
the step of sequentially starting the laser light sources of the laser guns in different preset time units and controlling the infrared detection device to acquire the laser spot images and the equipment identifications of the laser guns in the different preset time units comprises the following steps of:
starting a laser light source of a first laser gun in a preset time unit, closing a laser light source of a second laser gun, controlling an infrared detection device to acquire a laser spot image of a laser spot of the first laser gun on a game screen and acquiring an equipment identifier of the first laser gun; sending the laser point image of the first laser gun to a position detection module so that a game host can determine the light point coordinate of the laser point of the first laser gun on a game screen in the current preset time unit; sending the equipment identification of the first laser gun to a game host machine so that the game host machine can determine the light spot identification of the laser spot on the game screen in the current preset time unit;
closing the first laser gun, closing the second laser gun, and waiting for a preset shadow eliminating period;
starting a laser light source of a second laser gun in a next preset time unit, closing the laser light source of the first laser gun, controlling an infrared detection device to acquire a laser spot image of a laser spot of the second laser gun on a game screen and acquiring an equipment identifier of the second laser gun; sending a laser spot image of a second laser gun to a position detection module for a game host to determine a light spot coordinate of a laser spot of the second laser gun on a game screen in a current preset time unit, and sending an equipment identifier of the second laser gun to the game host for the game host to determine a light spot identifier of the laser spot on the game screen in the current preset time unit;
and circulating the control flows of the first laser gun, the second laser gun and the infrared detection device in the next preset time unit and the preset shadow elimination period to acquire the laser spot images and the equipment identification of the first laser gun and the second laser gun in the subsequent preset time unit.
3. The game gun photo-electric sensing method of claim 2, further comprising:
when the infrared detection device is in a preset shadow elimination period, closing the infrared detection device;
the infrared detection device comprises a circuit board, a lens and a filtering component, wherein an image sensor is arranged on the circuit board, a light path channel is arranged in the lens, the image sensor is arranged at the light emitting side of the light path channel and in the orthographic projection area of the circuit board, the filtering component comprises a visible light filter, a long-wave pass filter and a narrow-band filter, and the visible light filter, the long-wave pass filter and the narrow-band filter are arranged in the light path channel;
the position detection module and the game screen are in communication connection with the game host, the infrared detection device and the laser gun are in communication connection with the position detection host, and the wavelength of the high-pass-rate light of the narrow-band optical filter is the same as the specified wavelength of the light emitted by the laser gun.
4. The game gun photo-electric sensing method of claim 1, wherein the step of establishing a position coordinate system of the game screen according to a screen resolution comprises:
emitting reference light spots at four vertexes of a rectangular area of a game screen based on a laser gun, collecting the four reference light spots based on an infrared detection device, and constructing a virtual shooting area in a position detection module;
decomposing the virtual shooting area into positioning points with the size of M x N and the like along the length direction and the width direction, and decomposing the game screen into pixel points with the size of M x N and the like along the length direction and the width direction based on the screen resolution;
and (3) simulating the coincidence of the virtual shooting area and the game screen, and establishing a position mapping relation between a positioning point with coincident positions and pixel points so as to establish a position coordinate system of the game screen.
5. The method as claimed in any one of claims 1 to 4, wherein the step of determining the spot coordinates and the spot identifications of the plurality of laser spots on the game screen of each laser gun according to the position coordinate system, the laser spot images and the device identifications of the laser guns corresponding to different preset time units comprises:
in each preset time unit, sending a laser point image of the currently started laser gun to a position detection module;
determining a hitting position of a laser point in the virtual shooting area in the laser point image based on a position detection module, and acquiring a target positioning point of the virtual shooting area at the hitting position;
acquiring a target pixel point of a target positioning point in a position coordinate system based on the position mapping relation;
determining the light spot coordinates of the laser spot of the currently started laser gun on the game screen according to the position of the target pixel point in the game screen, and generating a light spot identification for the laser spot of the currently started laser gun on the game screen correspondingly according to the equipment identification;
until determining the spot coordinates and spot identifications of the laser spots of the current laser gun on the game screen in all the preset time units.
6. The photoelectric sensing method of a game gun according to claim 5, wherein the step of determining a hit position of a laser point in a virtual shot area in a laser point image based on the position detection module, and acquiring a target location point of the virtual shot area at the hit position comprises:
when the laser point image has trapezoidal distortion, performing a trapezoidal correction process:
based on a position detection module, acquiring the length of the upper bottom edge and the length and the height of the lower bottom edge of the trapezoidal laser point image, and the transverse edge distance and the longitudinal edge distance of the laser point in the laser point image;
determining the total transverse length of the laser point in the laser point image according to the length of the upper bottom edge, the length of the lower bottom edge, the height and the longitudinal edge distance;
determining the transverse position proportion of a laser point in the laser point image according to the transverse margin and the transverse total length; determining the longitudinal position proportion of a laser point in the laser point image according to the longitudinal edge distance and the height;
according to the transverse position proportion and the longitudinal position proportion, determining the hitting position of the laser point in the virtual shooting area in the laser point image, and further acquiring a target positioning point of the virtual shooting area at the hitting position.
7. The gaming gun photo-sensing method of claim 6, wherein said step of determining a total lateral length of a laser spot in the laser spot image based on the length of the top edge, the length of the bottom edge, the height, and the longitudinal edge distance comprises:
in the trapezoidal correction process, only the trapezoidal distortion of the laser point image in the horizontal direction is considered, and the length L of the upper bottom edge, the length L of the lower bottom edge and the height h of the laser point image are set, the longitudinal edge distance hN of the laser point P in the laser point image, the transverse edge distance wN of the laser point P in the laser point image, the transverse total length lenN, the length d of one side edge of the upper bottom edge relative to the lower bottom edge and the length x of one side edge of the P point contour line relative to the lower bottom edge are set, wherein 2d is (L-L);
based on the plane geometric similarity principle, h/d is hN/x, and x is (hN/h) d;
thus, len ═ 2 × x + l ═ (hN/h) × d × 2+ l;
the step of determining the transverse position proportion of the laser point in the laser point image according to the transverse margin and the transverse total length comprises the following steps:
the transverse position ratio is wN/LenN;
the step of determining the longitudinal position proportion of the laser point in the laser point image according to the longitudinal margin and the height comprises the following steps:
the longitudinal position ratio is hN/h.
8. The game gun photoelectric sensing method of claim 7, wherein the step of obtaining target pixel points of a target positioning point in a position coordinate system based on the position mapping relationship comprises:
acquiring the real horizontal pixel number wS and the real vertical pixel number hS of a game screen;
based on the formulas Px ═ w/LenN × wS and Py ═ h ═ hS,
and acquiring the position (Px, Py) of a target pixel point of the target positioning point in the position coordinate system in the game screen.
9. A photoelectric game system is characterized by comprising a game host, a position detection module, a game screen, at least one laser gun and an infrared detection device;
the infrared detection device comprises a circuit board, a lens and a filtering component, wherein an image sensor is arranged on the circuit board, a light path channel is arranged in the lens, the image sensor is arranged at the light emitting side of the light path channel and in the orthographic projection area of the circuit board, the filtering component comprises a visible light filter, a long-wave pass filter and a narrow-band filter, and the visible light filter, the long-wave pass filter and the narrow-band filter are arranged in the light path channel;
the position detection module and the game screen are in communication connection with the game host, the infrared detection device and the laser gun are in communication connection with the position detection host, and the wavelength of the high-pass-rate light of the narrow-band optical filter is the same as the specified wavelength of the light emitted by the laser gun;
the game console comprises a processor and a memory, the memory is connected with the processor in a communication mode, the memory is stored with a computer program, and when the computer program is executed by the processor, the processor realizes the steps of the game gun photoelectric sensing method of any one of the claims 1 to 8.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the game gun photo-electric induction method according to any one of claims 1 to 8.
CN202110551901.XA 2021-05-20 2021-05-20 Game gun photoelectric sensing method, photoelectric game system and readable storage medium Pending CN113426100A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110551901.XA CN113426100A (en) 2021-05-20 2021-05-20 Game gun photoelectric sensing method, photoelectric game system and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110551901.XA CN113426100A (en) 2021-05-20 2021-05-20 Game gun photoelectric sensing method, photoelectric game system and readable storage medium

Publications (1)

Publication Number Publication Date
CN113426100A true CN113426100A (en) 2021-09-24

Family

ID=77803285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110551901.XA Pending CN113426100A (en) 2021-05-20 2021-05-20 Game gun photoelectric sensing method, photoelectric game system and readable storage medium

Country Status (1)

Country Link
CN (1) CN113426100A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113946238A (en) * 2021-10-15 2022-01-18 北京京东方技术开发有限公司 Display and method for operating display by using infrared rays
CN118799783A (en) * 2024-07-02 2024-10-18 广州雄之业动漫科技有限公司 A method and system for processing light spot coordinate images in a simulated shooting game machine

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4680012A (en) * 1984-07-07 1987-07-14 Ferranti, Plc Projected imaged weapon training apparatus
US20020051953A1 (en) * 2000-06-09 2002-05-02 John Clark Firearm laser training system and method facilitating firearm training with various targets and visual feedback of simulated projectile impact locations
WO2006081761A1 (en) * 2005-02-03 2006-08-10 Zeng, Qinglin An light spot mouse controller and signal processing method
CN104667527A (en) * 2015-01-21 2015-06-03 深圳华侨城文化旅游科技有限公司 Method and system for recognizing different shooting points on screen by infrared laser
US20200400825A1 (en) * 2019-06-20 2020-12-24 Ethicon Llc Laser mapping imaging with fixed pattern noise cancellation
US20200400795A1 (en) * 2019-06-20 2020-12-24 Ethicon Llc Noise aware edge enhancement in a pulsed laser mapping imaging system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4680012A (en) * 1984-07-07 1987-07-14 Ferranti, Plc Projected imaged weapon training apparatus
US20020051953A1 (en) * 2000-06-09 2002-05-02 John Clark Firearm laser training system and method facilitating firearm training with various targets and visual feedback of simulated projectile impact locations
WO2006081761A1 (en) * 2005-02-03 2006-08-10 Zeng, Qinglin An light spot mouse controller and signal processing method
CN104667527A (en) * 2015-01-21 2015-06-03 深圳华侨城文化旅游科技有限公司 Method and system for recognizing different shooting points on screen by infrared laser
US20200400825A1 (en) * 2019-06-20 2020-12-24 Ethicon Llc Laser mapping imaging with fixed pattern noise cancellation
US20200400795A1 (en) * 2019-06-20 2020-12-24 Ethicon Llc Noise aware edge enhancement in a pulsed laser mapping imaging system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
申红明等: "基于CCD的激光枪自动射击报靶装置", 《电子世界》 *
齐颁扬: "《高等学校试用教材 医学仪器 下》", 31 March 1991, 高等教育出版社 *
齐颁扬: "《高等学校试用教材 医学仪器 下册》", 高等教育出版社 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113946238A (en) * 2021-10-15 2022-01-18 北京京东方技术开发有限公司 Display and method for operating display by using infrared rays
CN118799783A (en) * 2024-07-02 2024-10-18 广州雄之业动漫科技有限公司 A method and system for processing light spot coordinate images in a simulated shooting game machine

Similar Documents

Publication Publication Date Title
JP7564828B2 (en) Under-display image sensor
CN110967166B (en) Detection method, detection device and detection system of near-eye display optical system
US7359564B2 (en) Method and system for cancellation of ambient light using light frequency
CN108701363B (en) Method, apparatus and system for object recognition and tracking using multiple cameras
US10091489B2 (en) Image capturing device, image processing method, and recording medium
EP3120220B1 (en) User gesture recognition
AU2017220404A1 (en) Head-mounted display for virtual and mixed reality with inside-out positional, user body and environment tracking
CN110120099A (en) Localization method, device, recognition and tracking system and computer-readable medium
CN113426100A (en) Game gun photoelectric sensing method, photoelectric game system and readable storage medium
WO2004102523A1 (en) Optical coordinate input device comprising few elements
CN104035555A (en) System, Information Processing Apparatus, And Information Processing Method
CN105912145A (en) Laser pen mouse system and image positioning method thereof
CN109833621B (en) Multi-wavelength infrared laser shooting point identification system
CN102323868A (en) Human-computer multi-point interaction method and device based on infrared image
WO2022126871A1 (en) Defect layer detection method and system based on light field camera and detection production line
CN110119190A (en) Localization method, device, recognition and tracking system and computer-readable medium
CN112668540B (en) Biological characteristic acquisition and recognition system and method, terminal equipment and storage medium
CN102567706A (en) Human face identification device and method
CN213844157U (en) Biological characteristic acquisition and identification system and terminal equipment
CN112433640B (en) Automatic calibration interactive projection system of multiple image sensors and implementation method thereof
CN211401219U (en) Apply to mobile robot of indoor navigation
KR101385263B1 (en) System and method for a virtual keyboard
EP4276682A1 (en) Biometric acquisition and recognition system and method, and terminal device
US11831858B2 (en) Passive three-dimensional image sensing based on referential image blurring
CN215865067U (en) Infrared detection device and photoelectric game system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210924

RJ01 Rejection of invention patent application after publication