WO2024066077A1 - Calibration method and apparatus for target shooting device, and target shooting device - Google Patents

Calibration method and apparatus for target shooting device, and target shooting device Download PDF

Info

Publication number
WO2024066077A1
WO2024066077A1 PCT/CN2022/139719 CN2022139719W WO2024066077A1 WO 2024066077 A1 WO2024066077 A1 WO 2024066077A1 CN 2022139719 W CN2022139719 W CN 2022139719W WO 2024066077 A1 WO2024066077 A1 WO 2024066077A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
image
shooting
aiming
pixel deviation
Prior art date
Application number
PCT/CN2022/139719
Other languages
French (fr)
Chinese (zh)
Inventor
王付州
侯涛
江世盛
Original Assignee
汉王科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 汉王科技股份有限公司 filed Critical 汉王科技股份有限公司
Publication of WO2024066077A1 publication Critical patent/WO2024066077A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/08Measuring arrangements characterised by the use of optical techniques for measuring diameters
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F41WEAPONS
    • F41GWEAPON SIGHTS; AIMING
    • F41G1/00Sighting devices
    • F41G1/02Foresights
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F41WEAPONS
    • F41GWEAPON SIGHTS; AIMING
    • F41G1/00Sighting devices
    • F41G1/06Rearsights
    • F41G1/08Rearsights with aperture ; tubular or of ring form; Peep sights
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F41WEAPONS
    • F41GWEAPON SIGHTS; AIMING
    • F41G1/00Sighting devices
    • F41G1/46Sighting devices for particular applications

