[go: up one dir, main page]

CN113960574B - Laser ranging calibration method, device, equipment and storage medium - Google Patents

Laser ranging calibration method, device, equipment and storage medium Download PDF

Info

Publication number
CN113960574B
CN113960574B CN202111255387.1A CN202111255387A CN113960574B CN 113960574 B CN113960574 B CN 113960574B CN 202111255387 A CN202111255387 A CN 202111255387A CN 113960574 B CN113960574 B CN 113960574B
Authority
CN
China
Prior art keywords
digital imaging
laser ranging
picture
imaging device
target object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111255387.1A
Other languages
Chinese (zh)
Other versions
CN113960574A (en
Inventor
孙同波
黄星明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yantai Raytron Technology Co ltd
Original Assignee
Infiray Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Infiray Technologies Co Ltd filed Critical Infiray Technologies Co Ltd
Priority to CN202111255387.1A priority Critical patent/CN113960574B/en
Publication of CN113960574A publication Critical patent/CN113960574A/en
Application granted granted Critical
Publication of CN113960574B publication Critical patent/CN113960574B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
    • G01S7/497Means for monitoring or calibrating

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Studio Devices (AREA)
  • Optical Radar Systems And Details Thereof (AREA)

Abstract

The application discloses a laser ranging calibration method, a device, equipment and a storage medium. The method comprises the following steps: in the transverse movement scanning process of the digital imaging equipment, when a laser ranging module connected with the digital imaging equipment detects a target object, a first picture currently acquired by the digital imaging equipment is stored; determining the vertical edge of the target object in the first picture through an edge detection algorithm; when the laser ranging module detects the target object in the longitudinal movement scanning process of the digital imaging equipment, a second picture currently acquired by the digital imaging equipment is stored; determining the horizontal edge of the target object in the second picture through an edge detection algorithm; according to the vertical edge and the horizontal edge, laser ranging points are determined on an imaging display picture of the digital imaging device, ranging point marks are added for the laser ranging points on the imaging display picture, and laser ranging calibration efficiency is improved.

Description

一种激光测距校准方法、装置、设备及存储介质Laser ranging calibration method, device, equipment and storage medium

技术领域Technical Field

本发明涉及激光测距技术领域,特别涉及一种激光测距校准方法、装置、设备及存储介质。The present invention relates to the field of laser ranging technology, and in particular to a laser ranging calibration method, device, equipment and storage medium.

背景技术Background Art

现有数字成像设备很多都配有激光测距模块,用于实现测距功能。有些是内置型,有些是外部扩展,用户可选装外置测距模块。数字成像设备即使用CCD(Charge-coupledDevice,电荷耦合元件)、CMOS(Complementary Metal Oxide Semiconductor,互补金属氧化物半导体)、红外传感器等光电传感器将光信号转换为电信号,经过处理之后重新在显示屏上显示的数码类产品,包括数码夜视仪、红外夜视仪、数码瞄准镜、红外瞄准镜等。但是,由于测距模块经常出现测距位置偏离,需要校准的情况,普通用户没有校准设备,校准难度大,尤其是外置型测距模块操作极为不便,增加了用户的操作难度,并且,如果校准不好,很难得到精确的距离,从而导致用户误认为是激光测距模块的质量问题。Many existing digital imaging devices are equipped with laser ranging modules to achieve ranging functions. Some are built-in, and some are external expansions. Users can choose to install external ranging modules. Digital imaging devices use photoelectric sensors such as CCD (Charge-coupled Device), CMOS (Complementary Metal Oxide Semiconductor), infrared sensors, etc. to convert optical signals into electrical signals, and then display them on the display screen after processing. They include digital night vision devices, infrared night vision devices, digital sights, infrared sights, etc. However, since the ranging module often deviates from the ranging position and needs to be calibrated, ordinary users do not have calibration equipment, and calibration is difficult, especially the external ranging module is extremely inconvenient to operate, which increases the difficulty of user operation. Moreover, if the calibration is not good, it is difficult to obtain an accurate distance, which leads to users mistakenly believing that it is a quality problem of the laser ranging module.

发明内容Summary of the invention

有鉴于此,本发明的目的在于提供一种激光测距校准方法、装置、设备及介质,能够提高激光测距校准的效率,实现半自动校准。其具体方案如下:In view of this, the purpose of the present invention is to provide a laser range measurement calibration method, device, equipment and medium, which can improve the efficiency of laser range measurement calibration and realize semi-automatic calibration. The specific scheme is as follows:

第一方面,本申请公开了一种激光测距校准方法,包括:In a first aspect, the present application discloses a laser ranging calibration method, comprising:

在数字成像设备横向移动扫描过程中,当与所述数字成像设备相连的激光测距模块检测到目标物时,保存所述数字成像设备当前采集的第一画面;During the lateral movement scanning process of the digital imaging device, when the laser ranging module connected to the digital imaging device detects a target object, saving the first picture currently captured by the digital imaging device;

通过边缘检测算法确定出所述第一画面内所述目标物的垂直边缘;Determine the vertical edge of the target object in the first picture by using an edge detection algorithm;

在所述数字成像设备纵向移动扫描过程中,当所述激光测距模块检测到所述目标物时,保存所述数字成像设备当前采集的第二画面;During the longitudinal movement scanning process of the digital imaging device, when the laser ranging module detects the target object, saving the second picture currently captured by the digital imaging device;

通过边缘检测算法确定出所述第二画面内所述目标物的水平边缘;Determine the horizontal edge of the target object in the second picture by using an edge detection algorithm;

根据所述垂直边缘和所述水平边缘,在所述数字成像设备的成像显示画面上确定出激光测距点,并在所述成像显示画面上为所述激光测距点添加测距点标识。According to the vertical edge and the horizontal edge, a laser ranging point is determined on the imaging display screen of the digital imaging device, and a ranging point mark is added to the laser ranging point on the imaging display screen.

可选的,所述将所述垂直边缘和所述水平边缘的交点坐标映射到所述数字成像设备的成像显示画面,以得到所述数字成像设备的激光测距点,并在所述成像显示画面上为所述激光测距点添加测距点标识之后,还包括:Optionally, after mapping the coordinates of the intersection of the vertical edge and the horizontal edge to the imaging display screen of the digital imaging device to obtain the laser ranging point of the digital imaging device, and adding a ranging point mark for the laser ranging point on the imaging display screen, the method further includes:

利用所述数字成像设备采集包含待测距物体的图像;Using the digital imaging device to collect an image containing the object to be measured;

当所述图像内所述待测距物体与所述成像显示画面上的所述测距点标识重合时,读取所述激光测距模块的检测数据,并根据所述检测数据确定出与所述待测距物体的距离。When the object to be measured in the image coincides with the distance measuring point mark on the imaging display screen, the detection data of the laser distance measuring module is read, and the distance to the object to be measured is determined according to the detection data.

可选的,所述根据所述垂直边缘和所述水平边缘,在所述数字成像设备的成像显示画面上确定出激光测距点,包括:Optionally, determining a laser ranging point on an imaging display screen of the digital imaging device according to the vertical edge and the horizontal edge includes:

确定出所述垂直边缘在所述第一画面的横坐标,并确定出所述水平边缘在所述第二画面的纵坐标;Determine the horizontal coordinate of the vertical edge in the first picture, and determine the vertical coordinate of the horizontal edge in the second picture;

根据所述横坐标和所述纵坐标,在所述数字成像设备的成像显示画面上确定出目标坐标点,并将所述目标坐标点作为所述数字成像设备的激光测距点。According to the horizontal coordinate and the vertical coordinate, a target coordinate point is determined on the imaging display screen of the digital imaging device, and the target coordinate point is used as a laser ranging point of the digital imaging device.

可选的,所述根据所述垂直边缘和所述水平边缘,在所述数字成像设备的成像显示画面上确定出激光测距点,包括:Optionally, determining a laser ranging point on an imaging display screen of the digital imaging device according to the vertical edge and the horizontal edge includes:

根据所述垂直边缘相对于所述第一画面的位置,以及所述水平边缘相对于所述第二画面的位置,确定出所述垂直边缘与所述水平边缘的交点坐标;Determining the coordinates of the intersection of the vertical edge and the horizontal edge according to the position of the vertical edge relative to the first picture and the position of the horizontal edge relative to the second picture;

将所述交点坐标映射到所述数字成像设备的成像显示画面上,以得到所述数字成像设备的激光测距点。The intersection coordinates are mapped onto an imaging display screen of the digital imaging device to obtain a laser ranging point of the digital imaging device.

可选的,所述数字成像设备的横向移动扫描过程和纵向移动扫描过程,为针对目标场景的扫描过程;所述目标场景为以所述目标物为主题,以天空为背景的场景。Optionally, the lateral movement scanning process and the longitudinal movement scanning process of the digital imaging device are scanning processes for a target scene; the target scene is a scene with the target object as the subject and the sky as the background.

可选的,所述在数字成像设备横向移动扫描过程中,当与所述数字成像设备相连的激光测距模块检测到目标物时,保存所述数字成像设备当前采集的第一画面,包括:Optionally, during the lateral movement scanning process of the digital imaging device, when a laser ranging module connected to the digital imaging device detects a target object, saving a first picture currently captured by the digital imaging device includes:

在所述数字成像设备以天空为拍摄起点并朝所述目标物横向水平移动的扫描过程中,当所述激光测距模块检测到目标物时,保存所述数字成像设备当前采集的第一画面。In the scanning process in which the digital imaging device takes the sky as the shooting starting point and moves horizontally toward the target object, when the laser ranging module detects the target object, the first picture currently captured by the digital imaging device is saved.

可选的,所述在所述数字成像设备纵向移动扫描过程中,当所述激光测距模块检测到所述目标物时,保存所述数字成像设备当前采集的第二画面,包括:Optionally, during the longitudinal movement scanning process of the digital imaging device, when the laser ranging module detects the target object, saving the second picture currently captured by the digital imaging device includes:

在所述数字成像设备以天空为拍摄起点并朝所述目标物纵向垂直移动的扫描过程中,当所述激光测距模块检测到目标物时,保存所述数字成像设备当前采集的第二画面。In the scanning process in which the digital imaging device takes the sky as the shooting starting point and moves vertically toward the target object, when the laser ranging module detects the target object, the second picture currently captured by the digital imaging device is saved.

第二方面,本申请公开了一种激光测距校准装置,包括:In a second aspect, the present application discloses a laser ranging calibration device, comprising:

第一画面保存模块,用于在数字成像设备横向移动过程中,当与所述数字成像设备相连的激光测距模块检测到目标物时,保存所述数字成像设备当前采集的第一画面;A first picture saving module, used for saving a first picture currently captured by the digital imaging device when a laser ranging module connected to the digital imaging device detects a target object during the lateral movement of the digital imaging device;

垂直边缘检测模块,用于通过边缘检测算法确定出所述第一画面内所述目标物的垂直边缘;A vertical edge detection module, used to determine the vertical edge of the target object in the first picture by using an edge detection algorithm;

第二画面保存模块,用于在所述数字成像设备纵向移动过程中,当所述激光测距模块检测到所述目标物时,保存所述数字成像设备当前采集的第二画面;A second picture saving module, used for saving a second picture currently captured by the digital imaging device when the laser ranging module detects the target object during the longitudinal movement of the digital imaging device;

水平边缘检测模块,用于通过边缘检测算法确定出所述第二画面内所述目标物的水平边缘;A horizontal edge detection module, used to determine the horizontal edge of the target object in the second picture by using an edge detection algorithm;

激光测距点确定模块,用于根据所述垂直边缘和所述水平边缘,在所述数字成像设备的成像显示画面上确定出激光测距点,并在所述成像显示画面上为所述激光测距点添加测距点标识。The laser ranging point determination module is used to determine the laser ranging point on the imaging display screen of the digital imaging device according to the vertical edge and the horizontal edge, and add a ranging point mark to the laser ranging point on the imaging display screen.

第三方面,本申请公开了一种电子设备,包括:In a third aspect, the present application discloses an electronic device, including:

存储器,用于保存计算机程序;Memory, used to store computer programs;

处理器,用于执行所述计算机程序,以实现前述的激光测距校准方法。The processor is used to execute the computer program to implement the aforementioned laser ranging calibration method.

第四方面,本申请公开了一种计算机可读存储介质,用于存储计算机程序;其中计算机程序被处理器执行时实现前述的激光测距校准方法。In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program implements the aforementioned laser ranging calibration method when executed by a processor.

本申请中,在数字成像设备横向移动扫描过程中,当与所述数字成像设备相连的激光测距模块检测到目标物时,保存所述数字成像设备当前采集的第一画面;通过边缘检测算法确定出所述第一画面内所述目标物的垂直边缘;在所述数字成像设备纵向移动扫描过程中,当所述激光测距模块检测到所述目标物时,保存所述数字成像设备当前采集的第二画面;通过边缘检测算法确定出所述第二画面内所述目标物的水平边缘;根据所述垂直边缘和所述水平边缘,在所述数字成像设备的成像显示画面上确定出激光测距点,并在所述成像显示画面上为所述激光测距点添加测距点标识。可见,通过在数字成像设备横向移动扫描过程中,获取激光测距模块检测到目标物时的第一画面,并在在数字成像设备横纵向移动扫描过程中,获取激光测距模块检测到目标物时的第二画面,然后结合第一画面中的水平边缘和第二画面中的垂直边缘,确定出数字成像设备的成像显示画面上的激光测距点,以实现激光测距校准,也就是说,用户只需操作数字成像设备进行横向移动扫描以及纵向移动扫描,就可实现激光测距校准,在保证激光校准准确度的同时,提高了激光测距校准的效率,简化了激光测距校准的复杂度,可实现半自动校准。In the present application, during the horizontal movement scanning process of the digital imaging device, when the laser ranging module connected to the digital imaging device detects the target object, the first picture currently collected by the digital imaging device is saved; the vertical edge of the target object in the first picture is determined by an edge detection algorithm; during the vertical movement scanning process of the digital imaging device, when the laser ranging module detects the target object, the second picture currently collected by the digital imaging device is saved; the horizontal edge of the target object in the second picture is determined by an edge detection algorithm; according to the vertical edge and the horizontal edge, a laser ranging point is determined on the imaging display screen of the digital imaging device, and a ranging point mark is added for the laser ranging point on the imaging display screen. It can be seen that by acquiring the first picture when the laser ranging module detects the target object during the horizontal movement and scanning of the digital imaging device, and acquiring the second picture when the laser ranging module detects the target object during the horizontal and vertical movement and scanning of the digital imaging device, and then combining the horizontal edge in the first picture and the vertical edge in the second picture, the laser ranging point on the imaging display screen of the digital imaging device is determined to realize laser ranging calibration. That is to say, the user only needs to operate the digital imaging device for horizontal movement and scanning and vertical movement and scanning to realize laser ranging calibration. While ensuring the accuracy of laser calibration, the efficiency of laser ranging calibration is improved, the complexity of laser ranging calibration is simplified, and semi-automatic calibration can be realized.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

图1为本申请提供的一种激光测距校准方法流程图;FIG1 is a flow chart of a laser ranging calibration method provided by the present application;

图2a为本申请提供的一种具体的数字成像设备横向移动扫描前与目标物的位置关系示意图;FIG2a is a schematic diagram of the position relationship between a specific digital imaging device provided by the present application and a target object before lateral movement scanning;

图2b为本申请提供的一种具体的数字成像设备横向移动扫描过程中保存第一画面时与目标物的位置关系示意图;FIG2b is a schematic diagram of the position relationship between a first image and a target object when a specific digital imaging device provided by the present application saves the first image during a lateral movement scanning process;

图3a为本申请提供的一种具体的数字成像设备纵向移动扫描前与目标物的位置关系示意图;FIG3a is a schematic diagram of the position relationship between a specific digital imaging device provided by the present application and a target object before longitudinal movement scanning;

图3b为本申请提供的一种具体的数字成像设备横向移动扫描过程中保存第二画面时与目标物的位置关系示意图;FIG3b is a schematic diagram of the position relationship between a specific digital imaging device provided by the present application and a target object when saving a second image during a lateral movement scanning process;

图4为本申请提供的一种具体的激光测距校准后激光测距点标识示意图;FIG4 is a schematic diagram of a specific laser ranging point identification after laser ranging calibration provided by the present application;

图5为本申请提供的一种激光测距校准装置结构示意图;FIG5 is a schematic diagram of the structure of a laser ranging calibration device provided by the present application;

图6为本申请提供的一种电子设备结构图。FIG6 is a structural diagram of an electronic device provided in this application.

具体实施方式DETAILED DESCRIPTION

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

现有技术中,由于测距模块经常出现测距位置偏离,需要校准的情况,普通用户没有校准设备,校准难度大,尤其是外置型测距模块操作极为不便,增加了用户的操作难度,并且,如果校准不好,很难得到精确的距离,从而导致用户误认为是激光测距模块的质量问题。In the prior art, the ranging module often deviates from the ranging position and needs to be calibrated. Ordinary users do not have calibration equipment, and calibration is difficult. In particular, the external ranging module is extremely inconvenient to operate, which increases the difficulty of operation for users. Moreover, if the calibration is not good, it is difficult to obtain an accurate distance, which causes users to mistakenly believe that there is a quality problem with the laser ranging module.

本申请实施例公开了一种激光测距校准方法,参见图1所示,该方法可以包括以下步骤:The present application discloses a laser ranging calibration method. Referring to FIG1 , the method may include the following steps:

步骤S11:在数字成像设备横向移动扫描过程中,当与所述数字成像设备相连的激光测距模块检测到目标物时,保存所述数字成像设备当前采集的第一画面。Step S11: during the lateral movement scanning process of the digital imaging device, when the laser ranging module connected to the digital imaging device detects a target object, the first picture currently captured by the digital imaging device is saved.

激光测距模块射出的激光落在物体上仅为一个点,因此,激光测距校准的过程,就是在与激光测距模块相连的数字成像设备的显示屏中,确定出激光落在成像画面的坐标点的过程。从而在测距时,只有通过移动数字成像设备使待测距物体呈现在上述成像画面的坐标点上时,此时测得的距离才是最准确的距离。The laser emitted by the laser distance measurement module falls on only one point on the object. Therefore, the laser distance measurement calibration process is to determine the coordinate point where the laser falls on the imaging screen in the display screen of the digital imaging device connected to the laser distance measurement module. Therefore, when measuring distance, only when the object to be measured is presented on the coordinate point of the imaging screen by moving the digital imaging device, the distance measured at this time is the most accurate distance.

本实施例中,先在数字成像设备横向移动扫描过程中,当与数字成像设备相连的激光测距模块检测到目标物时,也就是激光测距模块在横向移动过程中首次检测到目标物时,保存数字成像设备当前采集的画面作为上述第一画面。In this embodiment, during the lateral movement and scanning process of the digital imaging device, when the laser ranging module connected to the digital imaging device detects the target object, that is, when the laser ranging module detects the target object for the first time during the lateral movement process, the picture currently captured by the digital imaging device is saved as the above-mentioned first picture.

具体的,上述数字成像设备的横向移动扫描过程,可以为针对目标场景的扫描过程,并且,上述目标场景为以上述目标物为主题,以天空为背景的场景。即所述在数字成像设备横向移动扫描过程中,当与所述数字成像设备相连的激光测距模块检测到目标物时,保存所述数字成像设备当前采集的第一画面,可以包括:在所述数字成像设备以天空为拍摄起点并朝所述目标物横向水平移动的扫描过程中,当所述激光测距模块检测到目标物时,保存所述数字成像设备当前采集的第一画面。Specifically, the lateral movement scanning process of the digital imaging device may be a scanning process for a target scene, and the target scene is a scene with the target as the subject and the sky as the background. That is, in the lateral movement scanning process of the digital imaging device, when the laser ranging module connected to the digital imaging device detects the target, saving the first picture currently captured by the digital imaging device may include: in the scanning process of the digital imaging device taking the sky as the shooting starting point and moving horizontally toward the target, when the laser ranging module detects the target, saving the first picture currently captured by the digital imaging device.

步骤S12:通过边缘检测算法确定出所述第一画面内所述目标物的垂直边缘。Step S12: Determine the vertical edge of the target object in the first picture by using an edge detection algorithm.

本实施例中,采集得到上述第一画面后,利用边缘检测算法对上述第一画面进行边缘检测,以确定出第一画面内上述目标物的垂直边缘。可以理解的是,例如图2a所示为数字成像设备横向移动扫描前与目标物的位置示意图,图2b所示为数字成像设备横向移动扫描过程中保存的第一画面,通过边缘检测算法确定出第一画面内目标物的垂直边缘,而由于当前数字成像设备是横向移动的,由此可以判定激光当前照射在目标物的垂直边缘,如图2b所示即可确定为激光当前照射在目标物的右边缘。本实施例中对上述边缘检测算法不做具体限定。In this embodiment, after acquiring the above-mentioned first picture, edge detection is performed on the above-mentioned first picture using an edge detection algorithm to determine the vertical edge of the above-mentioned target object in the first picture. It can be understood that, for example, FIG2a shows a schematic diagram of the position of the digital imaging device and the target object before the horizontal movement scanning, and FIG2b shows the first picture saved during the horizontal movement scanning of the digital imaging device. The vertical edge of the target object in the first picture is determined by the edge detection algorithm. Since the current digital imaging device is moving horizontally, it can be determined that the laser is currently irradiating the vertical edge of the target object. As shown in FIG2b, it can be determined that the laser is currently irradiating the right edge of the target object. In this embodiment, the above-mentioned edge detection algorithm is not specifically limited.

步骤S13:在所述数字成像设备纵向移动扫描过程中,当所述激光测距模块检测到所述目标物时,保存所述数字成像设备当前采集的第二画面。Step S13: during the longitudinal movement scanning process of the digital imaging device, when the laser ranging module detects the target object, the second picture currently captured by the digital imaging device is saved.

本实施例中,在数字成像设备纵向移动扫描过程中,当与数字成像设备相连的激光测距模块检测到目标物时,也就是激光测距模块在纵向移动过程中首次检测到目标物时,保存数字成像设备当前采集的画面作为上述第二画面。另外,需要说明的是,本实施例中可以先控制数字成像设备横向移动扫描,再控制数字成像设备纵向移动扫描,也可以先控制数字成像设备纵向移动扫描,再控制数字成像设备横向移动扫描。In this embodiment, during the longitudinal movement and scanning of the digital imaging device, when the laser ranging module connected to the digital imaging device detects the target object, that is, when the laser ranging module detects the target object for the first time during the longitudinal movement, the picture currently collected by the digital imaging device is saved as the above-mentioned second picture. In addition, it should be noted that in this embodiment, the digital imaging device can be controlled to move horizontally and scan first, and then the digital imaging device can be controlled to move vertically and scan, or the digital imaging device can be controlled to move vertically and scan first, and then the digital imaging device can be controlled to move horizontally and scan.

具体的,上述数字成像设备的纵向移动扫描过程,可以为针对目标场景的扫描过程,上述目标场景为以目标物为主题,以天空为背景的场景。即本实施例中,所述在所述数字成像设备纵向移动扫描过程中,当所述激光测距模块检测到所述目标物时,保存所述数字成像设备当前采集的第二画面,可以包括:在所述数字成像设备以天空为拍摄起点并朝所述目标物纵向垂直移动的扫描过程中,当所述激光测距模块检测到目标物时,保存所述数字成像设备当前采集的第二画面。本实施例中对上述边缘检测算法不做具体限定。Specifically, the longitudinal movement scanning process of the digital imaging device can be a scanning process for a target scene, and the target scene is a scene with a target object as the subject and the sky as the background. That is, in this embodiment, in the longitudinal movement scanning process of the digital imaging device, when the laser ranging module detects the target object, saving the second picture currently collected by the digital imaging device can include: in the scanning process in which the digital imaging device takes the sky as the shooting starting point and moves vertically toward the target object, when the laser ranging module detects the target object, saving the second picture currently collected by the digital imaging device. In this embodiment, the edge detection algorithm is not specifically limited.

步骤S14:通过边缘检测算法确定出所述第二画面内所述目标物的水平边缘。Step S14: Determine the horizontal edge of the target object in the second picture by using an edge detection algorithm.

本实施例中,采集得到上述第二画面后,利用边缘检测算法对上述第二画面进行边缘检测,以确定出第二画面内上述目标物的水平边缘。可以理解的是,例如图3a所示为数字成像设备纵向移动扫描前与目标物的位置示意图,图3b所示为数字成像设备纵向移动扫描过程中保存的第二画面,通过边缘检测算法确定出第二画面内目标物的水平边缘,而由于当前数字成像设备是纵向移动的,由此可以判定激光当前照射在目标物的水平边缘,如图3b所示即可确定为激光当前照射在目标物的上边缘。In this embodiment, after acquiring the second picture, edge detection is performed on the second picture using an edge detection algorithm to determine the horizontal edge of the target object in the second picture. It can be understood that, for example, FIG. 3a shows a schematic diagram of the position of the target object before the digital imaging device moves longitudinally for scanning, and FIG. 3b shows the second picture saved during the longitudinal scanning of the digital imaging device. The horizontal edge of the target object in the second picture is determined by the edge detection algorithm. Since the current digital imaging device moves longitudinally, it can be determined that the laser is currently irradiating the horizontal edge of the target object. As shown in FIG. 3b, it can be determined that the laser is currently irradiating the upper edge of the target object.

步骤S15:根据所述垂直边缘和所述水平边缘,在所述数字成像设备的成像显示画面上确定出激光测距点,并在所述成像显示画面上为所述激光测距点添加测距点标识。Step S15: determining a laser ranging point on the imaging display screen of the digital imaging device according to the vertical edge and the horizontal edge, and adding a ranging point mark for the laser ranging point on the imaging display screen.

本实施例中,检测出上述垂直边缘和所述水平边缘后,根据上述垂直边缘和所述水平边缘,在数字成像设备的成像显示画面上确定出激光测距点,并在成像显示画面上为上述激光测距点添加测距点标识。以便用户利用所述数字成像设备采集包含待测距物体的图像;当所述图像内所述待测距物体与所述成像显示画面上的所述测距点标识重合时,读取所述激光测距模块的检测数据,并根据所述检测数据确定出与所述待测距物体的距离。In this embodiment, after the vertical edge and the horizontal edge are detected, a laser ranging point is determined on the imaging display screen of the digital imaging device according to the vertical edge and the horizontal edge, and a ranging point mark is added to the laser ranging point on the imaging display screen, so that the user can use the digital imaging device to collect an image containing an object to be measured; when the object to be measured in the image coincides with the ranging point mark on the imaging display screen, the detection data of the laser ranging module is read, and the distance to the object to be measured is determined according to the detection data.

本实施例中,所述根据所述垂直边缘和所述水平边缘,在所述数字成像设备的成像显示画面上确定出激光测距点,可以包括:确定出所述垂直边缘在所述第一画面的横坐标,并确定出所述水平边缘在所述第二画面的纵坐标;根据所述横坐标和所述纵坐标,在所述数字成像设备的成像显示画面上确定出目标坐标点,并将所述目标坐标点作为所述数字成像设备的激光测距点。即例如图4所示,通过垂直边缘在第一画面的横坐标,以及水平边缘在第二画面的纵坐标确定出的目标坐标点,作为数字成像设备的激光测距点。In this embodiment, the step of determining the laser ranging point on the imaging display screen of the digital imaging device according to the vertical edge and the horizontal edge may include: determining the horizontal coordinate of the vertical edge on the first screen, and determining the vertical coordinate of the horizontal edge on the second screen; determining the target coordinate point on the imaging display screen of the digital imaging device according to the horizontal coordinate and the vertical coordinate, and using the target coordinate point as the laser ranging point of the digital imaging device. For example, as shown in FIG4 , the target coordinate point determined by the horizontal coordinate of the vertical edge on the first screen and the vertical coordinate of the horizontal edge on the second screen is used as the laser ranging point of the digital imaging device.

本实施例中,所述根据所述垂直边缘和所述水平边缘,在所述数字成像设备的成像显示画面上确定出激光测距点,可以包括:根据所述垂直边缘相对于所述第一画面的位置,以及所述水平边缘相对于所述第二画面的位置,确定出所述垂直边缘与所述水平边缘的交点坐标;将所述交点坐标映射到所述数字成像设备的成像显示画面上,以得到所述数字成像设备的激光测距点。即本实施例中,可以根据垂直边缘相对于第一画面的位置,以及水平边缘相对于第二画面的位置,将垂直边缘和水平边缘映射到同一画面内,得到垂直边缘与水平边缘的交点坐标,然后将交点坐标映射到数字成像设备的成像显示画面上,以得到数字成像设备的激光测距点。In this embodiment, the laser ranging point is determined on the imaging display screen of the digital imaging device according to the vertical edge and the horizontal edge, which may include: determining the intersection coordinates of the vertical edge and the horizontal edge according to the position of the vertical edge relative to the first screen and the position of the horizontal edge relative to the second screen; and mapping the intersection coordinates to the imaging display screen of the digital imaging device to obtain the laser ranging point of the digital imaging device. That is, in this embodiment, the vertical edge and the horizontal edge may be mapped to the same screen according to the position of the vertical edge relative to the first screen and the position of the horizontal edge relative to the second screen to obtain the intersection coordinates of the vertical edge and the horizontal edge, and then the intersection coordinates may be mapped to the imaging display screen of the digital imaging device to obtain the laser ranging point of the digital imaging device.

也就是说,本实施例中,可以先选定一处测距量程内的目标物,常用目标物为楼房,要求背景空旷,最好是天空。选定场景后,用数字成像设备横向扫过目标物,如成像设备原来是天空,慢慢横向移动,移动过程中目标物逐渐出现,直到划过整个画面。再用成像设备竖向扫过目标物,整个过程完成后,设备自动计算出测距位置,自动校准。That is to say, in this embodiment, a target object within the distance measurement range can be selected first. The target object is usually a building, and the background is required to be open, preferably the sky. After selecting the scene, use the digital imaging device to scan the target object horizontally. If the imaging device is originally the sky, slowly move horizontally. During the movement, the target object gradually appears until it passes through the entire screen. Then use the imaging device to scan the target object vertically. After the whole process is completed, the device automatically calculates the distance measurement position and automatically calibrates.

可以理解的是,激光测距实际为一束激光,激光落在整个成像画面内的一点,校准过程就是要把画面中与激点位置重合的点找到,找到后做好标记,这样用户下次测距时,只需要将标记点与想测距的位置重合,就可以得到想要的距离。本实施例中利用天空背景时,测距超过量程得不到测距数据。横向移动过程时,当目标到达激光位置时,得到测距数值,此时系统自动保存下当前画面,系统利用算法识别出目标的左右边缘。得到边缘坐标就得到了测距激光位置的X坐标。重复操作,竖向移动,当测距数值变化时,保存当前画面,通过算法识别出目标的上下边缘,得到测距激光位置的Y坐标。有了X、Y坐标后,就可以在该坐标上做好标记,保存。本实施例中,上述激光测距校准方法可以应用于数字成像设备的处理模块。It is understandable that the laser rangefinder is actually a beam of laser, and the laser falls on a point within the entire imaging screen. The calibration process is to find the point in the screen that coincides with the excitation point position, and mark it after finding it. In this way, the user only needs to overlap the marked point with the position to be measured next time to get the desired distance. In this embodiment, when the sky background is used, the ranging exceeds the range and no ranging data can be obtained. During the horizontal movement process, when the target reaches the laser position, the ranging value is obtained. At this time, the system automatically saves the current screen, and the system uses an algorithm to identify the left and right edges of the target. The edge coordinates are obtained to obtain the X coordinate of the ranging laser position. Repeat the operation, move vertically, and when the ranging value changes, save the current screen, identify the upper and lower edges of the target through the algorithm, and obtain the Y coordinate of the ranging laser position. After having the X and Y coordinates, you can mark and save them on the coordinates. In this embodiment, the above-mentioned laser ranging calibration method can be applied to the processing module of a digital imaging device.

由上可见,本实施例中在数字成像设备横向移动扫描过程中,当与所述数字成像设备相连的激光测距模块检测到目标物时,保存所述数字成像设备当前采集的第一画面;通过边缘检测算法确定出所述第一画面内所述目标物的垂直边缘;在所述数字成像设备纵向移动扫描过程中,当所述激光测距模块检测到所述目标物时,保存所述数字成像设备当前采集的第二画面;通过边缘检测算法确定出所述第二画面内所述目标物的水平边缘;根据所述垂直边缘和所述水平边缘,在所述数字成像设备的成像显示画面上确定出激光测距点,并在所述成像显示画面上为所述激光测距点添加测距点标识。可见,通过在数字成像设备横向移动扫描过程中,获取激光测距模块检测到目标物时的第一画面,并在在数字成像设备横纵向移动扫描过程中,获取激光测距模块检测到目标物时的第二画面,然后结合第一画面中的水平边缘和第二画面中的垂直边缘,确定出数字成像设备的成像显示画面上的激光测距点,以实现激光测距校准,也就是说,用户只需操作数字成像设备进行横向移动扫描以及纵向移动扫描,就可实现激光测距校准,在保证激光校准准确度的同时,提高了激光测距校准的效率,简化了激光测距校准的复杂度,可实现半自动校准。As can be seen from the above, in this embodiment, during the horizontal movement and scanning of the digital imaging device, when the laser ranging module connected to the digital imaging device detects the target object, the first picture currently collected by the digital imaging device is saved; the vertical edge of the target object in the first picture is determined by the edge detection algorithm; during the vertical movement and scanning of the digital imaging device, when the laser ranging module detects the target object, the second picture currently collected by the digital imaging device is saved; the horizontal edge of the target object in the second picture is determined by the edge detection algorithm; according to the vertical edge and the horizontal edge, the laser ranging point is determined on the imaging display screen of the digital imaging device, and a ranging point mark is added for the laser ranging point on the imaging display screen. It can be seen that by acquiring the first picture when the laser ranging module detects the target object during the horizontal movement and scanning of the digital imaging device, and acquiring the second picture when the laser ranging module detects the target object during the horizontal and vertical movement and scanning of the digital imaging device, and then combining the horizontal edge in the first picture and the vertical edge in the second picture, the laser ranging point on the imaging display screen of the digital imaging device is determined to realize laser ranging calibration. That is to say, the user only needs to operate the digital imaging device for horizontal movement and scanning and vertical movement and scanning to realize laser ranging calibration. While ensuring the accuracy of laser calibration, the efficiency of laser ranging calibration is improved, the complexity of laser ranging calibration is simplified, and semi-automatic calibration can be realized.

相应的,本申请实施例还公开了一种激光测距校准装置,参见图5所示,该装置包括:Correspondingly, the embodiment of the present application also discloses a laser ranging calibration device, as shown in FIG5 , the device includes:

第一画面保存模块11,用于在数字成像设备横向移动过程中,当与所述数字成像设备相连的激光测距模块检测到目标物时,保存所述数字成像设备当前采集的第一画面;A first picture saving module 11 is used to save a first picture currently captured by the digital imaging device when a laser ranging module connected to the digital imaging device detects a target object during the lateral movement of the digital imaging device;

垂直边缘检测模块12,用于通过边缘检测算法确定出所述第一画面内所述目标物的垂直边缘;A vertical edge detection module 12, configured to determine the vertical edge of the target object in the first picture by using an edge detection algorithm;

第二画面保存模块13,用于在所述数字成像设备纵向移动过程中,当所述激光测距模块检测到所述目标物时,保存所述数字成像设备当前采集的第二画面;A second picture saving module 13 is used to save a second picture currently captured by the digital imaging device when the laser ranging module detects the target object during the longitudinal movement of the digital imaging device;

水平边缘检测模块14,用于通过边缘检测算法确定出所述第二画面内所述目标物的水平边缘;A horizontal edge detection module 14, configured to determine the horizontal edge of the target object in the second picture by using an edge detection algorithm;

激光测距点确定模块15,用于根据所述垂直边缘和所述水平边缘,在所述数字成像设备的成像显示画面上确定出激光测距点,并在所述成像显示画面上为所述激光测距点添加测距点标识。The laser ranging point determination module 15 is used to determine the laser ranging point on the imaging display screen of the digital imaging device according to the vertical edge and the horizontal edge, and add a ranging point mark for the laser ranging point on the imaging display screen.

由上可见,本实施例中在数字成像设备横向移动扫描过程中,当与所述数字成像设备相连的激光测距模块检测到目标物时,保存所述数字成像设备当前采集的第一画面;通过边缘检测算法确定出所述第一画面内所述目标物的垂直边缘;在所述数字成像设备纵向移动扫描过程中,当所述激光测距模块检测到所述目标物时,保存所述数字成像设备当前采集的第二画面;通过边缘检测算法确定出所述第二画面内所述目标物的水平边缘;根据所述垂直边缘和所述水平边缘,在所述数字成像设备的成像显示画面上确定出激光测距点,并在所述成像显示画面上为所述激光测距点添加测距点标识。可见,通过在数字成像设备横向移动扫描过程中,获取激光测距模块检测到目标物时的第一画面,并在在数字成像设备横纵向移动扫描过程中,获取激光测距模块检测到目标物时的第二画面,然后结合第一画面中的水平边缘和第二画面中的垂直边缘,确定出数字成像设备的成像显示画面上的激光测距点,以实现激光测距校准,也就是说,用户只需操作数字成像设备进行横向移动扫描以及纵向移动扫描,就可实现激光测距校准,在保证激光校准准确度的同时,提高了激光测距校准的效率,简化了激光测距校准的复杂度,可实现半自动校准。As can be seen from the above, in this embodiment, during the horizontal movement and scanning of the digital imaging device, when the laser ranging module connected to the digital imaging device detects the target object, the first picture currently collected by the digital imaging device is saved; the vertical edge of the target object in the first picture is determined by the edge detection algorithm; during the vertical movement and scanning of the digital imaging device, when the laser ranging module detects the target object, the second picture currently collected by the digital imaging device is saved; the horizontal edge of the target object in the second picture is determined by the edge detection algorithm; according to the vertical edge and the horizontal edge, the laser ranging point is determined on the imaging display screen of the digital imaging device, and a ranging point mark is added for the laser ranging point on the imaging display screen. It can be seen that by acquiring the first picture when the laser ranging module detects the target object during the horizontal movement and scanning of the digital imaging device, and acquiring the second picture when the laser ranging module detects the target object during the horizontal and vertical movement and scanning of the digital imaging device, and then combining the horizontal edge in the first picture and the vertical edge in the second picture, the laser ranging point on the imaging display screen of the digital imaging device is determined to realize laser ranging calibration. That is to say, the user only needs to operate the digital imaging device for horizontal movement and scanning and vertical movement and scanning to realize laser ranging calibration. While ensuring the accuracy of laser calibration, the efficiency of laser ranging calibration is improved, the complexity of laser ranging calibration is simplified, and semi-automatic calibration can be realized.

在一些具体实施例中,所述激光测距点确定模块15具体可以包括:In some specific embodiments, the laser ranging point determination module 15 may specifically include:

坐标确定单元,用于确定出所述垂直边缘在所述第一画面的横坐标,并确定出所述水平边缘在所述第二画面的纵坐标;a coordinate determination unit, configured to determine the horizontal coordinate of the vertical edge in the first picture, and determine the vertical coordinate of the horizontal edge in the second picture;

激光测距点确定单元,用于根据所述横坐标和所述纵坐标,在所述数字成像设备的成像显示画面上确定出目标坐标点,并将所述目标坐标点作为所述数字成像设备的激光测距点。The laser ranging point determination unit is used to determine a target coordinate point on the imaging display screen of the digital imaging device according to the horizontal coordinate and the vertical coordinate, and use the target coordinate point as the laser ranging point of the digital imaging device.

在一些具体实施例中,所述激光测距点确定模块15具体可以包括:In some specific embodiments, the laser ranging point determination module 15 may specifically include:

交点坐标确定单元,用于根据所述垂直边缘相对于所述第一画面的位置,以及所述水平边缘相对于所述第二画面的位置,确定出所述垂直边缘与所述水平边缘的交点坐标;an intersection coordinate determining unit, configured to determine the intersection coordinates of the vertical edge and the horizontal edge according to the position of the vertical edge relative to the first picture and the position of the horizontal edge relative to the second picture;

激光测距点确定单元,用于将所述交点坐标映射到所述数字成像设备的成像显示画面上,以得到所述数字成像设备的激光测距点。The laser ranging point determination unit is used to map the intersection coordinates onto the imaging display screen of the digital imaging device to obtain the laser ranging point of the digital imaging device.

在一些具体实施例中,所述数字成像设备的横向移动扫描过程和纵向移动扫描过程,为针对目标场景的扫描过程;所述目标场景为以所述目标物为主题,以天空为背景的场景。In some specific embodiments, the lateral movement scanning process and the longitudinal movement scanning process of the digital imaging device are scanning processes for a target scene; the target scene is a scene with the target object as the subject and the sky as the background.

在一些具体实施例中,所述第一画面保存模块11具体还可以用于在所述数字成像设备以天空为拍摄起点并朝所述目标物横向水平移动的扫描过程中,当所述激光测距模块检测到目标物时,保存所述数字成像设备当前采集的第一画面。In some specific embodiments, the first picture saving module 11 can also be specifically used to save the first picture currently captured by the digital imaging device when the laser ranging module detects the target object during the scanning process in which the digital imaging device takes the sky as the shooting starting point and moves horizontally toward the target object.

在一些具体实施例中,所述第二画面保存模块13具体还可以用于在所述数字成像设备以天空为拍摄起点并朝所述目标物纵向垂直移动的扫描过程中,当所述激光测距模块检测到目标物时,保存所述数字成像设备当前采集的第二画面。In some specific embodiments, the second picture saving module 13 can also be specifically used to save the second picture currently captured by the digital imaging device when the laser ranging module detects the target object during the scanning process in which the digital imaging device takes the sky as the shooting starting point and moves vertically toward the target object.

进一步的,本申请实施例还公开了一种电子设备,参见图6所示,图中的内容不能被认为是对本申请的使用范围的任何限制。Furthermore, an embodiment of the present application also discloses an electronic device, as shown in FIG6 . The content in the figure cannot be regarded as any limitation on the scope of use of the present application.

图6为本申请实施例提供的一种电子设备20的结构示意图。该电子设备20,具体可以包括:至少一个处理器21、至少一个存储器22、电源23、通信接口24、输入输出接口25和通信总线26。其中,所述存储器22用于存储计算机程序,所述计算机程序由所述处理器21加载并执行,以实现前述任一实施例公开的激光测距校准方法中的相关步骤。FIG6 is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input/output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the laser ranging calibration method disclosed in any of the aforementioned embodiments.

本实施例中,电源23用于为电子设备20上的各硬件设备提供工作电压;通信接口24能够为电子设备20创建与外界设备之间的数据传输通道,其所遵循的通信协议是能够适用于本申请技术方案的任意通信协议,在此不对其进行具体限定;输入输出接口25,用于获取外界输入数据或向外界输出数据,其具体的接口类型可以根据具体应用需要进行选取,在此不进行具体限定。In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

另外,存储器22作为资源存储的载体,可以是只读存储器、随机存储器、磁盘或者光盘等,其上所存储的资源包括操作系统221、计算机程序222及包括数字成像设备采集的画面在内的数据223等,存储方式可以是短暂存储或者永久存储。In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222, and data 223 including images captured by a digital imaging device, etc. The storage method can be temporary storage or permanent storage.

其中,操作系统221用于管理与控制电子设备20上的各硬件设备以及计算机程序222,以实现处理器21对存储器22中海量数据223的运算与处理,其可以是Windows Server、Netware、Unix、Linux等。计算机程序222除了包括能够用于完成前述任一实施例公开的由电子设备20执行的激光测距校准方法的计算机程序之外,还可以进一步包括能够用于完成其他特定工作的计算机程序。The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, and it can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the laser ranging calibration method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

进一步的,本申请实施例还公开了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令被处理器加载并执行时,实现前述任一实施例公开的激光测距校准方法步骤。Furthermore, an embodiment of the present application also discloses a computer storage medium, in which computer executable instructions are stored. When the computer executable instructions are loaded and executed by a processor, the steps of the laser ranging calibration method disclosed in any of the aforementioned embodiments are implemented.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。In this specification, each embodiment 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 disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

以上对本发明所提供的一种激光测距校准方法、装置、设备及介质进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The laser ranging calibration method, device, equipment and medium provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims (10)

1. A laser ranging calibration method, comprising:
In the transverse movement scanning process of the digital imaging equipment, when a laser ranging module connected with the digital imaging equipment detects a target object, a first picture currently acquired by the digital imaging equipment is stored;
Determining the vertical edge of the target object in the first picture through an edge detection algorithm;
When the laser ranging module detects the target object in the longitudinal movement scanning process of the digital imaging equipment, a second picture currently acquired by the digital imaging equipment is stored;
Determining the horizontal edge of the target object in the second picture through an edge detection algorithm;
Determining laser ranging points on an imaging display picture of the digital imaging equipment according to the vertical edge and the horizontal edge, and adding ranging point marks for the laser ranging points on the imaging display picture;
wherein after adding a ranging point identifier for the laser ranging point on the imaging display screen, the method further comprises:
acquiring an image containing an object to be measured by using the digital imaging device;
And when the object to be measured in the image is overlapped with the ranging point mark on the imaging display screen, reading the detection data of the laser ranging module, and determining the distance between the object to be measured and the laser ranging module according to the detection data.
2. The laser ranging calibration method according to claim 1, wherein an intersection point coordinate of the vertical edge and the horizontal edge is mapped to an imaging display screen of the digital imaging device to obtain a laser ranging point of the digital imaging device.
3. The laser ranging calibration method according to claim 1, wherein determining a laser ranging point on an imaging display screen of the digital imaging device according to the vertical edge and the horizontal edge comprises:
determining an abscissa of the vertical edge on the first picture, and determining an ordinate of the horizontal edge on the second picture;
And determining a target coordinate point on an imaging display picture of the digital imaging equipment according to the abscissa and the ordinate, and taking the target coordinate point as a laser ranging point of the digital imaging equipment.
4. The laser ranging calibration method according to claim 1, wherein determining a laser ranging point on an imaging display screen of the digital imaging device according to the vertical edge and the horizontal edge comprises:
Determining the intersection point coordinates of the vertical edge and the horizontal edge according to the position of the vertical edge relative to the first picture and the position of the horizontal edge relative to the second picture;
and mapping the intersection point coordinates to an imaging display picture of the digital imaging equipment to obtain laser ranging points of the digital imaging equipment.
5. The laser ranging calibration method according to any one of claims 1 to 4, wherein the lateral movement scanning process and the longitudinal movement scanning process of the digital imaging device are scanning processes for a target scene; the target scene is a scene taking the target object as a theme and taking the sky as a background.
6. The method according to claim 5, wherein storing the first image currently acquired by the digital imaging device when the laser ranging module connected to the digital imaging device detects the target object during the scanning process of the lateral movement of the digital imaging device, comprises:
And in the scanning process that the digital imaging device takes the sky as a shooting starting point and transversely and horizontally moves towards the target object, when the laser ranging module detects the target object, a first picture currently acquired by the digital imaging device is stored.
7. The method according to claim 5, wherein storing the second image currently acquired by the digital imaging device when the laser ranging module detects the target object during the scanning process of the digital imaging device, comprises:
And in the scanning process that the digital imaging device takes the sky as a shooting starting point and moves vertically and longitudinally towards the target object, when the laser ranging module detects the target object, a second picture currently acquired by the digital imaging device is stored.
8. A laser ranging calibration device, comprising:
the first picture saving module is used for saving a first picture currently acquired by the digital imaging equipment when the laser ranging module connected with the digital imaging equipment detects a target object in the transverse moving process of the digital imaging equipment;
the vertical edge detection module is used for determining the vertical edge of the target object in the first picture through an edge detection algorithm;
The second picture saving module is used for saving a second picture currently acquired by the digital imaging equipment when the laser ranging module detects the target object in the process of longitudinally moving the digital imaging equipment;
the horizontal edge detection module is used for determining the horizontal edge of the target object in the second picture through an edge detection algorithm;
The laser ranging point determining module is used for determining laser ranging points on an imaging display picture of the digital imaging equipment according to the vertical edge and the horizontal edge, and adding ranging point marks for the laser ranging points on the imaging display picture;
wherein after adding a ranging point identifier for the laser ranging point on the imaging display screen, the method further comprises:
acquiring an image containing an object to be measured by using the digital imaging device;
And when the object to be measured in the image is overlapped with the ranging point mark on the imaging display screen, reading the detection data of the laser ranging module, and determining the distance between the object to be measured and the laser ranging module according to the detection data.
9. An electronic device, comprising:
A memory for storing a computer program;
A processor for executing the computer program to implement the laser ranging calibration method of any of claims 1 to 7.
10. A computer-readable storage medium storing a computer program; wherein the computer program when executed by a processor implements the laser ranging calibration method according to any of claims 1 to 7.
CN202111255387.1A 2021-10-27 2021-10-27 Laser ranging calibration method, device, equipment and storage medium Active CN113960574B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111255387.1A CN113960574B (en) 2021-10-27 2021-10-27 Laser ranging calibration method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111255387.1A CN113960574B (en) 2021-10-27 2021-10-27 Laser ranging calibration method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113960574A CN113960574A (en) 2022-01-21
CN113960574B true CN113960574B (en) 2024-09-03

Family

ID=79467386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111255387.1A Active CN113960574B (en) 2021-10-27 2021-10-27 Laser ranging calibration method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113960574B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014020978A (en) * 2012-07-20 2014-02-03 Fujitsu Ltd Irradiation device, ranging device, and calibration program and calibration method of irradiation device
CN112731343A (en) * 2020-12-18 2021-04-30 福建汇川物联网技术科技股份有限公司 Target measuring method and device of measuring camera

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102011833B1 (en) * 2012-10-09 2019-08-19 주식회사 히타치엘지 데이터 스토리지 코리아 Laser Range Finder
DE102014112794A1 (en) * 2014-09-05 2016-03-10 Carl Zeiss Sports Optics Gmbh System for modular retrofitting or supplementing of an optical device with a laser distance measurement
JP6467941B2 (en) * 2015-01-23 2019-02-13 富士通株式会社 LASER RANGING DEVICE, LASER RANGING METHOD, AND LASER RANGING PROGRAM
JP6512015B2 (en) * 2015-07-27 2019-05-15 日産自動車株式会社 Calibration method
TWI557393B (en) * 2015-10-08 2016-11-11 微星科技股份有限公司 Calibration method of laser ranging and device utilizing the method
CN106524922B (en) * 2016-10-28 2019-01-15 深圳地平线机器人科技有限公司 Ranging calibration method, device and electronic equipment
CN108445496B (en) * 2018-01-02 2020-12-08 北京汽车集团有限公司 Ranging calibration device and method, ranging equipment and ranging method
US11178332B2 (en) * 2018-01-05 2021-11-16 Sensors Unlimited, Inc. Digital boresighting laser range finder to imaging device
CN109061608B (en) * 2018-05-23 2021-09-28 顺丰科技有限公司 Laser ranging calibration method
CN210119564U (en) * 2019-05-20 2020-02-28 因泰立科技(天津)有限公司 Calibration device for laser scanning distance measuring sensor
CN113030987B (en) * 2019-12-09 2024-03-22 浙江舜宇智能光学技术有限公司 Laser emergent angle measuring method and system for multi-line laser radar and electronic equipment
CN113128516B (en) * 2020-01-14 2024-04-05 北京京东乾石科技有限公司 Edge extraction method and device
CN113446956B (en) * 2020-03-24 2023-08-11 阿里巴巴集团控股有限公司 Data acquisition equipment, data correction method and device and electronic equipment
CN111880164B (en) * 2020-07-22 2023-02-28 北京嘀嘀无限科技发展有限公司 Laser radar calibration device and method
CN113050113B (en) * 2021-03-10 2023-08-01 广州南方卫星导航仪器有限公司 Laser spot positioning method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014020978A (en) * 2012-07-20 2014-02-03 Fujitsu Ltd Irradiation device, ranging device, and calibration program and calibration method of irradiation device
CN112731343A (en) * 2020-12-18 2021-04-30 福建汇川物联网技术科技股份有限公司 Target measuring method and device of measuring camera

Also Published As

Publication number Publication date
CN113960574A (en) 2022-01-21

Similar Documents

Publication Publication Date Title
US10805508B2 (en) Image processing method, and device
KR102143456B1 (en) Depth information acquisition method and apparatus, and image collection device
US11024052B2 (en) Stereo camera and height acquisition method thereof and height acquisition system
US20180245909A1 (en) Object measurement apparatus and object measurement method
CN112946609B (en) Calibration method, device and equipment for laser radar and camera and readable storage medium
CN111345029A (en) Target tracking method and device, movable platform and storage medium
WO2019105261A1 (en) Background blurring method and apparatus, and device
CN109685748B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN110779491A (en) Method, device and equipment for measuring distance of target on horizontal plane and storage medium
CN116630444B (en) An optimization method for camera and lidar fusion calibration
CN116433762A (en) Laser radar and camera calibration state detection method, calibration method, device and storage medium
CN111801709B (en) Circular feature detection method, processing system and device with storage function
CN115018922A (en) Distortion parameter calibration method, electronic device and computer readable storage medium
CN113960574B (en) Laser ranging calibration method, device, equipment and storage medium
CN113506351B (en) ToF camera calibration method, device, electronic device and storage medium
JP2003102022A (en) Imaging device and imaging method
JP2009300501A (en) Imaging device and map medium
CN116503492B (en) Binocular camera module calibration method and calibration device in automatic driving system
JP6390248B2 (en) Information processing apparatus, blur condition calculation method, and program
CN110555874B (en) An image processing method and device
JP2013213903A (en) Imaging device
WO2018061430A1 (en) Measurement apparatus, measurement method, measurement program, and recording medium
KR100741733B1 (en) Lens center positioning method and imaging device performing the method
CN113452920B (en) Focus point determining method, device, equipment and medium
WO2016194576A1 (en) Information processing device and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20250508

Address after: Building C, International Science and Technology Innovation Center, Bajiaowan Central Innovation Zone, No. 3 Nanchang Street, Yantai Area, China (Shandong) Pilot Free Trade Zone, Yantai City, Shandong Province 264000

Patentee after: YANTAI RAYTRON TECHNOLOGY Co.,Ltd.

Country or region after: China

Address before: 230012 northeast corner of the intersection of Dayu road and xifeihe Road, Xinzhan District, Hefei City, Anhui Province

Patentee before: INFIRAY TECHNOLOGIES CO.,LTD.

Country or region before: China

TR01 Transfer of patent right