Method, device, storage medium and apparatus for simulating shooting perspective
By collecting the position change information of the laser beam during the gun movement, determining the muzzle movement data and controlling the camera to move simultaneously, the problem of the audience being unable to observe the shooter's subtle movements is solved, and the audience's viewing experience is improved.
Patent Information
- Application Number
- CN202210318179.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-29
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2042-03-29
AI Technical Summary
In the prior art, the audience cannot observe the shooter's subtle movements, resulting in a poor audience experience.
By collecting the position change information of the laser beam reflected through the barrel on the preset ruler during the gun movement, the muzzle movement data of the gun is determined, and the camera is controlled to move simultaneously to simulate the change of the shooting perspective.
The subtle movements of the shooter are realized to show the audience the shooting staff, and the audience's experience is enhanced.
Smart Images

Figure CN114758112B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image recognition, and in particular to a method, equipment, storage medium and device for simulating shooting angle of view. Background Art
[0002] Currently, shooting events often involve broadcasting shooting videos to enhance audience participation. Existing technology only uses a camera to capture the shooter from a third-person perspective, displaying the hits after the shots are fired. Due to the long shooting distance, the shooter's movements are subtle before the shot, making it difficult for the audience to observe these subtle movements, resulting in a poor viewing experience.
[0003] The above content is only used to assist in understanding the technical solution of the present invention and does not constitute an admission that the above content is prior art. Summary of the Invention
[0004] The main purpose of the present invention is to provide a method, device, storage medium and apparatus for simulating shooting perspective, aiming to solve the technical problem in the prior art that spectators cannot observe the shooter's subtle movements, resulting in a poor audience experience.
[0005] To achieve the above object, the present invention provides a method for simulating a shooting angle of view, the method comprising the following steps:
[0006] During the movement of the firearm, the position change information of the laser beam reflected by the barrel on the preset scale is collected;
[0007] determining muzzle movement data of the firearm according to the position change information;
[0008] The camera is controlled to move synchronously according to the muzzle movement data to simulate the change of shooting angle.
[0009] Optionally, the preset scale includes a first scale provided below the firearm and a second scale provided on the side of the firearm, and the step of collecting position change information of the laser beam reflected by the barrel on the preset scale during movement of the firearm includes:
[0010] During the movement of the firearm, first position change information of the laser beam reflected by the gun barrel on the first scale and / or second position change information on the second scale are collected;
[0011] Position change information is determined according to the first position change information and / or the second position change information.
[0012] Optionally, the gun barrel is provided with a reflective coating, and the step of determining the muzzle movement data of the firearm according to the position change information includes:
[0013] Obtaining an angle between a laser beam emitted by a preset laser emitter to the reflective coating and a corresponding reference direction;
[0014] Muzzle movement data of the firearm is determined according to the included angle, the first position change information, and the second position change information.
[0015] Optionally, the preset laser emitter includes a first laser emitter disposed below the firearm and a second laser emitter disposed on the side of the firearm, the reference direction includes a first reference direction and a second reference direction, and the step of determining the muzzle movement data of the firearm based on the position change information includes:
[0016] Obtaining a first angle between a laser beam emitted by a first laser emitter to the reflective coating and the first reference direction;
[0017] Obtaining a second angle between a laser beam emitted by a second laser emitter to the reflective coating and the second reference direction;
[0018] Determining the longitudinal movement data of the muzzle of the firearm according to the first included angle and the first position change information;
[0019] Determining muzzle lateral movement data of the firearm according to the second included angle and the second position change information;
[0020] The muzzle movement data of the firearm is determined according to the muzzle longitudinal movement data and the muzzle lateral movement data.
[0021] Optionally, the step of controlling the synchronous movement of the camera according to the muzzle movement data to simulate the change of the shooting angle includes:
[0022] Calculating the target movement distance and target offset angle of the camera according to the muzzle longitudinal movement data and the muzzle lateral movement data;
[0023] The camera is controlled to move synchronously according to the target moving distance and the target offset angle to simulate the change of shooting angle of view.
[0024] Optionally, the step of controlling the synchronous movement of the camera according to the target movement distance and the target offset angle to simulate the change of the shooting angle includes:
[0025] Controlling the synchronous movement of the camera according to the target movement distance and the target offset angle so that the camera can capture video images and obtain video images to be played;
[0026] Get the preset video playback frame rate of the display terminal;
[0027] A video stream to be played is generated according to the preset video playback frame rate and the video image to be played, and the video stream to be played is pushed to the display terminal for shooting picture display to simulate the change of shooting angle of view.
[0028] Optionally, the step of controlling the synchronous movement of the camera according to the target movement distance and the target offset angle so that the camera captures video images and obtains the video images to be played includes:
[0029] The camera is controlled to move synchronously according to the target moving distance and the target offset angle, so that the camera collects video images at a preset sampling rate during the synchronous movement to obtain video images to be played.
[0030] In addition, to achieve the above-mentioned purpose, the present invention also proposes a device for simulating shooting angles, which includes a memory, a processor, and a program for simulating shooting angles stored in the memory and runnable on the processor, and the program for simulating shooting angles is configured to implement the steps of simulating shooting angles as described above.
[0031] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a program for simulating shooting angle is stored. When the program for simulating shooting angle is executed by a processor, the steps of the method for simulating shooting angle as described above are implemented.
[0032] In addition, to achieve the above-mentioned purpose, the present invention further provides a device for simulating a shooting angle of view, the device for simulating a shooting angle of view comprising:
[0033] The scale measurement module is used to collect the position change information of the laser beam reflected by the barrel on the preset scale during the movement of the firearm;
[0034] a data calculation module, configured to determine muzzle movement data of the firearm based on the position change information;
[0035] The shooting simulation module is used to control the synchronous movement of the camera according to the muzzle movement data to simulate the change of shooting angle of view.
[0036] The present invention collects position change information of a laser beam reflected by a gun barrel on a preset scale during the movement of the gun, determines the gun's muzzle movement data based on the position change information, and controls the synchronous movement of a camera based on the muzzle movement data to simulate changes in the shooting angle. Since the present invention determines the muzzle movement data by collecting position change information of a laser beam reflected by a gun barrel on a preset scale, thereby controlling the synchronous movement of a camera to simulate changes in the shooting angle, compared to the prior art of using a camera to shoot the shooter from a third-person perspective to display the hit situation after firing, due to the long shooting distance, the shooter's movements before firing are very small, and the audience cannot observe the shooter's subtle movements, resulting in a poor audience experience. The present invention realizes the display of the hit situation after firing by simulating the shooter's perspective, and accurately displays the shooter's subtle movements to the audience, thereby improving the audience experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 1 is a schematic structural diagram of a device for simulating shooting perspectives in a hardware operating environment according to an embodiment of the present invention;
[0038] Figure 2 This is a flow chart of a first embodiment of a method for simulating shooting angles according to the present invention;
[0039] Figure 3 This is a schematic diagram of the overall system architecture of the first embodiment of the method for simulating shooting perspectives of the present invention;
[0040] Figure 4 A schematic diagram of the camera structure of the first embodiment of the method for simulating shooting angle of view of the present invention;
[0041] Figure 5 This is a flow chart of a second embodiment of the method for simulating shooting angle of view according to the present invention;
[0042] Figure 6 A schematic diagram of the longitudinal distance of a muzzle according to a second embodiment of the method for simulating shooting angle of view of the present invention;
[0043] Figure 7 A schematic flow chart of a third embodiment of a method for simulating shooting angles of view according to the present invention;
[0044] Figure 8 A schematic diagram of camera movement distance calculation according to a third embodiment of the method for simulating shooting angle of view of the present invention;
[0045] Figure 9 A schematic diagram of the movement of the crosshair image in the third embodiment of the method for simulating shooting angle of view of the present invention;
[0046] Figure 10 This is a schematic diagram of the movement of the crosshair image in each frame according to the third embodiment of the method for simulating shooting angle of view of the present invention;
[0047] Figure 11 This is a structural block diagram of the first embodiment of the device for simulating shooting angle of view of the present invention.
[0048] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0050] Reference Figure 1 , Figure 1 This is a schematic diagram of the device structure for simulating shooting perspective in the hardware operating environment involved in the embodiment of the present invention.
[0051] like Figure 1 As shown, the device for simulating shooting perspectives may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen. Optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. In the present invention, the wired interface of the user interface 1003 may be a USB interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a wireless fidelity (Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (RAM) or a non-volatile memory (NVM), such as a disk storage device. The memory 1005 may also be a storage device independent of the processor 1001.
[0052] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the device for simulating shooting perspective, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0053] like Figure 1 As shown, the memory 1005 identified as a computer storage medium may include an operating system, a network communication module, a user interface module, and a program for simulating a shooting perspective.
[0054] exist Figure 1In the device for simulating shooting perspective shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the user device; the device for simulating shooting perspective calls the program for simulating shooting perspective stored in the memory 1005 through the processor 1001, and executes the method for simulating shooting perspective provided by the embodiment of the present invention.
[0055] Based on the above hardware structure, an embodiment of the method for simulating shooting perspective of the present invention is proposed.
[0056] Reference Figure 2 , Figure 2 1 is a flow chart of a first embodiment of a method for simulating shooting perspectives according to the present invention, and provides a first embodiment of a method for simulating shooting perspectives according to the present invention.
[0057] In this embodiment, the method for simulating shooting angle includes the following steps:
[0058] Step S10: During the movement of the firearm, the position change information of the laser beam reflected by the gun barrel on the preset scale is collected.
[0059] It should be noted that the method for simulating shooting angles in this embodiment can be implemented by a simulated shooting angle system. This simulated shooting angle system can primarily consist of a firearm (or firearm model) with a reflective coating on the barrel, a ruler and laser emitter mounted on the ground or wall, a computing device (such as a smartphone, tablet, or PC), and a camera equipped with a camera drive motor. For ease of description, this embodiment uses the aforementioned computing device as an example.
[0060] It should be understood that the above-mentioned ruler set on the ground or wall is used to collect the position information of the laser beam emitted by the laser emitter below or on the side of the firearm and reflected by the barrel. The change of the position information means that the position of the firearm is also changing.
[0061] It is understandable that the scale can be fixed in position according to the site requirements. Figure 3 Schematic diagram of the overall system architecture. When the shooter aims at the target and the gun barrel moves from position 1 to position 2, the laser emitter 3 installed under the gun emits a laser beam to the reflective layer (reflective coating). The laser beam reflected by the reflective layer moves from position 4 to position 5 on the scale.
[0062] In specific implementation, during the movement of the firearm, a pre-set scale collects the position information of the reflected laser beam at a preset sampling frequency, and integrates the position information into a position information set according to the sampling time interval corresponding to the preset sampling frequency, thereby calculating the position change information within the sampling time interval.
[0063] Furthermore, the preset scale includes a first scale positioned below the firearm and a second scale positioned to the side of the firearm. It should be noted that in this embodiment and the following embodiments, the preset scale and laser emitter do not necessarily need to be positioned directly opposite the firearm. For example, the first scale can be positioned directly below or to the side of the firearm. For ease of description, this example uses the position directly below as an example; the same applies to the second scale.
[0064] In order to accurately obtain the offset of the muzzle during movement, step S10 may include: during the movement of the firearm, collecting first position change information of the laser beam after being reflected by the barrel on the first scale and / or second position change information on the second scale; determining the position change information based on the first position change information and / or the second position change information.
[0065] It should be noted that the scale can measure the position changes of the reflected laser beam in real time. The reflective coating applied to the barrel is primarily intended to smooth the surface of the barrel, thereby better reflecting the laser beam for positioning. Because the coating is so light and thin, its weight is almost negligible, thus minimizing any impact on the shooter.
[0066] In a specific implementation, to accurately capture muzzle deflection during firing, a first scale is positioned below the firearm and a second scale is positioned on the side of the firearm. Position change information is determined by collecting first position change information using the first scale and second position change information using the second scale. The position change information includes a first set of position change information and a second set of position change information. The position change information can include change information where the physical displacement collected by the first and second scales during a sampling interval is zero, or it can include change information where the physical displacement of at least one scale collected by the first and second scales during a sampling interval is non-zero. For example: between two sampling times of the ruler (sampling interval T seconds), the physical displacements in the position change information collected by the first ruler and the position change information collected by the second ruler are both 0. Alternatively, the position collected by the first ruler changes from A1 to A2, and the physical displacement collected by the second ruler is 0. Alternatively, the physical displacement collected by the first ruler is 0, and the position collected by the second ruler changes from B1 to B2. Alternatively, the position collected by the first ruler changes from A1 to A2 and the position collected by the second ruler changes from B1 to B2. The above letters and numbers are only used as examples and are not actually limited. The position change information can include four types of position changes. In this embodiment, the position change types in the position change information are not limited.
[0067] Step S20: Determine muzzle movement data of the firearm according to the position change information.
[0068] It should be noted that muzzle movement data refers to the data of the firearm during movement, including the distance and direction of muzzle movement.
[0069] It can be understood that the first position change information on the first scale can be used to determine whether the muzzle of the firearm moves in the longitudinal direction, and the second position change information on the second scale can be used to determine whether the muzzle of the firearm moves in the lateral direction. By calculating the data of the longitudinal and lateral movements of the muzzle, accurate analysis of the muzzle movement data can be performed later.
[0070] Step S30: controlling the camera to move synchronously according to the muzzle movement data to simulate changes in shooting angle of view.
[0071] It should be noted that the muzzle movement data calculated from the first position change information and the second position change information is transmitted to the control module of the camera micro motor, and the micro motor drives the camera to move synchronously according to the muzzle movement data to simulate the change in the shooter's shooting angle.
[0072] It should be understood that the camera in this embodiment can be a high-speed camera specially used for sports games. Unlike ordinary cameras, a micro motor is installed under the camera in this embodiment to drive the camera to move synchronously according to the muzzle movement data. For details, please refer to Figure 4 Schematic diagram of the camera structure. The camera can be deflected 360° according to the muzzle movement data.
[0073] This embodiment collects information about the position change of the laser beam reflected by the barrel on a preset scale during the movement of the firearm, determines the muzzle movement data of the firearm based on the position change information, and controls the synchronous movement of the camera based on the muzzle movement data to simulate changes in the shooting perspective. Since the invention determines the muzzle movement data by collecting information about the position change of the laser beam reflected by the barrel on a preset scale, thereby controlling the synchronous movement of the camera to simulate changes in the shooting perspective, compared to the prior art of using a camera to shoot the shooter from a third-person perspective to display the hit status after firing, due to the long shooting distance, the shooter's movements before firing are very small, and the audience cannot observe the shooter's subtle movements, resulting in a poor audience experience. This embodiment realizes the display of the hit status after firing by simulating the shooter's perspective, and accurately displays the shooter's subtle movements to the audience, thereby improving the audience experience.
[0074] Reference Figure 5 , Figure 5 This is a flow chart of a second embodiment of the method for simulating shooting angle of view according to the present invention. Figure 2 The first embodiment shown is a second embodiment of the method for simulating shooting angle of view of the present invention.
[0075] In this embodiment, step S20 includes:
[0076] Step S201: obtaining an angle between a laser beam emitted by a preset laser emitter to the reflective coating and a corresponding reference direction.
[0077] It should be noted that a preset laser emitter is a pre-set laser emitter used to emit a laser beam. To avoid affecting the shooter's vision, the laser emitter's laser beam uses invisible light. The position and angle of the laser emitter are fixed across the field according to the actual situation to ensure that the laser emitter's beam accurately illuminates the coating near the muzzle and is reflected onto the scale.
[0078] It is understandable that the reference direction may be a direction used to calculate the angle of the laser beam emitted by the preset laser emitter, and this embodiment does not specifically limit the reference direction.
[0079] Step S202: determining muzzle movement data of the firearm according to the included angle, the first position change information, and the second position change information.
[0080] It should be noted that since the spatial position (emission angle and emission direction) of the laser emitter is fixed, the angle corresponding to each laser emitter is also a fixed value. When the first position change information is collected or the physical displacement corresponding to the first position change information is not zero, it indicates that the muzzle has been displaced in the longitudinal direction. At this time, the longitudinal movement distance of the muzzle can be calculated based on the above-mentioned angle and the first position change information using the calculation principle of trigonometric functions. Similarly, when the second position change information is collected or the physical displacement corresponding to the second position change information is not zero, it indicates that the muzzle has been displaced in the lateral direction. At this time, the lateral movement distance of the muzzle can be calculated based on the above-mentioned angle and the second position change information using the calculation principle of trigonometric functions. The muzzle movement data is then determined based on the longitudinal movement distance of the muzzle and the lateral movement distance of the muzzle.
[0081] In the specific implementation, the calculation of the longitudinal movement distance of the muzzle can refer to Figure 6 . Figure 6The straight line in the upper middle section is used to represent the position of the gun. When the muzzle moves upward from position 1 to position 2, the distance between position 1 and position 2 is recorded as h. In order to calculate the longitudinal movement distance of the muzzle, the value of h needs to be calculated and this change needs to be reflected on the camera screen. L1 and L2 are located at the ruler position, and the specific length can be measured by the ruler. L1 represents the length between the laser emitter and the position of the light beam reflected by the reflective coating collected by the ruler when the gun is in position 1; L2 represents the length between the laser emitter and the position of the light beam reflected by the reflective coating collected by the ruler when the gun is in position 2; fix the horizontal angle α between the emitted laser beam and the first reference direction, and use the tangent function to obtain:
[0082] H1=1 / 2*L1*tanα;
[0083] H2=1 / 2*L2*tanα;
[0084] h=1 / 2*(L2–L1)*tanα;
[0085] After calculating the h value, the camera moves upwards by a corresponding distance based on the h value, simulating the change in the shooter's perspective. In this embodiment, the observation and calculation method for the muzzle's lateral movement distance is similar to that for the longitudinal movement distance, and will not be repeated in this embodiment. By calculating the longitudinal and lateral movement distances of the muzzle, longitudinal and lateral movement data of the muzzle can be obtained, thereby determining the muzzle movement data.
[0086] Furthermore, in order to accurately calculate the shooter's muzzle movement data during the shooting process, the preset laser emitter includes a first laser emitter arranged below the firearm and a second laser emitter arranged on the side of the firearm, the reference direction includes a first reference direction and a second reference direction, and the step of determining the muzzle movement data of the firearm based on the angle, the first position change information, and the second position change information includes: obtaining a first angle between the laser beam emitted by the first laser emitter to the reflective coating and the first reference direction; obtaining a second angle between the laser beam emitted by the second laser emitter to the reflective coating and the second reference direction; determining the longitudinal movement data of the muzzle of the firearm based on the first angle and the first position change information; determining the lateral movement data of the muzzle of the firearm based on the second angle and the second position change information; and determining the muzzle movement data of the firearm based on the longitudinal muzzle movement data and the lateral muzzle movement data.
[0087] It should be noted that the first reference direction is used to calculate the angle between the laser beam emitted by the first laser emitter and the direction of the first scale; the second reference direction is used to calculate the angle between the laser beam emitted by the second laser emitter and the direction of the second scale.
[0088] It is understandable that the shooter's muzzle movement data during the shooting process is determined by acquiring the movement components of the muzzle in the longitudinal and transverse directions, and the muzzle movement data may include at least one of the longitudinal movement data and the transverse movement data.
[0089] This embodiment collects position change information of a laser beam reflected from a barrel on a preset scale during the movement of the firearm, thereby obtaining the angle between the laser beam emitted by a preset laser emitter and the corresponding reference direction. The embodiment then determines the firearm's muzzle movement data based on the angle, the first position change information, and the second position change information. The embodiment then controls the synchronous movement of a camera based on the muzzle movement data to simulate changes in the shooting perspective. Because this embodiment determines the firearm's muzzle movement data based on the angle between the emitted laser beam and the reference direction and the position change information, compared to the prior art method of using a camera to capture the shooter's post-fire results from a third-person perspective, where the shooter's pre-fire movements are minimal due to the long shooting distance, preventing the audience from observing the shooter's subtle movements and resulting in a poor viewing experience, this embodiment simulates the shooter's perspective to display the post-fire results to the audience, accurately displaying the shooter's subtle movements, and enhancing the audience's experience.
[0090] Reference Figure 7 , Figure 7 This is a flow chart of a third embodiment of the method for simulating shooting angle of view according to the present invention. Figure 5 The second embodiment shown provides a third embodiment of the method for simulating shooting angle of view of the present invention.
[0091] In this embodiment, step S30 includes:
[0092] Step S301: Calculating the target movement distance and target offset angle of the camera according to the muzzle longitudinal movement data and the muzzle lateral movement data.
[0093] It should be noted that the target movement distance refers to the straight-line distance when the camera control module drives the camera micro motor to move synchronously according to the muzzle movement data, and the target offset angle refers to the camera control module drives the camera micro motor to move the camera lens synchronously to the target direction according to the muzzle movement data.
[0094] In the specific implementation, for further explanation, you can refer to Figure 8 Schematic diagram of camera movement distance calculation: After calculating the muzzle longitudinal movement distance h1 and the muzzle lateral movement distance h2 (h1 and h2 are both vectors), the camera's target movement distance H is calculated based on h1 and h2. The offset angle α can be calculated using the inverse tangent function; the absolute value of H is calculated using the Pythagorean theorem:
[0095] α=arctan(h1 / h2)
[0096]
[0097] Step S302: controlling the camera to move synchronously according to the target moving distance and the target offset angle to simulate the change of shooting angle of view.
[0098] In a specific implementation, the offset angle α and H are sent to the camera control module, and the motor is driven to control the camera to adjust the shooting angle.
[0099] Furthermore, in order to have a better visual presentation of shooting, the step of controlling the synchronous movement of the camera according to the target moving distance and the target offset angle to simulate the change of shooting angle includes: controlling the synchronous movement of the camera according to the target moving distance and the target offset angle so that the camera performs video image acquisition and obtains the video image to be played; obtaining the preset video playback frame rate of the display terminal; generating a video stream to be played according to the preset video playback frame rate and the video image to be played, and pushing the video stream to be played to the display terminal for shooting screen display to simulate the change of shooting angle.
[0100] It should be noted that the synchronous movement of the camera is controlled based on the target movement distance and the target offset angle, so that the camera captures video images at a preset sampling rate during the synchronous movement to obtain video images to be played; the video images may be muzzle images of a firearm during movement. The preset sampling rate refers to the preset sampling rate (times / second) at which the camera captures muzzle images of a firearm during movement.
[0101] It is understandable that the preset video playback rate refers to the video playback frame rate (frames / second) corresponding to the display terminal that plays the video.
[0102] In the specific implementation, in order to allow the audience to feel the slight shaking of the muzzle in the shooter's perspective during the TV broadcast and see the vibration at the moment of firing, the crosshair image is displayed in real time on the TV broadcast screen, and the position of the crosshair in the screen is adjusted in real time according to the measured and calculated target movement distance H. For details, please refer to Figure 9 Schematic diagram of the crosshair image movement. The crosshair image in the figure moves from position 1 to position 2, requiring a smooth transition to achieve a better animation effect. The presentation of this animation effect is related to the preset sampling rate T (times / second), the preset video playback frame rate F (frames / second), and the target movement distance (actual muzzle displacement) H (meters). By capturing muzzle images between two sampling intervals, each video refresh requires the crosshair image to be moved a certain distance δh in the direction of displacement H:
[0103] δh=(H*T) / F
[0104] For details, please refer to Figure 10 , Figure 10 This is a diagram of the movement of the crosshairs per frame, which is a diagram of the movement δh per frame. The accumulated δh is the actual muzzle displacement H. The sampling calculation is continuous, and the animation is played continuously, giving the audience an immersive experience.
[0105] This embodiment collects position change information of a laser beam reflected by a gun barrel on a preset scale during the movement of the gun, determines muzzle longitudinal movement data and muzzle lateral movement data based on the position change information, calculates the target movement distance and target offset angle of the camera based on the muzzle longitudinal movement data and the muzzle lateral movement data, and controls the synchronous movement of the camera based on the target movement distance and the target offset angle to simulate changes in shooting angle of view. Since the invention determines the longitudinal movement data and the lateral movement data of the muzzle by collecting the position change information of the laser beam after being reflected by the barrel on a preset scale, and determines the target movement distance and the target offset angle of the camera based on the longitudinal movement data and the lateral movement data of the muzzle, the camera is controlled to move synchronously according to the target movement distance and the target offset angle to simulate the change of the shooting perspective, compared with the existing technology of using a camera to shoot the shooter from a third-person perspective to display the hit situation after firing, due to the long shooting distance, the shooter's movement amplitude before shooting is very small, and the audience cannot observe the shooter's subtle movements, resulting in a poor audience experience. This embodiment realizes the display of the hit situation after firing to the audience by simulating the shooter's perspective, and accurately displays the shooter's subtle movements to the audience, thereby improving the audience experience.
[0106] In addition, to achieve the above-mentioned purpose, the present invention also proposes a device for simulating shooting angles, which includes a memory, a processor, and a program for simulating shooting angles stored in the memory and runnable on the processor, and the program for simulating shooting angles is configured to implement the steps of simulating shooting angles as described above.
[0107] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a program for simulating shooting angle is stored. When the program for simulating shooting angle is executed by a processor, the steps of the method for simulating shooting angle as described above are implemented.
[0108] Reference Figure 11 , Figure 11 This is a structural block diagram of the first embodiment of the device for simulating shooting angle of view of the present invention.
[0109] like Figure 11 As shown, the device for simulating shooting angle of view proposed in an embodiment of the present invention includes:
[0110] The scale measurement module 10 is used to collect the position change information of the laser beam reflected by the barrel on the preset scale during the movement of the firearm;
[0111] a data calculation module 20, configured to determine muzzle movement data of the firearm based on the position change information;
[0112] The shooting simulation module 30 is used to control the synchronous movement of the camera according to the muzzle movement data to simulate the change of shooting angle.
[0113] This embodiment collects information about the position change of the laser beam reflected by the barrel on a preset scale during the movement of the firearm, determines the muzzle movement data of the firearm based on the position change information, and controls the synchronous movement of the camera based on the muzzle movement data to simulate changes in the shooting perspective. Since the invention determines the muzzle movement data by collecting information about the position change of the laser beam reflected by the barrel on a preset scale, thereby controlling the synchronous movement of the camera to simulate changes in the shooting perspective, compared to the prior art of using a camera to shoot the shooter from a third-person perspective to display the hit status after firing, due to the long shooting distance, the shooter's movements before firing are very small, and the audience cannot observe the shooter's subtle movements, resulting in a poor audience experience. This embodiment realizes the display of the hit status after firing by simulating the shooter's perspective, and accurately displays the shooter's subtle movements to the audience, thereby improving the audience experience.
[0114] Furthermore, the scale measurement module 10 is also used to collect first position change information of the laser beam after being reflected by the barrel on the first scale and / or second position change information on the second scale during the movement of the firearm; and determine the position change information based on the first position change information and / or the second position change information.
[0115] Furthermore, the data calculation module 20 is also used to obtain the angle between the laser beam emitted by the preset laser emitter to the reflective coating and the corresponding reference direction; and determine the muzzle movement data of the firearm based on the angle, the first position change information, and the second position change information.
[0116] Furthermore, the data calculation module 20 is also used to obtain a first angle between the laser beam emitted by the first laser emitter to the reflective coating and the first reference direction; obtain a second angle between the laser beam emitted by the second laser emitter to the reflective coating and the second reference direction; determine the longitudinal movement data of the muzzle of the firearm based on the first angle and the first position change information; determine the lateral movement data of the muzzle of the firearm based on the second angle and the second position change information; determine the muzzle movement data of the firearm based on the longitudinal movement data of the muzzle and the lateral movement data of the muzzle.
[0117] Furthermore, the shooting simulation module 30 is also used to calculate the target movement distance and target offset angle of the camera based on the longitudinal movement data of the muzzle and the lateral movement data of the muzzle; and control the synchronous movement of the camera based on the target movement distance and the target offset angle to simulate the change of shooting angle.
[0118] Furthermore, the shooting simulation module 30 is also used to control the synchronous movement of the camera according to the target movement distance and the target offset angle, so that the camera can capture video images and obtain the video image to be played; obtain the preset video playback frame rate of the display terminal; generate the video stream to be played according to the preset video playback frame rate and the video image to be played, and push the video stream to be played to the display terminal for shooting screen display to simulate the change of shooting perspective.
[0119] Furthermore, the shooting simulation module 30 is also used to control the synchronous movement of the camera according to the target movement distance and the target offset angle, so that the camera collects video images at a preset sampling rate during the synchronous movement to obtain video images to be played.
[0120] It should be understood that the above is only an example and does not constitute any limitation to the technical solution of the present invention. In specific applications, those skilled in the art can make settings as needed, and the present invention does not impose any limitation on this.
[0121] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of it according to actual needs to achieve the purpose of the embodiment scheme, and no limitation is made here.
[0122] In addition, for technical details not fully described in this embodiment, please refer to the method for simulating shooting perspective provided in any embodiment of the present invention, and will not be repeated here.
[0123] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.
[0124] The serial numbers of the embodiments of the present invention are for descriptive purposes only and do not represent superiority or inferiority of the embodiments. In a unit claim that enumerates several means, several of these means may be embodied by the same item of hardware. The use of the terms first, second, and third, etc., does not denote any order; these terms should be interpreted as designations.
[0125] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus the necessary general hardware platform, or of course by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory image (ROM) / random access memory (RAM), a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0126] The above are only preferred embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for simulating shooting angle, characterized in that: The method for simulating shooting angle of view comprises the following steps: During the movement of the firearm, the position change information of the laser beam reflected by the barrel on the preset scale is collected; determining muzzle movement data of the firearm according to the position change information; Controlling the synchronous movement of the camera according to the muzzle movement data to simulate the change of shooting angle; The preset scale includes a first scale provided below the firearm and a second scale provided on the side of the firearm; a reflective coating is provided on the gun barrel; The step of collecting position change information of the laser beam reflected by the barrel on a preset scale during the movement of the firearm includes: During the movement of the firearm, first position change information of the laser beam reflected by the gun barrel on the first scale and / or second position change information on the second scale are collected; determining position change information according to the first position change information and / or the second position change information; The step of determining the muzzle movement data of the firearm according to the position change information includes: Obtaining an angle between a laser beam emitted by a preset laser emitter to the reflective coating and a corresponding reference direction; Muzzle movement data of the firearm is determined according to the included angle, the first position change information, and the second position change information.
2. The method for simulating shooting angle of view according to claim 1, wherein: The preset laser emitter includes a first laser emitter disposed below the firearm and a second laser emitter disposed on the side of the firearm. The reference direction includes a first reference direction and a second reference direction. The step of determining the muzzle movement data of the firearm based on the included angle, the first position change information, and the second position change information includes: Obtaining a first angle between a laser beam emitted by a first laser emitter to the reflective coating and the first reference direction; Obtaining a second angle between a laser beam emitted by a second laser emitter to the reflective coating and the second reference direction; Determining the longitudinal movement data of the muzzle of the firearm according to the first included angle and the first position change information; Determining muzzle lateral movement data of the firearm according to the second included angle and the second position change information; The muzzle movement data of the firearm is determined according to the muzzle longitudinal movement data and the muzzle lateral movement data.
3. The method for simulating shooting angle of view according to claim 2, wherein: The step of controlling the camera to move synchronously according to the muzzle movement data to simulate the change of shooting angle includes: Calculating the target movement distance and target offset angle of the camera according to the muzzle longitudinal movement data and the muzzle lateral movement data; The camera is controlled to move synchronously according to the target moving distance and the target offset angle to simulate the change of shooting angle of view.
4. The method for simulating shooting angle of view according to claim 3, wherein: The step of controlling the synchronous movement of the camera according to the target movement distance and the target offset angle to simulate the change of the shooting angle includes: Controlling the synchronous movement of the camera according to the target movement distance and the target offset angle so that the camera can capture video images and obtain video images to be played; Get the preset video playback frame rate of the display terminal; A video stream to be played is generated according to the preset video playback frame rate and the video image to be played, and the video stream to be played is pushed to the display terminal for shooting picture display to simulate the change of shooting angle of view.
5. The method for simulating shooting angle of view according to claim 4, wherein: The step of controlling the synchronous movement of the camera according to the target movement distance and the target offset angle so that the camera captures video images and obtains the video images to be played includes: The camera is controlled to move synchronously according to the target moving distance and the target offset angle, so that the camera collects video images at a preset sampling rate during the synchronous movement to obtain video images to be played.
6. A device for simulating shooting angle, characterized in that: The device for simulating shooting perspective includes: a memory, a processor, and a program for simulating shooting perspective stored in the memory and executable on the processor. When the program for simulating shooting perspective is executed by the processor, the steps of the method for simulating shooting perspective as described in any one of claims 1 to 5 are implemented.
7. A storage medium, characterized in that: The storage medium stores a program for simulating shooting angle of view, and when the program for simulating shooting angle of view is executed by a processor, the steps of the method for simulating shooting angle of view as claimed in any one of claims 1 to 5 are implemented.
8. A device for simulating shooting angle, characterized in that: The device for simulating shooting angle of view comprises: The scale measurement module is used to collect the position change information of the laser beam reflected by the barrel on the preset scale during the movement of the firearm; a data calculation module, configured to determine muzzle movement data of the firearm based on the position change information; a shooting simulation module, for controlling the synchronous movement of the camera according to the muzzle movement data to simulate the change of shooting angle; The preset scale includes a first scale provided below the firearm and a second scale provided on the side of the firearm; a reflective coating is provided on the gun barrel; The scale measurement module is further configured to collect first position change information on the first scale and / or second position change information on the second scale of the laser beam after being reflected by the barrel during movement of the firearm; and determine position change information based on the first position change information and / or the second position change information; The data calculation module is also used to obtain the angle between the laser beam emitted by a preset laser emitter to the reflective coating and the corresponding reference direction; and determine the muzzle movement data of the firearm based on the angle, the first position change information, and the second position change information.
Citation Information
Patent Citations
Live broadcast picture generation method, system and device for shooting competition and electronic equipment
CN114007136A