Definitions

  • the present application relates to the technical field of target shooting equipment, and in particular to a calibration method and device for target shooting equipment, a target shooting equipment, an electronic device and a computer-readable storage medium.
  • the basic principle of obtaining the shooting score based on the image processing of the target is to use the center point of the target surface image collected by the shooting equipment as the shooting hit point, compare the deviation between the shooting hit point and the center point of the target surface image, and determine the shooting score (such as the number of hits).
  • This method of using the image center point of the target image as the shooting center point in the prior art cannot accurately reflect the shooting accuracy of the shooter.
  • the technical problem to be solved by the present application is to solve the problem that the method in the related art using the image center point of the target image as the shooting center point cannot accurately reflect the shooting accuracy of the shooter.
  • the embodiment of the present application provides a calibration method for a target shooting device, which helps to improve the accuracy of determining the shooting center point of the target shooting device.
  • an embodiment of the present application provides a method for calibrating a target shooting device, comprising:
  • a target shooting device provided with an image acquisition device, wherein the irradiation direction of a light beam emitted by a light beam emitting device configured for calibrating the target shooting device points to the image acquisition field of view of the image acquisition device, and the calibration method comprises:
  • the target image includes: a target surface image and a light spot image formed by the light beam directly irradiating the target surface;
  • a mapping relationship between the preset direction aiming pixel deviation in each of the target images and the radius of the corresponding target surface image is obtained by fitting;
  • a target aiming pixel deviation is obtained for calibrating the image center point of the target image acquired by the target shooting device at different target shooting distances.
  • an embodiment of the present application provides a calibration device for a target shooting device, comprising:
  • a target shooting device provided with an image acquisition device, wherein the irradiation direction of the light beam emitted by the light beam emitting device configured for calibrating the target shooting device points to the image acquisition field of view of the image acquisition device, and the calibration device comprises:
  • a target image acquisition module used to acquire a plurality of target images corresponding to when the target is located at different target shooting distances, acquired by the image acquisition device, wherein the target image includes: a target surface image and a light spot image formed by the light beam directly incident on the target surface;
  • An aiming pixel deviation acquisition module used for acquiring an aiming pixel deviation in a preset direction corresponding to each target image according to the light spot image and the target image in each target image;
  • a mapping relationship acquisition module used for fitting the mapping relationship between the preset direction aiming pixel deviation in each target image and the corresponding radius of the target surface image based on the preset direction aiming pixel deviation corresponding to each target image and the corresponding radius of the target surface image;
  • the calibration deviation acquisition module is used to obtain the target aiming pixel deviation for calibrating the image center point of the target image collected by the shooting device at different shooting distances according to the mapping relationship.
  • an embodiment of the present application provides a target shooting device, including:
  • a front sight arranged at the front end of the target shooting device
  • a rear sight is arranged at the rear end of the target shooting device; the rear sight and the front sight form a sighting baseline of the target shooting device along the shooting outlet direction of the target shooting device;
  • a shooting trigger device arranged on the target shooting device
  • An image acquisition device is provided on the target shooting device and is used to acquire a target image of a target provided at a set distance in front of the target shooting device when the shooting trigger device is triggered;
  • a controller is used to calibrate the image center point of the target image according to the radius of the target surface image in the target image and a preset target aiming pixel deviation corresponding to the radius for calibrating the image center point of the target image, and use the calibrated point as the shooting center point of the targeting device so that the shooting line of the targeting device coincides with the aiming baseline of the targeting device.
  • an embodiment of the present application further discloses an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the calibration method for the target shooting device described in the embodiment of the present application when executing the computer program.
  • an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of the calibration method for a target shooting device disclosed in an embodiment of the present application.
  • the calibration method of a target shooting device disclosed in an embodiment of the present application is applied to a target shooting device based on image acquisition, wherein a light beam emitting device configured for calibrating the target shooting device is used so that the irradiation direction of the light beam emitted by the light beam emitting device points to the image acquisition field of view of the image acquisition device, and then a plurality of target images corresponding to a target at different target shooting distances acquired by the image acquisition device are acquired, wherein the target image includes: a target surface image and a light spot image formed by the light beam directly irradiating on the target surface of the target; according to the light spot image and the target image in each of the target images, a preset direction aiming pixel deviation corresponding to each of the target images is acquired; based on the preset direction aiming pixel deviation corresponding to each of the target images and the radius of the corresponding target surface image, a mapping relationship between the preset direction aiming pixel deviation in each of the target images and the radius of the corresponding target surface image is
  • FIG1 is a flow chart of a calibration method for a target shooting device according to an embodiment of the present application
  • FIG2 is a schematic diagram of the structure of a target shooting device in one embodiment of the present application.
  • FIG3 is a schematic diagram of the structure of another target shooting device in one embodiment of the present application.
  • FIG4 is a schematic diagram of a target image collected by a shooting device in one embodiment of the present application.
  • FIG5 is a schematic diagram of a calibration principle in one embodiment of the present application.
  • FIG6 is another flow chart of a calibration method for a target shooting device according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a calibration device for a target shooting device according to an embodiment of the present application.
  • FIG8 is a second structural schematic diagram of a calibration device for a target shooting device according to an embodiment of the present application.
  • FIG9 is a schematic diagram of the structure of another target shooting device in one embodiment of the present application.
  • FIG10 schematically shows a block diagram of an electronic device for executing the method according to the present application
  • FIG. 11 schematically shows a storage unit for holding or carrying a program code for implementing the method according to the present application.
  • FIG1 A calibration method for a target shooting device disclosed in an embodiment of the present application is shown in FIG1 .
  • the method includes steps 110 to 140 .
  • Step 110 obtaining a plurality of target images corresponding to when the target is located at different shooting distances, which are acquired by the image acquisition device, wherein the target image includes: a target surface image and a light spot image formed when the light beam is directly incident on the target surface of the target.
  • the calibration method for a target shooting device described in an embodiment of the present application is applied to a target shooting device provided with an image acquisition device, wherein the irradiation direction of a light beam emitted by a light beam emitting device configured for calibrating the target shooting device points to the image acquisition field of view of the image acquisition device.
  • the target shooting device described in the embodiment of the present application may be a target shooting gun, a target shooting game machine, a target shooting crossbow, etc.
  • the target shooting device 200 includes: a front sight 201, a rear sight 202, a shooting trigger device 203, and an image acquisition device 204.
  • the front sight 201, the rear sight 202, the shooting trigger device 203, and the image acquisition device 204 shown in FIG2 are for illustration only.
  • the following are examples of the equipment position, function and structure of each component of the target shooting equipment.
  • the front sight 201 is arranged at the front end of the target shooting device 200 ; the rear sight 202 is arranged at the rear end of the target shooting device 200 ; the rear sight 202 and the front sight 201 form the aiming baseline of the target shooting device 200 along the shooting outlet direction of the target shooting device 200 .
  • the shooting trigger device 203 is arranged on the target shooting device 200. Taking the target shooting device as a target shooting gun as an example, the shooting trigger device 203 is a trigger structure, and the shooting trigger device 203 is arranged below the gun body of the target shooting device 200.
  • the image acquisition device 204 is provided on the target shooting device, and is used to acquire a target image of a target set at a set distance in front of the target shooting device 200 when the shooting trigger device 203 is triggered.
  • the image acquisition device 204 can be provided inside the body of the target shooting device 200, such as fixedly provided on the barrel of the target shooting gun, or detachably provided under the barrel of the target shooting gun.
  • the image acquisition device 204 is integrally arranged with the target shooting device 200, and is used to acquire the field of view image of the aiming direction of the target shooting device 200.
  • the image of the target set in front of the target shooting device 200 is acquired.
  • the image acquisition device 204 can be a camera set in the barrel of the target shooting gun.
  • the image acquisition device 204 can also be set on one side of the target shooting device 200, such as being set below the shooting body of the target shooting device in a fixed or detachable structure, or being set at other positions that do not affect the aiming and are not blocked along the aiming direction.
  • the shooting body of the target shooting device 200 is a device body including a shooting outlet.
  • the image acquisition device 204 can be set in the shooting body, or fixed to the outside of the shooting body in a detachable and detachable manner.
  • a light beam emitting device configured for calibrating the target shooting device 200 is also required.
  • the light beam emitting device may be a laser emitter, or other independent device that can emit a concentrated light beam.
  • the light beam emitting device is a device for calibrating the target shooting device.
  • the target shooting device 200 further includes: a light beam emitting device 205 configured for calibrating the target shooting device 200, and the light beam emitting device can be detachably connected to the target shooting device or fixedly arranged on the target shooting device.
  • the light beam emitting device 205 is arranged at the rear end of the targeting device 200; the rear sight 202, the front sight 201, and the light beam emitting device 205 form a straight line along the shooting outlet direction of the targeting device 200, that is, the aiming baseline.
  • the target shooting equipment when using the target shooting equipment, can be first calibrated using the light beam emitting device, so that a more accurate shooting center point can be obtained during the target shooting process.
  • the light beam emitting device 205 emits a focused light beam to the shooting field of view of the image acquisition device 204.
  • the laser emitted by the light beam emitting device 205 will irradiate the target surface of the target and project a light spot, i.e., a light spot, on the target surface.
  • the image acquisition device 204 acquires the target image of the target.
  • the target image 400 acquired by the image acquisition device 204 will include: a target surface image 401 and a light spot image 402.
  • the target shooting device 200 in order to calibrate the target shooting device 200, as shown in FIG5, it is first necessary to collect several target images corresponding to the target at different target shooting distances.
  • the target image collection scene shown in FIG5 as an example, when the target is set at the first target shooting distance in front of the target shooting device 200, the target shooting device 200 is used to shoot at the target, and several target images corresponding to the first target shooting distance are collected; when the target is set at the second target shooting distance in front of the target shooting device 200, the target shooting device 200 is used to shoot at the target, and several target images corresponding to the second target shooting distance are collected; when the target is set at the third target shooting distance in front of the target shooting device 200, the target shooting device 200 is used to shoot at the target, and several target images corresponding to the third target shooting distance are collected.
  • the target is set at different target shooting distances in front of the target shooting device 200, and the image acquisition device 204 collects target images at different target shooting distances.
  • several different target shooting distances can be selected, such as 3 or more target shooting distances.
  • Step 120 obtaining the preset direction aiming pixel deviation corresponding to each target image according to the light spot image and the target image in each target image.
  • the preset direction aiming pixel deviation corresponding to each target image includes: the pixel deviation between the image center point of the light spot image in the corresponding target image and the image center point of the target image along the first direction, and the pixel deviation between the image center point of the light spot image in the corresponding target image and the image center point of the target image along the second direction.
  • the pixel deviation includes: two factors: size and direction.
  • the first direction is perpendicular to the second direction.
  • each of the above-mentioned target images collected includes: a target surface image and a light spot image.
  • the position of the target surface image in the target image is not completely the same, and there will be deviations; in each target image, the position of the light spot image in the target image is not completely the same, and there will be deviations.
  • more abundant sample images can be collected to learn the preset direction aiming pixel deviation corresponding to each of the target images collected by the shooting device based on the collected sample images.
  • the step of obtaining the preset direction aiming pixel deviation corresponding to each target image according to the light spot image and the target image in each target image includes: for each target image, according to the pixel deviation of the image center point of the target image relative to the image center point of the light spot image along the preset direction, determining the preset direction aiming pixel deviation corresponding to each target image at different target shooting distances.
  • the preset direction includes: a first direction, and a second direction perpendicular to the first direction.
  • the image center point of the target image is marked as 403, and the image center point of the light spot image 402 is marked as 4021.
  • the image center point 403 of the target image has pixel deviations in both the horizontal and vertical directions relative to the image center point 4021 of the light spot image 402.
  • the horizontal direction can be taken as the first direction
  • the horizontal right direction is the positive deviation
  • the horizontal left direction is the negative deviation
  • the pixel deviation of the image center point of each target image relative to the image center point of the light spot image in the target image along the horizontal direction i.e., the first direction
  • the vertical direction can be taken as the second direction
  • the vertical upward direction is the positive deviation
  • the vertical downward direction is the negative deviation
  • the pixel deviation of the image center point of each target image relative to the image center point of the light spot image in the target image along the vertical direction (i.e., the second direction) can be recorded.
  • the image center point of the target image is: the image pixel point determined by the W/2th image pixel in the width direction and the H/2th image pixel in the height direction in the target image. If the upper left corner of the target image is taken as the coordinate origin, the image center point of the target image can be expressed as (W/2, H/2).
  • the pixel deviation is x1, and at this time, x1 is greater than 0; when the image center point c1 of the target image is at an image position x2 pixels to the left of the light spot image in the horizontal direction, the pixel deviation is x2, and at this time, x2 is less than 0.
  • the pixel deviation is y1, and at this time, y1 is greater than 0; when the image center point c1 of the target image is at an image position y2 pixels downward in the vertical direction of the light spot image, the pixel deviation is y2, and at this time, y2 is less than 0.
  • the pixel deviation along the first direction is represented as dx
  • the pixel deviation along the second direction is represented as dy
  • the pixel deviation along the first direction (i.e., horizontal direction) corresponding to the target image is dx, dx>0
  • the pixel deviation along the second direction i.e., vertical direction
  • the pixel deviations along the first direction corresponding to each of the plurality of target images can be obtained, and the pixel deviations along the second direction corresponding to each of the plurality of target images can be obtained.
  • the aiming baseline 501 is a straight line formed by the rear sight and the front sight, and the human eye aims along the aiming baseline formed by the rear sight and the front sight;
  • the shooting line 502 is the ray of the center line of the image acquisition device along the exit direction of the image acquisition device.
  • the aiming baseline 501 and the shooting line 502 are often neither parallel nor overlapped, and there are deviations in different directions between the two, that is, the aiming pixel deviation described in the embodiment of the present application.
  • the pixel deviations along the first direction and the second direction corresponding to the aforementioned target image are, respectively, the aiming pixel deviations along the first direction and the second direction corresponding to the target image.
  • the aiming pixel deviations along the first direction corresponding to each of the several target images and obtaining the aiming pixel deviations along the second direction corresponding to each of the several target images can be obtained.
  • the radius of the target surface image in each of the above target images can be obtained by image measurement, such as the radius of the circular target surface image in Figure 4.
  • image measurement such as the radius of the circular target surface image in Figure 4.
  • the target surface image area is identified based on image processing techniques such as edge detection, and then the target surface radius is determined based on plane image measurement technology.
  • the specific implementation method for obtaining the radius of the target surface image is not limited in the embodiments of the present application.
  • the radius of the target surface image in the target image of the same target collected by the targeting device is different due to the different targeting distances of the specific targeting device.
  • the smaller the targeting distance the larger the radius of the target surface image in the target image collected by the targeting device; conversely, the larger the targeting distance, the smaller the radius of the target surface image in the target image collected by the targeting device. That is, the radius of the target surface image in the target image collected by the targeting device corresponds to the targeting distance.
  • the radius of the target surface image in each target image, the corresponding aiming pixel deviation along the first direction, and the aiming pixel deviation along the second direction essentially reflect the aiming pixel deviation along the first direction, and the aiming pixel deviation along the second direction, corresponding to the targeting distance corresponding to each target image.
  • Step 130 based on the preset direction aiming pixel deviation corresponding to each of the target images and the radius of the corresponding target surface image, a mapping relationship between the preset direction aiming pixel deviation in each of the target images and the radius of the corresponding target surface image is fitted.
  • the mapping relationship between the aiming pixel deviation in the first direction and the radius of the target surface image in the target image collected by the targeting device is fitted, and, based on the aiming pixel deviation along the second direction corresponding to the radius of the target surface image of each target image obtained in the aforementioned steps, the mapping relationship between the aiming pixel deviation in the second direction and the radius of the target surface image in the target image collected by the targeting device is fitted.
  • a mapping relationship between the preset direction aiming pixel deviation in each of the target images and the radius of the corresponding target surface image is fitted, including: for each of the target images, taking the radius of the target surface image corresponding to each of the target images as an independent variable, taking the preset direction aiming pixel deviation corresponding to the corresponding target image as a dependent variable, and using a linear function to fit the mapping relationship between the preset direction aiming pixel deviation in the target image collected by the shooting device and the radius of the target surface image.
  • the preset direction includes: a first direction, and a second direction perpendicular to the first direction. Accordingly, according to the aiming pixel deviations along different directions corresponding to the radius of the target surface image, the mapping relationship between the aiming pixel deviations in the corresponding directions and the radius of the target surface image can be obtained respectively.
  • the radius of the target surface image corresponding to each of the target images is taken as the independent variable
  • the preset direction aiming pixel deviation corresponding to the corresponding target image is taken as the dependent variable
  • a linear function is used to fit the mapping relationship between the preset direction aiming pixel deviation in the target image collected by the targeting device and the radius of the target surface image, including: taking the radius of the target surface image corresponding to each of the target images as the independent variable, taking the first direction aiming pixel deviation corresponding to the corresponding target image as the dependent variable, and using a linear function to fit the mapping relationship between the first direction aiming pixel deviation in the target image collected by the targeting device and the radius of the target surface image; and taking the radius of the target surface image corresponding to each of the target images as the independent variable, taking the second direction aiming pixel deviation corresponding to the corresponding target image as the dependent variable, and using a linear function to fit the mapping relationship between the second direction aiming pixel deviation in the target image collected by the targeting device and the radius of
  • the independent variable of the linear function is R
  • the dependent variable is y H . That is, for each target image, the radius R of the target surface image in the target image is taken as the independent variable, and the horizontal direction aiming pixel deviation corresponding to the target image is taken as the dependent variable y H , and several linear functions are constructed.
  • the independent variable of the linear function is R
  • the dependent variable is y V . That is, for each target image, the radius R of the target surface image in the target image is taken as the independent variable, and the vertical aiming pixel deviation corresponding to the target image is taken as the dependent variable y V , and several linear functions are constructed.
  • Step 140 According to the mapping relationship, a target aiming pixel deviation for calibrating the image center point of the target image acquired by the target shooting device at different target shooting distances is obtained.
  • the mapping relationship between the preset direction aiming pixel deviation in the target image and the corresponding radius of the target surface image can be used as the mapping relationship between the preset direction aiming pixel deviation and different target shooting distances. That is, for a known target shooting distance, the radius of the target surface image in the collected target image is known, and according to the mapping relationship determined in the above steps, the aiming pixel deviation corresponding to the first direction and the aiming pixel deviation corresponding to the second direction can be determined respectively.
  • the aiming pixel deviation corresponding to the determined first direction is the target aiming pixel deviation of the first direction for calibrating the image center point of the target image collected by the target shooting device based on the target shooting distance;
  • the aiming pixel deviation corresponding to the determined second direction is the target aiming pixel deviation of the second direction for calibrating the image center point of the target image collected by the target shooting device based on the target shooting distance.
  • the method further includes: steps 150 to 170 .
  • Step 150 obtaining the radius of the target surface image in the target image captured by the image acquisition device when the shooting trigger device of the target shooting equipment is triggered.
  • the target aiming pixel deviation calibrated by the target image center point of the target image collected by the target shooting device at different target shooting distances can be obtained. For example, when the target shooting device is shooting at a set target shooting distance, the target shooting device will collect a target image corresponding to the target shooting distance. According to the method described above, the radius R of the target surface image in the collected target image can be further determined.
  • Step 160 Obtaining a target aiming pixel deviation for calibrating an image center point of the target image according to the radius.
  • the corresponding target aiming pixel deviation is obtained according to the mapping relationship.
  • Step 170 respectively superimposing the corresponding target aiming pixel deviation on the pixel coordinates of each preset direction corresponding to the image center point of the target image as the shooting center point of the targeting device, so that the shooting line of the targeting device coincides with the aiming baseline of the targeting device.
  • the pixel coordinates of the image center point of the target image corresponding to the first direction are superimposed with the target aiming pixel deviation yH along the first direction
  • the pixel coordinates of the image center point of the target image corresponding to the second direction are superimposed with the target aiming pixel deviation yV along the second direction.
  • the pixel point in the target image corresponding to the obtained pixel coordinates can be used as the shooting center point of the target shooting device this time.
  • the calibration method of a target shooting device disclosed in an embodiment of the present application is applied to a target shooting device based on image acquisition, wherein a light beam emitting device configured for calibrating the target shooting device is used so that the irradiation direction of the light beam emitted by the light beam emitting device points to the image acquisition field of view of the image acquisition device, and then a plurality of target images corresponding to a target at different target shooting distances acquired by the image acquisition device are acquired, wherein the target image includes: a target surface image and a light spot image formed by the light beam directly irradiating on the target surface of the target; according to the light spot image and the target image in each of the target images, a preset direction aiming pixel deviation corresponding to each of the target images is acquired; based on the preset direction aiming pixel deviation corresponding to each of the target images and the radius of the corresponding target surface image, a mapping relationship between the preset direction aiming pixel deviation in each of the target images and the radius of the corresponding target surface image is
  • the calibration method of the target shooting equipment disclosed in the embodiment of the present application obtains the deviation between the center point of the light spot image (such as the laser aiming point) and the image center point of the target image (such as the camera center point) at different target shooting distances, and corrects the image center point of the target image taken at different target shooting distances to achieve the coincidence of the shooting line and the aiming baseline.
  • the calibration method of the target shooting equipment disclosed in the embodiment of the present application can ensure that at different target shooting distances, the aiming point formed by the three points of the human eye, the rear sight, and the front sight is the shooting center point, which can improve the accuracy of determining the shooting center point at different target shooting distances.
  • the present application discloses a calibration device for a target shooting device, which is applied to a target shooting device provided with an image acquisition device, wherein the irradiation direction of a light beam emitted by a light beam emitting device configured for calibrating the target shooting device points to the image acquisition field of view of the image acquisition device.
  • the device comprises:
  • the target image acquisition module 710 is used to acquire a plurality of target images corresponding to the target at different shooting distances acquired by the image acquisition device, wherein the target image includes: a target surface image and a light spot image formed by the light beam directly incident on the target surface;
  • the aiming pixel deviation acquisition module 720 is used to acquire the aiming pixel deviation of the preset direction corresponding to each target image according to the light spot image and the target image in each target image;
  • a mapping relationship acquisition module 730 is used to fit the mapping relationship between the preset direction aiming pixel deviation in each target image and the corresponding radius of the target surface image based on the preset direction aiming pixel deviation corresponding to each target image and the corresponding radius of the target surface image;
  • the calibration deviation acquisition module 740 is used to acquire the target aiming pixel deviation for calibrating the image center point of the target image collected by the shooting device at different shooting distances according to the mapping relationship.
  • the aiming pixel deviation acquisition module 720 is further used to:
  • the aiming pixel deviation in the preset direction corresponding to each of the target images at different shooting distances is determined according to the pixel deviation of the image center point of the target image along the preset direction relative to the image center point of the light spot image.
  • the mapping relationship between the preset direction aiming pixel deviation and the corresponding radius of the target surface image in each target image is fitted based on the preset direction aiming pixel deviation corresponding to each target image and the corresponding radius of the target surface image, including:
  • the radius of the target surface image corresponding to each of the target images is taken as the independent variable
  • the preset direction aiming pixel deviation corresponding to the corresponding target image is taken as the dependent variable
  • a linear function is used to fit the mapping relationship between the preset direction aiming pixel deviation in the target image collected by the targeting device and the radius of the target surface image.
  • the preset direction includes: a first direction, and a second direction perpendicular to the first direction, the radius of the target surface image corresponding to each of the target images is used as an independent variable, the preset direction aiming pixel deviation corresponding to the corresponding target image is used as a dependent variable, and a linear function is used to fit the mapping relationship between the preset direction aiming pixel deviation in the target image collected by the shooting device and the radius of the target surface image, including:
  • a linear function is used to fit the mapping relationship between the first direction aiming pixel deviation in the target image collected by the shooting device and the radius of the target surface image;
  • the radius of the target surface image corresponding to each target image is taken as the independent variable
  • the second direction aiming pixel deviation corresponding to the corresponding target image is taken as the dependent variable
  • a linear function is used to fit the mapping relationship between the second direction aiming pixel deviation in the target image collected by the shooting device and the radius of the target surface image.
  • the device further includes:
  • the target shooting image acquisition module 750 is used to acquire the radius of the target surface image in the target image acquired by the image acquisition device when the shooting trigger device of the target shooting equipment is triggered;
  • the calibration module 760 is used to obtain the target aiming pixel deviation for calibrating the image center point of the target image according to the radius; and to superimpose the corresponding target aiming pixel deviation on the pixel coordinates of each preset direction corresponding to the image center point of the target image as the shooting center point of the targeting device, so that the shooting line of the targeting device coincides with the aiming baseline of the targeting device.
  • the calibration device for a target shooting device disclosed in the embodiment of the present application is used to implement the calibration method for the target shooting device described in the first embodiment of the present application.
  • the specific implementation methods of each module of the device will not be repeated here, and reference may be made to the specific implementation methods of the corresponding steps in the method embodiment.
  • the calibration device of the target shooting device disclosed in the embodiment of the present application is applied to the target shooting device based on image acquisition, and a light beam emitting device configured for calibrating the target shooting device is used so that the irradiation direction of the light beam emitted by the light beam emitting device points to the image acquisition field of view of the image acquisition device.
  • a plurality of target images corresponding to the target at different target shooting distances acquired by the image acquisition device are acquired, wherein the target image includes: a target surface image and a light spot image formed by the light beam directly irradiating on the target surface of the target; according to the light spot image and the target image in each of the target images, a preset direction aiming pixel deviation corresponding to each of the target images is acquired; based on the preset direction aiming pixel deviation corresponding to each of the target images and the radius of the corresponding target surface image, a mapping relationship between the preset direction aiming pixel deviation in each of the target images and the radius of the corresponding target surface image is fitted, so that according to the mapping relationship, a target aiming pixel deviation for calibrating the image center point of the target image acquired by the target shooting device at different target shooting distances can be acquired, thereby calibrating the image center point of the target image, which helps to improve the accuracy of determining the shooting center point of the target shooting device.
  • the target shooting equipment calibration device disclosed in the embodiment of the present application obtains the deviation between the center point of the light spot image (such as the laser aiming point) and the image center point of the target image (such as the camera center point) at different target shooting distances, and corrects the image center point of the target image taken at different target shooting distances to achieve the overlap of the shooting line and the aiming baseline.
  • the target shooting equipment calibration method disclosed in the embodiment of the present application can ensure that at different target shooting distances, the aiming point formed by the three points of the human eye, the rear sight, and the front sight is the shooting center point, which can improve the accuracy of determining the shooting center point at different target shooting distances.
  • the embodiment of the present application further discloses a shooting device.
  • the shooting device includes:
  • a front sight 901 is arranged at the front end of the target shooting device
  • the rear sight 902 is arranged at the rear end of the target shooting device; the rear sight 902 and the front sight 901 form a sighting baseline of the target shooting device along the shooting outlet direction of the target shooting device;
  • An image acquisition device 904 is provided on the target shooting device and is used to acquire a target image of a target provided at a set distance in front of the target shooting device when the shooting trigger device 904 is triggered;
  • Controller 905 is used to calibrate the image center point of the target image according to the radius of the target surface image in the target image and a preset target aiming pixel deviation corresponding to the radius for calibrating the image center point of the target image, and use the calibrated point as the shooting center point of the targeting device, so that the shooting line of the targeting device coincides with the aiming baseline of the targeting device.
  • the controller 905 can be arranged on the main body of the target shooting device (for example, the arrangement in FIG. 9 ). In some embodiments of the present application, the controller 905 can be arranged outside the main body of the target shooting device.
  • the controller 905 can be an external general-purpose computing and processing device (such as an intelligent terminal), or a target shooting data processing terminal of a dedicated target shooting device. The present application does not limit the specific implementation and setting position of the controller 905.
  • the target shooting device further comprises: a light beam emitting device configured for calibrating the target shooting device.
  • a light beam emitting device configured for calibrating the target shooting device.
  • the irradiation direction of the light beam emitted by the light beam emitting device points to the image acquisition field of view of the image acquisition device.
  • the light beam emitting device is detachably connected to the targeting equipment.
  • controller 905 further includes:
  • a preset module used to execute the calibration method of the target shooting device as described in some steps 110 to 140 in the first embodiment, so as to obtain a target aiming pixel deviation for calibrating the image center point of the target image acquired by the target shooting device at different target shooting distances;
  • a calibration module used to obtain the radius of the target surface image in the target image acquired by the image acquisition device when the shooting trigger device is triggered; and, based on the radius, obtain the target aiming pixel deviation for calibrating the shooting center point corresponding to the target image;
  • the calibration module is also used to superimpose the corresponding target aiming pixel deviation on the pixel coordinates of each preset direction corresponding to the image center point of the target image, as the shooting center point of the target shooting device.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
  • the various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the electronic device according to the embodiment of the present application.
  • DSP digital signal processor
  • the present application can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing part or all of the methods described herein.
  • Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
  • FIG. 10 shows an electronic device that can implement the method according to the present application.
  • the electronic device can be a PC, a mobile terminal, a personal digital assistant, a tablet computer, etc.
  • the electronic device traditionally includes a processor 1010 and a memory 1020 and a program code 1030 stored on the memory 1020 and can be run on the processor 1010, and the processor 1010 implements the method described in the above embodiment when executing the program code 1030.
  • the memory 1020 can be a computer program product or a computer-readable medium.
  • the memory 1020 can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk or a ROM.
  • the memory 1020 has a storage space 10201 for the program code 1030 of the computer program for executing any method step in the above method.
  • the storage space 10201 for the program code 1030 can include various computer programs for implementing the various steps in the above method respectively.
  • the program code 1030 is a computer-readable code. These computer programs can be read from one or more computer program products or written into the one or more computer program products. These computer program products include a program code carrier such as a hard disk, a compact disk (CD), a memory card or a floppy disk.
  • the computer program includes a computer readable code, which, when executed on an electronic device, causes the electronic device to execute the method according to the above embodiments.
  • the embodiment of the present application further discloses a computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the steps of the calibration method of the target shooting equipment described in the embodiment of the present application are implemented.
  • Such a computer program product may be a computer-readable storage medium, which may have a storage segment, a storage space, etc. arranged similarly to the memory 1020 in the electronic device shown in FIG10.
  • the program code may be compressed and stored in the computer-readable storage medium, for example, in an appropriate form.
  • the computer-readable storage medium is typically a portable or fixed storage unit as described with reference to FIG11.
  • the storage unit includes a computer-readable code 1030', which is a code read by a processor, and when these codes are executed by the processor, the various steps in the method described above are implemented.
  • references herein to "one embodiment,” “embodiment,” or “one or more embodiments” mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present application.
  • examples of the term “in one embodiment” herein do not necessarily all refer to the same embodiment.
  • any reference signs placed between brackets shall not be construed as limiting the claims.
  • the word “comprising” does not exclude the presence of elements or steps not listed in the claims.
  • the word “a” or “an” preceding an element does not exclude the presence of a plurality of such elements.
  • the present application may be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware.
  • the use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.
  • the present application provides a calibration method and device for a target shooting device, as well as a target shooting device.
  • a target shooting device By fitting the mapping relationship between the aiming pixel deviation in a preset direction in each target image and the radius of the corresponding target surface image, the target aiming pixel deviation can be obtained for calibrating the image center point of the target image collected by the target shooting device at different target shooting distances, thereby calibrating the image center point of the target image, which helps to improve the accuracy of determining the shooting center point of the target shooting device and has strong industrial applicability.

