A method and related device for calibrating infrared light spots in a simulated shooting game machine
By putting the calibration area on the display screen of the simulated shooting game machine and displaced the infrared spots with the calibration button, the problem of infrared spot calibration difficulty in the prior art is solved, and a fast and accurate calibration effect is achieved.
Patent Information
- Application Number
- CN202410942844.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2044-07-15
AI Technical Summary
Infrared spot calibration in existing simulated shooting game consoles is difficult and it is impossible to quickly and accurately achieve the required calibration effect.
By putting the calibration area corresponding to the camera on the display screen and displacing the infrared spots with the calibration buttons, the infrared spots are quickly calibrated by the toy gun.
This method can quickly and accurately complete the calibration of infrared light spots, improving the calibration efficiency and accuracy.
Smart Images

Figure CN118925213B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of game machines, and in particular to a method and a related device for calibrating infrared light spots in a simulated shooting game machine. Background Art
[0002] At present, the toy guns in the simulated shooting game machines generally transmit infrared rays to the corresponding display screen, and complete the positioning of the shooting point of the toy gun by identifying the coordinates of the infrared light spots on the display screen, so that the screen characters in the entire display screen cooperate with the interaction of the shooting points to realize simulated shooting. When the user uses the toy gun to shoot, the infrared light spots emitted by the toy gun will be projected onto the target object, that is, a simulated shooting is completed. This simulated shooting requires the coordinate points of the infrared light spots to be converted into actual bullet effects in order to match the final live-fire shooting effect. In the simulated shooting game, the coordinates of the infrared light spots emitted by the toy gun need to be accurate, that is, the target shooting position pointed by the user should be consistent with the direction aimed at by the toy gun, and the infrared light spots emitted by the toy gun itself will have a certain deviation, so that the entire target shooting position is inconsistent with the aimed direction. The calibration of the infrared light spots in the existing simulated shooting game machines will be difficult, and the required calibration effect cannot be achieved quickly and accurately. Summary of the invention
[0003] The purpose of the present invention is to overcome the shortcomings of the prior art. The present invention provides a method and related device for calibrating infrared light spots in a simulated shooting game machine. By projecting a calibration area corresponding to a camera on a display screen and then combining a calibration button to displace the infrared light spots, the calibration process of the infrared light spots emitted by a toy gun can be quickly realized.
[0004] Accordingly, the present invention proposes a method for calibrating infrared light spots in a simulated shooting game machine, the method comprising the following steps:
[0005] Start the infrared spot calibration mode of the toy gun;
[0006] Generating a calibration area on a display screen based on a captured image of an acquisition camera;
[0007] Responding to the infrared light spot emitted by the toy gun based on the calibration area;
[0008] Triggering a calibration button on the game console to generate a calibration instruction, wherein the calibration instruction controls the infrared light spot emitted by the toy gun to move on the calibration area;
[0009] When the infrared light spot emitted by the toy gun meets the toy gun calibration requirement, the calibration button on the game console is stopped to generate a calibration instruction.
[0010] Generating a calibration area on a display screen based on a captured image of an acquisition camera includes:
[0011] Calling a proportionally scaled capture screen based on the display area of the display;
[0012] The captured image generates a projection area, and the projection area is projected onto a display screen to generate a calibration area.
[0013] The infrared light spot emitted by the toy gun based on the calibration area response includes:
[0014] Determining whether the infrared light spot is located in the calibration area;
[0015] When it is determined that the infrared light spot is located in the calibration area, the calibration button on the game console is triggered to generate a calibration instruction step; when it is determined that the infrared light spot is not located in the calibration area, the direction of the infrared light spot emitted by the toy gun is adjusted until the infrared light spot is located in the calibration area.
[0016] The step of triggering a calibration button on the gaming machine to generate a calibration instruction comprises:
[0017] A video stream where the calibration area is located is collected based on a camera, wherein the video stream includes a plurality of image video frames;
[0018] Performing recognition processing on the image video frames in the video stream, and identifying the infrared light spots in the image video frames;
[0019] Identify the toy gun number corresponding to the infrared light spot;
[0020] The corresponding calibration instruction is generated based on the toy gun number.
[0021] The determining whether the infrared light spot is located in the calibration area comprises:
[0022] Extracting coordinate information of infrared light spots on the display screen;
[0023] It is determined whether the infrared light spot is located in the calibration area based on the coordinate information.
[0024] The calibration instruction controls the infrared light spot emitted by the toy gun to move on the calibration area, including:
[0025] The calibration button responds to a position operation instruction, wherein the position operation instruction includes a displacement direction and a displacement distance;
[0026] Converting the position operation instruction into a firing adjustment instruction corresponding to the toy gun, wherein the firing adjustment instruction includes displacement information of the infrared light spot in the calibration area;
[0027] The toy gun is controlled to adjust the position of the infrared light spot on the calibration area based on the emission adjustment instruction.
[0028] When the infrared light spot emitted by the toy gun meets the toy gun calibration requirement, the method includes:
[0029] When it is determined based on the three-point-one-line method that the infrared light spot is on a straight line, it means that the infrared light spot emitted by the toy gun meets the toy gun calibration requirements.
[0030] Accordingly, the present invention also proposes a simulated shooting game device, the simulated shooting game device comprising:
[0031] A plurality of toy guns, each of the plurality of toy guns is used to generate an infrared light spot, and to complete infrared light spot calibration based on the generated infrared light spot;
[0032] A processing module, for generating a calibration area on the display screen based on a captured image of the acquisition camera, and generating a calibration area on the display screen based on the captured image, and responding to the infrared light spot emitted by the toy gun based on the calibration area;
[0033] The calibration module is used to start the infrared light spot calibration mode of the toy gun and trigger the calibration button on the game console to generate a calibration instruction, wherein the calibration instruction controls the displacement of the infrared light spot emitted by the toy gun on the calibration area; when the infrared light spot emitted by the toy gun meets the toy gun calibration requirements, stop triggering the calibration button on the game console to generate the calibration instruction.
[0034] Correspondingly, the present invention also proposes an electronic device, including a processor and a memory, wherein the processor runs a computer program or code stored in the memory to implement any of the methods described above.
[0035] Accordingly, the present invention also proposes a computer-readable storage medium for storing a computer program or code, and when the computer program or code is executed by a processor, any of the methods described above is implemented.
[0036] The present invention sets an infrared light spot calibration mode in a simulated shooting game console, and projects a calibration area on a display screen for a camera, so that its calibration is constrained within a certain area of the display screen, and there is no need to use a large area of the display screen for calibration, so that the entire calibration area can meet the requirements of fine control, and then cooperates with the control of the entire calibration button to make the infrared light spot emitted by the toy gun move within the calibration area in accordance with the calibration requirements. This calibration method is convenient and has high calibration accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 is a flow chart of a method for calibrating infrared light spots in a simulated shooting game machine according to an embodiment of the present invention;
[0039] Figure 2 is a schematic diagram of the structure of a simulated shooting game machine device in an embodiment of the present invention;
[0040] Figure 3 Schematic diagram of the structure of the gaming machine device in an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] The method for calibrating infrared light spots in a simulated shooting game console involved in an embodiment of the present invention comprises the following steps: starting an infrared light spot calibration mode of a toy gun; generating a calibration area on a display screen based on a captured image of a collection camera; responding to the infrared light spots emitted by the toy gun based on the calibration area; triggering a calibration button on the game console to generate a calibration instruction, wherein the calibration instruction controls the infrared light spots emitted by the toy gun to move on the calibration area; and stopping triggering the calibration button on the game console to generate the calibration instruction when the infrared light spots emitted by the toy gun meet the toy gun calibration requirements.
[0043] In the embodiment of the present invention, an infrared light spot calibration mode is set in the simulated shooting game console, and a calibration area is projected on the display screen for the camera, so that its calibration is constrained within a certain area of the display screen, and there is no need to resort to large-area calibration of the display screen, so that the entire calibration area can meet the requirements of fine control, and then the control of the entire calibration button is coordinated to make the infrared light spot emitted by the toy gun move within the calibration area in accordance with the calibration requirements. This calibration method is convenient and has high calibration accuracy.
[0044] Specifically, Figure 1 A schematic flow chart of a method for calibrating infrared light spots in a simulated shooting game machine in an embodiment of the present invention is shown, and the method comprises the following steps:
[0045] S11, start the infrared light spot calibration mode of the toy gun;
[0046] The toy gun in the simulated shooting game console emits infrared light spots to simulate the shooting process. When the infrared light spots are projected onto the display screen, there will be a certain deviation. In order to more conveniently calibrate the infrared light spots emitted by the toy gun in the embodiment of the present invention, it can complete the calibration process of the infrared light spots emitted by the toy gun when the device is first run or when there is an aiming error in the infrared light spots. That is, it is necessary to start the calibration mode of the game console, that is, start the infrared light spot calibration mode of the toy gun. This startup mode can enable the entire simulated shooting game console to achieve quick startup of calibration.
[0047] S12, generating a calibration area on the display screen based on the captured image of the acquisition camera;
[0048] After the infrared spot calibration mode of the simulated shooting game machine is started, the acquisition camera will be triggered to respond to the next step. Simulated shooting game machines currently use a large display screen mode. If the entire display screen is used for calibration, it will cause many misoperations or accuracy problems. Since the entire display screen is in a bright screen state during the infrared spot calibration process, there will be several operation screens on the display screen. These operation screens will affect the placement of the infrared spot on the display screen and the clarity of the infrared spot. In addition, the entire display screen is too large, which makes the entire calibration screen too large to manipulate, making the precision of the entire calibration control more complicated, affecting the refined operation of the entire calibration.
[0049] The captured image of the camera can generally cover the entire display screen or be scaled proportionally with reference to the display screen to capture the image. Here, a scaled captured image is called based on the display area of the display screen; the captured image generates a projection area, and the projection area is projected onto the display screen to generate a calibration area. The calibration area is a picture-in-picture display mode in the display screen, and its display content is overlaid on the main display screen of the display screen. The calibration area is generally located in the middle area of the display screen as a picture-in-picture. The middle area is generally less disturbed by the display content. There are generally many functional instructions at the bottom or surrounding areas on the main display screen. The content presented on the border area of the main display screen is relatively complicated, and generally blank space is left in the middle area. These blank areas can be used as calibration areas. The calibration area is displayed in the middle position of the display screen as a functional image, that is, the calibration process of the infrared light spot in each toy gun is completed in the middle position.
[0050] S13, responding to the infrared light spot emitted by the toy gun based on the calibration area;
[0051] During the specific implementation process, responding to the infrared light spot emitted by the toy gun based on the calibration area includes: determining whether the infrared light spot is located in the calibration area; when it is determined that the infrared light spot is located in the calibration area, triggering the calibration button on the game console to generate a calibration instruction step; when it is determined that the infrared light spot is not located in the calibration area, adjusting the direction of the infrared light spot emitted by the toy gun until the infrared light spot is located in the calibration area.
[0052] The calibration area is displayed on the display screen based on the picture-in-picture mode, so that the infrared light spots emitted by the toy gun have a calibration target. The calibration area is much smaller than the large display screen, which reduces the effectiveness of the entire control.
[0053] It should be noted that, here, determining whether the infrared light spot is located in the calibration area includes: extracting coordinate information of the infrared light spot on the display screen; and determining whether the infrared light spot is located in the calibration area based on the coordinate information.
[0054] It should be noted that the camera can be used to capture the image of the entire display screen, and then the calibration area in the entire image can be extracted. Since the calibration area belongs to the picture-in-picture mode, the content of the calibration area can be extracted through the recognition processing mode, so that the entire recognition content is reduced, and only the recognition process of the infrared light spots on the calibration area needs to be focused on, and then the characteristics of the infrared light spots in the calibration area are identified. If there is coordinate information of the infrared light spots in the calibration area, it is judged that the infrared light spots are located in the calibration area. If there is no coordinate information of the infrared light spots in the calibration area, it is judged that the infrared light spots are not located in the calibration area.
[0055] In the embodiment of the present invention, by cutting out a calibration area and then completing feature recognition of infrared light spots in the calibration area, the redundancy of image recognition processing can be reduced. That is, only the recognition and positioning processing of infrared light spots in a simple calibration area is performed, which makes the entire feature recognition processing mechanism simple and reduces interference from other factors in the display screen. At the same time, since there are fewer image personality factors in the calibration area, the entire feature recognition of the infrared light spots can be quickly positioned.
[0056] S14, triggering a calibration button on the game console to generate a calibration instruction, wherein the calibration instruction controls the infrared light spot emitted by the toy gun to move on the calibration area;
[0057] It should be noted that the method of triggering the calibration button on the game console to generate a calibration instruction includes: capturing a video stream in which the calibration area is located based on a camera, wherein the video stream includes a number of image video frames; performing recognition processing on the image video frames in the video stream to identify infrared light spots in the image video frames; identifying the toy gun number corresponding to the infrared light spot; and generating a corresponding calibration instruction based on the toy gun number.
[0058] When the infrared light spot is identified in the calibration area, it is necessary to identify the toy gun number or ID information corresponding to the infrared light spot. During the calibration process of each toy gun, the infrared light spot generated by each toy gun has a certain degree of recognition when it is placed in the calibration area, that is, there are some differences in the characteristics of each infrared light spot. Therefore, it is necessary to identify the corresponding toy gun number or ID information based on the characteristics of each infrared light spot, so that the entire calibration control can correspond to the corresponding toy gun, so that the game console body can complete the corresponding matching process.
[0059] It should be noted that the image video frames in the video stream are identified and processed here, and the identification of infrared light spots in the image video frames includes: performing noise reduction processing on the infrared light spots based on the image video frames in the video stream; and extracting infrared light spots from each image video frame after the noise reduction processing. The noise reduction processing here adopts a filter-based method, and performs noise reduction processing on the image video frames in the video stream based on a combination of Gaussian filtering, mean filtering, median filtering and bilateral filtering.
[0060] It should be noted that the filter-based method can input the image video frames in the video stream into the corresponding filter. First, Gaussian filtering is applied to the image video frames in the video stream, using a suitable convolution kernel size and standard deviation; then, median filtering is performed on the image video frames after Gaussian filtering, and an appropriate window size is selected; secondly, bilateral filtering is applied to the image video frames after median filtering, and the parameters of the spatial domain and grayscale domain are adjusted. Finally, image video frames with noise reduction effect and retained image detail features are output.
[0061] The image video frame in the video stream is identified and processed, and before the infrared light spots in the image video frame are identified, the process includes: the acquisition camera obtains each image video frame in the video stream for grayscale processing, and identifies the infrared light spots in the image video frame; the infrared light spots in the image video frame that has been grayscaled are sharpened. The acquisition camera obtains each image video frame in the video stream for grayscale processing, and identifies the infrared light spots in the image video frame, wherein the image video frame color image is converted into a grayscale image. The grayscale image only contains brightness information, not color information, so each pixel has only one grayscale value, which better highlights the texture and structure of the image. By eliminating the interference of color information, the grayscale image can more clearly display the position of the infrared light spot; the infrared light spot in the image video frame that has been grayscaled is sharpened, wherein the edge of the infrared light spot is first filtered and noise is reduced and the edge data of the infrared light spot is processed, and then the edge information data distribution image and the original image are merged to obtain the final image after detail sharpening.
[0062] It should be noted that identifying the infrared light spots in the image video frames here includes: searching for external light spots in the image video frames based on the spot characteristics of the infrared light spots, that is, performing target search for the infrared light spots in the image video frames, and performing real-time analysis on the infrared light spots in the image video frames, and comparing and fitting the spot characteristic parameters of the infrared light spots in the video frames with the spot characteristic parameters of the infrared light spots in the target search, and obtaining the error between the infrared light spots in the video frames and the infrared light spots in the target search based on the fitting results, and when the error meets the threshold condition, the infrared light spot is identified as the infrared light spot generated in the embodiment of the present invention.
[0063] It should be noted that the calibration instruction controls the displacement of the infrared light spot emitted by the toy gun on the calibration area, including: the calibration button responds to the position operation instruction, the position operation instruction includes the displacement direction and the displacement distance; the position operation instruction is converted into the emission adjustment instruction corresponding to the toy gun, the emission adjustment instruction includes the displacement information of the infrared light spot in the calibration area; based on the emission adjustment instruction, the toy gun is controlled to adjust the position of the infrared light spot on the calibration area.
[0064] S15, when the infrared light spot emitted by the toy gun meets the toy gun calibration requirement, stop triggering the calibration button on the game console to generate a calibration instruction;
[0065] It should be noted that when the infrared light spot emitted by the toy gun meets the toy gun calibration requirement, it includes: when the infrared light spot is determined on a straight line based on a three-point-one-line method, it means that the infrared light spot emitted by the toy gun meets the toy gun calibration requirement.
[0066] When calibrating the infrared light spot emitted by the toy gun, it is necessary to consider whether the target is accurate. Referring to the rules of the shooting game, it is necessary to complete the crosshair aiming process. When the infrared light spot is shot to the calibration area, it is necessary to use the toy gun to verify whether the infrared light spot satisfies the three points in a straight line, that is, the infrared light spot is the crosshair aimed by the toy gun. If the infrared light spot is not the crosshair aimed by the toy gun, it is necessary to further adjust the position of the entire infrared light spot on the calibration area. If the infrared light spot is the crosshair aimed by the toy gun, it means that the infrared light spot emitted by the toy gun meets the toy gun calibration requirements.
[0067] S16, determining whether the required toy gun has completed the calibration process of the infrared light spot;
[0068] If there are required toy guns that have not been calibrated, the process proceeds to S13 . If all required toy guns have been calibrated, the process proceeds to S17 .
[0069] There are multiple toy guns on a simulated shooting game console. During the initial setting, the infrared light spot of each toy gun needs to be calibrated. Or when the user is using it, there may be shooting deviations of the infrared light spots on some toy guns. It is necessary to calibrate the position of the infrared light spot projected onto the display screen so that the infrared light spot matches the corresponding crosshair of the toy gun.
[0070] S17, ending the calibration of the infrared light spot on the game console.
[0071] The method in the embodiment of the present invention sets an infrared light spot calibration mode in a simulated shooting game console, and projects a calibration area on the display screen for the camera, so that its calibration is constrained within a certain area of the display screen, and there is no need to resort to large-area calibration of the display screen, so that the entire calibration area satisfies refined control, and then cooperates with the control of the entire calibration button to make the infrared light spot emitted by the toy gun move within the calibration area in accordance with the calibration requirements. This calibration method is convenient and has high calibration accuracy.
[0072] Figure 2 The schematic diagram of the structure of the simulated shooting game machine device in the embodiment of the present invention is shown, and the simulated shooting game machine device comprises:
[0073] A plurality of toy guns, each of the plurality of toy guns is used to generate an infrared light spot, and to complete infrared light spot calibration based on the generated infrared light spot;
[0074] A processing module, for generating a calibration area on the display screen based on a captured image of the acquisition camera, and generating a calibration area on the display screen based on the captured image, and responding to the infrared light spot emitted by the toy gun based on the calibration area;
[0075] The calibration module is used to start the infrared light spot calibration mode of the toy gun and trigger the calibration button on the game console to generate a calibration instruction, wherein the calibration instruction controls the displacement of the infrared light spot emitted by the toy gun on the calibration area; when the infrared light spot emitted by the toy gun meets the toy gun calibration requirements, the calibration button on the game console is stopped from being triggered to generate the calibration instruction. It should be noted that the generation of the calibration area on the display screen based on the captured image of the acquisition camera includes: calling a proportionally scaled captured image based on the display area of the display screen; generating a projection area from the captured image, and projecting the projection area onto the display screen to generate the calibration area.
[0076] It should be noted that the response to the infrared light spot emitted by the toy gun based on the calibration area includes: determining whether the infrared light spot is located in the calibration area; when it is determined that the infrared light spot is located in the calibration area, triggering the calibration button on the game console to generate a calibration instruction step; when it is determined that the infrared light spot is not located in the calibration area, adjusting the direction of the infrared light spot emitted by the toy gun until the infrared light spot is located in the calibration area.
[0077] It should be noted that the method of triggering the calibration button on the game console to generate a calibration instruction includes: capturing a video stream in which the calibration area is located based on a camera, wherein the video stream includes a number of image video frames; performing recognition processing on the image video frames in the video stream to identify infrared light spots in the image video frames; identifying the toy gun number corresponding to the infrared light spot; and generating a corresponding calibration instruction based on the toy gun number.
[0078] It should be noted that the determining whether the infrared light spot is located in the calibration area includes: extracting coordinate information of the infrared light spot on the display screen; and determining whether the infrared light spot is located in the calibration area based on the coordinate information.
[0079] It should be noted that the calibration instruction controls the displacement of the infrared light spot emitted by the toy gun on the calibration area, including: the calibration button responds to the position operation instruction, the position operation instruction includes the displacement direction and the displacement distance; the position operation instruction is converted into the emission adjustment instruction corresponding to the toy gun, the emission adjustment instruction includes the displacement information of the infrared light spot in the calibration area; based on the emission adjustment instruction, the toy gun is controlled to adjust the position of the infrared light spot on the calibration area.
[0080] It should be noted that when the infrared light spot emitted by the toy gun meets the toy gun calibration requirements, it includes: when the infrared light spot is determined to be on a straight line based on the three-point one-line method, it means that the infrared light spot emitted by the toy gun meets the toy gun calibration requirements. In summary, the simulation shooting game console device in the embodiment of the present invention sets an infrared light spot calibration mode in the simulation shooting game console, and projects a calibration area on the display screen for the camera, so that its calibration is constrained within a certain area of the display screen, and does not need to use the large area calibration of the display screen, so that the entire calibration area meets the refined control, and then cooperates with the control of the entire calibration button to make the infrared light spot emitted by the toy gun move within the calibration area in accordance with the calibration requirements. This calibration method is convenient and has high calibration accuracy.
[0081] Example
[0082] An embodiment of the present invention provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the program is executed by a processor, a method for calibrating infrared light spots in a simulated shooting game machine in any of the above embodiments is implemented. The computer-readable storage medium includes, but is not limited to, any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. That is, the storage device includes any medium that can store or transmit information in a readable form by a device (e.g., a computer, a mobile phone), which can be a read-only memory, a disk or an optical disk, etc.
[0083] An embodiment of the present invention further provides a computer application program, which runs on a computer and is used to execute the infrared light spot calibration method in a simulated shooting game machine of any one of the above embodiments.
[0084] also, Figure 3 It is a schematic diagram of the structural composition of a gaming machine device in an embodiment of the present invention.
[0085] The embodiment of the present invention also provides a gaming device, such as Figure 3As shown. The therapeutic device includes devices such as a processor 302, a memory 303, an input unit 304, and a display unit 305. The memory 303 can be used to store an application 301 and various functional modules, and the processor 302 runs the application 301 stored in the memory 303, thereby executing various functional applications and data processing of the device. The memory can be an internal memory or an external memory, or include both an internal memory and an external memory. The internal memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, or a random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a U disk, a magnetic tape, etc. The memory disclosed in the present invention includes but is not limited to these types of memories. The memory disclosed in the present invention is only used as an example and not as a limitation.
[0086] The input unit 304 is used to receive the input of the signal and the keyword input by the user. The input unit 304 may include a touch panel and other input devices. The touch panel can collect the user's touch operation on or near it (such as the user's operation on or near the touch panel using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program; other input devices may include but are not limited to one or more of a physical keyboard, a function key (such as a playback control key, a switch key, etc.), a trackball, a mouse, a joystick, etc. The display unit 305 can be used to display the information input by the user or the information provided to the user and various menus of the terminal device. The display unit 305 can be in the form of a liquid crystal display, an organic light emitting diode, etc. The processor 302 is the control center of the terminal device, which uses various interfaces and lines to connect the various parts of the entire device, and executes various functions and processes data by running or executing software programs and / or modules stored in the memory 303, and calling the data stored in the memory.
[0087] As an embodiment, the gaming machine device includes: one or more processors 302, a memory 303, and one or more applications 301, wherein the one or more applications 301 are stored in the memory 303 and are configured to be executed by the one or more processors 302, and the one or more applications 301 are configured to execute the method for infrared light spot calibration in a simulated shooting game machine in any of the above-mentioned embodiments.
[0088] In addition, the above is a detailed introduction to the method and related devices for calibrating infrared light spots in a simulated shooting game machine provided by an embodiment of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for calibrating infrared light spots in a simulated shooting game machine, characterized in that: The method comprises the following steps: Start the infrared spot calibration mode of the toy gun; Generating a calibration area on a display screen based on a captured image of an acquisition camera; Responding to the infrared light spot emitted by the toy gun based on the calibration area; Triggering a calibration button on the game console to generate a calibration instruction, wherein the calibration instruction controls the infrared light spot emitted by the toy gun to move on the calibration area; When the infrared light spot emitted by the toy gun meets the toy gun calibration requirement, stop triggering the calibration button on the game console to generate a calibration instruction; The step of triggering a calibration button on the gaming machine to generate a calibration instruction comprises: A video stream where the calibration area is located is collected based on a camera, wherein the video stream includes a plurality of image video frames; Performing recognition processing on the image video frames in the video stream, and identifying the infrared light spots in the image video frames; Identify the toy gun number corresponding to the infrared light spot; Generating a calibration instruction corresponding to the toy gun number; generating a calibration area on the display screen based on the captured image of the acquisition camera includes: The captured image of the camera covers the entire display screen or is scaled proportionally with reference to the display screen to capture the image, and a scaled captured image is called based on the display area of the display screen; The captured image is used to generate a projection area, and the projection area is projected onto a display screen to generate a calibration area. The calibration area is a picture-in-picture display mode in the display screen, and the display content of the calibration area is overlaid on the main display screen of the display screen.
2. The method for calibrating infrared light spots in a simulated shooting game machine as claimed in claim 1, characterized in that: The infrared light spot emitted by the toy gun based on the calibration area response includes: Determining whether the infrared light spot is located in the calibration area; When it is determined that the infrared light spot is located in the calibration area, the calibration button on the game console is triggered to generate a calibration instruction step; when it is determined that the infrared light spot is not located in the calibration area, the direction of the infrared light spot emitted by the toy gun is adjusted until the infrared light spot is located in the calibration area.
3. The method for calibrating infrared light spots in a simulated shooting game machine as claimed in claim 2, characterized in that: The determining whether the infrared light spot is located in the calibration area comprises: Extracting coordinate information of infrared light spots on the display screen; It is determined whether the infrared light spot is located in the calibration area based on the coordinate information.
4. The method for calibrating infrared light spots in a simulated shooting game machine as claimed in claim 1, characterized in that: The calibration instruction controls the infrared light spot emitted by the toy gun to move on the calibration area, including: The calibration button responds to a position operation instruction, wherein the position operation instruction includes a displacement direction and a displacement distance; Converting the position operation instruction into a firing adjustment instruction corresponding to the toy gun, wherein the firing adjustment instruction includes displacement information of the infrared light spot in the calibration area; The toy gun is controlled to adjust the position of the infrared light spot on the calibration area based on the emission adjustment instruction.
5. The method for calibrating infrared light spots in a simulated shooting game machine as claimed in claim 1, characterized in that: When the infrared light spot emitted by the toy gun meets the toy gun calibration requirement, the method includes: When it is determined based on the three-point-one-line method that the infrared light spot is on a straight line, it means that the infrared light spot emitted by the toy gun meets the toy gun calibration requirements.
6. A simulated shooting game device, characterized in that: The simulated shooting game machine device comprises: A plurality of toy guns, each of the plurality of toy guns is used to generate an infrared light spot, and to complete infrared light spot calibration based on the generated infrared light spot; A processing module, for generating a calibration area on the display screen based on a captured image of the acquisition camera, and generating a calibration area on the display screen based on the captured image, and responding to the infrared light spot emitted by the toy gun based on the calibration area; A calibration module, used to start the infrared light spot calibration mode of the toy gun, and trigger the calibration button on the game console to generate a calibration instruction, wherein the calibration instruction controls the displacement of the infrared light spot emitted by the toy gun on the calibration area; when the infrared light spot emitted by the toy gun meets the toy gun calibration requirements, stop triggering the calibration button on the game console to generate the calibration instruction; The triggering of the calibration button on the game console to generate the calibration instruction includes: collecting the video stream where the calibration area is located based on the camera, the video stream includes a plurality of image video frames; performing recognition processing on the image video frames in the video stream to identify the infrared light spots in the image video frames; identifying the toy gun number corresponding to the infrared light spot; and generating the corresponding calibration instruction based on the toy gun number; The method of generating a calibration area on a display screen based on a captured image of an acquisition camera includes: the captured image of the camera covers the entire display screen or captures the image by scaling it in proportion with reference to the display screen, and a scaled captured image is called based on the display area of the display screen; a projection area is generated from the captured image, and the projection area is projected onto the display screen to generate a calibration area, wherein the calibration area is a picture-in-picture display mode in the display screen, and the display content of the calibration area is covered on the main display screen of the display screen.
7. An electronic device comprising a processor and a memory, characterized in that: The processor runs a computer program or code stored in the memory to implement the method according to any one of claims 1 to 5.
8. A computer-readable storage medium for storing a computer program or code, characterized in that: When the computer program or code is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Video overlapping gun calibration device and method
CN106370058A