Abstract

A calibration method for a target shooting device (200), comprising: step 110, configuring a light beam emitting apparatus (205) for calibrating a target shooting device (200), such that the irradiation direction of a light beam emitted by the light beam emitting apparatus (205) points to an image acquisition field of view of an image acquisition apparatus (204), and acquiring a plurality of target images (400) which are acquired by the image acquisition apparatus (204) and which correspond to a target being located at different target shooting distances; step 120, according to a light spot image (402) formed by the irradiation of the light beam emitting apparatus (205) in each target image (400), and the target image (400), acquiring a preset direction aiming pixel deviation corresponding to each target image (400); step 130, on the basis of the preset direction aiming pixel deviation corresponding to each target image (400) and the radius of a target surface image (401) in the target image (400), performing fitting to obtain a mapping relationship between the preset direction aiming pixel deviations and the radiuses of the target surface images (401) in the target images (400); and step 140, according to the mapping relationship, calibrating image center points (403) of the target images (400) acquired during target shooting. Further provided are a calibration apparatus for a target shooting device (200), a target shooting device, an electronic device, and a computer-readable storage medium.

Description

打靶设备的校准方法、装置以及打靶设备Target shooting equipment calibration method, device and target shooting equipment
本申请要求于2022年9月26日提交中国专利局、申请号为202211173421.5、发明名称为“打靶设备的校准方法、装置,以及打靶设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application filed with the Chinese Patent Office on September 26, 2022, with application number 202211173421.5 and invention name “Calibration method, device, and targeting equipment for targeting equipment”, the entire contents of which are incorporated by reference into this application.
技术领域Technical Field
本申请涉及打靶设备技术领域,特别是涉及打靶设备的校准方法、装置以及打靶设备,电子设备及计算机可读存储介质。The present application relates to the technical field of target shooting equipment, and in particular to a calibration method and device for target shooting equipment, a target shooting equipment, an electronic device and a computer-readable storage medium.
背景技术Background technique
现有的打靶设备中,基于对标靶的图像处理获取打靶得分的基本原理是,将打靶设备采集的靶面图像的中心点作为射击击中点,比较该射击击中点与靶面图像的中心点之间的偏差,确定打靶得分(如命中环数)。现有技术中的这种以标靶图像的图像中心点作为射击中心点的方法,不能准确反映打靶者的打靶精准度。In the existing shooting equipment, the basic principle of obtaining the shooting score based on the image processing of the target is to use the center point of the target surface image collected by the shooting equipment as the shooting hit point, compare the deviation between the shooting hit point and the center point of the target surface image, and determine the shooting score (such as the number of hits). This method of using the image center point of the target image as the shooting center point in the prior art cannot accurately reflect the shooting accuracy of the shooter.
发明内容Summary of the invention
(一)要解决的技术问题1. Technical issues to be resolved
本申请要解决的技术问题是解决相关技术中以标靶图像的图像中心点作为射击中心点的方法,不能准确反映打靶者的打靶精准度的问题。The technical problem to be solved by the present application is to solve the problem that the method in the related art using the image center point of the target image as the shooting center point cannot accurately reflect the shooting accuracy of the shooter.
(二)技术方案(II) Technical solution
本申请实施例提供一种打靶设备的校准方法,有助于提升确定打靶设备射击中心点的准确度。The embodiment of the present application provides a calibration method for a target shooting device, which helps to improve the accuracy of determining the shooting center point of the target shooting device.
第一方面,本申请实施例提供了一种打靶设备的校准方法,包括:In a first aspect, an embodiment of the present application provides a method for calibrating a target shooting device, comprising:
应用于设置有图像采集装置的打靶设备,其中,为校准所述打靶设备配置的光束发射装置发射的光束的照射方向指向所述图像采集装置的图像采集视场,所述校准方法包括:Applicable to a target shooting device provided with an image acquisition device, wherein the irradiation direction of a light beam emitted by a light beam emitting device configured for calibrating the target shooting device points to the image acquisition field of view of the image acquisition device, and the calibration method comprises:
获取所述图像采集装置采集的,标靶位于不同打靶距离时对应的若干幅标靶图像,其中,所述标靶图像中包括:靶面影像以及所述光束直射在所述标靶的靶面上形成的光点影像;Acquire a plurality of target images corresponding to when the target is located at different shooting distances, which are acquired by the image acquisition device, wherein the target image includes: a target surface image and a light spot image formed by the light beam directly irradiating the target surface;
根据每幅所述标靶图像中的所述光点影像和所述标靶图像,获取各所述标靶图像对应的预设方向瞄准像素偏差;According to the light spot image and the target image in each of the target images, obtaining the aiming pixel deviation in the preset direction corresponding to each of the target images;
基于各所述标靶图像对应的所述预设方向瞄准像素偏差和对应的所述靶面影 像的半径,拟合得到各所述标靶图像中所述预设方向瞄准像素偏差与对应的所述靶面影像的半径之间的映射关系;Based on the preset direction aiming pixel deviation corresponding to each of the target images and the radius of the corresponding target surface image, a mapping relationship between the preset direction aiming pixel deviation in each of the target images and the radius of the corresponding target surface image is obtained by fitting;
根据所述映射关系,获取对所述打靶设备基于不同打靶距离时采集的标靶图像的图像中心点进行校准的目标瞄准像素偏差。According to the mapping relationship, a target aiming pixel deviation is obtained for calibrating the image center point of the target image acquired by the target shooting device at different target shooting distances.
第二方面,本申请实施例提供了一种打靶设备的校准装置,包括:In a second aspect, an embodiment of the present application provides a calibration device for a target shooting device, comprising:
应用于设置有图像采集装置的打靶设备,其中,为校准所述打靶设备配置的光束发射装置发射的光束的照射方向指向所述图像采集装置的图像采集视场,所述校准装置包括:Applicable to a target shooting device provided with an image acquisition device, wherein the irradiation direction of the light beam emitted by the light beam emitting device configured for calibrating the target shooting device points to the image acquisition field of view of the image acquisition device, and the calibration device comprises:
标靶图像获取模块,用于获取所述图像采集装置采集的,标靶位于不同打靶距离时对应的若干幅标靶图像,其中,所述标靶图像中包括:靶面影像以及所述光束直射在所述标靶的靶面上形成的光点影像;A target image acquisition module, used to acquire a plurality of target images corresponding to when the target is located at different target shooting distances, acquired by the image acquisition device, wherein the target image includes: a target surface image and a light spot image formed by the light beam directly incident on the target surface;
瞄准像素偏差获取模块,用于根据每幅所述标靶图像中的所述光点影像和所述标靶图像,获取各所述标靶图像对应的预设方向瞄准像素偏差;An aiming pixel deviation acquisition module, used for acquiring an aiming pixel deviation in a preset direction corresponding to each target image according to the light spot image and the target image in each target image;
映射关系获取模块,用于基于各所述标靶图像对应的所述预设方向瞄准像素偏差和对应的所述靶面影像的半径,拟合得到各所述标靶图像中所述预设方向瞄准像素偏差与对应的所述靶面影像的半径之间的映射关系;A mapping relationship acquisition module, used for fitting the mapping relationship between the preset direction aiming pixel deviation in each target image and the corresponding radius of the target surface image based on the preset direction aiming pixel deviation corresponding to each target image and the corresponding radius of the target surface image;
校准偏差获取模块,用于根据所述映射关系,获取对所述打靶设备基于不同打靶距离时采集的标靶图像的图像中心点进行校准的目标瞄准像素偏差。The calibration deviation acquisition module is used to obtain the target aiming pixel deviation for calibrating the image center point of the target image collected by the shooting device at different shooting distances according to the mapping relationship.
第三方面,本申请实施例提供了一种打靶设备,包括:In a third aspect, an embodiment of the present application provides a target shooting device, including:
准星,设置在所述打靶设备的前端;A front sight, arranged at the front end of the target shooting device;
照门,设置在所述打靶设备的后端;所述照门和所述准星沿所述打靶设备的射击出口方向形成所述打靶设备的瞄准基线;A rear sight is arranged at the rear end of the target shooting device; the rear sight and the front sight form a sighting baseline of the target shooting device along the shooting outlet direction of the target shooting device;
射击触发装置,设置在所述打靶设备上;A shooting trigger device, arranged on the target shooting device;
图像采集装置,设置在所述打靶设备上,用于在所述射击触发装置被触发时采集设置在所述打靶设备前方设定距离处的标靶的标靶图像;An image acquisition device is provided on the target shooting device and is used to acquire a target image of a target provided at a set distance in front of the target shooting device when the shooting trigger device is triggered;
控制器,用于根据所述标靶图像中靶面影像的半径和预设的与所述半径对应的用于校准标靶图像的图像中心点的目标瞄准像素偏差,对所述标靶图像的图像中心点进行校准,将校准后的点作为所述打靶设备的射击中心点,使得所述打靶设备的射击线与所述打靶设备的瞄准基线重合。A controller is used to calibrate the image center point of the target image according to the radius of the target surface image in the target image and a preset target aiming pixel deviation corresponding to the radius for calibrating the image center point of the target image, and use the calibrated point as the shooting center point of the targeting device so that the shooting line of the targeting device coincides with the aiming baseline of the targeting device.
第四方面,本申请实施例还公开了一种电子设备,包括存储器、处理器及存储在所述存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现本申请实施例所述的打靶设备的校准方法。In a fourth aspect, an embodiment of the present application further discloses an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the calibration method for the target shooting device described in the embodiment of the present application when executing the computer program.
第五方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时本申请实施例公开的打靶设备的校准方法的步骤。In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of the calibration method for a target shooting device disclosed in an embodiment of the present application.
(三)有益效果(III) Beneficial effects
本申请实施例提供的上述技术方案与现有技术相比具有如下优点:The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:
本申请实施例公开的打靶设备的校准方法,应用于基于图像采集的打靶装置,通过为校准所述打靶设备配置的光束发射装置,使得光束发射装置发射的光束的照射方向指向所述图像采集装置的图像采集视场,之后,通过获取所述图像采集装置采集的,标靶位于不同打靶距离时对应的若干幅标靶图像,其中,所述标靶图像中包括:靶面影像以及所述光束直射在所述标靶的靶面上形成的光点影像;根据每幅所述标靶图像中的所述光点影像和所述标靶图像,获取各所述标靶图像对应的预设方向瞄准像素偏差;基于各所述标靶图像对应的所述预设方向瞄准像素偏差和对应的所述靶面影像的半径,拟合得到各所述标靶图像中所述预设方向瞄准像素偏差与对应的所述靶面影像的半径之间的映射关系,使得根据所述映射关系,可以获取对所述打靶设备基于不同打靶距离时采集的标靶图像的图像中心点进行校准的目标瞄准像素偏差,从而对标靶图像的图像中心点进行校准,有助于提升确定打靶设备射击中心点的准确度。The calibration method of a target shooting device disclosed in an embodiment of the present application is applied to a target shooting device based on image acquisition, wherein a light beam emitting device configured for calibrating the target shooting device is used so that the irradiation direction of the light beam emitted by the light beam emitting device points to the image acquisition field of view of the image acquisition device, and then a plurality of target images corresponding to a target at different target shooting distances acquired by the image acquisition device are acquired, wherein the target image includes: a target surface image and a light spot image formed by the light beam directly irradiating on the target surface of the target; according to the light spot image and the target image in each of the target images, a preset direction aiming pixel deviation corresponding to each of the target images is acquired; based on the preset direction aiming pixel deviation corresponding to each of the target images and the radius of the corresponding target surface image, a mapping relationship between the preset direction aiming pixel deviation in each of the target images and the radius of the corresponding target surface image is fitted, so that according to the mapping relationship, a target aiming pixel deviation for calibrating the image center point of the target image acquired by the target shooting device at different target shooting distances can be acquired, thereby calibrating the image center point of the target image, which helps to improve the accuracy of determining the shooting center point of the target shooting device.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
图1是本申请一个实施例的打靶设备的校准方法流程图;FIG1 is a flow chart of a calibration method for a target shooting device according to an embodiment of the present application;
图2是本申请一个实施例中一种打靶设备结构示意图;FIG2 is a schematic diagram of the structure of a target shooting device in one embodiment of the present application;
图3是本申请一个实施例中另一种打靶设备结构示意图;FIG3 is a schematic diagram of the structure of another target shooting device in one embodiment of the present application;
图4是本申请一个实施例中打靶设备采集的标靶图像示意图;FIG4 is a schematic diagram of a target image collected by a shooting device in one embodiment of the present application;
图5是本申请一个实施例中校准原理示意图;FIG5 is a schematic diagram of a calibration principle in one embodiment of the present application;
图6是本申请一个实施例的打靶设备的校准方法另一流程图;FIG6 is another flow chart of a calibration method for a target shooting device according to an embodiment of the present application;
图7是本申请一个实施例的打靶设备的校准装置结构示意图之一;FIG. 7 is a schematic diagram of a calibration device for a target shooting device according to an embodiment of the present application;
图8是本申请一个实施例的打靶设备的校准装置结构示意图之二;FIG8 is a second structural schematic diagram of a calibration device for a target shooting device according to an embodiment of the present application;
图9是本申请一个实施例中另一种打靶设备结构示意图;FIG9 is a schematic diagram of the structure of another target shooting device in one embodiment of the present application;
图10示意性地示出了用于执行根据本申请的方法的电子设备的框图;FIG10 schematically shows a block diagram of an electronic device for executing the method according to the present application;
图11示意性地示出了用于保持或者携带实现根据本申请的方法的程序代码的存储单元。FIG. 11 schematically shows a storage unit for holding or carrying a program code for implementing the method according to the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
实施例一Embodiment 1
本申请实施例公开的一种打靶设备的校准方法,如图1所示,所述方法包括:步骤110至步骤140。A calibration method for a target shooting device disclosed in an embodiment of the present application is shown in FIG1 . The method includes steps 110 to 140 .
步骤110,获取所述图像采集装置采集的,标靶位于不同打靶距离时对应的若干幅标靶图像,其中,所述标靶图像中包括:靶面影像以及所述光束直射在所述标靶的靶面上形成的光点影像。 Step 110, obtaining a plurality of target images corresponding to when the target is located at different shooting distances, which are acquired by the image acquisition device, wherein the target image includes: a target surface image and a light spot image formed when the light beam is directly incident on the target surface of the target.
本申请实施例中所述的打靶设备的校准方法,应用于设置有图像采集装置的打靶设备,其中,为校准所述打靶设备配置的光束发射装置发射的光束的照射方向指向所述图像采集装置的图像采集视场。The calibration method for a target shooting device described in an embodiment of the present application is applied to a target shooting device provided with an image acquisition device, wherein the irradiation direction of a light beam emitted by a light beam emitting device configured for calibrating the target shooting device points to the image acquisition field of view of the image acquisition device.
本申请实施例中所述的打靶设备,可以为打靶枪、打靶游戏机、打靶弩等设备。参考图2,以打靶枪为例,所述打靶设备200包括:准星201、照门202、射击触发装置203,以及,图像采集装置204。图2中所标识的准星201、照门202、射击触发装置203、以及图像采集装置204仅为示意。The target shooting device described in the embodiment of the present application may be a target shooting gun, a target shooting game machine, a target shooting crossbow, etc. Referring to FIG2 , taking a target shooting gun as an example, the target shooting device 200 includes: a front sight 201, a rear sight 202, a shooting trigger device 203, and an image acquisition device 204. The front sight 201, the rear sight 202, the shooting trigger device 203, and the image acquisition device 204 shown in FIG2 are for illustration only.
下面分别对打靶设备的各部件的设备位置和功能、结构进行举例说明。The following are examples of the equipment position, function and structure of each component of the target shooting equipment.
所述准星201设置在所述打靶设备200的前端;所述照门202设置在所述打靶设备200的后端;所述照门202和所述准星201沿所述打靶设备200的射击出口方向形成所述打靶设备200的瞄准基线。The front sight 201 is arranged at the front end of the target shooting device 200 ; the rear sight 202 is arranged at the rear end of the target shooting device 200 ; the rear sight 202 and the front sight 201 form the aiming baseline of the target shooting device 200 along the shooting outlet direction of the target shooting device 200 .
所述射击触发装置203设置在所述打靶设备200上。以打靶设备为打靶枪为例,所述射击触发装置203为扳机结构,所述射击触发装置203设置于所述打靶设备200的枪体的下方。The shooting trigger device 203 is arranged on the target shooting device 200. Taking the target shooting device as a target shooting gun as an example, the shooting trigger device 203 is a trigger structure, and the shooting trigger device 203 is arranged below the gun body of the target shooting device 200.
所述图像采集装置204,设置在所述打靶设备上,用于在所述射击触发装置203被触发时,采集设置在所述打靶设备200前方设定距离处的标靶的标靶图像。图像采集装置204可以设置在打靶设备200的本体内部,如固定设置在打靶枪的枪管管体上,也可以可分离地设置在打靶枪的枪管的下方。The image acquisition device 204 is provided on the target shooting device, and is used to acquire a target image of a target set at a set distance in front of the target shooting device 200 when the shooting trigger device 203 is triggered. The image acquisition device 204 can be provided inside the body of the target shooting device 200, such as fixedly provided on the barrel of the target shooting gun, or detachably provided under the barrel of the target shooting gun.
本申请的一些实施例中,所述图像采集装置204与所述打靶设备200一体设置,用于采集打靶设备200瞄准方向的视场图像。例如,采集打靶设备200前方设置的标靶图像。以所述打靶设备200为打靶枪为例,所述图像采集装置204可以为设置在打靶枪枪筒内的摄像头。本申请的另一些实施例中,所述图像采集装置204还可以设置在所述打靶设备200的一侧,如以固定或可分离结构设置在打 靶设备的射击本体下方,或者,设置在其他不影响瞄准且沿瞄准方向没有遮挡的位置。打靶设备200的射击本体为包含射击出口的设备本体。图像采集装置204可以在射击本体内设置,或者以可拆卸分离方式固定在射击本体外部。In some embodiments of the present application, the image acquisition device 204 is integrally arranged with the target shooting device 200, and is used to acquire the field of view image of the aiming direction of the target shooting device 200. For example, the image of the target set in front of the target shooting device 200 is acquired. Taking the target shooting device 200 as an example, the image acquisition device 204 can be a camera set in the barrel of the target shooting gun. In some other embodiments of the present application, the image acquisition device 204 can also be set on one side of the target shooting device 200, such as being set below the shooting body of the target shooting device in a fixed or detachable structure, or being set at other positions that do not affect the aiming and are not blocked along the aiming direction. The shooting body of the target shooting device 200 is a device body including a shooting outlet. The image acquisition device 204 can be set in the shooting body, or fixed to the outside of the shooting body in a detachable and detachable manner.
本申请的实施例中,为了校准所述打靶设备,还需要为校准所述打靶设备200配置的光束发射装置。其中,所述光束发射装置可以为激光发射器,或者,其他可以发射聚集光束的独立装置。In the embodiment of the present application, in order to calibrate the target shooting device, a light beam emitting device configured for calibrating the target shooting device 200 is also required. The light beam emitting device may be a laser emitter, or other independent device that can emit a concentrated light beam.
本申请的一些实施例中,所述光束发射装置为所述打靶设备进行校准配置的一个装置。例如,如图3所示,所述打靶设备200还包括:为校准所述打靶设备200配置的光束发射装置205,所述光束发射装置可以与所述打靶设备可拆卸连接,也可以固定设置于所述打靶设备上。In some embodiments of the present application, the light beam emitting device is a device for calibrating the target shooting device. For example, as shown in FIG3 , the target shooting device 200 further includes: a light beam emitting device 205 configured for calibrating the target shooting device 200, and the light beam emitting device can be detachably connected to the target shooting device or fixedly arranged on the target shooting device.
本申请的一些实施例中,如图3所示,所述光束发射装置205设置在所述打靶设备200的后端;所述照门202、所述准星201,以及,光束发射装置205,沿与所述打靶设备200的射击出口方向形成一条直线,即瞄准基线。In some embodiments of the present application, as shown in Figure 3, the light beam emitting device 205 is arranged at the rear end of the targeting device 200; the rear sight 202, the front sight 201, and the light beam emitting device 205 form a straight line along the shooting outlet direction of the targeting device 200, that is, the aiming baseline.
本申请的一些实施例中,在使用打靶设备时,可以首先利用所述光束发射装置对打靶设备进行校准,这样,在打靶过程中,会得到更加准确的射击中心点。在校准所述打靶设备的过程中,所述光束发射装置205向图像采集装置204的拍摄视场发射聚集光束。以所述光束发射装置205为激光发射器为例,当打靶设备200瞄准标靶的靶面时,所述光束发射装置205发射的激光将照射到所述标靶的靶面上,并在靶面上投射出光斑,即光点。之后,当打靶设备200的射击触发装置203被触发时,图像采集装置204采集所述标靶的标靶图像,此时,如图4所示,图像采集装置204采集的标靶图像400中将包括:靶面影像401和光点影像402。In some embodiments of the present application, when using the target shooting equipment, the target shooting equipment can be first calibrated using the light beam emitting device, so that a more accurate shooting center point can be obtained during the target shooting process. In the process of calibrating the target shooting equipment, the light beam emitting device 205 emits a focused light beam to the shooting field of view of the image acquisition device 204. Taking the light beam emitting device 205 as a laser emitter as an example, when the target shooting equipment 200 aims at the target surface of the target, the laser emitted by the light beam emitting device 205 will irradiate the target surface of the target and project a light spot, i.e., a light spot, on the target surface. Afterwards, when the shooting trigger device 203 of the target shooting equipment 200 is triggered, the image acquisition device 204 acquires the target image of the target. At this time, as shown in FIG. 4 , the target image 400 acquired by the image acquisition device 204 will include: a target surface image 401 and a light spot image 402.
本申请的一些实施例中,为了校准所述打靶设备200,如图5所示,首先需要采集标靶位于不同打靶距离时对应的若干幅标靶图像。以图5所示的标靶图像采集场景为例,将标靶设置在打靶设备200前方第一打靶距离的位置时,使用打靶设备200向该标靶射击,采集若干幅与第一打靶距离对应的标靶图像;将该标靶设置在打靶设备200前方第二打靶距离的位置时,使用打靶设备200向该标靶射击,采集若干幅与第二打靶距离对应的标靶图像;将该标靶设置在打靶设备200前方第三打靶距离的位置时,使用打靶设备200向该标靶射击,采集若干幅与第三打靶距离对应的标靶图像。即,将标靶设置在打靶设备200前方的不同打靶距离的位置,图像采集装置204采集不同打靶距离的标靶图像。根据实际校准的需要,可以选择若干个不同的打靶距离,比如3个或3个以上的打靶距离。In some embodiments of the present application, in order to calibrate the target shooting device 200, as shown in FIG5, it is first necessary to collect several target images corresponding to the target at different target shooting distances. Taking the target image collection scene shown in FIG5 as an example, when the target is set at the first target shooting distance in front of the target shooting device 200, the target shooting device 200 is used to shoot at the target, and several target images corresponding to the first target shooting distance are collected; when the target is set at the second target shooting distance in front of the target shooting device 200, the target shooting device 200 is used to shoot at the target, and several target images corresponding to the second target shooting distance are collected; when the target is set at the third target shooting distance in front of the target shooting device 200, the target shooting device 200 is used to shoot at the target, and several target images corresponding to the third target shooting distance are collected. That is, the target is set at different target shooting distances in front of the target shooting device 200, and the image acquisition device 204 collects target images at different target shooting distances. According to the actual calibration needs, several different target shooting distances can be selected, such as 3 or more target shooting distances.
步骤120,根据每幅所述标靶图像中的所述光点影像和所述标靶图像,获取各所述标靶图像对应的预设方向瞄准像素偏差。Step 120 , obtaining the preset direction aiming pixel deviation corresponding to each target image according to the light spot image and the target image in each target image.
以预设方向包括:第一方向和第二方向为例,每幅标靶图像对应的预设方向瞄准像素偏差包括:相应标靶图像中所述光点影像的影像中心点与所述标靶图像 的图像中心点之间沿所述第一方向的像素偏差,以及,相应标靶图像中所述光点影像的影像中心点与所述标靶图像的图像中心点之间沿所述第二方向的像素偏差。所述像素偏差包括:大小和方向两个因子。所述第一方向与所述第二方向垂直。Taking the preset direction including: the first direction and the second direction as an example, the preset direction aiming pixel deviation corresponding to each target image includes: the pixel deviation between the image center point of the light spot image in the corresponding target image and the image center point of the target image along the first direction, and the pixel deviation between the image center point of the light spot image in the corresponding target image and the image center point of the target image along the second direction. The pixel deviation includes: two factors: size and direction. The first direction is perpendicular to the second direction.
如前文所述,采集的上述每幅标靶图像中包括:靶面影像和光点影像。采集的每幅标靶图像中,靶面影像在标靶图像中的位置不完全相同,会存在偏差;每幅标靶图像中,光点影像在标靶图像中的位置不完全相同,会存在偏差。这样,可以采集到更加丰富的样本图像,以基于采集的样本图像学习该打靶装置采集的各所述标靶图像对应的预设方向瞄准像素偏差。As mentioned above, each of the above-mentioned target images collected includes: a target surface image and a light spot image. In each target image collected, the position of the target surface image in the target image is not completely the same, and there will be deviations; in each target image, the position of the light spot image in the target image is not completely the same, and there will be deviations. In this way, more abundant sample images can be collected to learn the preset direction aiming pixel deviation corresponding to each of the target images collected by the shooting device based on the collected sample images.
本申请的一些实施例中,所述根据每幅所述标靶图像中的所述光点影像和所述标靶图像,获取各所述标靶图像对应的预设方向瞄准像素偏差,包括:对于每幅所述标靶图像,根据所述标靶图像的图像中心点沿预设方向相对于所述光点影像的影像中心点的像素偏差,确定不同打靶距离时对应的各所述标靶图像对应的预设方向瞄准像素偏差。其中,所述预设方向包括:第一方向,以及,与所述第一方向垂直的第二方向。In some embodiments of the present application, the step of obtaining the preset direction aiming pixel deviation corresponding to each target image according to the light spot image and the target image in each target image includes: for each target image, according to the pixel deviation of the image center point of the target image relative to the image center point of the light spot image along the preset direction, determining the preset direction aiming pixel deviation corresponding to each target image at different target shooting distances. The preset direction includes: a first direction, and a second direction perpendicular to the first direction.
以前述步骤采集的若干幅标靶图像中的一幅标靶图像如图4中所示的标靶图像400为例,所述标靶图像的图像中心点标记为403,光点影像402的影像中心点标记为4021,可以看到标靶图像的图像中心点403相对于光点影像402的影像中心点4021沿水平方向和竖直方向均有像素偏差。为了描述这个偏差,可以以水平方向作为第一方向,以水平向右为正向偏差,以水平向左为负向偏差,记录每幅标靶图像的图像中心点相对于该幅标靶图像中光点影像的影像中心点沿水平方向(即第一方向)的像素偏差。同理,可以以竖直方向作为第二方向,以竖直向上为正向偏差,以竖直向下为负向偏差,记录每幅标靶图像的图像中心点相对于该幅标靶图像中光点影像的影像中心点沿竖直方向(即第二方向)的像素偏差。Take one of the target images collected in the above steps as the target image 400 shown in FIG4 as an example, the image center point of the target image is marked as 403, and the image center point of the light spot image 402 is marked as 4021. It can be seen that the image center point 403 of the target image has pixel deviations in both the horizontal and vertical directions relative to the image center point 4021 of the light spot image 402. In order to describe this deviation, the horizontal direction can be taken as the first direction, the horizontal right direction is the positive deviation, and the horizontal left direction is the negative deviation, and the pixel deviation of the image center point of each target image relative to the image center point of the light spot image in the target image along the horizontal direction (i.e., the first direction) can be recorded. Similarly, the vertical direction can be taken as the second direction, the vertical upward direction is the positive deviation, and the vertical downward direction is the negative deviation, and the pixel deviation of the image center point of each target image relative to the image center point of the light spot image in the target image along the vertical direction (i.e., the second direction) can be recorded.
本申请的实施例中,以打靶设备采集的标靶图像的宽为W个像素,高为H个像素为例,标靶图像的图像中心点为:标靶图像中宽度方向第W/2个图像像素和高度方向第H/2个图像像素确定的图像像素点。如果以标靶图像的左上角为坐标原点,则标靶图像的图像中心点可以表示为(W/2,H/2)。In the embodiment of the present application, taking the target image captured by the shooting device as an example, the image center point of the target image is: the image pixel point determined by the W/2th image pixel in the width direction and the H/2th image pixel in the height direction in the target image. If the upper left corner of the target image is taken as the coordinate origin, the image center point of the target image can be expressed as (W/2, H/2).
举例而言,当所述标靶图像的图像中心点c1在所述光点影像水平方向向右距离x1个像素的图像位置时,像素偏差为x1,此时,x1大于0;当所述标靶图像的图像中心点c1在所述光点影像水平方向向左距离x2个像素的图像位置时,像素偏差为x2,此时,x2小于0。当所述标靶图像的图像中心点c1在所述光点影像竖直方向向上距离y1个像素的图像位置时,像素偏差为y1,此时,y1大于0;当所述标靶图像的图像中心点c1在所述光点影像竖直方向向下距离y2个像素的图像位置时,像素偏差为y2,此时,y2小于0。For example, when the image center point c1 of the target image is at an image position x1 pixels to the right of the light spot image in the horizontal direction, the pixel deviation is x1, and at this time, x1 is greater than 0; when the image center point c1 of the target image is at an image position x2 pixels to the left of the light spot image in the horizontal direction, the pixel deviation is x2, and at this time, x2 is less than 0. When the image center point c1 of the target image is at an image position y1 pixels upward in the vertical direction of the light spot image, the pixel deviation is y1, and at this time, y1 is greater than 0; when the image center point c1 of the target image is at an image position y2 pixels downward in the vertical direction of the light spot image, the pixel deviation is y2, and at this time, y2 is less than 0.
如果将沿第一方向的像素偏差表示为dx,将沿第二方向的像素偏差表示为dy,以图4所示的标靶图像400为例,该幅标靶图像对应的沿第一方向(即水平方向)像素偏差为dx,dx>0,沿第二方向(即竖直方向)像素偏差为dy,dy<0。If the pixel deviation along the first direction is represented as dx, and the pixel deviation along the second direction is represented as dy, taking the target image 400 shown in Figure 4 as an example, the pixel deviation along the first direction (i.e., horizontal direction) corresponding to the target image is dx, dx>0, and the pixel deviation along the second direction (i.e., vertical direction) is dy, dy<0.
按照上述方法,可以获取到若干幅标靶图像各自对应的沿第一方向的像素偏差,以及,获取到若干幅标靶图像各自对应的沿第二方向的像素偏差。According to the above method, the pixel deviations along the first direction corresponding to each of the plurality of target images can be obtained, and the pixel deviations along the second direction corresponding to each of the plurality of target images can be obtained.
由图5所示的标靶图像采集场景可以看出,对于基于图像采集的打靶设备,在打靶过程中,存在一条瞄准基线,一条射击线。如图5中的瞄准基线501和射击线502。其中,瞄准基线501是由照门和准星两点形成的一条直线,人眼沿照门、准星形成的瞄准基线进行瞄准;射击线502是图像采集装置的中心线沿图像采集装置的出口方向的射线。当标靶位于不同打靶距离时,由于人眼瞄准的差异性,瞄准基线501和射击线502往往既不平行也没有重合,二者之间存在不同方向的偏差,即本申请实施例中所述的瞄准像素偏差。本申请实施例中,前述标靶图像对应的沿第一方向和第二方向的像素偏差,即分别为标靶图像对应的沿第一方向和第二方向的瞄准像素偏差。It can be seen from the target image acquisition scene shown in FIG5 that for the target shooting equipment based on image acquisition, there is an aiming baseline and a shooting line during the target shooting process. Such as the aiming baseline 501 and the shooting line 502 in FIG5. Among them, the aiming baseline 501 is a straight line formed by the rear sight and the front sight, and the human eye aims along the aiming baseline formed by the rear sight and the front sight; the shooting line 502 is the ray of the center line of the image acquisition device along the exit direction of the image acquisition device. When the target is located at different target shooting distances, due to the differences in the aiming of the human eye, the aiming baseline 501 and the shooting line 502 are often neither parallel nor overlapped, and there are deviations in different directions between the two, that is, the aiming pixel deviation described in the embodiment of the present application. In the embodiment of the present application, the pixel deviations along the first direction and the second direction corresponding to the aforementioned target image are, respectively, the aiming pixel deviations along the first direction and the second direction corresponding to the target image.
进一步的,根据获取到若干幅标靶图像各自对应的沿第一方向的瞄准像素偏差,以及,获取到若干幅标靶图像各自对应的沿第二方向的瞄准像素偏差,可以得到每幅标靶图像中靶面影像的半径各自对应的沿第一方向的瞄准像素偏差,以及,沿第二方向的瞄准像素偏差。Furthermore, based on obtaining the aiming pixel deviations along the first direction corresponding to each of the several target images and obtaining the aiming pixel deviations along the second direction corresponding to each of the several target images, the aiming pixel deviations along the first direction corresponding to the radius of the target surface image in each target image and the aiming pixel deviations along the second direction can be obtained.
本申请的一些实施例中,可以通过图像测量法,获得上述每幅标靶图像中靶面影像的半径,如图4中圆形靶面影像的半径。例如,在已知所述第一打靶图像像素尺寸的情况下,基于边缘检测等图像处理技术识别出靶面影像区域,再基于平面图像测量技术确定靶面半径。本申请实施例中对获取靶面影像的半径的具体实施方式不做限制。In some embodiments of the present application, the radius of the target surface image in each of the above target images can be obtained by image measurement, such as the radius of the circular target surface image in Figure 4. For example, when the pixel size of the first target image is known, the target surface image area is identified based on image processing techniques such as edge detection, and then the target surface radius is determined based on plane image measurement technology. The specific implementation method for obtaining the radius of the target surface image is not limited in the embodiments of the present application.
基于成像原理可知,具体打靶设备的打靶距离不同,打靶设备采集的同一标靶的标靶图像中靶面影像的半径大小不同。对于同一标靶,采用同一打靶设备打靶时,打靶距离越小,打靶设备采集的标靶图像中靶面影像的半径越大;反之,打靶距离越大,打靶设备采集的标靶图像中靶面影像的半径越小。即,打靶设备采集的标靶图像中靶面影像的半径大小,与打靶距离相对应。因此,每幅标靶图像中靶面影像的半径各自对应的沿第一方向的瞄准像素偏差,以及,沿第二方向的瞄准像素偏差,本质上反映了每幅标靶图像对应的打靶距离各自对应的沿第一方向的瞄准像素偏差,以及,沿第二方向的瞄准像素偏差。Based on the imaging principle, it can be known that the radius of the target surface image in the target image of the same target collected by the targeting device is different due to the different targeting distances of the specific targeting device. For the same target, when the same targeting device is used for targeting, the smaller the targeting distance, the larger the radius of the target surface image in the target image collected by the targeting device; conversely, the larger the targeting distance, the smaller the radius of the target surface image in the target image collected by the targeting device. That is, the radius of the target surface image in the target image collected by the targeting device corresponds to the targeting distance. Therefore, the radius of the target surface image in each target image, the corresponding aiming pixel deviation along the first direction, and the aiming pixel deviation along the second direction, essentially reflect the aiming pixel deviation along the first direction, and the aiming pixel deviation along the second direction, corresponding to the targeting distance corresponding to each target image.
步骤130,基于各所述标靶图像对应的所述预设方向瞄准像素偏差和对应的所述靶面影像的半径,拟合得到各所述标靶图像中所述预设方向瞄准像素偏差与对应的所述靶面影像的半径之间的映射关系。Step 130, based on the preset direction aiming pixel deviation corresponding to each of the target images and the radius of the corresponding target surface image, a mapping relationship between the preset direction aiming pixel deviation in each of the target images and the radius of the corresponding target surface image is fitted.
接下来,基于前述步骤得到的各标靶图像的靶面影像的半径对应的沿第一方 向的瞄准像素偏差,对所述打靶设备采集的标靶图像中所述第一方向瞄准像素偏差与靶面影像的半径之间的映射关系进行拟合,以及,基于前述步骤得到的各标靶图像的靶面影像的半径对应的沿第二方向的瞄准像素偏差,对所述打靶设备采集的标靶图像中所述第二方向瞄准像素偏差与靶面影像的半径之间的映射关系进行拟合。Next, based on the aiming pixel deviation along the first direction corresponding to the radius of the target surface image of each target image obtained in the aforementioned steps, the mapping relationship between the aiming pixel deviation in the first direction and the radius of the target surface image in the target image collected by the targeting device is fitted, and, based on the aiming pixel deviation along the second direction corresponding to the radius of the target surface image of each target image obtained in the aforementioned steps, the mapping relationship between the aiming pixel deviation in the second direction and the radius of the target surface image in the target image collected by the targeting device is fitted.
本申请的一些实施例中,基于各所述标靶图像对应的所述预设方向瞄准像素偏差和对应的所述靶面影像的半径,拟合得到各所述标靶图像中所述预设方向瞄准像素偏差与对应的所述靶面影像的半径之间的映射关系,包括:对于各幅所述标靶图像,以每幅所述标靶图像对应的所述靶面影像的半径为自变量,以相应所述标靶图像对应的所述预设方向瞄准像素偏差为因变量,采用线性函数拟合所述打靶设备采集的标靶图像中所述预设方向瞄准像素偏差与所述靶面影像的半径之间的映射关系。例如,可以采用形如y=kx+b的线性函数表示预设方向的瞄准像素偏差与靶面影像的半径之间的映射关系,其中,x的取值为各标靶图像中靶面影像的半径,y为相应标靶图像对应的预设方向的瞄准像素偏差。In some embodiments of the present application, based on the preset direction aiming pixel deviation corresponding to each of the target images and the radius of the corresponding target surface image, a mapping relationship between the preset direction aiming pixel deviation in each of the target images and the radius of the corresponding target surface image is fitted, including: for each of the target images, taking the radius of the target surface image corresponding to each of the target images as an independent variable, taking the preset direction aiming pixel deviation corresponding to the corresponding target image as a dependent variable, and using a linear function to fit the mapping relationship between the preset direction aiming pixel deviation in the target image collected by the shooting device and the radius of the target surface image. For example, a linear function of the form y=kx+b can be used to represent the mapping relationship between the preset direction aiming pixel deviation and the radius of the target surface image, wherein the value of x is the radius of the target surface image in each target image, and y is the preset direction aiming pixel deviation corresponding to the corresponding target image.
如前所述,所述预设方向包括:第一方向,以及与所述第一方向垂直的第二方向,相应的,根据靶面影像的半径对应的沿不同方向的瞄准像素偏差,可以分别得到相应方向上瞄准像素偏差与靶面影像的半径的映射关系。As mentioned above, the preset direction includes: a first direction, and a second direction perpendicular to the first direction. Accordingly, according to the aiming pixel deviations along different directions corresponding to the radius of the target surface image, the mapping relationship between the aiming pixel deviations in the corresponding directions and the radius of the target surface image can be obtained respectively.
本申请的一些实施例中,所述以每幅所述标靶图像对应的所述靶面影像的半径为自变量,以相应所述标靶图像对应的所述预设方向瞄准像素偏差为因变量,采用线性函数拟合所述打靶设备采集的标靶图像中所述预设方向瞄准像素偏差与所述靶面影像的半径之间的映射关系,包括:以每幅所述标靶图像对应的所述靶面影像的半径为自变量,以相应所述标靶图像对应的第一方向瞄准像素偏差为因变量,采用线性函数拟合所述打靶设备采集的标靶图像中第一方向瞄准像素偏差与所述靶面影像的半径之间的映射关系;以及,以每幅所述标靶图像对应的所述靶面影像的半径为自变量,以相应所述标靶图像对应的第二方向瞄准像素偏差为因变量,采用线性函数拟合所述打靶设备采集的标靶图像中第二方向瞄准像素偏差与所述靶面影像的半径之间的映射关系。In some embodiments of the present application, the radius of the target surface image corresponding to each of the target images is taken as the independent variable, the preset direction aiming pixel deviation corresponding to the corresponding target image is taken as the dependent variable, and a linear function is used to fit the mapping relationship between the preset direction aiming pixel deviation in the target image collected by the targeting device and the radius of the target surface image, including: taking the radius of the target surface image corresponding to each of the target images as the independent variable, taking the first direction aiming pixel deviation corresponding to the corresponding target image as the dependent variable, and using a linear function to fit the mapping relationship between the first direction aiming pixel deviation in the target image collected by the targeting device and the radius of the target surface image; and taking the radius of the target surface image corresponding to each of the target images as the independent variable, taking the second direction aiming pixel deviation corresponding to the corresponding target image as the dependent variable, and using a linear function to fit the mapping relationship between the second direction aiming pixel deviation in the target image collected by the targeting device and the radius of the target surface image.
以第一方向为水平方向为例,在拟合水平方向瞄准像素偏差与所述靶面影像的半径之间的映射关系时,线性函数的自变量为R,因变量为y H。即,对于每幅标靶图像,以该标靶图像中靶面影像的半径R为自变量,以该标靶图像对应的水平方向的瞄准像素偏差作为因变量y H,构建若干线性函数,之后,通过求解最佳的k值和b值,拟合水平方向瞄准像素偏差相对于靶面影像的半径R的线性分布关系,从而确定上述各标靶图像对应的沿水平方向的瞄准像素差与所述靶面影像的半径之间的线性映射关系y H=k HR+b H,即确定该打靶设备在水平方向的瞄准像素差与所述靶面影像的半径之间的线性映射关系。 Taking the first direction as the horizontal direction as an example, when fitting the mapping relationship between the horizontal direction aiming pixel deviation and the radius of the target surface image, the independent variable of the linear function is R, and the dependent variable is y H . That is, for each target image, the radius R of the target surface image in the target image is taken as the independent variable, and the horizontal direction aiming pixel deviation corresponding to the target image is taken as the dependent variable y H , and several linear functions are constructed. Then, by solving the optimal k value and b value, the linear distribution relationship of the horizontal direction aiming pixel deviation relative to the radius R of the target surface image is fitted, so as to determine the linear mapping relationship y H =k H R+b H between the aiming pixel difference along the horizontal direction corresponding to each target image and the radius of the target surface image, that is, to determine the linear mapping relationship between the aiming pixel difference in the horizontal direction of the target shooting device and the radius of the target surface image.
相应的,在拟合竖直方向瞄准像素偏差与所述靶面影像的半径之间的映射关系时,线性函数的自变量为R,因变量为y V。即,对于每幅标靶图像,以该标靶图像中靶面影像的半径R为自变量,以该标靶图像对应的竖直方向的瞄准像素偏差作为因变量y V,构建若干线性函数,之后,通过求解最佳的k值和b值,拟合水平方向瞄准像素偏差相对于靶面影像的半径R的线性分布关系,从而确定上述各标靶图像对应的沿竖直方向的瞄准像素差与所述靶面影像的半径之间的线性映射关系y V=k VR+b V,即确定该打靶设备在竖直方向的瞄准像素差与所述靶面影像的半径之间的线性映射关系。 Correspondingly, when fitting the mapping relationship between the vertical aiming pixel deviation and the radius of the target surface image, the independent variable of the linear function is R, and the dependent variable is y V . That is, for each target image, the radius R of the target surface image in the target image is taken as the independent variable, and the vertical aiming pixel deviation corresponding to the target image is taken as the dependent variable y V , and several linear functions are constructed. Then, by solving the optimal k value and b value, the linear distribution relationship of the horizontal aiming pixel deviation relative to the radius R of the target surface image is fitted, so as to determine the linear mapping relationship y V =k V R+b V between the aiming pixel difference in the vertical direction corresponding to each target image and the radius of the target surface image, that is, to determine the linear mapping relationship between the aiming pixel difference in the vertical direction of the target shooting device and the radius of the target surface image.
步骤140,根据所述映射关系,获取对所述打靶设备基于不同打靶距离时采集的标靶图像的图像中心点进行校准的目标瞄准像素偏差。Step 140: According to the mapping relationship, a target aiming pixel deviation for calibrating the image center point of the target image acquired by the target shooting device at different target shooting distances is obtained.
如前所述,对于一个打靶设备,当标靶位于不同打靶距离时,采集的标靶图像中靶面影像的半径与打靶距离存在对应关系。因此,标靶图像中所述预设方向瞄准像素偏差与对应的所述靶面影像的半径之间的映射关系,即可作为预设方向瞄准像素偏差与不同打靶距离的映射关系。即,对于已知一打靶距离,采集的标靶图像中靶面影像的半径是已知的,根据前述步骤确定的映射关系,即可分别确定第一方向对应的瞄准像素偏差,以及,第二方向对应的瞄准像素偏差。确定的第一方向对应的瞄准像素偏差,即为对该打靶设备基于该打靶距离时采集的标靶图像的图像中心点进行校准的第一方向的目标瞄准像素偏差;确定的第二方向对应的瞄准像素偏差,即为对该打靶设备基于该打靶距离时采集的标靶图像的图像中心点进行校准的第二方向的目标瞄准像素偏差。As mentioned above, for a target shooting device, when the target is located at different target shooting distances, there is a corresponding relationship between the radius of the target surface image in the collected target image and the target shooting distance. Therefore, the mapping relationship between the preset direction aiming pixel deviation in the target image and the corresponding radius of the target surface image can be used as the mapping relationship between the preset direction aiming pixel deviation and different target shooting distances. That is, for a known target shooting distance, the radius of the target surface image in the collected target image is known, and according to the mapping relationship determined in the above steps, the aiming pixel deviation corresponding to the first direction and the aiming pixel deviation corresponding to the second direction can be determined respectively. The aiming pixel deviation corresponding to the determined first direction is the target aiming pixel deviation of the first direction for calibrating the image center point of the target image collected by the target shooting device based on the target shooting distance; the aiming pixel deviation corresponding to the determined second direction is the target aiming pixel deviation of the second direction for calibrating the image center point of the target image collected by the target shooting device based on the target shooting distance.
本申请的另一些实施例中,如图6所示,所述方法还包括:步骤150至步骤170。In some other embodiments of the present application, as shown in FIG. 6 , the method further includes: steps 150 to 170 .
步骤150,获取所述打靶设备的射击触发装置在触发时由所述图像采集装置采集的标靶图像中靶面影像的半径。 Step 150, obtaining the radius of the target surface image in the target image captured by the image acquisition device when the shooting trigger device of the target shooting equipment is triggered.
在确定各所述标靶图像中所述预设方向瞄准像素偏差与对应的所述靶面影像的半径之间的映射关系之后,进一步的,根据所述映射关系,即可获取所述打靶设备基于不同打靶距离时采集的标靶图像的图像中心点进行校准的目标瞄准像素偏差。例如,在打靶设备基于设定打靶距离时打靶时,打靶设备将采集一幅该打靶距离对应的标靶图像,按照前文所述方法,可以进一步确定采集的标靶图像中靶面影像的半径R。After determining the mapping relationship between the preset direction aiming pixel deviation in each of the target images and the radius of the corresponding target surface image, further, according to the mapping relationship, the target aiming pixel deviation calibrated by the target image center point of the target image collected by the target shooting device at different target shooting distances can be obtained. For example, when the target shooting device is shooting at a set target shooting distance, the target shooting device will collect a target image corresponding to the target shooting distance. According to the method described above, the radius R of the target surface image in the collected target image can be further determined.
步骤160,根据所述半径,获取对所述标靶图像的图像中心点进行校准的目标瞄准像素偏差。Step 160: Obtaining a target aiming pixel deviation for calibrating an image center point of the target image according to the radius.
接下来,基于所获得的设定打靶距离下打靶的靶面影像的半径R根据映射关系获得对应的目标瞄准像素偏差。具体地,将所述半径R带入前述步骤拟合得到的第一方向的所述映射关系y H=k HR+b H,得到对应的y H,即为对该标靶图像的图像 中心点进行校准的沿第一方向的目标瞄准像素偏差。同理,将半径R带入前述步骤拟合得到的第二方向的所述映射关系y V=k VR+b V,得到对应的y V,即为对该标靶图像的图像中心点进行校准的沿第二方向的目标瞄准像素偏差。 Next, based on the radius R of the target surface image of the target at the set target distance, the corresponding target aiming pixel deviation is obtained according to the mapping relationship. Specifically, the radius R is substituted into the mapping relationship y H =k H R+b H of the first direction obtained by fitting in the above step, and the corresponding y H is obtained, which is the target aiming pixel deviation along the first direction for calibrating the image center point of the target image. Similarly, the radius R is substituted into the mapping relationship y V =k V R+b V of the second direction obtained by fitting in the above step, and the corresponding y V is obtained, which is the target aiming pixel deviation along the second direction for calibrating the image center point of the target image.
步骤170,分别对所述标靶图像的图像中心点对应的各预设方向的像素坐标叠加对应的所述目标瞄准像素偏差,作为所述打靶设备的射击中心点,使得所述打靶设备的射击线与所述打靶设备的瞄准基线重合。Step 170, respectively superimposing the corresponding target aiming pixel deviation on the pixel coordinates of each preset direction corresponding to the image center point of the target image as the shooting center point of the targeting device, so that the shooting line of the targeting device coincides with the aiming baseline of the targeting device.
最后,对所述标靶图像的图像中心点对应第一方向的像素坐标,叠加沿第一方向的目标瞄准像素偏差y H,对所述标靶图像的图像中心点对应第二方向的像素坐标,叠加沿第二方向的目标瞄准像素偏差y V,得到的像素坐标对应的所述标靶图像中的像素点,即可作为所述打靶设备本次的射击中心点。 Finally, the pixel coordinates of the image center point of the target image corresponding to the first direction are superimposed with the target aiming pixel deviation yH along the first direction, and the pixel coordinates of the image center point of the target image corresponding to the second direction are superimposed with the target aiming pixel deviation yV along the second direction. The pixel point in the target image corresponding to the obtained pixel coordinates can be used as the shooting center point of the target shooting device this time.
经过上述校准,相当于将所述打靶设备本次打靶的射击线502调整到与所述打靶设备的瞄准基线501重合,这样,计算得到的射击中心点能够更加准确的反映打靶者的瞄准准度。After the above calibration, it is equivalent to adjusting the shooting line 502 of the target shooting device to coincide with the aiming baseline 501 of the target shooting device, so that the calculated shooting center point can more accurately reflect the aiming accuracy of the shooter.
本申请实施例公开的打靶设备的校准方法,应用于基于图像采集的打靶装置,通过为校准所述打靶设备配置的光束发射装置,使得光束发射装置发射的光束的照射方向指向所述图像采集装置的图像采集视场,之后,通过获取所述图像采集装置采集的,标靶位于不同打靶距离时对应的若干幅标靶图像,其中,所述标靶图像中包括:靶面影像以及所述光束直射在所述标靶的靶面上形成的光点影像;根据每幅所述标靶图像中的所述光点影像和所述标靶图像,获取各所述标靶图像对应的预设方向瞄准像素偏差;基于各所述标靶图像对应的所述预设方向瞄准像素偏差和对应的所述靶面影像的半径,拟合得到各所述标靶图像中所述预设方向瞄准像素偏差与对应的所述靶面影像的半径之间的映射关系,使得根据所述映射关系,可以获取对所述打靶设备基于不同打靶距离时采集的标靶图像的图像中心点进行校准的目标瞄准像素偏差,从而对标靶图像的图像中心点进行校准,有助于提升确定打靶设备射击中心点的准确度。The calibration method of a target shooting device disclosed in an embodiment of the present application is applied to a target shooting device based on image acquisition, wherein a light beam emitting device configured for calibrating the target shooting device is used so that the irradiation direction of the light beam emitted by the light beam emitting device points to the image acquisition field of view of the image acquisition device, and then a plurality of target images corresponding to a target at different target shooting distances acquired by the image acquisition device are acquired, wherein the target image includes: a target surface image and a light spot image formed by the light beam directly irradiating on the target surface of the target; according to the light spot image and the target image in each of the target images, a preset direction aiming pixel deviation corresponding to each of the target images is acquired; based on the preset direction aiming pixel deviation corresponding to each of the target images and the radius of the corresponding target surface image, a mapping relationship between the preset direction aiming pixel deviation in each of the target images and the radius of the corresponding target surface image is fitted, so that according to the mapping relationship, a target aiming pixel deviation for calibrating the image center point of the target image acquired by the target shooting device at different target shooting distances can be acquired, thereby calibrating the image center point of the target image, which helps to improve the accuracy of determining the shooting center point of the target shooting device.
本申请实施例公开的打靶设备的校准方法,通过获取不同打靶距离下光点影像的中心点(如激光瞄准点)与标靶图像的图像中心点(如摄像头中心点)的偏差,对不同打靶距离下拍摄的标靶图像的图像中心点进行矫正,实现射击线与瞄准基线重合。本申请实施例公开的打靶设备的校准方法,能够保证在不同打靶距离下,按照人眼、照门、准星形成三点一线的瞄准点即为射击中心点,可以提升不同打靶距离下的射击中心点的确定准确度。The calibration method of the target shooting equipment disclosed in the embodiment of the present application obtains the deviation between the center point of the light spot image (such as the laser aiming point) and the image center point of the target image (such as the camera center point) at different target shooting distances, and corrects the image center point of the target image taken at different target shooting distances to achieve the coincidence of the shooting line and the aiming baseline. The calibration method of the target shooting equipment disclosed in the embodiment of the present application can ensure that at different target shooting distances, the aiming point formed by the three points of the human eye, the rear sight, and the front sight is the shooting center point, which can improve the accuracy of determining the shooting center point at different target shooting distances.
实施例二Embodiment 2
本申请实施例公开的一种打靶设备的校准装置,应用于设置有图像采集装置的打靶设备,其中,为校准所述打靶设备配置的光束发射装置发射的光束的照射 方向指向所述图像采集装置的图像采集视场.如图7所示,所述装置包括:The present application discloses a calibration device for a target shooting device, which is applied to a target shooting device provided with an image acquisition device, wherein the irradiation direction of a light beam emitted by a light beam emitting device configured for calibrating the target shooting device points to the image acquisition field of view of the image acquisition device. As shown in FIG7 , the device comprises:
标靶图像获取模块710,用于获取所述图像采集装置采集的,标靶位于不同打靶距离时对应的若干幅标靶图像,其中,所述标靶图像中包括:靶面影像以及所述光束直射在所述标靶的靶面上形成的光点影像;The target image acquisition module 710 is used to acquire a plurality of target images corresponding to the target at different shooting distances acquired by the image acquisition device, wherein the target image includes: a target surface image and a light spot image formed by the light beam directly incident on the target surface;
瞄准像素偏差获取模块720,用于根据每幅所述标靶图像中的所述光点影像和所述标靶图像,获取各所述标靶图像对应的预设方向瞄准像素偏差;The aiming pixel deviation acquisition module 720 is used to acquire the aiming pixel deviation of the preset direction corresponding to each target image according to the light spot image and the target image in each target image;
映射关系获取模块730,用于基于各所述标靶图像对应的所述预设方向瞄准像素偏差和对应的所述靶面影像的半径,拟合得到各所述标靶图像中所述预设方向瞄准像素偏差与对应的所述靶面影像的半径之间的映射关系;A mapping relationship acquisition module 730 is used to fit the mapping relationship between the preset direction aiming pixel deviation in each target image and the corresponding radius of the target surface image based on the preset direction aiming pixel deviation corresponding to each target image and the corresponding radius of the target surface image;
校准偏差获取模块740,用于根据所述映射关系,获取对所述打靶设备基于不同打靶距离时采集的标靶图像的图像中心点进行校准的目标瞄准像素偏差。The calibration deviation acquisition module 740 is used to acquire the target aiming pixel deviation for calibrating the image center point of the target image collected by the shooting device at different shooting distances according to the mapping relationship.
本申请的一些实施例中,所述瞄准像素偏差获取模块720,进一步用于:In some embodiments of the present application, the aiming pixel deviation acquisition module 720 is further used to:
对于每幅所述标靶图像,根据所述标靶图像的图像中心点沿预设方向相对于所述光点影像的影像中心点的像素偏差,确定不同打靶距离时对应的各所述标靶图像对应的预设方向瞄准像素偏差。For each of the target images, the aiming pixel deviation in the preset direction corresponding to each of the target images at different shooting distances is determined according to the pixel deviation of the image center point of the target image along the preset direction relative to the image center point of the light spot image.
本申请的一些实施例中,所述基于各所述标靶图像对应的所述预设方向瞄准像素偏差和对应的所述靶面影像的半径,拟合得到各所述标靶图像中所述预设方向瞄准像素偏差与对应的所述靶面影像的半径之间的映射关系,包括:In some embodiments of the present application, the mapping relationship between the preset direction aiming pixel deviation and the corresponding radius of the target surface image in each target image is fitted based on the preset direction aiming pixel deviation corresponding to each target image and the corresponding radius of the target surface image, including:
对于各幅所述标靶图像,以每幅所述标靶图像对应的所述靶面影像的半径为自变量,以相应所述标靶图像对应的所述预设方向瞄准像素偏差为因变量,采用线性函数拟合所述打靶设备采集的标靶图像中所述预设方向瞄准像素偏差与所述靶面影像的半径之间的映射关系。For each of the target images, the radius of the target surface image corresponding to each of the target images is taken as the independent variable, and the preset direction aiming pixel deviation corresponding to the corresponding target image is taken as the dependent variable, and a linear function is used to fit the mapping relationship between the preset direction aiming pixel deviation in the target image collected by the targeting device and the radius of the target surface image.
本申请的一些实施例中,所述预设方向包括:第一方向,以及与所述第一方向垂直的第二方向,所述以每幅所述标靶图像对应的所述靶面影像的半径为自变量,以相应所述标靶图像对应的所述预设方向瞄准像素偏差为因变量,采用线性函数拟合所述打靶设备采集的标靶图像中所述预设方向瞄准像素偏差与所述靶面影像的半径之间的映射关系,包括:In some embodiments of the present application, the preset direction includes: a first direction, and a second direction perpendicular to the first direction, the radius of the target surface image corresponding to each of the target images is used as an independent variable, the preset direction aiming pixel deviation corresponding to the corresponding target image is used as a dependent variable, and a linear function is used to fit the mapping relationship between the preset direction aiming pixel deviation in the target image collected by the shooting device and the radius of the target surface image, including:
以每幅所述标靶图像对应的所述靶面影像的半径为自变量,以相应所述标靶图像对应的第一方向瞄准像素偏差为因变量,采用线性函数拟合所述打靶设备采集的标靶图像中第一方向瞄准像素偏差与所述靶面影像的半径之间的映射关系;以及,Taking the radius of the target surface image corresponding to each of the target images as an independent variable and the first direction aiming pixel deviation corresponding to the corresponding target image as a dependent variable, a linear function is used to fit the mapping relationship between the first direction aiming pixel deviation in the target image collected by the shooting device and the radius of the target surface image; and
以每幅所述标靶图像对应的所述靶面影像的半径为自变量,以相应所述标靶图像对应的第二方向瞄准像素偏差为因变量,采用线性函数拟合所述打靶设备采集的标靶图像中第二方向瞄准像素偏差与所述靶面影像的半径之间的映射关系。The radius of the target surface image corresponding to each target image is taken as the independent variable, the second direction aiming pixel deviation corresponding to the corresponding target image is taken as the dependent variable, and a linear function is used to fit the mapping relationship between the second direction aiming pixel deviation in the target image collected by the shooting device and the radius of the target surface image.
本申请的一些实施例中,如图8所示,所述装置还包括:In some embodiments of the present application, as shown in FIG8 , the device further includes:
打靶图像获取模块750,用于获取所述打靶设备的射击触发装置在触发时由所述图像采集装置采集的标靶图像中靶面影像的半径;The target shooting image acquisition module 750 is used to acquire the radius of the target surface image in the target image acquired by the image acquisition device when the shooting trigger device of the target shooting equipment is triggered;
校准模块760,用于根据所述半径,获取对所述标靶图像的图像中心点进行校准的目标瞄准像素偏差;以及,分别对所述标靶图像的图像中心点对应的各预设方向的像素坐标叠加对应的所述目标瞄准像素偏差,作为所述打靶设备的射击中心点,使得所述打靶设备的射击线与所述打靶设备的瞄准基线重合。The calibration module 760 is used to obtain the target aiming pixel deviation for calibrating the image center point of the target image according to the radius; and to superimpose the corresponding target aiming pixel deviation on the pixel coordinates of each preset direction corresponding to the image center point of the target image as the shooting center point of the targeting device, so that the shooting line of the targeting device coincides with the aiming baseline of the targeting device.
本申请实施例公开的打靶设备的校准装置,用于实现本申请实施例一中所述的打靶设备的校准方法,装置的各模块的具体实施方式不再赘述,可参见方法实施例相应步骤的具体实施方式。The calibration device for a target shooting device disclosed in the embodiment of the present application is used to implement the calibration method for the target shooting device described in the first embodiment of the present application. The specific implementation methods of each module of the device will not be repeated here, and reference may be made to the specific implementation methods of the corresponding steps in the method embodiment.
本申请实施例公开的打靶设备的校准装置,应用于基于图像采集的打靶装置,通过为校准所述打靶设备配置的光束发射装置,使得光束发射装置发射的光束的照射方向指向所述图像采集装置的图像采集视场,之后,通过获取所述图像采集装置采集的,标靶位于不同打靶距离时对应的若干幅标靶图像,其中,所述标靶图像中包括:靶面影像以及所述光束直射在所述标靶的靶面上形成的光点影像;根据每幅所述标靶图像中的所述光点影像和所述标靶图像,获取各所述标靶图像对应的预设方向瞄准像素偏差;基于各所述标靶图像对应的所述预设方向瞄准像素偏差和对应的所述靶面影像的半径,拟合得到各所述标靶图像中所述预设方向瞄准像素偏差与对应的所述靶面影像的半径之间的映射关系,使得根据所述映射关系,可以获取对所述打靶设备基于不同打靶距离时采集的标靶图像的图像中心点进行校准的目标瞄准像素偏差,从而对标靶图像的图像中心点进行校准,有助于提升确定打靶设备射击中心点的准确度。The calibration device of the target shooting device disclosed in the embodiment of the present application is applied to the target shooting device based on image acquisition, and a light beam emitting device configured for calibrating the target shooting device is used so that the irradiation direction of the light beam emitted by the light beam emitting device points to the image acquisition field of view of the image acquisition device. Then, a plurality of target images corresponding to the target at different target shooting distances acquired by the image acquisition device are acquired, wherein the target image includes: a target surface image and a light spot image formed by the light beam directly irradiating on the target surface of the target; according to the light spot image and the target image in each of the target images, a preset direction aiming pixel deviation corresponding to each of the target images is acquired; based on the preset direction aiming pixel deviation corresponding to each of the target images and the radius of the corresponding target surface image, a mapping relationship between the preset direction aiming pixel deviation in each of the target images and the radius of the corresponding target surface image is fitted, so that according to the mapping relationship, a target aiming pixel deviation for calibrating the image center point of the target image acquired by the target shooting device at different target shooting distances can be acquired, thereby calibrating the image center point of the target image, which helps to improve the accuracy of determining the shooting center point of the target shooting device.
本申请实施例公开的打靶设备的校准装置,通过获取不同打靶距离下光点影像的中心点(如激光瞄准点)与标靶图像的图像中心点(如摄像头中心点)的偏差,对不同打靶距离下拍摄的标靶图像的图像中心点进行矫正,实现射击线与瞄准基线重叠。本申请实施例公开的打靶设备的校准方法,能够保证在不同打靶距离下,按照人眼、照门、准星形成三点一线的瞄准点即为射击中心点,可以提升不同打靶距离下的射击中心点的确定准确度。The target shooting equipment calibration device disclosed in the embodiment of the present application obtains the deviation between the center point of the light spot image (such as the laser aiming point) and the image center point of the target image (such as the camera center point) at different target shooting distances, and corrects the image center point of the target image taken at different target shooting distances to achieve the overlap of the shooting line and the aiming baseline. The target shooting equipment calibration method disclosed in the embodiment of the present application can ensure that at different target shooting distances, the aiming point formed by the three points of the human eye, the rear sight, and the front sight is the shooting center point, which can improve the accuracy of determining the shooting center point at different target shooting distances.
相应的,本申请实施例还公开了一种打靶设备,以图9所示的打靶枪为例,所述打靶设备包括:Correspondingly, the embodiment of the present application further discloses a shooting device. Taking the shooting gun shown in FIG. 9 as an example, the shooting device includes:
准星901,设置在所述打靶设备的前端;A front sight 901 is arranged at the front end of the target shooting device;
照门902,设置在所述打靶设备的后端;所述照门902和所述准星901沿所述打靶设备的射击出口方向形成所述打靶设备的瞄准基线;The rear sight 902 is arranged at the rear end of the target shooting device; the rear sight 902 and the front sight 901 form a sighting baseline of the target shooting device along the shooting outlet direction of the target shooting device;
射击触发装置903,设置在所述打靶设备上;A shooting trigger device 903, arranged on the target shooting device;
图像采集装置904,设置在所述打靶设备上,用于在所述射击触发装置904被触发时采集设置在所述打靶设备前方设定距离处的标靶的标靶图像;An image acquisition device 904 is provided on the target shooting device and is used to acquire a target image of a target provided at a set distance in front of the target shooting device when the shooting trigger device 904 is triggered;
控制器905,用于根据所述标靶图像中靶面影像的半径和预设的与所述半径对应的用于校准标靶图像的图像中心点的目标瞄准像素偏差,对所述标靶图像的图像中心点进行校准,将校准后的点作为所述打靶设备的射击中心点,使得所述打靶设备的射击线与所述打靶设备的瞄准基线重合。 Controller 905 is used to calibrate the image center point of the target image according to the radius of the target surface image in the target image and a preset target aiming pixel deviation corresponding to the radius for calibrating the image center point of the target image, and use the calibrated point as the shooting center point of the targeting device, so that the shooting line of the targeting device coincides with the aiming baseline of the targeting device.
本申请的一些实施例中,所述控制器905可以设置在所述打靶设备主体上(例如,图9中的设置方式)。本申请的一些实施例中,所述控制器905可以设置在所述打靶设备主体之外。例如,所述控制器905可以为外挂的通用计算处理设备(如智能终端),或者,专用的打靶设备的打靶数据处理终端。本申请对控制器905的具体实施方式和设置位置不做限制。In some embodiments of the present application, the controller 905 can be arranged on the main body of the target shooting device (for example, the arrangement in FIG. 9 ). In some embodiments of the present application, the controller 905 can be arranged outside the main body of the target shooting device. For example, the controller 905 can be an external general-purpose computing and processing device (such as an intelligent terminal), or a target shooting data processing terminal of a dedicated target shooting device. The present application does not limit the specific implementation and setting position of the controller 905.
本申请的一些实施例中,所述打靶设备还包括:为校准所述打靶设备配置的光束发射装置。当连接于所述打靶设备上时,所述光束发射装置发射的光束的照射方向指向所述图像采集装置的图像采集视场。In some embodiments of the present application, the target shooting device further comprises: a light beam emitting device configured for calibrating the target shooting device. When connected to the target shooting device, the irradiation direction of the light beam emitted by the light beam emitting device points to the image acquisition field of view of the image acquisition device.
本申请的一些实施例中,所述光束发射装置与所述打靶设备可拆卸连接。In some embodiments of the present application, the light beam emitting device is detachably connected to the targeting equipment.
本申请的一些实施例中,所述控制器905,进一步包括:In some embodiments of the present application, the controller 905 further includes:
预设模块,用于执行如实施例一中部分步骤110至步骤140所述的打靶设备的校准方法,以获取对所述打靶设备基于不同打靶距离时采集的标靶图像的图像中心点进行校准的目标瞄准像素偏差;A preset module, used to execute the calibration method of the target shooting device as described in some steps 110 to 140 in the first embodiment, so as to obtain a target aiming pixel deviation for calibrating the image center point of the target image acquired by the target shooting device at different target shooting distances;
校准模块,用于获取所述射击触发装置被触发时由所述图像采集装置采集的标靶图像中靶面影像的半径;以及,根据所述半径,获取对所述标靶图像对应的射击中心点进行校准的目标瞄准像素偏差;A calibration module, used to obtain the radius of the target surface image in the target image acquired by the image acquisition device when the shooting trigger device is triggered; and, based on the radius, obtain the target aiming pixel deviation for calibrating the shooting center point corresponding to the target image;
所述校准模块,还用于分别对所述标靶图像的图像中心点对应的各预设方向的像素坐标叠加对应的所述目标瞄准像素偏差,作为所述打靶设备的射击中心点。The calibration module is also used to superimpose the corresponding target aiming pixel deviation on the pixel coordinates of each preset direction corresponding to the image center point of the target image, as the shooting center point of the target shooting device.
所述预设模块和所述校准模块的具体实施方式参见实施例一中的相关描述,此处不再赘述。The specific implementation of the preset module and the calibration module refers to the relevant description in the first embodiment, which will not be repeated here.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
以上对本申请提供的一种打靶设备的校准方法、装置及打靶设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其一种核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The calibration method, device and target shooting equipment provided by the present application are introduced in detail above. The principles and implementation methods of the present application are explained in this article using specific examples. The description of the above embodiments is only used to help understand the method of the present application and a core idea. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以 不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
本申请的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本申请实施例的电子设备中的一些或者全部部件的一些或者全部功能。本申请还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本申请的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the electronic device according to the embodiment of the present application. The present application can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
例如,图10示出了可以实现根据本申请的方法的电子设备。所述电子设备可以为PC机、移动终端、个人数字助理、平板电脑等。该电子设备传统上包括处理器1010和存储器1020及存储在所述存储器1020上并可在处理器1010上运行的程序代码1030,所述处理器1010执行所述程序代码1030时实现上述实施例中所述的方法。所述存储器1020可以为计算机程序产品或者计算机可读介质。存储器1020可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器1020具有用于执行上述方法中的任何方法步骤的计算机程序的程序代码1030的存储空间10201。例如,用于程序代码1030的存储空间10201可以包括分别用于实现上面的方法中的各种步骤的各个计算机程序。所述程序代码1030为计算机可读代码。这些计算机程序可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。所述计算机程序包括计算机可读代码,当所述计算机可读代码在电子设备上运行时,导致所述电子设备执行根据上述实施例的方法。For example, FIG. 10 shows an electronic device that can implement the method according to the present application. The electronic device can be a PC, a mobile terminal, a personal digital assistant, a tablet computer, etc. The electronic device traditionally includes a processor 1010 and a memory 1020 and a program code 1030 stored on the memory 1020 and can be run on the processor 1010, and the processor 1010 implements the method described in the above embodiment when executing the program code 1030. The memory 1020 can be a computer program product or a computer-readable medium. The memory 1020 can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk or a ROM. The memory 1020 has a storage space 10201 for the program code 1030 of the computer program for executing any method step in the above method. For example, the storage space 10201 for the program code 1030 can include various computer programs for implementing the various steps in the above method respectively. The program code 1030 is a computer-readable code. These computer programs can be read from one or more computer program products or written into the one or more computer program products. These computer program products include a program code carrier such as a hard disk, a compact disk (CD), a memory card or a floppy disk. The computer program includes a computer readable code, which, when executed on an electronic device, causes the electronic device to execute the method according to the above embodiments.
本申请实施例还公开了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请实施例所述的打靶设备的校准方法的步骤。The embodiment of the present application further discloses a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the calibration method of the target shooting equipment described in the embodiment of the present application are implemented.
这样的计算机程序产品可以为计算机可读存储介质,该计算机可读存储介质可以具有与图10所示的电子设备中的存储器1020类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩存储在所述计算机可读存储介质中。所述计算机可读存储介质通常为如参考图11所述的便携式或者固定存储单元。通常,存储单元包括计算机可读代码1030’,所述计算机可读代码1030’为由处理器读取的代码,这些代码被处理器执行时,实现上面所描述的方法中的各个步骤。Such a computer program product may be a computer-readable storage medium, which may have a storage segment, a storage space, etc. arranged similarly to the memory 1020 in the electronic device shown in FIG10. The program code may be compressed and stored in the computer-readable storage medium, for example, in an appropriate form. The computer-readable storage medium is typically a portable or fixed storage unit as described with reference to FIG11. Typically, the storage unit includes a computer-readable code 1030', which is a code read by a processor, and when these codes are executed by the processor, the various steps in the method described above are implemented.
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本申请的至少一个实施例 中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。References herein to "one embodiment," "embodiment," or "one or more embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. In addition, please note that examples of the term "in one embodiment" herein do not necessarily all refer to the same embodiment.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本申请的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本申请可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。In the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present application may be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some of the technical features therein with equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
工业实用性Industrial Applicability
本申请提供的一种打靶设备的校准方法、装置,以及,打靶设备,通过拟合得到的各标靶图像中预设方向瞄准像素偏差与对应的靶面影像的半径之间的映射关系,可以获取对打靶设备基于不同打靶距离时采集的标靶图像的图像中心点进行校准的目标瞄准像素偏差,从而能够对标靶图像的图像中心点进行校准,有助于提升确定打靶设备射击中心点的准确度,具有很强的工业实用性。The present application provides a calibration method and device for a target shooting device, as well as a target shooting device. By fitting the mapping relationship between the aiming pixel deviation in a preset direction in each target image and the radius of the corresponding target surface image, the target aiming pixel deviation can be obtained for calibrating the image center point of the target image collected by the target shooting device at different target shooting distances, thereby calibrating the image center point of the target image, which helps to improve the accuracy of determining the shooting center point of the target shooting device and has strong industrial applicability.

Claims (12)

  1. 一种打靶设备的校准方法,其特征在于,应用于设置有图像采集装置的打靶设备,其中,为校准所述打靶设备配置的光束发射装置发射的光束的照射方向指向所述图像采集装置的图像采集视场,所述校准方法包括:A method for calibrating a target shooting device, characterized in that it is applied to a target shooting device provided with an image acquisition device, wherein the irradiation direction of a light beam emitted by a light beam emitting device configured for calibrating the target shooting device points to the image acquisition field of view of the image acquisition device, and the calibration method comprises:
    获取所述图像采集装置采集的,标靶位于不同打靶距离时对应的若干幅标靶图像,其中,所述标靶图像中包括:靶面影像以及所述光束直射在所述标靶的靶面上形成的光点影像;Acquire a plurality of target images corresponding to when the target is located at different shooting distances, which are acquired by the image acquisition device, wherein the target image includes: a target surface image and a light spot image formed by the light beam directly irradiating the target surface;
    根据每幅所述标靶图像中的所述光点影像和所述标靶图像,获取各所述标靶图像对应的预设方向瞄准像素偏差;According to the light spot image and the target image in each of the target images, obtaining the aiming pixel deviation in the preset direction corresponding to each of the target images;
    基于各所述标靶图像对应的所述预设方向瞄准像素偏差和对应的所述靶面影像的半径,拟合得到各所述标靶图像中所述预设方向瞄准像素偏差与对应的所述靶面影像的半径之间的映射关系;Based on the preset direction aiming pixel deviation corresponding to each of the target images and the radius of the corresponding target surface image, a mapping relationship between the preset direction aiming pixel deviation in each of the target images and the radius of the corresponding target surface image is obtained by fitting;
    根据所述映射关系,获取对所述打靶设备基于不同打靶距离时采集的标靶图像的图像中心点进行校准的目标瞄准像素偏差。According to the mapping relationship, a target aiming pixel deviation is obtained for calibrating the image center point of the target image acquired by the target shooting device at different target shooting distances.
  2. 根据权利要求1所述的方法,其特征在于,所述根据每幅所述标靶图像中的所述光点影像和所述标靶图像,获取各所述标靶图像对应的预设方向瞄准像素偏差,包括:The method according to claim 1, characterized in that the step of obtaining the preset direction aiming pixel deviation corresponding to each target image according to the light spot image and the target image in each target image comprises:
    对于每幅所述标靶图像,根据所述标靶图像的图像中心点沿预设方向相对于所述光点影像的影像中心点的像素偏差,确定不同打靶距离时对应的各所述标靶图像对应的预设方向瞄准像素偏差。For each of the target images, the aiming pixel deviation in the preset direction corresponding to each of the target images at different shooting distances is determined according to the pixel deviation of the image center point of the target image along the preset direction relative to the image center point of the light spot image.
  3. 根据权利要求1所述的方法,其特征在于,所述基于各所述标靶图像对应的所述预设方向瞄准像素偏差和对应的所述靶面影像的半径,拟合得到各所述标靶图像中所述预设方向瞄准像素偏差与对应的所述靶面影像的半径之间的映射关系,包括:The method according to claim 1 is characterized in that, based on the preset direction aiming pixel deviation corresponding to each of the target images and the radius of the corresponding target surface image, fitting the mapping relationship between the preset direction aiming pixel deviation in each of the target images and the radius of the corresponding target surface image comprises:
    对于各幅所述标靶图像,以每幅所述标靶图像对应的所述靶面影像的半径为自变量,以相应所述标靶图像对应的所述预设方向瞄准像素偏差为因变量,采用线性函数拟合所述打靶设备采集的标靶图像中所述预设方向瞄准像素偏差与所述靶面影像的半径之间的映射关系。For each of the target images, the radius of the target surface image corresponding to each of the target images is taken as the independent variable, and the preset direction aiming pixel deviation corresponding to the corresponding target image is taken as the dependent variable, and a linear function is used to fit the mapping relationship between the preset direction aiming pixel deviation in the target image collected by the targeting device and the radius of the target surface image.
  4. 根据权利要求3所述的方法,其特征在于,所述预设方向包括:第一方向,以及与所述第一方向垂直的第二方向,所述以每幅所述标靶图像对应的所述靶面影像的半径为自变量,以相应所述标靶图像对应的所述预设方向瞄准像素偏差为因变量,采用线性函数拟合所述打靶设备采集的标靶图像中所述预设方向瞄准像素偏差与所述靶面影像的半径之间的映射关系,包括:The method according to claim 3 is characterized in that the preset direction includes: a first direction, and a second direction perpendicular to the first direction, the radius of the target surface image corresponding to each of the target images is used as an independent variable, the preset direction aiming pixel deviation corresponding to the corresponding target image is used as a dependent variable, and a linear function is used to fit the mapping relationship between the preset direction aiming pixel deviation in the target image collected by the shooting device and the radius of the target surface image, comprising:
    以每幅所述标靶图像对应的所述靶面影像的半径为自变量,以相应所述标靶图像对应的第一方向瞄准像素偏差为因变量,采用线性函数拟合所述打靶设备采集的标靶图像中第一方向瞄准像素偏差与所述靶面影像的半径之间的映射关系;以及,Taking the radius of the target surface image corresponding to each of the target images as an independent variable and the first direction aiming pixel deviation corresponding to the corresponding target image as a dependent variable, a linear function is used to fit the mapping relationship between the first direction aiming pixel deviation in the target image collected by the shooting device and the radius of the target surface image; and
    以每幅所述标靶图像对应的所述靶面影像的半径为自变量,以相应所述标靶图像对应的第二方向瞄准像素偏差为因变量,采用线性函数拟合所述打靶设备采集的标靶图像中第二方向瞄准像素偏差与所述靶面影像的半径之间的映射关系。The radius of the target surface image corresponding to each target image is taken as the independent variable, the second direction aiming pixel deviation corresponding to the corresponding target image is taken as the dependent variable, and a linear function is used to fit the mapping relationship between the second direction aiming pixel deviation in the target image collected by the shooting device and the radius of the target surface image.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述校准方法还包括:The method according to any one of claims 1 to 4, characterized in that the calibration method further comprises:
    获取所述打靶设备的射击触发装置在触发时由所述图像采集装置采集的标靶图像中靶面影像的半径;Acquire the radius of the target surface image in the target image acquired by the image acquisition device when the shooting trigger device of the target shooting equipment is triggered;
    根据所述半径,获取对所述标靶图像的图像中心点进行校准的目标瞄准像素偏差;According to the radius, obtaining a target aiming pixel deviation for calibrating an image center point of the target image;
    分别对所述标靶图像的图像中心点对应的各预设方向的像素坐标叠加对应的所述目标瞄准像素偏差,作为所述打靶设备的射击中心点,使得所述打靶设备的射击线与所述打靶设备的瞄准基线重合。The corresponding target aiming pixel deviation is superimposed on the pixel coordinates of each preset direction corresponding to the image center point of the target image as the shooting center point of the targeting device, so that the shooting line of the targeting device coincides with the aiming baseline of the targeting device.
  6. 一种打靶设备的校准装置,其特征在于,应用于设置有图像采集装置的打靶设备,其中,为校准所述打靶设备配置的光束发射装置发射的光束的照射方向指向所述图像采集装置的图像采集视场,所述校准装置包括:A calibration device for a target shooting device, characterized in that it is applied to a target shooting device provided with an image acquisition device, wherein the irradiation direction of a light beam emitted by a light beam emitting device configured for calibrating the target shooting device points to the image acquisition field of view of the image acquisition device, and the calibration device comprises:
    标靶图像获取模块,用于获取所述图像采集装置采集的,标靶位于不同打靶距离时对应的若干幅标靶图像,其中,所述标靶图像中包括:靶面影像以及所述光束直射在所述标靶的靶面上形成的光点影像;A target image acquisition module, used to acquire a plurality of target images corresponding to when the target is located at different target shooting distances, acquired by the image acquisition device, wherein the target image includes: a target surface image and a light spot image formed by the light beam directly incident on the target surface;
    瞄准像素偏差获取模块,用于根据每幅所述标靶图像中的所述光点影像和所述标靶图像,获取各所述标靶图像对应的预设方向瞄准像素偏差;An aiming pixel deviation acquisition module, used for acquiring an aiming pixel deviation in a preset direction corresponding to each target image according to the light spot image and the target image in each target image;
    映射关系获取模块,用于基于各所述标靶图像对应的所述预设方向瞄准像素偏差和对应的所述靶面影像的半径,拟合得到各所述标靶图像中所述预设方向瞄准像素偏差与对应的所述靶面影像的半径之间的映射关系;A mapping relationship acquisition module, used for fitting the mapping relationship between the preset direction aiming pixel deviation in each target image and the corresponding radius of the target surface image based on the preset direction aiming pixel deviation corresponding to each target image and the corresponding radius of the target surface image;
    校准偏差获取模块,用于根据所述映射关系,获取对所述打靶设备基于不同打靶距离时采集的标靶图像的图像中心点进行校准的目标瞄准像素偏差。The calibration deviation acquisition module is used to obtain the target aiming pixel deviation for calibrating the image center point of the target image collected by the shooting device at different shooting distances according to the mapping relationship.
  7. 一种打靶设备,其特征在于,包括:A target shooting device, characterized in that it comprises:
    准星,设置在所述打靶设备的前端;A front sight, arranged at the front end of the target shooting device;
    照门,设置在所述打靶设备的后端;所述照门和所述准星沿所述打靶设备的射击出口方向形成所述打靶设备的瞄准基线;A rear sight is arranged at the rear end of the target shooting device; the rear sight and the front sight form a sighting baseline of the target shooting device along the shooting outlet direction of the target shooting device;
    射击触发装置,设置在所述打靶设备上;A shooting trigger device, arranged on the target shooting device;
    图像采集装置,设置在所述打靶设备上,用于在所述射击触发装置被触发时采集设置在所述打靶设备前方设定距离处的标靶的标靶图像;An image acquisition device is provided on the target shooting device and is used to acquire a target image of a target provided at a set distance in front of the target shooting device when the shooting trigger device is triggered;
    控制器,用于根据所述标靶图像中靶面影像的半径和预设的与所述半径对应的用于校准标靶图像的图像中心点的目标瞄准像素偏差,对所述标靶图像的图像中心点进行校准,将校准后的点作为所述打靶设备的射击中心点,使得所述打靶设备的射击线与所述打靶设备的瞄准基线重合。A controller is used to calibrate the image center point of the target image according to the radius of the target surface image in the target image and a preset target aiming pixel deviation corresponding to the radius for calibrating the image center point of the target image, and use the calibrated point as the shooting center point of the targeting device so that the shooting line of the targeting device coincides with the aiming baseline of the targeting device.
  8. 根据权利要求7所述的打靶设备,其特征在于,还包括:为校准所述打靶设备配置的光束发射装置,当连接于所述打靶设备上时,所述光束发射装置发射的光束的照射方向指向所述图像采集装置的图像采集视场。The target practice device according to claim 7 is characterized in that it also includes: a light beam emitting device configured for calibrating the target practice device, and when connected to the target practice device, the irradiation direction of the light beam emitted by the light beam emitting device points to the image acquisition field of view of the image acquisition device.
  9. 根据权利要求8所述的打靶设备,其特征在于,所述光束发射装置与所述打靶设备可拆卸连接。The target shooting equipment according to claim 8 is characterized in that the light beam emitting device is detachably connected to the target shooting equipment.
  10. 根据权利要求7至9任一项所述的打靶设备,其特征在于,所述控制器,进一步包括:The target shooting device according to any one of claims 7 to 9, characterized in that the controller further comprises:
    预设模块,用于执行如权利要求1至4任一项所述的打靶设备的校准方法,以获取对所述打靶设备基于不同打靶距离时采集的标靶图像的图像中心点进行校准的目标瞄准像素偏差;A preset module, used to execute the calibration method of the target shooting device according to any one of claims 1 to 4, so as to obtain a target aiming pixel deviation for calibrating the image center point of the target image collected by the target shooting device at different target shooting distances;
    校准模块,用于获取所述射击触发装置被触发时由所述图像采集装置采集的标靶图像中靶面影像的半径;以及,根据所述半径,获取对所述标靶图像对应的射击中心点进行校准的目标瞄准像素偏差;A calibration module, used to obtain the radius of the target surface image in the target image acquired by the image acquisition device when the shooting trigger device is triggered; and, based on the radius, obtain the target aiming pixel deviation for calibrating the shooting center point corresponding to the target image;
    所述校准模块,还用于分别对所述标靶图像的图像中心点对应的各预设方向的像素坐标叠加对应的所述目标瞄准像素偏差,作为所述打靶设备的射击中心点。The calibration module is also used to superimpose the corresponding target aiming pixel deviation on the pixel coordinates of each preset direction corresponding to the image center point of the target image, as the shooting center point of the target shooting device.
  11. 一种电子设备,包括存储器、处理器及存储在所述存储器上并可在处理器上运行的程序代码,其特征在于,所述处理器执行所述程序代码时实现权利要求1至5任意一项所述的打靶设备的校准方法。An electronic device comprises a memory, a processor and a program code stored in the memory and executable on the processor, wherein the processor implements the target shooting equipment calibration method according to any one of claims 1 to 5 when executing the program code.
  12. 一种计算机可读存储介质,其上存储有程序代码,其特征在于,该程序代码被处理器执行时实现权利要求1至5任意一项所述的打靶设备的校准方法的步骤。A computer-readable storage medium having program codes stored thereon, characterized in that when the program codes are executed by a processor, the steps of the method for calibrating a target shooting device as claimed in any one of claims 1 to 5 are implemented.
PCT/CN2022/139719 2022-09-26 2022-12-16 Calibration method and apparatus for target shooting device, and target shooting device WO2024066077A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211173421.5A CN116625256A (en) 2022-09-26 2022-09-26 Calibration method and device of targeting equipment and targeting equipment
CN202211173421.5 2022-09-26

Publications (1)

Publication Number Publication Date
WO2024066077A1 true WO2024066077A1 (en) 2024-04-04

Family

ID=87601410

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/139719 WO2024066077A1 (en) 2022-09-26 2022-12-16 Calibration method and apparatus for target shooting device, and target shooting device

Country Status (2)

Country Link
CN (1) CN116625256A (en)
WO (1) WO2024066077A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006119070A (en) * 2004-10-25 2006-05-11 Mitsubishi Electric Corp Ballistic position measuring device and aiming implement for small firearm
US20170001101A1 (en) * 2014-03-13 2017-01-05 Maruzen Company Limited Shooting system, gun, and data processing device
CN108288290A (en) * 2017-12-07 2018-07-17 中国航空工业集团公司西安航空计算技术研究所 A kind of on-line automatic scaling method of target center being applied to intelligent sniping gun
CN109540087A (en) * 2018-11-16 2019-03-29 合肥英睿系统技术有限公司 A kind of method and apparatus of adjust automatically cursor position
CN110779395A (en) * 2019-11-06 2020-02-11 北京宏大天成防务装备科技有限公司 Target shooting correction system and method
CN111306988A (en) * 2018-12-12 2020-06-19 杭州海康威视数字技术股份有限公司 Calibration data determination method and device
CN114608463A (en) * 2022-03-08 2022-06-10 重庆市亿飞智联科技有限公司 Laser optical axis soft calibration method and device, electronic equipment and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006119070A (en) * 2004-10-25 2006-05-11 Mitsubishi Electric Corp Ballistic position measuring device and aiming implement for small firearm
US20170001101A1 (en) * 2014-03-13 2017-01-05 Maruzen Company Limited Shooting system, gun, and data processing device
CN108288290A (en) * 2017-12-07 2018-07-17 中国航空工业集团公司西安航空计算技术研究所 A kind of on-line automatic scaling method of target center being applied to intelligent sniping gun
CN109540087A (en) * 2018-11-16 2019-03-29 合肥英睿系统技术有限公司 A kind of method and apparatus of adjust automatically cursor position
CN111306988A (en) * 2018-12-12 2020-06-19 杭州海康威视数字技术股份有限公司 Calibration data determination method and device
CN110779395A (en) * 2019-11-06 2020-02-11 北京宏大天成防务装备科技有限公司 Target shooting correction system and method
CN114608463A (en) * 2022-03-08 2022-06-10 重庆市亿飞智联科技有限公司 Laser optical axis soft calibration method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN116625256A (en) 2023-08-22

Similar Documents

Publication Publication Date Title
US20230041706A1 (en) Method of calibrating a patient monitoring system for use with a radiotherapy treatment apparatus
CN106600648A (en) Stereo coding target for calibrating internal parameter and distortion coefficient of camera and calibration method thereof
US11436750B2 (en) Optical tracking system and optical tracking method
US10323905B2 (en) Laser shooting training system and method
CN107727616B (en) Auxiliary focusing method and device
CN110580724A (en) method and device for calibrating binocular camera set and storage medium
CN104089628B (en) Self-adaption geometric calibration method of light field camera
CN110880188B (en) Calibration method, calibration device and calibration system for near-eye display optical system
US9070189B2 (en) Image blurring correction device
CN107241592B (en) Imaging device and imaging method
US10196005B2 (en) Method and system of camera focus for advanced driver assistance system (ADAS)
TW201329426A (en) Camera testing device and test method thereof
CN109999483A (en) A kind of infrared laser identifying system
WO2024066077A1 (en) Calibration method and apparatus for target shooting device, and target shooting device
CN103176668A (en) Shot image correction method for camera locating touch system
WO2022142243A1 (en) Apparatus for use in calibrating laser level
US9875419B2 (en) Recognition device and alignment system
CN105744262A (en) Detection system capable of correcting light source, and light source correction method thereof
CN116753777A (en) Laser weapon aiming performance test method and system
KR101897116B1 (en) Target System for Archery
CN109738157A (en) Field angle detection method, device and the readable storage medium storing program for executing of structured light projection device
CN109269404B (en) Image processing method and device and fingerprint identification equipment
CN108827157B (en) Laser measurement verification method, device, system, equipment and storage medium
CN106879570A (en) Intelligent Laser deinsectization rifle
CN111294527A (en) Infrared lens active imaging correction device and method