CN115290077A - Positioning method, positioning device, electronic equipment and storage medium - Google Patents

Positioning method, positioning device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115290077A
CN115290077A CN202210785532.5A CN202210785532A CN115290077A CN 115290077 A CN115290077 A CN 115290077A CN 202210785532 A CN202210785532 A CN 202210785532A CN 115290077 A CN115290077 A CN 115290077A
Authority
CN
China
Prior art keywords
vehicle
mileage
image
camera
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210785532.5A
Other languages
Chinese (zh)
Inventor
樊晓东
孟俊华
樊晓莉
张宜霞
杨维
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kuanyan Hebei Intelligent Equipment Co ltd
Original Assignee
Kuanyan Hebei Intelligent Equipment 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 Kuanyan Hebei Intelligent Equipment Co ltd filed Critical Kuanyan Hebei Intelligent Equipment Co ltd
Priority to CN202210785532.5A priority Critical patent/CN115290077A/en
Publication of CN115290077A publication Critical patent/CN115290077A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • G—PHYSICS
    • G01—MEASURING; TESTING
    • G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/10—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
    • G01C21/12—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
    • G01C21/16—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation
    • G01C21/165—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation combined with non-inertial navigation instruments
    • G—PHYSICS
    • G01—MEASURING; TESTING
    • G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34—Route searching; Route guidance
    • G01C21/3407—Route searching; Route guidance specially adapted for specific applications
    • G01C21/3415—Dynamic re-routing, e.g. recalculating the route when the user deviates from calculated route or after detecting real-time traffic data or accidents
    • G—PHYSICS
    • G01—MEASURING; TESTING
    • G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34—Route searching; Route guidance
    • G01C21/3446—Details of route searching algorithms, e.g. Dijkstra, A*, arc-flags or using precalculated routes
    • G—PHYSICS
    • G06—COMPUTING OR CALCULATING; COUNTING
    • G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00—Image analysis
    • G06T7/80—Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Navigation (AREA)

Abstract

本发明属于定位技术领域,公开了一种定位方法、装置、电子设备和存储介质,所述定位方法包括:设置在行驶车辆上的相机获取连续拍照的图像,根据当前获取的图像和相机的标定参数,计算车辆行驶的第一里程;根据设置在车辆上的编码器输出的第一里程计算失败数据,计算车辆行驶的第二里程;根据所述第一里程、所述第二里程,确定所述车辆当前的定位。本发明可实现在隧道中高精准度的定位,且给出了第一里程计算失败时采用编码器定位的方法,提高了定位的成功率。本发明提供了一种适用于隧道中的车辆定位方法,解决了传统的车辆定位方法在隧道中定位不准或定位失败的问题。

Figure 202210785532

The invention belongs to the technical field of positioning, and discloses a positioning method, a device, an electronic device and a storage medium. The positioning method includes: a camera arranged on a traveling vehicle obtains continuously photographed images; parameters, calculate the first mileage of the vehicle; according to the first mileage calculation failure data output by the encoder set on the vehicle, calculate the second mileage of the vehicle; according to the first mileage and the second mileage, determine the the current position of the vehicle. The invention can realize high-precision positioning in the tunnel, and provides a method of using encoder positioning when the first mileage calculation fails, thereby improving the success rate of positioning. The invention provides a vehicle positioning method suitable for a tunnel, and solves the problems of inaccurate positioning or positioning failure in the traditional vehicle positioning method in the tunnel.

Figure 202210785532

Description

一种定位方法、装置、电子设备和存储介质A positioning method, device, electronic equipment and storage medium

技术领域technical field

本发明属于定位技术领域,尤其涉及一种定位方法、装置、电子设备和存储介质。The invention belongs to the technical field of positioning, and in particular relates to a positioning method, device, electronic equipment and storage medium.

背景技术Background technique

隧道作为交通运输线路和城市地下空间的重要基础组成部分,对于便利群众出行和缓解交通压力起着积极的促进作用。As an important basic part of transportation lines and urban underground space, tunnels play a positive role in facilitating people's travel and relieving traffic pressure.

由于气象水文和地理环境的复杂性和差异性,以及受限于隧道建设时的勘察设计技术手段和施工工艺水平,再加上运营过程中的损耗,许多隧道都存在着不同程度的病害,影响隧道健康运营。隧道病害是指由物理或化学等原因引起隧道衬砌、路面、洞门以及附属结构破坏或故障,导致隧道美观、结构承载、使用功能受损的现象。Due to the complexity and difference of meteorological, hydrological and geographical environments, as well as the limitations of the survey and design technical means and construction technology level during tunnel construction, coupled with the loss during operation, many tunnels have various degrees of disease, affecting Tunnel healthy operation. Tunnel disease refers to the damage or failure of the tunnel lining, road surface, portal and auxiliary structures caused by physical or chemical reasons, resulting in damage to the tunnel's aesthetics, structural bearings, and use functions.

鉴于人工检测效率较低,目前的隧道病害检测很多都使用了多相机组成阵列,协同测量衬砌大断面影像的方法。这种方法一般使用车辆装载相机阵列在隧道中穿行,以获取衬砌大断面影像,随后根据拍摄的影像对隧道病害进行识别和检测。同时,要进一步实现对病害的人工分析和维修,还需要确定病害在隧道中的位置。具体地,可以根据拍摄影像时,车辆当前在隧道中的定位,确定病害在隧道中的具体位置。In view of the low efficiency of manual detection, many current tunnel defect detection methods use multi-camera arrays to collaboratively measure large-section images of the lining. This method generally uses a vehicle-mounted camera array to travel through the tunnel to obtain large-section images of the lining, and then identify and detect tunnel defects based on the captured images. At the same time, in order to further realize the manual analysis and maintenance of the disease, it is also necessary to determine the position of the disease in the tunnel. Specifically, the specific location of the disease in the tunnel can be determined according to the current location of the vehicle in the tunnel when the image is taken.

然而,在实际操作中,隧道是一个半封闭环境,很多时候缺少卫星定位信号或网络信号,因此,采用传统的GPS(Global Positioning System,全球定位系统)方法或网络定位方法对车辆的位置进行定位时,常常定位不准或定位失败,这为进一步确定病害在隧道中的位置带来困难。However, in actual operation, the tunnel is a semi-enclosed environment, and often lacks satellite positioning signals or network signals. Therefore, the traditional GPS (Global Positioning System, Global Positioning System) method or network positioning method is used to locate the position of the vehicle. Often, the positioning is inaccurate or fails, which makes it difficult to further determine the location of the disease in the tunnel.

因此,需要一种适用于隧道中的车辆定位方法,以解决传统的车辆定位方法在隧道中定位不准或定位失败的问题。Therefore, there is a need for a vehicle positioning method suitable for tunnels, so as to solve the problem of inaccurate positioning or positioning failure of traditional vehicle positioning methods in tunnels.

通过上述分析,现有技术存在的问题及缺陷为:Through the above analysis, the problems and defects in the prior art are:

现有技术对由物理或化学等原因引起隧道衬砌、路面、洞门以及附属结构破坏或故障,导致隧道美观、结构承载、使用功能受损引起的隧道病害信息或图像识别以及定位准确度低。The existing technology has low accuracy of tunnel disease information or image recognition and positioning due to damage or failure of tunnel lining, road surface, portal and auxiliary structures caused by physical or chemical reasons, resulting in tunnel beauty, structural load-bearing, and use function damage.

发明内容Contents of the invention

本发明实施例提供了一种定位方法、装置、电子设备和存储介质,以解决传统的在车辆定位方法在隧道中定位不准或定位失败的问题。Embodiments of the present invention provide a positioning method, device, electronic equipment and storage medium to solve the problem of inaccurate positioning or positioning failure in traditional vehicle positioning methods in tunnels.

有鉴于此,本发明实施例第一方面,提供一种定位方法,所述方法包括:设置在行驶车辆上的相机获取连续拍照的图像,根据当前获取的图像和相机的标定参数,计算车辆行驶的第一里程;In view of this, the first aspect of the embodiment of the present invention provides a positioning method, the method includes: the camera installed on the driving vehicle acquires images taken continuously, and calculates the vehicle driving position according to the currently acquired images and the calibration parameters of the camera. the first mileage of

根据设置在车辆上的编码器输出的第一里程计算失败数据,计算车辆行驶的第二里程;Calculate the second mileage traveled by the vehicle according to the first mileage calculation failure data output by the encoder installed on the vehicle;

根据所述第一里程、所述第二里程,确定所述车辆当前的定位。The current location of the vehicle is determined according to the first mileage and the second mileage.

可选地,所述定位方法还包括:Optionally, the positioning method also includes:

获取第一相机拍摄的多张第一图像;所述第一相机设置在行驶的车辆上并进行连续拍照,相邻的两个所述第一图像的匹配像素点数量大于或等于目标数量;Acquiring a plurality of first images taken by the first camera; the first camera is set on a moving vehicle and continuously takes pictures, and the number of matching pixels of two adjacent first images is greater than or equal to the target number;

根据当前获取的所述第一图像和所述第一相机的标定参数,计算上一次获取所述第一图像之后,所述车辆行驶的第一里程;calculating a first mileage traveled by the vehicle after the first image was acquired last time according to the currently acquired first image and the calibration parameters of the first camera;

当遇到所述第一里程计算失败时,获取设置在所述车辆上的编码器所输出的脉冲数据;When the first mileage calculation fails, acquire the pulse data output by the encoder arranged on the vehicle;

根据所述脉冲数据,计算在所述第一里程计算失败期间,所述车辆行驶的第二里程;calculating a second mileage traveled by the vehicle during the period when the first mileage calculation fails according to the pulse data;

根据所述第一里程、所述第二里程,确定在目标时间段所述车辆行驶的总里程;According to the first mileage and the second mileage, determine the total mileage traveled by the vehicle during the target time period;

根据所述总里程,确定所述车辆当前的定位。According to the total mileage, the current location of the vehicle is determined.

可选地,所述车辆上还设置有多个第二相机,所述第二相机用于连续拍摄隧道侧壁,和/或,隧道顶弧,和/或,隧道地面,在确定所述车辆当前的定位之后,还包括:Optionally, the vehicle is also provided with a plurality of second cameras, and the second cameras are used to continuously photograph the side walls of the tunnel, and/or, the tunnel top arc, and/or, the tunnel ground, when determining whether the vehicle After the current positioning, also include:

获取所述第二相机拍摄的第二图像,并从所述第二图像中识别目标对象;acquiring a second image captured by the second camera, and identifying a target object from the second image;

在识别到所述目标对象时,将所述目标对象所在的第二图像作为目标图像;When the target object is recognized, using the second image where the target object is located as the target image;

根据所述车辆当前的定位,确定所述目标图像拍摄时所述车辆的定位;determining the location of the vehicle when the target image is captured according to the current location of the vehicle;

根据所述目标图片拍摄时所述车辆的定位确定所述目标图像在隧道中的定位。The location of the target image in the tunnel is determined according to the location of the vehicle when the target picture is taken.

可选地,所述当前获取的所述第一图像为下一帧图像,所述上一次获取的所述第一图像为上一帧图像,所述根据当前获取的所述第一图像,计算上一次获取所述第一图像之后,所述车辆行驶的第一里程,包括:Optionally, the currently acquired first image is a next frame image, the last acquired first image is a previous frame image, and according to the currently acquired first image, calculating The first mileage traveled by the vehicle after the last acquisition of the first image includes:

根据多个所述第一图像,及相邻所述第一图像之间的匹配特征点,确定所述第一相机的标定参数;determining calibration parameters of the first camera according to a plurality of the first images and matching feature points between adjacent first images;

根据所述第一相机的标定参数,确定单应性矩阵和畸变参数矩阵;并根据所述单应性矩阵和畸变参数矩阵,得到所述第一图像的像素坐标系和世界坐标系之间的转换关系;According to the calibration parameters of the first camera, determine the homography matrix and the distortion parameter matrix; and according to the homography matrix and the distortion parameter matrix, obtain the pixel coordinate system of the first image and the world coordinate system. conversion relationship;

确定所述下一帧图像中的目标像素点相对于所述上一帧图像中的所述目标像素点,在图像中的像素位移;Determine the pixel displacement in the image of the target pixel in the next frame of image relative to the target pixel in the previous frame of image;

根据所述转换关系,确定所述第一图像中的每个像素点对应在实际空间的实际尺寸;According to the conversion relationship, determine that each pixel in the first image corresponds to an actual size in an actual space;

根据所述实际尺寸和所述像素位移,确定所述下一帧图像与所述上一帧图像之间对应的车辆行驶距离,得到所述车辆行驶的第一里程。According to the actual size and the pixel displacement, the corresponding vehicle travel distance between the next frame image and the previous frame image is determined to obtain a first mileage traveled by the vehicle.

可选地,所述脉冲数据包括输出脉冲的时间戳和脉冲数量,所述根据所述脉冲数据,计算在所述第一里程计算失败期间,所述车辆行驶的第二里程,包括:Optionally, the pulse data includes the time stamp of the output pulse and the number of pulses, and the calculation of the second mileage traveled by the vehicle during the failure of the first mileage calculation according to the pulse data includes:

根据所述时间戳和所述脉冲数量,确定在所述第一里程计算失败期间输出的脉冲总数;determining a total number of pulses output during said first mileage calculation failure based on said timestamp and said number of pulses;

根据所述脉冲总数和所述车轮的周长,计算在所述第一里程计算失败期间所述车辆行驶的第二里程。Based on the total number of pulses and the circumference of the wheel, a second mileage traveled by the vehicle during the period when the first mileage calculation fails is calculated.

可选地,在获取设置在所述车辆上的编码器所输出的脉冲数据之前,还包括:Optionally, before obtaining the pulse data output by the encoder provided on the vehicle, it also includes:

当检测到发生第一异常情况时,确定所述第一里程计算失败;When it is detected that the first abnormal situation occurs, it is determined that the calculation of the first mileage fails;

所述第一异常情况至少包括以下情况中的其中一种:无法获取到所述第一图像、所述第一图像上的目标区域存在异物、所述第一图像的亮度大于或等于第一阈值、所述第一图像的亮度小于第二阈值;相邻的两个所述第一图像包括的匹配像素点数量小于目标数量。The first abnormal situation includes at least one of the following situations: the first image cannot be acquired, there is a foreign object in the target area on the first image, and the brightness of the first image is greater than or equal to a first threshold . The brightness of the first image is less than a second threshold; the number of matching pixels included in two adjacent first images is less than a target number.

可选地,所述行驶的车辆上还设置有第三相机,所述第三相机用于拍摄里程识别对象,所述第一相机和所述第三相机的拍摄时间点一致,在根据当前获取的所述第一图像,计算上一次获取所述第一图像之后,所述车辆行驶的第一里程之后,还包括:Optionally, a third camera is also provided on the driving vehicle, the third camera is used to photograph the mileage recognition object, the photographing time points of the first camera and the third camera are consistent, and according to the currently acquired The first image, after calculating the first mileage traveled by the vehicle after the last acquisition of the first image, further includes:

对所述第三相机拍摄的第三图像中的内容进行识别;Identifying content in a third image captured by the third camera;

若识别到所述里程识别对象,则根据所述里程识别对象中的里程数对所述第一里程进行校正;If the mileage identification object is identified, correcting the first mileage according to the mileage in the mileage identification object;

在根据所述脉冲数据,计算在所述第一里程计算失败期间,所述车辆行驶的第二里程之后,还包括:After calculating the second mileage traveled by the vehicle during the period when the first mileage calculation fails according to the pulse data, further comprising:

根据所述里程识别对象中的里程数对所述第二里程进行校正。The second mileage is corrected according to the mileage in the mileage identification object.

可选地,在根据所述脉冲数据,计算在所述第一里程计算失败期间,所述车辆行驶的第二里程之后,还包括:Optionally, after calculating the second mileage traveled by the vehicle during the period when the first mileage calculation fails according to the pulse data, the method further includes:

当遇到所述第二里程计算失败时,确定所述第二里程计算失败期间所对应的第一时间段长度;When the second mileage calculation fails, determine the length of the first time period corresponding to the second mileage calculation failure period;

获取上一个所述第一时间段长度所述车辆行驶的里程数;Acquiring the mileage traveled by the vehicle in the last first time period;

将所述上一个所述第一时间段长度所述车辆行驶的里程数,作为所述车辆行驶的第二里程。The mileage traveled by the vehicle during the last first time period is taken as the second mileage traveled by the vehicle.

可选地,在根据所述脉冲数据,计算在所述第一里程计算失败期间,所述车辆行驶的第二里程之后,还包括:Optionally, after calculating the second mileage traveled by the vehicle during the period when the first mileage calculation fails according to the pulse data, the method further includes:

当遇到所述第二里程计算失败时,则获取设置在所述车辆上的惯性导航装置所输出的惯导数据;When the calculation of the second mileage fails, the inertial navigation data output by the inertial navigation device installed on the vehicle is obtained;

根据所述惯导数据计算在所述第二里程计算失败期间,所述车辆行驶的第二里程。A second mileage traveled by the vehicle during the period when the calculation of the second mileage fails is calculated according to the inertial navigation data.

本发明实施例第二方面,还提供一种定位装置,所述装置包括:In the second aspect of the embodiment of the present invention, a positioning device is also provided, and the device includes:

第一图像获取模块,用于获取第一相机拍摄的多张第一图像;所述第一相机设置在行驶的车辆上并进行连续拍照,相邻的两个所述第一图像的匹配像素点数量大于或等于目标数量;The first image acquisition module is used to acquire a plurality of first images taken by the first camera; the first camera is arranged on a moving vehicle and takes pictures continuously, and the matching pixels of two adjacent first images The quantity is greater than or equal to the target quantity;

第一里程计算模块,用于根据当前获取的所述第一图像和所述第一相机的标定参数,计算上一次获取所述第一图像之后,所述车辆行驶的第一里程;The first mileage calculation module is configured to calculate the first mileage traveled by the vehicle after the first image was acquired last time according to the currently acquired first image and the calibration parameters of the first camera;

脉冲数据获取模块,用于当遇到所述第一里程计算失败时,获取设置在所述车辆上的编码器所输出的脉冲数据;A pulse data acquisition module, configured to acquire the pulse data output by the encoder provided on the vehicle when the first mileage calculation fails;

第二里程计算模块,用于根据所述脉冲数据,计算在所述第一里程计算失败期间,所述车辆行驶的第二里程;The second mileage calculation module is configured to calculate the second mileage traveled by the vehicle during the period when the first mileage calculation fails according to the pulse data;

定位模块,用于根据所述第一里程、所述第二里程,确定所述车辆当前的定位。A positioning module, configured to determine the current location of the vehicle according to the first mileage and the second mileage.

可选地,所述装置还包括:Optionally, the device also includes:

目标对象识别模块,用于获取所述第二相机拍摄的第二图像,并从所述第二图像中识别目标对象;a target object recognition module, configured to acquire a second image taken by the second camera, and identify a target object from the second image;

目标图像确定模块,用于在识别到所述目标对象时,将所述目标对象所在的第二图像作为目标图像;A target image determination module, configured to use the second image where the target object is located as the target image when the target object is recognized;

车辆定位模块,用于根据所述车辆当前的定位,确定所述目标图像拍摄时所述车辆的定位;a vehicle location module, configured to determine the location of the vehicle when the target image is captured according to the current location of the vehicle;

图像定位模块,用于根据所述目标图片拍摄时所述车辆的定位确定所述目标图像在隧道中的定位。An image positioning module, configured to determine the position of the target image in the tunnel according to the position of the vehicle when the target picture is taken.

可选地,所述第一里程计算模块进一步用于:Optionally, the first mileage calculation module is further used for:

根据多个所述第一图像,及相邻所述第一图像之间的匹配特征点,确定所述第一相机的标定参数;determining calibration parameters of the first camera according to a plurality of the first images and matching feature points between adjacent first images;

根据所述第一相机的标定参数,确定单应性矩阵和畸变参数矩阵;并根据所述单应性矩阵和畸变参数矩阵,得到所述第一图像的像素坐标系和世界坐标系之间的转换关系;According to the calibration parameters of the first camera, determine the homography matrix and the distortion parameter matrix; and according to the homography matrix and the distortion parameter matrix, obtain the pixel coordinate system of the first image and the world coordinate system. conversion relationship;

确定所述下一帧图像中的目标像素点相对于所述上一帧图像中的所述目标像素点,在图像中的像素位移;Determine the pixel displacement in the image of the target pixel in the next frame of image relative to the target pixel in the previous frame of image;

根据所述转换关系,确定所述第一图像中的每个像素点对应在实际空间的实际尺寸;According to the conversion relationship, determine that each pixel in the first image corresponds to an actual size in an actual space;

根据所述实际尺寸和所述像素位移,确定所述下一帧图像与所述上一帧图像之间对应的车辆行驶距离,得到所述车辆行驶的第一里程。According to the actual size and the pixel displacement, the corresponding vehicle travel distance between the next frame image and the previous frame image is determined to obtain a first mileage traveled by the vehicle.

可选地,所述第二里程计算模块进一步用于:Optionally, the second mileage calculation module is further used for:

根据所述时间戳和所述脉冲数量,确定在所述第一里程计算失败期间输出的脉冲总数;determining a total number of pulses output during said first mileage calculation failure based on said timestamp and said number of pulses;

根据所述脉冲总数和所述车轮的周长,计算在所述第一里程计算失败期间所述车辆行驶的第二里程。Based on the total number of pulses and the circumference of the wheel, a second mileage traveled by the vehicle during the period when the first mileage calculation fails is calculated.

可选地,所述装置还包括:Optionally, the device also includes:

第一里程计算失败模块,用于当检测到发生第一异常情况时,确定所述第一里程计算失败;The first mileage calculation failure module is configured to determine that the first mileage calculation fails when a first abnormal situation is detected;

所述第一异常情况至少包括以下情况中的其中一种:无法获取到所述第一图像、所述第一图像上的目标区域存在异物、所述第一图像的亮度大于或等于第一阈值、所述第一图像的亮度小于第二阈值;相邻的两个所述第一图像包括的匹配像素点数量小于目标数量。The first abnormal situation includes at least one of the following situations: the first image cannot be acquired, there is a foreign object in the target area on the first image, and the brightness of the first image is greater than or equal to a first threshold . The brightness of the first image is less than a second threshold; the number of matching pixels included in two adjacent first images is less than a target number.

可选地,所述行驶的车辆上还设置有第三相机,所述第三相机用于拍摄里程识别对象,所述第一相机和所述第三相机的拍摄时间点一致,所述装置还包括:Optionally, a third camera is also provided on the driving vehicle, the third camera is used to photograph the mileage identification object, the photographing time points of the first camera and the third camera are consistent, and the device further include:

第二识别模块,用于对所述第三相机拍摄的第三图像中的内容进行识别;A second identification module, configured to identify content in a third image captured by the third camera;

第一校正模块,用于若识别到所述里程识别对象,则根据所述里程识别对象中的里程数对所述第一里程进行校正;A first correction module, configured to correct the first mileage according to the mileage in the mileage identification object if the mileage identification object is identified;

第二校正模块,用于根据所述里程识别对象中的里程数对所述第二里程进行校正。The second correction module is configured to correct the second mileage according to the mileage in the mileage identification object.

可选地,所述装置还包括:Optionally, the device also includes:

时间长度确定模块,用于当遇到所述第二里程计算失败时,确定所述第二里程计算失败期间所对应的第一时间段长度;A time length determination module, configured to determine the length of the first time period corresponding to the second mileage calculation failure period when encountering the second mileage calculation failure;

里程数获取模块,用于获取上一个所述第一时间段长度所述车辆行驶的里程数;A mileage acquisition module, configured to acquire the mileage traveled by the vehicle in the last said first time period;

第二里程确定模块,用于将所述上一个所述第一时间段长度所述车辆行驶的里程数,作为所述车辆行驶的第二里程。The second mileage determining module is configured to use the last mileage traveled by the vehicle over the length of the first time period as the second mileage traveled by the vehicle.

可选地,所述装置还包括:Optionally, the device also includes:

惯导数据获取模块,用于当遇到所述第二里程计算失败时,则获取设置在所述车辆上的惯性导航装置所输出的惯导数据;The inertial navigation data acquisition module is used to acquire the inertial navigation data output by the inertial navigation device installed on the vehicle when the second mileage calculation fails;

惯导里程计算模块,用于根据所述惯导数据计算在所述第二里程计算失败期间,所述车辆行驶的第二里程。The inertial navigation mileage calculation module is configured to calculate the second mileage traveled by the vehicle during the period when the second mileage calculation fails according to the inertial navigation data.

可选地,所述定位方法还包括:Optionally, the positioning method also includes:

获取第一相机拍摄的多张第一图像;所述第一相机设置在行驶的车辆上并进行连续拍照,相邻的两个所述第一图像的匹配像素点数量大于或等于目标数量;Acquiring a plurality of first images taken by the first camera; the first camera is set on a moving vehicle and continuously takes pictures, and the number of matching pixels of two adjacent first images is greater than or equal to the target number;

至少根据当前获取的所述第一图像,计算上一次获取所述第一图像之后,所述车辆行驶的第一里程;calculating a first mileage traveled by the vehicle after the last acquisition of the first image based on at least the currently acquired first image;

当检测到所述车辆打滑时,获取安装在所述车辆上的惯性导航装置所输出的惯导数据;When detecting that the vehicle is slipping, acquiring inertial navigation data output by an inertial navigation device installed on the vehicle;

根据所述惯导数据计算在所述车辆打滑期间,所述车辆行驶的第二里程;calculating a second mileage traveled by the vehicle during the skid period of the vehicle according to the inertial navigation data;

根据所述第一里程、所述第二里程,确定所述车辆当前的定位。The current location of the vehicle is determined according to the first mileage and the second mileage.

可选地,所述车辆上还设置有多个第二相机,所述第二相机用于连续拍摄隧道侧壁,和/或,隧道顶弧,和/或,隧道地面,在确定所述车辆当前的定位之后,还包括:Optionally, the vehicle is also provided with a plurality of second cameras, and the second cameras are used to continuously photograph the side walls of the tunnel, and/or, the tunnel top arc, and/or, the tunnel ground, when determining whether the vehicle After the current positioning, also include:

获取所述第二相机拍摄的第二图像,并从所述第二图像中识别目标对象;acquiring a second image captured by the second camera, and identifying a target object from the second image;

在识别到所述目标对象时,将所述目标对象所在的第二图像作为目标图像;When the target object is recognized, using the second image where the target object is located as the target image;

根据所述车辆当前的定位,确定所述目标图像拍摄时所述车辆的定位;determining the location of the vehicle when the target image is captured according to the current location of the vehicle;

根据所述目标图片拍摄时所述车辆的定位确定所述目标图像在隧道中的定位;determining the location of the target image in the tunnel according to the location of the vehicle when the target picture is taken;

在获取设置在所述车辆上的惯性导航装置所输出的惯导数据之前,还包括:Before acquiring the inertial navigation data output by the inertial navigation device arranged on the vehicle, it also includes:

检测设置在所述车辆上的车轮编码器是否输出脉冲,以及检测所述车辆是否发生位移;Detecting whether the wheel encoder provided on the vehicle outputs pulses, and detecting whether the vehicle is displaced;

若所述车轮编码器输出脉冲,则在检测到所述车辆未发生位移的情况下,确定所述车辆打滑;If the wheel encoder outputs pulses, it is determined that the vehicle is slipping when no displacement of the vehicle is detected;

若所述车轮编码器未输出脉冲,则在检测到所述车辆发生位移的情况下,确定所述车辆打滑;If the wheel encoder does not output pulses, it is determined that the vehicle is slipping when a displacement of the vehicle is detected;

检测所述车辆是否发生位移的方法包括:The method for detecting whether the vehicle is displaced includes:

确定当前获取的所述第一图像,与上一次获取的所述第一图像的相似度;determining the similarity between the first image currently acquired and the first image acquired last time;

若所述相似度大于或等于第一阈值,则确定所述车辆未发生位移;If the similarity is greater than or equal to a first threshold, it is determined that the vehicle has not been displaced;

若所述相似度小于第一阈值,则确定所述车辆发生位移;If the similarity is less than a first threshold, then determining that the vehicle has been displaced;

所述惯导数据包括:当前时刻所述车辆的加速度和所述车辆行驶的方向和姿态角,所述根据所述惯导数据计算在所述车辆打滑期间,所述车辆行驶的第二里程,包括:The inertial navigation data includes: the acceleration of the vehicle at the current moment and the direction and attitude angle of the vehicle, and the second mileage traveled by the vehicle is calculated according to the inertial navigation data during the skid period of the vehicle, include:

根据上一次计算得到的第一里程和所述第一里程对应的时间段,确定所述车辆当前时刻的速度;According to the first mileage calculated last time and the time period corresponding to the first mileage, determine the speed of the vehicle at the current moment;

根据所述姿态角、所述车辆的加速度,计算所述车辆在行驶方向上的加速度分量;calculating the acceleration component of the vehicle in the direction of travel according to the attitude angle and the acceleration of the vehicle;

根据所述车辆当前时刻的速度和所述加速度分量,以及所述车辆打滑期间对应的时间段,确定在所述车辆打滑期间,所述车辆行驶的第二里程;determining a second mileage traveled by the vehicle during the vehicle skid period according to the vehicle speed at the current moment and the acceleration component, and a corresponding time period during the vehicle skid period;

所述当前获取的所述第一图像为下一帧图像,所述上一次获取的所述第一图像为上一帧图像,所述至少根据当前获取的所述第一图像,计算上一次获取所述第一图像之后,所述车辆行驶的第一里程,包括:The currently acquired first image is a next frame image, the last acquired first image is a previous frame image, and the last acquired image is calculated based on at least the currently acquired first image After the first image, the first mileage traveled by the vehicle includes:

根据多个所述第一图像,及相邻所述第一图像之间的匹配特征点,确定所述第一相机的标定参数;determining calibration parameters of the first camera according to a plurality of the first images and matching feature points between adjacent first images;

根据所述第一相机的标定参数,确定单应性矩阵和畸变参数矩阵;并根据所述单应性矩阵和畸变参数矩阵,得到所述第一图像的像素坐标系和世界坐标系之间的转换关系;According to the calibration parameters of the first camera, determine the homography matrix and the distortion parameter matrix; and according to the homography matrix and the distortion parameter matrix, obtain the pixel coordinate system of the first image and the world coordinate system. conversion relationship;

确定所述下一帧图像中的目标像素点相对于所述上一帧图像中的所述目标像素点,在图像中的像素位移;Determine the pixel displacement in the image of the target pixel in the next frame of image relative to the target pixel in the previous frame of image;

根据所述转换关系,确定所述第一图像中的每个像素点对应在实际空间的实际尺寸;According to the conversion relationship, determine that each pixel in the first image corresponds to an actual size in an actual space;

根据所述实际尺寸和所述像素位移,确定所述下一帧图像与所述上一帧图像之间对应的车辆行驶距离,得到所述车辆行驶的第一里程;According to the actual size and the pixel displacement, determine the corresponding vehicle travel distance between the next frame image and the previous frame image, and obtain the first mileage traveled by the vehicle;

所述至少根据当前获取的所述第一图像,计算上一次获取所述第一图像之后,所述车辆行驶的第一里程,包括:The calculation of the first mileage traveled by the vehicle after the last acquisition of the first image based on at least the currently acquired first image includes:

根据所述惯性导航装置输出的惯导数据,确定在上一次获取所述第一图像之后,所述车辆行驶的惯导里程;According to the inertial navigation data output by the inertial navigation device, determine the inertial navigation mileage traveled by the vehicle after the last acquisition of the first image;

根据当前获取的所述第一图像和上一次获取的所述第一图像之间的匹配像素点,确定在上一次获取所述第一图像之后,所述车辆行驶的视觉里程;Determining the visual mileage traveled by the vehicle after the first image was acquired last time according to the matching pixel points between the currently acquired first image and the last acquired first image;

将所述惯导里程和所述视觉里程的平均值,作为在上一次获取所述第一图像之后,所述车辆行驶的第一里程;Taking the average value of the inertial mileage and the visual mileage as the first mileage traveled by the vehicle after the first image was acquired last time;

所述行驶的车辆上还设置有第三相机,所述第三相机用于拍摄里程识别对象,所述第一相机和所述第三相机的拍摄时间点一致,在根据当前获取的所述第一图像,计算上一次获取所述第一图像之后,所述车辆行驶的第一里程之后,还包括:The driving vehicle is also provided with a third camera, the third camera is used to photograph the mileage identification object, the photographing time points of the first camera and the third camera are consistent, and according to the currently acquired An image, after calculating the first mileage traveled by the vehicle after the last acquisition of the first image, further includes:

对所述第三相机拍摄的第三图像中的内容进行识别;Identifying content in a third image captured by the third camera;

若识别到所述里程识别对象,则根据所述里程识别对象中的里程数对所述第一里程进行校正;If the mileage identification object is identified, correcting the first mileage according to the mileage in the mileage identification object;

在根据所述惯导数据计算在所述车辆打滑期间,所述车辆行驶的第二里程之后,还包括:After calculating the second mileage traveled by the vehicle during the skid period of the vehicle according to the inertial navigation data, it further includes:

根据所述里程识别对象中的里程数对所述第二里程进行校正。The second mileage is corrected according to the mileage in the mileage identification object.

本发明实施例的第三方面,提供一种定位装置,所述定位装置包括:According to a third aspect of the embodiments of the present invention, a positioning device is provided, and the positioning device includes:

第一图像获取模块,用于获取第一相机拍摄的多张第一图像;所述第一相机设置在行驶的车辆上并进行连续拍照,相邻的两个所述第一图像的匹配像素点数量大于或等于目标数量;The first image acquisition module is used to acquire a plurality of first images taken by the first camera; the first camera is arranged on a moving vehicle and takes pictures continuously, and the matching pixels of two adjacent first images The quantity is greater than or equal to the target quantity;

第一里程计算模块,用于至少根据当前获取的所述第一图像,计算上一次获取所述第一图像之后,所述车辆行驶的第一里程;The first mileage calculation module is configured to calculate the first mileage traveled by the vehicle after the last acquisition of the first image based on at least the currently acquired first image;

惯导数据获取模块,用于当检测到所述车辆打滑时,获取安装在所述车辆上的惯性导航装置所输出的惯导数据;The inertial navigation data acquisition module is used to acquire the inertial navigation data output by the inertial navigation device installed on the vehicle when the vehicle is detected to be slipping;

第二里程计算模块,用于根据所述惯导数据计算在所述车辆打滑期间,所述车辆行驶的第二里程;A second mileage calculation module, configured to calculate a second mileage traveled by the vehicle during the skid period of the vehicle according to the inertial navigation data;

定位模块,用于根据所述第一里程、所述第二里程,确定所述车辆当前的定位。A positioning module, configured to determine the current location of the vehicle according to the first mileage and the second mileage.

本发明实施例的第四方面,还提供一种电子设备,包括处理器和存储器,所述处理器和存储器耦合,所述存储器用于存储计算机程序指令,当所述处理器执行所述计算机程序指令时,使得电子设备执行如第一方面所述的定位方法。According to the fourth aspect of the embodiments of the present invention, there is also provided an electronic device, including a processor and a memory, the processor and the memory are coupled, the memory is used to store computer program instructions, and when the processor executes the computer program When an instruction is issued, the electronic device is made to execute the positioning method as described in the first aspect.

本发明实施例的第五方面,还提供一种计算机可读存储介质,所述计算机存储介质中存储有程序指令,当所述程序指令在电子设备上运行时,使得电子设备执行如第一方面所述的定位方法。According to the fifth aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, where program instructions are stored in the computer storage medium, and when the program instructions are run on the electronic device, the electronic device executes the method described in the first aspect. The positioning method described.

本发明还提供一种应用发布平台,所述应用发布平台用于发布计算机程序产品,其中,当所述计算机程序产品在计算机上运行时,使得所述计算机执行本发明实施例第一方面所述的方法。The present invention also provides an application publishing platform, the application publishing platform is used for publishing computer program products, wherein, when the computer program products are run on a computer, the computer is made to execute the program described in the first aspect of the embodiments of the present invention. Methods.

结合上述的技术方案和解决的技术问题,请从以下几方面分析本发明所要保护的技术方案所具备的优点及积极效果为:Combining the above-mentioned technical solutions and technical problems to be solved, please analyze the advantages and positive effects of the technical solutions to be protected by the present invention from the following aspects:

第一、针对上述现有技术存在的技术问题以及解决该问题的难度,紧密结合本发明的所要保护的技术方案以及研发过程中结果和数据等,详细、深刻地分析本发明技术方案如何解决的技术问题,解决问题之后带来的一些具备创造性的技术效果。具体描述如下:First, in view of the technical problems existing in the above-mentioned prior art and the difficulty of solving the problems, closely combine the technical solution to be protected in the present invention and the results and data in the research and development process, etc., to analyze in detail how the technical solution of the present invention solves it Technical problems, some creative technical effects brought about after solving the problems. The specific description is as follows:

现有技术中,地下或山区的隧道、管廊,未被通信网络覆盖,GPS信号微弱,行驶设备无法为自身、检测对象或故障获取到准确的定位信息。In the prior art, underground or mountainous tunnels and pipe corridors are not covered by the communication network, and the GPS signal is weak, so the driving equipment cannot obtain accurate positioning information for itself, detection objects or faults.

在上述建筑中,由于条件的复杂性和多样性,仅依靠一种定位方式,可能无法提供全工况的高精度定位。因此,需要将多种定位方法和校准方法相融合,尽量消除或降低因某种定位方法失效而导致的定位精度降低。In the above-mentioned buildings, due to the complexity and variety of conditions, only one positioning method may not be able to provide high-precision positioning under all working conditions. Therefore, it is necessary to integrate multiple positioning methods and calibration methods to eliminate or reduce the reduction of positioning accuracy caused by the failure of a certain positioning method as much as possible.

可能造成定位失效的原因有:图像摄取装置,因受到遮挡为获取到图像,或因图像质量等因素导致未能符合定位计算要求。Possible causes of positioning failure include: the image capture device fails to obtain an image due to occlusion, or fails to meet the positioning calculation requirements due to factors such as image quality.

行驶设备轮子(轴)周长和转动圈数的方式计量行驶里程的方式,可能因为轮子(轴)打滑、缺气等因素,影响定位的准确性。The method of measuring the mileage by the circumference of the wheel (shaft) and the number of rotations of the driving equipment may affect the accuracy of positioning due to factors such as wheel (shaft) slipping and lack of air.

本发明为解决上述问题,提出了一种定位方法、装置,带来的效果包括:In order to solve the above problems, the present invention proposes a positioning method and device, and the effects brought include:

可以摆脱通信网络或GPS的限制,融合图像、脉冲信号、里程标识、惯性导航等技术,使其在一种或几种方法失效时,通过相互补充和校准,依然能够提供高精度定位信息。It can get rid of the limitation of communication network or GPS, integrate image, pulse signal, mileage marking, inertial navigation and other technologies, so that when one or more methods fail, they can still provide high-precision positioning information through mutual complementation and calibration.

本发明提供了针对图像分析无法计算定位信息时,借助其他技术获取定位信息的方法。The invention provides a method for obtaining positioning information by means of other technologies when the positioning information cannot be calculated by image analysis.

本发明提供了针对编码器等里程计量装置失效时,借助其他技术获取定位信息的方法。The invention provides a method for obtaining positioning information by means of other technologies when mileage measuring devices such as encoders fail.

将一整条隧道分割成若干小的区段,通过识别里程标识中的里程信息,多次校准位置信息,进一步提升定位的准确性。Divide a whole tunnel into several small sections, and calibrate the location information multiple times by identifying the mileage information in the mileage mark to further improve the accuracy of positioning.

当行驶设备的加速度发生剧烈变化时,可以通过惯性导航装置校准编码器计量的里程信息,进一步提升定位的准确性。When the acceleration of the driving equipment changes drastically, the mileage information measured by the encoder can be calibrated through the inertial navigation device to further improve the accuracy of positioning.

第二,把技术方案看作一个整体或者从产品的角度,本发明所要保护的技术方案具备的技术效果和优点,具体描述如下:Second, regarding the technical solution as a whole or from the perspective of a product, the technical effects and advantages of the technical solution to be protected by the present invention are specifically described as follows:

在本发明中,获取第一相机拍摄的多张第一图像;所述第一相机设置在行驶的车辆上并进行连续拍照,相邻的两个所述第一图像的匹配像素点数量大于或等于目标数量;根据当前获取的所述第一图像和所述第一相机的标定参数,计算上一次获取所述第一图像之后,所述车辆行驶的第一里程;当遇到所述第一里程计算失败时,获取设置在所述车辆上的编码器所输出的脉冲数据;根据所述脉冲数据,计算在所述第一里程计算失败期间,所述车辆行驶的第二里程;根据所述第一里程、所述第二里程,确定所述车辆当前的定位。在本方案中,不需要使用卫星信号或网络信号,利用第一图像和编码器便可在隧道中实现高精准度的定位,且给出了第一里程计算失败时采用编码器定位的方法,提高了定位的成功率。In the present invention, a plurality of first images taken by the first camera are obtained; the first camera is set on a moving vehicle and takes pictures continuously, and the number of matching pixels of two adjacent first images is greater than or Equal to the number of targets; according to the currently acquired first image and the calibration parameters of the first camera, calculate the first mileage traveled by the vehicle after the last acquisition of the first image; when encountering the first When the mileage calculation fails, the pulse data output by the encoder installed on the vehicle is obtained; according to the pulse data, the second mileage traveled by the vehicle during the failure of the first mileage calculation is calculated; according to the The first mileage and the second mileage determine the current location of the vehicle. In this scheme, there is no need to use satellite signals or network signals, and the first image and encoder can be used to achieve high-precision positioning in the tunnel, and a method for using the encoder to locate when the first mileage calculation fails is given. The success rate of positioning is improved.

第三,作为本发明的权利要求的创造性辅助证据,还体现在:本发明不依赖于GPS或通信网络等基础设施,实现隧道内高精度定位,填补了国内外在此领域的空白。Thirdly, as an auxiliary evidence of the inventiveness of the claims of the present invention, it is also reflected in that the present invention does not rely on infrastructure such as GPS or communication networks, and realizes high-precision positioning in tunnels, filling the gap in this field at home and abroad.

本发明解决了在上述建筑中,行驶设备无法应对工作环境的多样性和复杂性提供高精度定位信息的迫切问题。通过融合图像、脉冲信号、里程标识、惯性导航等技术方法和校准方法,消除或降低因某种定位方法失效而导致的定位精度降低。为行驶设备在地下或山区等未被通信网络覆盖的隧道、管廊等建筑中实现高精度定位提供了切实有效的方法和装置说明,解决了当前隧道施工、巡检、养护、维修等作业中定位不准确的迫切问题。The invention solves the urgent problem that the driving equipment cannot provide high-precision positioning information in response to the diversity and complexity of the working environment in the above-mentioned buildings. Eliminate or reduce the reduction in positioning accuracy caused by the failure of a certain positioning method by fusing technical methods and calibration methods such as images, pulse signals, mileage markers, and inertial navigation. It provides practical and effective methods and device descriptions for driving equipment to achieve high-precision positioning in tunnels, pipe corridors and other buildings that are not covered by communication networks such as underground or mountainous areas, and solves the current problems in tunnel construction, inspection, maintenance, repair and other operations. The urgent problem of inaccurate positioning.

附图说明Description of drawings

图1为本发明实施例提供的隧道病害检测系统的示意图;FIG. 1 is a schematic diagram of a tunnel defect detection system provided by an embodiment of the present invention;

图2为本发明实施例提供的第一种定位方法的步骤流程图;FIG. 2 is a flow chart of the steps of the first positioning method provided by the embodiment of the present invention;

图3为本发明实施例提供的第二种定位方法的步骤流程图;FIG. 3 is a flow chart of the steps of the second positioning method provided by the embodiment of the present invention;

图4为本发明实施例提供的一种定位装置的结构框图;FIG. 4 is a structural block diagram of a positioning device provided by an embodiment of the present invention;

图5为本发明实施例提供的一种电子设备的结构框图;FIG. 5 is a structural block diagram of an electronic device provided by an embodiment of the present invention;

图6为本发明实施例提供的第一种定位方法的步骤流程图;FIG. 6 is a flow chart of the steps of the first positioning method provided by the embodiment of the present invention;

图7为本发明实施例提供的第二种定位方法的步骤流程图;FIG. 7 is a flow chart of the steps of the second positioning method provided by the embodiment of the present invention;

图8为本发明实施例提供的一种定位装置的结构框图;FIG. 8 is a structural block diagram of a positioning device provided by an embodiment of the present invention;

图中:1、第三相机;2、第一相机;3、第一光源阵列;4、第二光源阵列;5、工控机;6、中控单元;7、编码器;8、惯性导航装置。In the figure: 1. Third camera; 2. First camera; 3. First light source array; 4. Second light source array; 5. Industrial computer; 6. Central control unit; 7. Encoder; 8. Inertial navigation device .

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solution of the present invention, the following will describe the technical solution in the embodiment of the present invention in conjunction with the accompanying drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the present invention Examples, but not all examples. All embodiments based on the present invention shall belong to the protection scope of the present invention.

一、解释说明实施例。为了使本领域技术人员充分了解本发明如何具体实现,该部分是对权利要求技术方案进行展开说明的解释说明实施例。1. Explain the embodiment. In order to make those skilled in the art fully understand how to implement the present invention, this part is an explanatory embodiment for explaining the technical solution of the claims.

实施例1Example 1

本发明实施例中的车辆为加装了相机和光源阵列的改装车,该车辆上还可以包括编码器、工控机和中控单元。编码器与从动轮轴通过转接环连接,用来检测车轮运动的速度、角度,并进行转数的计数。工控机和中控单元固定于车厢内。The vehicle in the embodiment of the present invention is a refitted vehicle equipped with a camera and a light source array, and the vehicle may also include an encoder, an industrial computer and a central control unit. The encoder is connected to the driven wheel shaft through an adapter ring to detect the speed and angle of the wheel movement, and to count the number of revolutions. The industrial computer and the central control unit are fixed in the compartment.

工控机上有采集处理软件,用于采集相机发送的图像帧,并对图像帧进行处理,计算车辆运动的里程数据。中控单元可以读取工控机传递的里程数据,并对里程数据进行更新。中控单元还负责相机及光源阵列的供电及触发驱动。相机和光源阵列可以是外部硬触发方式驱动,也可以是通过在其内部设置驱动芯片和来内驱动,本发明不作限定。上述车辆、相机、光源阵列、编码器、工控机、中控单元组成隧道病害检测系统。具体地,本发明实施例的执行主体可以是工控机和中控单元。There is acquisition and processing software on the industrial computer, which is used to acquire the image frames sent by the camera, process the image frames, and calculate the mileage data of the vehicle movement. The central control unit can read the mileage data transmitted by the industrial computer and update the mileage data. The central control unit is also responsible for the power supply and trigger drive of the camera and light source array. The camera and the light source array can be driven by an external hard trigger, or by setting a driving chip inside and driving them internally, which is not limited in the present invention. The above vehicle, camera, light source array, encoder, industrial computer, and central control unit form a tunnel defect detection system. Specifically, the execution subject of the embodiment of the present invention may be an industrial computer and a central control unit.

上述编码器、惯性导航装置以及一部分定位相机分别都是起里程定位的作用,可以根据实际需求进行增减,只要能实现里程定位即可。隧道病害检测系统可以包括编码器、惯性导航装置、定位相机三者中至少一种。The aforementioned encoders, inertial navigation devices and part of the positioning cameras all play the role of mileage positioning, which can be increased or decreased according to actual needs, as long as the mileage positioning can be realized. The tunnel defect detection system may include at least one of an encoder, an inertial navigation device, and a positioning camera.

如图1所示,为本发明实施例提供的一种隧道病害检测系统的示意图。参照图1,隧道病害检测系统包括第三相机1、第一相机2、第一光源阵列3、第二光源阵列4、工控机5、中控单元6、编码器7。As shown in FIG. 1 , it is a schematic diagram of a tunnel defect detection system provided by an embodiment of the present invention. Referring to FIG. 1 , the tunnel defect detection system includes a third camera 1 , a first camera 2 , a first light source array 3 , a second light source array 4 , an industrial computer 5 , a central control unit 6 , and an encoder 7 .

其中,第三相机1可以为多个摄像头分别朝向不同方向的相机阵列,用于全方位、大范围采集隧道衬砌表面影像。第一光源阵列3包括多个闪光灯,可以用来协助第三相机1采集到亮度、清晰度符合要求的影像。第一相机2和第二光源阵列4可以安装固定于车架,对隧道地面上两轨之间的道床进行拍摄。Wherein, the third camera 1 may be a camera array with a plurality of cameras facing different directions, and is used for collecting images of the tunnel lining surface in all directions and in a large range. The first light source array 3 includes a plurality of flashlights, which can be used to assist the third camera 1 to capture images with brightness and clarity that meet requirements. The first camera 2 and the second light source array 4 can be installed and fixed on the vehicle frame to take pictures of the track bed between the two rails on the tunnel floor.

工控机5和中控单元6固定于车厢内。工控机5可以接收第三相机1和第一相机2发送的图像数据,并对图像数据进行处理,输出里程数据,通过串口传输给中控单元6。中控单元6可以对里程数据进行校准。编码器7与车辆从动轮通过转接环连接。The industrial computer 5 and the central control unit 6 are fixed in the compartment. The industrial computer 5 can receive the image data sent by the third camera 1 and the first camera 2, process the image data, output the mileage data, and transmit it to the central control unit 6 through the serial port. The central control unit 6 can calibrate the mileage data. The encoder 7 is connected with the driven wheel of the vehicle through an adapter ring.

从车辆行驶开始,第三相机1和第一相机2响应于脉冲信号连续进行拍照,而编码器7与惯性导航装置8也可以一直为开启状态,随着车辆的行驶持续工作,并不断输出相关脉冲数据和惯导数据,发送给工控机5。From the time the vehicle starts to drive, the third camera 1 and the first camera 2 continuously take pictures in response to the pulse signal, and the encoder 7 and the inertial navigation device 8 can also be always on, and continue to work as the vehicle drives, and continuously output relevant information. The pulse data and inertial navigation data are sent to the industrial computer 5 .

上述车辆可替换为无人机。The aforementioned vehicles can be replaced by drones.

如图2所示,为本发明实施例提供的第一种定位方法的步骤流程图。所述方法包括:As shown in FIG. 2 , it is a flow chart of the steps of the first positioning method provided by the embodiment of the present invention. The methods include:

101、获取第一相机拍摄的多张第一图像;所述第一相机设置在行驶的车辆上并进行连续拍照,相邻的两个所述第一图像的匹配像素点数量大于或等于目标数量。101. Acquire multiple first images taken by the first camera; the first camera is installed on a moving vehicle and takes pictures continuously, and the number of matching pixels of two adjacent first images is greater than or equal to the target number .

第一相机设置在行驶的车辆上,周期性或不定期性由外部触发拍照,或由内部触发拍照。例如,中控单元6每隔一秒产生第一相机2和第二光源阵列4的触发脉冲,在接收到触发脉冲后,第一相机2进行拍照,同时第二光源阵列4的光源开关打开进行给光。The first camera is set on a moving vehicle, and is periodically or irregularly triggered externally or internally to take pictures. For example, the central control unit 6 generates trigger pulses for the first camera 2 and the second light source array 4 every second. give light.

可以理解,本发明实施例中的车辆可以替换为其他运载工具,如无人机、平板车等,只要能实现本发明目的即可,此处不做限定。It can be understood that the vehicle in the embodiment of the present invention can be replaced with other vehicles, such as unmanned aerial vehicles, flatbed trucks, etc., as long as the purpose of the present invention can be achieved, and there is no limitation here.

第一相机的拍摄区域要满足拍摄到的图像具有连续性,这样方便对相邻帧的图像进行特征匹配。例如,可以设置第一相机的摄像头朝向为列车底部轨道区域。The shooting area of the first camera should meet the requirement that the captured images have continuity, so that it is convenient to perform feature matching on images of adjacent frames. For example, the camera orientation of the first camera may be set to be the track area at the bottom of the train.

第一相机根据触发信号进行连续拍摄,得到多张第一图像。为了利用第一图像计算车辆行驶的里程,需要对第一图像进行特征点提取,对相邻帧的图像进行特征点匹配。The first camera performs continuous shooting according to the trigger signal to obtain multiple first images. In order to use the first image to calculate the mileage traveled by the vehicle, it is necessary to perform feature point extraction on the first image, and to perform feature point matching on images of adjacent frames.

第一图像中可以包括时间戳,以便于识别相邻帧图像。Time stamps may be included in the first image to facilitate identification of adjacent frame images.

可以利用单应性矩阵实现相邻两幅图像的特征点匹配。因为单应矩阵有8个自由度,至少需要4对对应的点才能计算出单应性矩阵。因此,相邻的两个第一图像需要有大于或等于目标数量的匹配像素点,该目标数量可以为4。The feature point matching of two adjacent images can be realized by using the homography matrix. Because the homography matrix has 8 degrees of freedom, at least 4 pairs of corresponding points are required to calculate the homography matrix. Therefore, two adjacent first images need to have matching pixel points greater than or equal to the target number, and the target number may be four.

在真实的应用场景中,本发明计算的点对中都会包含噪声。比如点的位置偏差几个像素,甚至出现特征点对误匹配的现象,如果只使用4个点对来计算单应矩阵,那会出现很大的误差。因此,为了使得计算更精确,一般都会使用远大于4个点对来计算单应性矩阵。In real application scenarios, the point pairs calculated by the present invention will contain noise. For example, the position of the point deviates by a few pixels, and even the phenomenon of feature point pair mismatch occurs. If only 4 point pairs are used to calculate the homography matrix, there will be a large error. Therefore, in order to make the calculation more accurate, generally more than 4 point pairs are used to calculate the homography matrix.

此外,为了使每对相邻的第一图像都包括目标数量的匹配像素点,需要精密计算第一相机的拍摄间隔时间,为了使第一图像中的匹配像素点数量均匀,车辆优选匀速行驶。In addition, in order to make each pair of adjacent first images include a target number of matching pixels, it is necessary to precisely calculate the shooting interval of the first camera. In order to make the number of matching pixels in the first images uniform, the vehicle preferably drives at a constant speed.

102、根据当前获取的所述第一图像和所述第一相机的标定参数,计算上一次获取所述第一图像之后,所述车辆行驶的第一里程。102. According to the first image currently acquired and the calibration parameters of the first camera, calculate a first mileage traveled by the vehicle after the first image was acquired last time.

当前获取的第一图像和上一次获取的第一图像,为相邻的两帧图像。对该两帧图像进行特征点匹配,可以得到图像中像素点的位置变化情况。如何将图像中像素点的位置变化尺度映射到现实中拍摄这两幅图像的时间段内,车辆的实际行驶里程呢?这里需要进行像素坐标系和世界坐标系的坐标映射。The currently acquired first image and the last acquired first image are two adjacent frames of images. By matching the feature points of the two frames of images, the position changes of the pixels in the images can be obtained. How to map the position change scale of the pixels in the image to the actual mileage of the vehicle during the time period when the two images were taken in reality? Coordinate mapping between the pixel coordinate system and the world coordinate system is required here.

通过对摄像机标定,可以得到第一相机的外参数矩阵、内参数矩阵、畸变矩阵,根据这些第一相机的标定参数,本发明可以实现像素坐标系和世界坐标系的坐标映射,即精确地实现现实中的点到图像中对应像素点的投影过程。By calibrating the camera, the external parameter matrix, internal parameter matrix, and distortion matrix of the first camera can be obtained. According to the calibration parameters of the first camera, the present invention can realize the coordinate mapping between the pixel coordinate system and the world coordinate system, that is, accurately realize The projection process from the point in reality to the corresponding pixel in the image.

这样,借助于第一相机的标定参数,可以通过第一图像中像素点的位置变化情况,得到车辆实际行驶的第一里程。In this way, with the help of the calibration parameters of the first camera, the first mileage actually traveled by the vehicle can be obtained through the position changes of the pixels in the first image.

对每对相邻的第一图像进行上述尺度映射,得到多个第一里程,进而可以得到从起始帧到当前帧对应的时间段内,车辆的行驶总里程。The above-mentioned scale mapping is performed on each pair of adjacent first images to obtain a plurality of first mileages, and then the total mileage of the vehicle within the corresponding time period from the initial frame to the current frame can be obtained.

可选地,步骤102包括以下步骤A1-步骤A5:Optionally, step 102 includes the following steps A1-A5:

A1、根据多个所述第一图像,及相邻所述第一图像之间的匹配特征点,确定所述第一相机的标定参数。A1. Determine the calibration parameters of the first camera according to the multiple first images and matching feature points between adjacent first images.

第一相机的标定参数通过对相机进行标定来确定。相机标定参数可以建立空间三维坐标系和相机图像坐标系的映射关系。The calibration parameters of the first camera are determined by calibrating the camera. The camera calibration parameters can establish the mapping relationship between the spatial three-dimensional coordinate system and the camera image coordinate system.

相机标定参数通常分为内参数矩阵、外参数矩阵、畸变参数矩阵。Camera calibration parameters are usually divided into internal parameter matrix, external parameter matrix, and distortion parameter matrix.

具体地,可以通过以下步骤A11-A15来计算第一相机的标定参数:Specifically, the calibration parameters of the first camera can be calculated through the following steps A11-A15:

A11、遍历m幅第一图像,检测第一图像中的角点,得到n个角点。求解方程AHj=0(共2n个方程,9个未知数),得到单应矩阵Hj的初值,并考虑噪声影响,进行非线性优化。A11. Traverse the m first images, detect corner points in the first images, and obtain n corner points. Solve the equation AHj=0 (a total of 2n equations and 9 unknowns) to obtain the initial value of the homography matrix Hj, and consider the influence of noise to perform nonlinear optimization.

A12、摄像机内参数求解:综合m幅第一图像的单应矩阵Hj,求解方程vb=0(共2m个方程,6个未知数),将中间矩阵b进行分解,获得内参数矩阵K(fx、fy、u0、v0、γ5个参数)。A12, solution of internal parameters of the camera: synthesize the homography matrix Hj of the m first image, solve the equation vb=0 (2m equations in total, 6 unknowns), decompose the intermediate matrix b, and obtain the internal parameter matrix K (fx, fy, u0, v0, γ5 parameters).

A13、摄像机外参数求解:计算Rj和tj。A13. Solve the external parameters of the camera: calculate Rj and tj.

A14、畸变系数求解:综合m幅第一图像中的n个角点,求解方程Dk=d(共2mn个方程,2个未知数),得到畸变参数及畸变参数矩阵。A14. Solving distortion coefficients: integrating the n corner points in the m first images, solving the equation Dk=d (a total of 2mn equations, 2 unknowns), and obtaining the distortion parameters and the distortion parameter matrix.

A15、参数最优化:通过非线性最小二乘法,优化K,Rj和tj和K1,K2得到相机的内外参数。A15. Parameter optimization: through nonlinear least square method, optimize K, Rj and tj and K1, K2 to obtain the internal and external parameters of the camera.

A2、根据所述第一相机的标定参数,确定单应性矩阵和畸变参数矩阵;并根据所述单应性矩阵和畸变参数矩阵,得到所述第一图像的像素坐标系和世界坐标系之间的转换关系。A2. Determine the homography matrix and the distortion parameter matrix according to the calibration parameters of the first camera; and obtain the pixel coordinate system and the world coordinate system of the first image according to the homography matrix and the distortion parameter matrix. conversion relationship between them.

单应性变换用来描述物体在世界坐标系和像素坐标系之间的位置映射关系,对应的变换矩阵称为单应性矩阵。单应性矩阵H定义为:The homography transformation is used to describe the position mapping relationship between the object in the world coordinate system and the pixel coordinate system, and the corresponding transformation matrix is called the homography matrix. The homography matrix H is defined as:

Figure BDA0003731693720000101
Figure BDA0003731693720000101

其中,M是相机的内参矩阵,M定义如下:Among them, M is the internal reference matrix of the camera, and M is defined as follows:

Figure BDA0003731693720000102
Figure BDA0003731693720000102

其中,r、t是相机的外参矩阵。Among them, r and t are the extrinsic parameter matrix of the camera.

在步骤A1中已计算出第一相机的外参矩阵和内参矩阵,代入单应性矩阵H即可得到描述所述第一图像的像素坐标系和世界坐标系的转换关系的单应性矩阵。In step A1, the extrinsic and internal reference matrices of the first camera have been calculated and substituted into the homography matrix H to obtain a homography matrix describing the conversion relationship between the pixel coordinate system and the world coordinate system of the first image.

在几何光学和阴极射线管显示中,畸变是对直线投影的一种偏移。确定转换关系时,需要考虑现实世界中的物体投影到图像上的偏移。因此,要进行坐标转换,除了需要使用单应性矩阵,还需要使用畸变参数矩阵。In geometric optics and cathode ray tube displays, distortion is a shift from a rectilinear projection. When determining the transformation relationship, it is necessary to consider the offset of objects in the real world projected onto the image. Therefore, to perform coordinate transformation, in addition to the homography matrix, the distortion parameter matrix is also required.

具体地,利用单应性矩阵将第一图像的像素坐标系转换到世界坐标系,再利用畸变参数矩阵,对转换后的坐标进行校正。Specifically, the pixel coordinate system of the first image is converted to the world coordinate system by using the homography matrix, and then the transformed coordinates are corrected by using the distortion parameter matrix.

A3、确定所述下一帧图像中的目标像素点相对于所述上一帧图像中的所述目标像素点,在图像中的像素位移。A3. Determine the pixel displacement in the image of the target pixel in the next frame of image relative to the target pixel in the previous frame of image.

从相邻的两幅第一图像中选取任意一对匹配的像素点,得到一对目标像素点。分别确定目标像素点在两幅第一图像中的坐标位置,根据该坐标位置的变化情况可以得到下一帧第一图像中的目标像素点,相对于上一帧图像中的该目标像素点,在图像中的像素位移。Select any pair of matching pixel points from the two adjacent first images to obtain a pair of target pixel points. Determine the coordinate position of the target pixel point in the two first images respectively, according to the change of the coordinate position, the target pixel point in the first image of the next frame can be obtained, relative to the target pixel point in the previous frame image, Pixel displacement in the image.

像素位移是指像素点从起始位置到目标位置所经过的像素点数量。Pixel displacement refers to the number of pixels passed by a pixel from the starting position to the target position.

A4、根据所述转换关系,确定所述第一图像中的每个像素点对应在实际空间的实际尺寸。A4. According to the conversion relationship, determine that each pixel in the first image corresponds to an actual size in an actual space.

根据转换关系,可以将第一图像中的像素点从图像坐标系投影到世界坐标系,在世界坐标系中,就可以得到每个像素点对应在实际空间的实际尺寸。According to the conversion relationship, the pixels in the first image can be projected from the image coordinate system to the world coordinate system, and in the world coordinate system, the actual size of each pixel corresponding to the actual space can be obtained.

A5、根据所述实际尺寸和所述像素位移,确定所述下一帧图像与所述上一帧图像之间对应的车辆行驶距离,得到所述车辆行驶的第一里程。A5. According to the actual size and the pixel displacement, determine the corresponding vehicle travel distance between the next frame image and the previous frame image, and obtain the first mileage traveled by the vehicle.

将目标像素点的像素位移,映射到世界坐标系,即可得到下一帧图像与所述上一帧图像之间对应的车辆位移,即车辆行驶距离。具体地,可以计算像素位移和实际尺寸的乘积,得到车辆位移,即第一里程。By mapping the pixel displacement of the target pixel point to the world coordinate system, the corresponding vehicle displacement between the next frame image and the previous frame image can be obtained, that is, the vehicle travel distance. Specifically, the product of the pixel displacement and the actual size can be calculated to obtain the vehicle displacement, that is, the first mileage.

在上述步骤A1-A5中,根据像素坐标系和世界坐标系的转换关系来确定每个像素点的实际尺寸,并将实际尺寸与第一图像中的像素位移结合,得到像素位移对应到实际空间中的位移量,进而得到第一里程。这种计算方法不受卫星定位信号或网络信号的限制,且计算结果的准确性不受车辆的运动速度和运动状态影响,利用像素与实际空间的映射关系计算第一里程,几乎没有误差,计算精度较高。In the above steps A1-A5, the actual size of each pixel is determined according to the conversion relationship between the pixel coordinate system and the world coordinate system, and the actual size is combined with the pixel displacement in the first image to obtain the pixel displacement corresponding to the actual space The displacement in , and then get the first mileage. This calculation method is not limited by satellite positioning signals or network signals, and the accuracy of the calculation results is not affected by the speed and state of the vehicle. The first mileage is calculated using the mapping relationship between pixels and the actual space, and there is almost no error. Higher precision.

103、当遇到所述第一里程计算失败时,获取设置在所述车辆上的编码器所输出的脉冲数据。103. Acquire pulse data output by an encoder installed on the vehicle when the first mileage calculation fails.

第一里程计算时需要用到相邻的第一图像,若工控机未获取到第一图像,或,获取到的第一图像有异常,则无法计算第一里程,即第一里程计算失败;或者,工控机硬件故障或软件出错,则同样可能使第一里程计算失败。The adjacent first image needs to be used for the calculation of the first mileage. If the industrial computer does not acquire the first image, or if the acquired first image is abnormal, the first mileage cannot be calculated, that is, the calculation of the first mileage fails; Or, the hardware failure or software error of the industrial computer may also cause the first mileage calculation to fail.

第一里程计算成功,程序输出具体数值;若第一里程计算失败,程序输出失败代码,则可以确定第一里程计算失败。If the calculation of the first mileage is successful, the program outputs a specific value; if the calculation of the first mileage fails, the program outputs a failure code, so it can be determined that the calculation of the first mileage fails.

在遇到第一里程计算失败时,为了维持隧道病害检测系统的可用性,可以从其他途径获取数据计算第一里程。例如,从编码器获取脉冲数据。When the calculation of the first mileage fails, in order to maintain the availability of the tunnel defect detection system, data can be obtained from other ways to calculate the first mileage. For example, to obtain pulse data from an encoder.

编码器与车辆轮胎连接,用来检测车轮转动的速度、角度,计算车轮的转数等。车轮每转动一圈,编码器发出一个脉冲信号。多个脉冲信号组成脉冲数据。The encoder is connected to the vehicle tires to detect the speed and angle of the wheel rotation, and calculate the number of rotations of the wheel, etc. The encoder sends out a pulse signal every time the wheel rotates one revolution. Multiple pulse signals make up pulse data.

104、根据所述脉冲数据,计算在所述第一里程计算失败期间,所述车辆行驶的第二里程。104. According to the pulse data, calculate the second mileage traveled by the vehicle during the period when the calculation of the first mileage fails.

编码器的脉冲数据可以用来计算一段时间内车轮的转数,再获取车轮的周长,则转数和周长的乘积为一段时间内车辆的行驶里程。The pulse data of the encoder can be used to calculate the number of revolutions of the wheel within a period of time, and then obtain the circumference of the wheel, then the product of the number of revolutions and the circumference is the mileage of the vehicle within a period of time.

若程序持续输出失败代码,则此期间第一里程计算失败。在第一里程计算失败期间,利用编码器计算该时间段内的第二里程。If the program continues to output failure codes, the first mileage calculation fails during this period. During the failure of the first mileage calculation, the encoder is used to calculate the second mileage within the time period.

可选地,所述脉冲数据包括输出脉冲的时间戳和脉冲数量,所述步骤104包括以下步骤B1-B2:Optionally, the pulse data includes the time stamp of the output pulse and the number of pulses, and the step 104 includes the following steps B1-B2:

B1、根据所述时间戳和所述脉冲数量,确定在所述第一里程计算失败期间输出的脉冲总数。B1. According to the time stamp and the number of pulses, determine the total number of pulses output during the first mileage calculation failure period.

获取第一次接收到第一里程计算失败代码的起始时间点,和最后一次接收到失败代码的终止时间点,该起始时间点和终止时间点之间的时间段为第一里程计算失败期间。Get the start time point when the first mileage calculation failure code is received for the first time, and the end time point when the failure code is received last time, the time period between the start time point and the end time point is the first mileage calculation failure period.

根据脉冲数据中的时间戳,获取该时间段内接收到的脉冲数量,得到脉冲总数。According to the time stamp in the pulse data, the number of pulses received in the time period is obtained to obtain the total number of pulses.

B2、根据所述脉冲总数和所述车轮的周长,计算在所述第一里程计算失败期间所述车辆行驶的第二里程。B2. According to the total number of pulses and the circumference of the wheel, calculate a second mileage traveled by the vehicle during the period when the first mileage calculation fails.

将脉冲总数和车轮周长相乘,得到第一里程计算失败期间所述车辆行驶的第二里程。The total number of pulses is multiplied by the circumference of the wheel to obtain the second mileage traveled by the vehicle during the failure of the first mileage calculation.

105、根据所述第一里程、所述第二里程,确定所述车辆当前的定位。105. Determine the current location of the vehicle according to the first mileage and the second mileage.

在当前时间点以前,可能存在一段时间内第一里程计算成功,一段时间内第一里程计算失败,则会存在多个第一里程和第二里程。计算所有的第一里程和第二里程的和,可以得到当前车辆行驶的总里程。Before the current time point, there may be a period of time in which the calculation of the first mileage is successful, and a period of time in which the calculation of the first mileage fails, and there will be multiple first mileages and second mileages. The total mileage of the current vehicle can be obtained by calculating the sum of all the first mileage and the second mileage.

获取开始拍摄第一图像时,车辆所处的初始定位;从初始定位开始,在车辆前进的方向加上所述总里程的位移,则得到车辆当前的定位。Obtain the initial location of the vehicle when the first image is taken; starting from the initial location, add the displacement of the total mileage in the forward direction of the vehicle to obtain the current location of the vehicle.

在下一次计算车辆的定位时,只需要用前一次的定位加上对应的总里程即可。车辆行驶中每个时刻的定位均可以采用上述方法计算。When calculating the location of the vehicle next time, you only need to add the corresponding total mileage to the previous location. The location of each moment during the driving of the vehicle can be calculated by the above method.

综上,在本发明实施例中,获取第一相机拍摄的多张第一图像;所述第一相机设置在行驶的车辆上并进行连续拍照,相邻的两个所述第一图像的匹配像素点数量大于或等于目标数量;根据当前获取的所述第一图像和所述第一相机的标定参数,计算上一次获取所述第一图像之后,所述车辆行驶的第一里程;当遇到所述第一里程计算失败时,获取设置在所述车辆上的编码器所输出的脉冲数据;根据所述脉冲数据,计算在所述第一里程计算失败期间,所述车辆行驶的第二里程;根据所述第一里程、所述第二里程,确定所述车辆当前的定位。在本方案中,不需要使用卫星信号或网络信号,利用第一图像和编码器便可在隧道中实现高精准度的定位,且给出了第一里程计算失败时采用编码器定位的方法,提高了定位的成功率。To sum up, in the embodiment of the present invention, a plurality of first images taken by the first camera are obtained; the first camera is set on a driving vehicle and continuously takes pictures, and the matching of two adjacent first images The number of pixels is greater than or equal to the target number; according to the currently acquired first image and the calibration parameters of the first camera, calculate the first mileage traveled by the vehicle after the last acquisition of the first image; When the calculation of the first mileage fails, the pulse data output by the encoder provided on the vehicle is obtained; according to the pulse data, the second mileage of the vehicle during the period of the failure of the calculation of the first mileage is calculated. Mileage: Determine the current location of the vehicle according to the first mileage and the second mileage. In this scheme, there is no need to use satellite signals or network signals, and the first image and encoder can be used to achieve high-precision positioning in the tunnel, and a method for using the encoder to locate when the first mileage calculation fails is given. The success rate of positioning is improved.

图3为本发明实施例提供的第二种定位方法的步骤流程图。FIG. 3 is a flowchart of steps of a second positioning method provided by an embodiment of the present invention.

所述方法包括:The methods include:

201、获取第一相机拍摄的多张第一图像;所述第一相机设置在行驶的车辆上并进行连续拍照,相邻的两个所述第一图像的匹配像素点数量大于或等于目标数量。201. Acquire multiple first images taken by the first camera; the first camera is installed on a moving vehicle and takes pictures continuously, and the number of matching pixels of two adjacent first images is greater than or equal to the target number .

在本发明实施例中,步骤201可以参照步骤101,此处不再赘述。In the embodiment of the present invention, step 201 may refer to step 101, which will not be repeated here.

202、根据当前获取的所述第一图像,计算上一次获取所述第一图像之后,所述车辆行驶的第一里程。202. According to the currently acquired first image, calculate a first mileage traveled by the vehicle after the last acquisition of the first image.

在本发明实施例中,步骤202可以参照步骤102,此处不再赘述。In the embodiment of the present invention, step 202 may refer to step 102, which will not be repeated here.

203、所述行驶的车辆上还设置有第三相机,所述第三相机用于拍摄里程识别对象,所述第一相机和所述第三相机的拍摄时间点一致;对所述第三相机拍摄的第三图像中的内容进行识别。203. The driving vehicle is also provided with a third camera, the third camera is used to photograph the mileage recognition object, and the photographing time points of the first camera and the third camera are consistent; for the third camera The content in the captured third image is identified.

由于第一图像中存在不可避免的噪声信息,使得第一里程的计算会产生误差,误差累计多次,会产生大的偏差。而编码器通过累计计数计算第二里程,由于车轮可能出现的打滑、空转等问题,使得第二里程的误差也偏大。为了减少里程计算的误差,引入定距离校准的机制。利用隧道中普遍会设置的里程识别对象,如路标、距离提醒标志等,对计算的第一里程和第二里程进行校准。Due to the inevitable noise information in the first image, the calculation of the first mileage will generate errors, and the errors will be accumulated many times, resulting in large deviations. The encoder calculates the second mileage by accumulative counting, and the error of the second mileage is also relatively large due to problems such as wheel slipping and idling that may occur. In order to reduce the error of mileage calculation, a mechanism of fixed distance calibration is introduced. Calibrate the calculated first and second mileages by using mileage recognition objects that are commonly set up in tunnels, such as road signs, distance reminder signs, etc.

需要引入第三相机,对准隧道中的里程识别对象进行拍摄,以便于利用所拍摄的第三图像中的里程数据对计算的里程数进行校准。A third camera needs to be introduced to shoot at the mileage identification object in the tunnel, so as to use the mileage data in the captured third image to calibrate the calculated mileage.

可选地,所述里程识别对象包括隧道侧面的里程标、隧道地面的里程标中的其中一种。Optionally, the mileage recognition object includes one of milestones on the side of the tunnel and milestones on the tunnel floor.

隧道中的里程标可能位于隧道侧面的道路两旁,可以为直立的路桩,或喷涂在墙面上的里程文字,也可能是位于隧道地面上喷涂的里程文字。Milestones in the tunnel may be located on both sides of the road on the side of the tunnel, and may be upright road piles, or mileage text sprayed on the wall, or may be mileage text sprayed on the tunnel ground.

第一相机和第三相机用相同的触发信号,可以使两者的拍摄时间一致。第三相机的摄像头可以对准上述任一种位置进行连续拍摄。在第三相机拍摄的多个第三图像中,识别是否存在里程标。The first camera and the third camera use the same trigger signal, so that the shooting time of the two cameras can be consistent. The camera head of the third camera can be aimed at any of the above positions for continuous shooting. In the plurality of third images captured by the third camera, whether a milestone is present is identified.

204、若识别到所述里程识别对象,则根据所述里程识别对象中的里程数对所述第一里程进行校正。204. If the mileage identification object is identified, correct the first mileage according to the mileage in the mileage identification object.

对多个第三图像持续进行识别,若识别到当前的第三图像中包括里程识别对象,则利用该里程识别对象中的里程数,对当前所计算出的第一里程进行校正。Continuously identify a plurality of third images, and if it is recognized that the current third image includes a mileage identification object, the currently calculated first mileage is corrected by using the mileage in the mileage identification object.

例如,当前计算的第一里程值为99.9m,而当前获取的第三图像中包含里程数为100m的里程识别对象,则将第一里程校正为100m。For example, if the currently calculated first mileage value is 99.9m, and the currently acquired third image contains a mileage recognition object with a mileage of 100m, the first mileage is corrected to 100m.

每次在第三图像中识别到里程识别对象时,均可以使用其中的里程数对当前的第一里程进行校正,使得第一里程可以保持实际的准确性,进而保证了定位的准确性。Every time the mileage recognition object is recognized in the third image, the mileage number therein can be used to correct the current first mileage, so that the first mileage can maintain the actual accuracy, thereby ensuring the accuracy of positioning.

205、当检测到发生第一异常情况时,确定所述第一里程计算失败;所述第一异常情况至少包括以下情况中的其中一种:无法获取到所述第一图像、所述第一图像上的目标区域存在异物、所述第一图像的亮度大于或等于第一阈值、所述第一图像的亮度小于第二阈值;相邻的两个所述第一图像包括的匹配像素点数量小于目标数量。205. When a first abnormal situation is detected, determine that the calculation of the first mileage fails; the first abnormal situation includes at least one of the following situations: the first image, the first There is a foreign object in the target area on the image, the brightness of the first image is greater than or equal to the first threshold, and the brightness of the first image is smaller than the second threshold; the number of matching pixels included in two adjacent first images less than the target amount.

第一里程计算失败的原因包括两个方面:第一,没获取到第一图像;第二,获取到了第一图像,但第一图像不符合要求。The reasons for the failure of the first mileage calculation include two aspects: first, the first image is not obtained; second, the first image is obtained, but the first image does not meet the requirements.

没获取到第一图像的原因可能包括两种:一种是第一相机相关的原因,如第一相机出现故障无法拍照、电池电量耗尽、第一相机存储卡已满等;一种是接收第一图像的工控机相关的原因,如工控机出现故障无法接收第一图像,工控机存储卡已满等。There may be two reasons for not getting the first image: one is related to the first camera, such as the failure of the first camera and unable to take pictures, the battery is exhausted, and the memory card of the first camera is full, etc.; the other is the receiving The reasons related to the IPC of the first image, such as the failure of the IPC and the inability to receive the first image, the memory card of the IPC is full, etc.

第一图像不符合要求的情况主要有:所述第一图像上的目标区域存在异物、所述第一图像的亮度大于或等于第一阈值、所述第一图像的亮度小于第二阈值;相邻的两个所述第一图像包括的匹配像素点数量小于目标数量。The situations where the first image does not meet the requirements mainly include: there is a foreign object in the target area on the first image, the brightness of the first image is greater than or equal to the first threshold, and the brightness of the first image is smaller than the second threshold; The number of matching pixels included in the two adjacent first images is less than the target number.

因为隧道中经常会存在积水,或空中有飞虫飞鸟等,当这些东西在摄像头附近时,会导致第一图像中出现异物,若异物出现在匹配像素点区域,则会导致相邻两个第一图像像素点匹配失败;而亮度不符合要求的情况一般是由闪光灯曝光不足或曝光过度,或闪光灯曝光时间不够引起的。所有这些均有可能引起相邻的两个第一图像包括的匹配像素点数量小于目标数量,导致无法计算第一里程。Because there is often water in the tunnel, or there are flying insects and birds in the air, when these things are near the camera, it will cause foreign objects to appear in the first image. If the foreign objects appear in the matching pixel area, it will cause two adjacent The pixel point matching of the first image fails; while the brightness does not meet the requirements, it is generally caused by underexposure or overexposure of the flash, or insufficient exposure time of the flash. All of these may cause the number of matching pixels included in the two adjacent first images to be less than the target number, resulting in failure to calculate the first mileage.

此外,当隧道侧壁上出现涵洞,或地铁隧道中出现站台区域时,若第一相机的摄像头对准隧道壁,则在车辆经过这些区域时,摄像头中没有确定的拍摄对象,会导致第一图像模糊不清或图像空洞无物,这些情况同样会导致相邻的两个第一图像包括的匹配像素点数量小于目标数量。In addition, when there is a culvert on the side wall of the tunnel, or there is a platform area in the subway tunnel, if the camera of the first camera is aimed at the tunnel wall, when the vehicle passes through these areas, there will be no definite subject in the camera, which will cause the first The image is blurred or the image is empty. These situations will also cause the number of matching pixels included in the two adjacent first images to be less than the target number.

第一图像会出现模糊不清的情况,The first image will appear blurry,

206、当遇到所述第一里程计算失败时,获取设置在所述车辆上的编码器所输出的脉冲数据。206. Acquire pulse data output by an encoder installed on the vehicle when the first mileage calculation fails.

在本发明实施例中,步骤206可以参照步骤103,此处不再赘述。In the embodiment of the present invention, step 206 may refer to step 103, which will not be repeated here.

207、根据所述脉冲数据,计算在所述第一里程计算失败期间,所述车辆行驶的第二里程。207. According to the pulse data, calculate the second mileage traveled by the vehicle during the period when the calculation of the first mileage fails.

在本发明实施例中,步骤207可以参照步骤104,此处不再赘述。In the embodiment of the present invention, step 207 may refer to step 104, which will not be repeated here.

208、根据所述里程识别对象中的里程数对所述第二里程进行校正。208. Correct the second mileage according to the mileage in the mileage identification object.

同样也可以利用里程识别对象中的里程数对第二里程进行校正,与第一里程校正的过程类似。Similarly, the second mileage can also be corrected by using the mileage number in the mileage identification object, which is similar to the process of correcting the first mileage.

在步骤208之后,当遇到所述第二里程计算失败时,可以执行步骤209-步骤211;在车辆上设置有惯性导航装置且第二里程计算失败时,可以执行步骤212-213。After step 208, when the second mileage calculation fails, steps 209-211 may be performed; when an inertial navigation device is installed on the vehicle and the second mileage calculation fails, steps 212-213 may be performed.

209、当遇到所述第二里程计算失败时,确定所述第二里程计算失败期间所对应的第一时间段长度。209. When the second mileage calculation fails, determine the length of the first time period corresponding to the second mileage calculation failure period.

210、获取上一个所述第一时间段长度所述车辆行驶的里程数。210. Obtain the mileage traveled by the vehicle during the last first time period.

211、将所述上一个所述第一时间段长度所述车辆行驶的里程数,作为所述车辆行驶的第二里程。211. Use the mileage traveled by the vehicle during the last first time period as the second mileage traveled by the vehicle.

在步骤209-步骤211中,给出了第二里程计算失败时的解决方案。根据上一个第一时间段车辆行驶的里程数,来估算第二里程。因为一段时间内车辆的行驶里程一般变化不大,故这样估算的可行性较好。In step 209-step 211, the solution when the second mileage calculation fails is given. The second mileage is estimated according to the mileage traveled by the vehicle in the previous first time period. Because the mileage of the vehicle generally does not change much in a period of time, the feasibility of this estimation is better.

212、当遇到所述第二里程计算失败时,则获取设置在所述车辆上的惯性导航装置所输出的惯导数据。212. Acquire the inertial navigation data output by the inertial navigation device installed on the vehicle when the second mileage calculation fails.

213、根据所述惯导数据计算在所述第二里程计算失败期间,所述车辆行驶的第二里程。213. Calculate the second mileage traveled by the vehicle during the period when the calculation of the second mileage fails according to the inertial navigation data.

在步骤212-步骤213中,给出了第二里程计算失败时的另一种解决方案。在车辆上预先安装有惯性导航装置的情况下,可以利用惯导数据来计算第二里程。In step 212-step 213, another solution is given when the second mileage calculation fails. In the case that the inertial navigation device is pre-installed on the vehicle, the second mileage can be calculated using the inertial navigation data.

参照图2,惯性导航装置8安装在车辆测试台的地板上,用来测量车辆的加速度和角速度。Referring to FIG. 2, an inertial navigation device 8 is installed on the floor of a vehicle test stand to measure the acceleration and angular velocity of the vehicle.

在车辆发生打滑的情况下,编码器失效,此时惯性导航装置可以有效测量到车辆因打滑产生的加速度,进而测算出车辆打滑时的行驶距离。相比于步骤209-211的方法,此方法的定位精准度更高。When the vehicle skids, the encoder fails. At this time, the inertial navigation device can effectively measure the acceleration of the vehicle due to the skid, and then calculate the driving distance when the vehicle skids. Compared with the method in steps 209-211, this method has higher positioning accuracy.

214、根据所述第一里程、所述第二里程,确定所述车辆当前的定位。214. Determine the current location of the vehicle according to the first mileage and the second mileage.

在本发明实施例中,步骤214可以参照步骤105,此处不再赘述。In the embodiment of the present invention, step 214 may refer to step 105, which will not be repeated here.

215、所述车辆上还设置有多个第二相机,所述第二相机用于连续拍摄隧道侧壁,和/或,隧道顶弧,和/或,隧道地面;获取所述第二相机拍摄的第二图像,并从所述第二图像中识别目标对象。215. The vehicle is also provided with a plurality of second cameras, and the second cameras are used to continuously photograph the side walls of the tunnel, and/or the top arc of the tunnel, and/or the ground of the tunnel; A second image of , and identify the target object from the second image.

第二相机可以为多个摄像头分别朝向不同方向的相机阵列,用于全方位、大范围采集隧道衬砌断面影像。具体地,第二相机可以用于拍摄隧道侧壁,和/或,隧道顶弧,和/或,隧道地面。The second camera can be a camera array with multiple cameras facing in different directions, and is used to collect images of tunnel lining sections in all directions and in a large range. Specifically, the second camera may be used to photograph the side wall of the tunnel, and/or the top arc of the tunnel, and/or the ground of the tunnel.

工控机从第二相机拍摄的第二图像中,识别目标对象,目标对象即隧道表面的病害。The industrial computer recognizes the target object from the second image taken by the second camera, and the target object is the lesion on the surface of the tunnel.

隧道表面的病害可以包括衬砌裂缝、渗漏水、冻害、衬砌剥落、隧道变形、路面破损等。通过图像识别算法,可以在第二图像中识别到上述病害。Diseases on the tunnel surface may include lining cracks, water leakage, freezing damage, lining spalling, tunnel deformation, pavement damage, etc. By means of an image recognition algorithm, the aforementioned lesion can be identified in the second image.

216、在识别到所述目标对象时,将所述目标对象所在的第二图像作为目标图像。216. When the target object is recognized, use the second image where the target object is located as a target image.

在识别到病害时,将包含该病害的第二图像作为目标图像。When a disease is identified, the second image containing the disease is used as the target image.

217、根据所述车辆当前的定位,确定所述目标图像拍摄时所述车辆的定位。217. According to the current location of the vehicle, determine the location of the vehicle when the target image is captured.

根据当前车辆的定位,可以得到每个时刻车辆的定位,因此,拍摄目标对象时车辆的定位也是容易得到的。According to the current location of the vehicle, the location of the vehicle at each moment can be obtained. Therefore, the location of the vehicle when shooting the target object is also easy to obtain.

218、根据所述目标图片拍摄时所述车辆的定位确定所述目标图像在隧道中的定位。218. Determine the location of the target image in the tunnel according to the location of the vehicle when the target picture is taken.

病害在隧道中的定位,可以通过定位目标图像来实现。而通过确定拍摄目标图像时车辆的定位可以大致判定目标图像在隧道中的定位。The location of the disease in the tunnel can be realized by locating the target image. By determining the location of the vehicle when the target image is captured, the location of the target image in the tunnel can be roughly determined.

综上,在本发明实施例中,给出了第二里程计算失败时的解决方案。即根据上一个第一时间段车辆行驶的里程数,来估算第二里程。因为一段时间内车辆的行驶里程一般变化不大,故这样估算的可行性较好,且不需要依靠其他硬件设备;此外,在车辆上预先安装有惯性导航装置的情况下,可以利用惯导数据来计算第二里程。在车辆发生打滑的情况下,编码器失效,此时惯性导航装置可以有效测量到车辆因打滑产生的加速度,进而测算出车辆打滑时的行驶距离,此方法的定位精准度更高。To sum up, in the embodiment of the present invention, a solution when the second mileage calculation fails is given. That is, the second mileage is estimated based on the mileage traveled by the vehicle in the previous first time period. Because the mileage of the vehicle generally does not change much in a period of time, the feasibility of this estimation is better, and it does not need to rely on other hardware equipment; in addition, when the inertial navigation device is pre-installed on the vehicle, the inertial navigation data can be used to calculate the second mileage. When the vehicle skids, the encoder fails. At this time, the inertial navigation device can effectively measure the acceleration of the vehicle due to the skid, and then calculate the driving distance when the vehicle skids. This method has higher positioning accuracy.

图4为本发明实施例提供的一种定位装置。该定位装置设置于电子设备,本发明实施例中该电子设备为图1中的工控机。如图4所示,所述装置300包括:Fig. 4 is a positioning device provided by an embodiment of the present invention. The positioning device is set on an electronic device, and in the embodiment of the present invention, the electronic device is the industrial computer shown in FIG. 1 . As shown in Figure 4, the device 300 includes:

第一图像获取模块301,用于获取第一相机拍摄的多张第一图像;所述第一相机设置在行驶的车辆上并进行连续拍照,相邻的两个所述第一图像的匹配像素点数量大于或等于目标数量;The first image acquisition module 301 is configured to acquire a plurality of first images taken by the first camera; the first camera is arranged on a moving vehicle and continuously takes pictures, and the matching pixels of two adjacent first images The number of points is greater than or equal to the target amount;

第一里程计算模块302,用于根据当前获取的所述第一图像和所述第一相机的标定参数,计算上一次获取所述第一图像之后,所述车辆行驶的第一里程;The first mileage calculation module 302 is configured to calculate the first mileage traveled by the vehicle after the first image was acquired last time according to the currently acquired first image and the calibration parameters of the first camera;

脉冲数据获取模块303,用于当遇到所述第一里程计算失败时,获取设置在所述车辆上的编码器所输出的脉冲数据;A pulse data acquisition module 303, configured to acquire the pulse data output by the encoder provided on the vehicle when the first mileage calculation fails;

第二里程计算模块304,用于根据所述脉冲数据,计算在所述第一里程计算失败期间,所述车辆行驶的第二里程;The second mileage calculation module 304 is configured to calculate the second mileage traveled by the vehicle during the period when the first mileage calculation fails according to the pulse data;

定位模块305,用于根据所述第一里程、所述第二里程,确定所述车辆当前的定位。The location module 305 is configured to determine the current location of the vehicle according to the first mileage and the second mileage.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

图5是本发明实施例提供的一种电子设备400的结构框图。例如,电子设备400可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 5 is a structural block diagram of an electronic device 400 provided by an embodiment of the present invention. For example, the electronic device 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

参照图5,电子设备400可以包括以下一个或多个组件:处理组件402,存储器404,电力组件406,多媒体组件408,音频组件410,输入/输出(I/O)的接口412,传感器组件414,以及通信组件416。5, electronic device 400 may include one or more of the following components: processing component 402, memory 404, power component 406, multimedia component 408, audio component 410, input/output (I/O) interface 412, sensor component 414 , and the communication component 416 .

处理组件402通常控制电子设备400的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件402可以包括一个或多个处理器420来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件402可以包括一个或多个模块,便于处理组件402和其他组件之间的交互。例如,处理组件402可以包括多媒体模块,以方便多媒体组件408和处理组件402之间的交互。The processing component 402 generally controls the overall operations of the electronic device 400, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 402 may include one or more modules that facilitate interaction between processing component 402 and other components. For example, processing component 402 may include a multimedia module to facilitate interaction between multimedia component 408 and processing component 402 .

存储器404被配置为存储各种类型的数据以支持在设备400的操作。这些数据的示例包括用于在电子设备400上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器404可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 404 is configured to store various types of data to support operations at device 400 . Examples of such data include instructions for any application or method operating on the electronic device 400, contact data, phonebook data, messages, pictures, videos, and the like. The memory 404 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件406为电子设备400的各种组件提供电力。电源组件406可以包括电源管理系统,一个或多个电源,及其他与为电子设备400生成、管理和分配电力相关联的组件。The power supply component 406 provides power to various components of the electronic device 400 . Power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 400 .

多媒体组件408包括在所述电子设备400和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件408包括一个前置摄像头和/或后置摄像头。当设备400处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 408 includes a screen providing an output interface between the electronic device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect a duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 408 includes a front camera and/or a rear camera. When the device 400 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件410被配置为输出和/或输入音频信号。例如,音频组件410包括一个麦克风(MIC),当电子设备400处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器404或经由通信组件416发送。在一些实施例中,音频组件410还包括一个扬声器,用于输出音频信号。The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 400 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 404 or sent via communication component 416 . In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.

I/O接口412为处理组件402和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 412 provides an interface between the processing component 402 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件414包括一个或多个传感器,用于为电子设备400提供各个方面的状态评估。例如,传感器组件414可以检测到设备400的打开/关闭状态,组件的相对定位,例如所述组件为电子设备400的显示器和小键盘,传感器组件414还可以检测电子设备400或电子设备400一个组件的位置改变,用户与电子设备400接触的存在或不存在,电子设备400方位或加速/减速和电子设备400的温度变化。传感器组件414可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件414还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件414还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for electronic device 400 . For example, the sensor component 414 can detect the open/closed state of the device 400, the relative positioning of components, such as the display and the keypad of the electronic device 400, the sensor component 414 can also detect the electronic device 400 or a component of the electronic device 400 The position change of the electronic device 400, the presence or absence of user contact with the electronic device 400, the orientation or acceleration/deceleration of the electronic device 400 and the temperature change of the electronic device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件416被配置为便于电子设备400和其他设备之间有线或无线方式的通信。电子设备400可以接入基于通信标准的无线网络,如WiFi,运营商网络(如2G、4G、4G或5G),或它们的组合。在一个示例性实施例中,通信组件416经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件416还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 416 is configured to facilitate wired or wireless communication between the electronic device 400 and other devices. The electronic device 400 can access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 4G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

实施例2Example 2

本发明实施例中的车辆为加装了相机和光源阵列的改装车,该车辆上还可以包括编码器、惯性导航装置、工控机和中控单元。编码器与从动轮轴通过转接环连接,用来检测车轮运动的速度、角度,并进行转数的计数。工控机和中控单元固定于车厢内。The vehicle in the embodiment of the present invention is a refitted vehicle equipped with a camera and a light source array, and the vehicle may also include an encoder, an inertial navigation device, an industrial computer and a central control unit. The encoder is connected to the driven wheel shaft through an adapter ring to detect the speed and angle of the wheel movement, and to count the number of revolutions. The industrial computer and the central control unit are fixed in the compartment.

工控机上有采集处理软件,用于采集相机发送的图像帧,并对图像帧进行处理,计算车辆运动的里程数据。本发明实施例的执行主体可以是工控机。中控单元可以读取工控机传递的里程数据,并对里程数据进行更新。中控单元还负责相机及光源阵列的供电及触发驱动。相机和光源阵列可以是外部硬触发方式驱动,也可以是通过在其内部设置驱动芯片和来内驱动,本发明不作限定。上述车辆、相机、光源阵列、编码器、惯性导航装置、工控机、中控单元组成隧道病害检测系统。There is acquisition and processing software on the industrial computer, which is used to acquire the image frames sent by the camera, process the image frames, and calculate the mileage data of the vehicle movement. The execution subject of the embodiment of the present invention may be an industrial computer. The central control unit can read the mileage data transmitted by the industrial computer and update the mileage data. The central control unit is also responsible for the power supply and trigger drive of the camera and light source array. The camera and the light source array can be driven by an external hard trigger, or by setting a driving chip inside and driving them internally, which is not limited in the present invention. The above vehicle, camera, light source array, encoder, inertial navigation device, industrial computer, and central control unit form a tunnel defect detection system.

上述编码器、惯性导航装置以及一部分定位相机分别都是起里程定位的作用,可以根据实际需求进行增减,只要能实现里程定位即可。隧道病害检测系统可以包括编码器、惯性导航装置、定位相机三者中至少一种。The aforementioned encoders, inertial navigation devices and part of the positioning cameras all play the role of mileage positioning, which can be increased or decreased according to actual needs, as long as the mileage positioning can be realized. The tunnel defect detection system may include at least one of an encoder, an inertial navigation device, and a positioning camera.

如图1所示,为本发明实施例提供的一种隧道病害检测系统的示意图。参照图1,隧道病害检测系统包括第三相机1、第一相机2、第一光源阵列3、第二光源阵列4、工控机5、中控单元6、编码器7、惯性导航装置8。As shown in FIG. 1 , it is a schematic diagram of a tunnel defect detection system provided by an embodiment of the present invention. Referring to FIG. 1 , the tunnel defect detection system includes a third camera 1 , a first camera 2 , a first light source array 3 , a second light source array 4 , an industrial computer 5 , a central control unit 6 , an encoder 7 , and an inertial navigation device 8 .

其中,第三相机1可以为多个摄像头分别朝向不同方向的相机阵列,用于全方位、大范围采集隧道衬砌断面影像。第一光源阵列3包括多个闪光灯,可以用来协助第三相机1采集到亮度、清晰度符合要求的影像。第一相机2和第二光源阵列4可以安装固定于车架,对隧道地面上两轨之间的道床进行拍摄。Wherein, the third camera 1 may be a camera array with a plurality of cameras facing in different directions, and is used for collecting tunnel lining section images in all directions and in a large range. The first light source array 3 includes a plurality of flashlights, which can be used to assist the third camera 1 to capture images with brightness and clarity that meet requirements. The first camera 2 and the second light source array 4 can be installed and fixed on the vehicle frame to take pictures of the track bed between the two rails on the tunnel floor.

工控机5和中控单元6固定于车厢内。编码器7与车辆从动轮通过转接环连接。惯性导航装置8通过防震器件安装在车辆测试台的地板上,用来测量车辆的加速度和角速度。The industrial computer 5 and the central control unit 6 are fixed in the compartment. The encoder 7 is connected with the driven wheel of the vehicle through an adapter ring. The inertial navigation device 8 is installed on the floor of the vehicle test bench through anti-vibration devices, and is used to measure the acceleration and angular velocity of the vehicle.

从车辆行驶开始,第三相机1和第一相机2响应脉冲信号连续进行拍照,而编码器7与惯性导航装置8也可以一直为开启状态,随着车辆的行驶持续工作,并不断输出相关脉冲数据和惯导数据,发送给工控机5。From the time when the vehicle is running, the third camera 1 and the first camera 2 continuously take pictures in response to the pulse signal, and the encoder 7 and the inertial navigation device 8 can also be always on, and continue to work as the vehicle is running, and continuously output relevant pulses The data and the inertial navigation data are sent to the industrial computer 5 .

工控机5可以接收第三相机1和第一相机2发送的图像数据,以及编码器7和惯性导航装置8发送的数据,工控机5对接收到的数据进行处理,输出里程数据,通过串口传输给中控单元6。中控单元6可以对里程数据进行校准。The industrial computer 5 can receive the image data sent by the third camera 1 and the first camera 2, and the data sent by the encoder 7 and the inertial navigation device 8, and the industrial computer 5 processes the received data, outputs the mileage data, and transmits them through the serial port to the central control unit 6. The central control unit 6 can calibrate the mileage data.

上述车辆可替换为无人机。The aforementioned vehicles can be replaced by drones.

如图6所示,为本发明实施例提供的第一种定位方法的步骤流程图。所述方法包括:As shown in FIG. 6 , it is a flow chart of the steps of the first positioning method provided by the embodiment of the present invention. The methods include:

601、获取第一相机拍摄的多张第一图像;所述第一相机设置在行驶的车辆上并进行连续拍照,相邻的两个所述第一图像的匹配像素点数量大于或等于目标数量。601. Acquire multiple first images taken by the first camera; the first camera is installed on a moving vehicle and takes pictures continuously, and the number of matching pixels in two adjacent first images is greater than or equal to the target number .

第一相机设置在行驶的车辆上,周期性或不定期性由外部触发拍照,或由内部触发拍照。例如,中控单元6每隔一秒产生第一相机2和第二光源阵列4的触发脉冲,在接收到触发脉冲后,第一相机2进行拍照,同时第二光源阵列4的光源开关打开进行给光。The first camera is set on a moving vehicle, and is periodically or irregularly triggered externally or internally to take pictures. For example, the central control unit 6 generates trigger pulses for the first camera 2 and the second light source array 4 every second. give light.

可以理解,本发明实施例中的车辆可以替换为其他运载工具,如无人机、平板车等,只要能实现本发明目的即可,此处不做限定。It can be understood that the vehicle in the embodiment of the present invention can be replaced with other vehicles, such as unmanned aerial vehicles, flatbed trucks, etc., as long as the purpose of the present invention can be achieved, and there is no limitation here.

第一相机的拍摄区域要满足拍摄到的图像具有连续性,这样方便对相邻帧的图像进行特征匹配。例如,可以设置第一相机的摄像头朝向为列车底部轨道区域。The shooting area of the first camera should meet the requirement that the captured images have continuity, so that it is convenient to perform feature matching on images of adjacent frames. For example, the camera orientation of the first camera may be set to be the track area at the bottom of the train.

第一相机根据触发信号进行连续拍摄,得到多张第一图像。为了利用第一图像计算车辆行驶的里程,需要对第一图像进行特征点提取,对相邻帧的图像进行特征点匹配。The first camera performs continuous shooting according to the trigger signal to obtain multiple first images. In order to use the first image to calculate the mileage traveled by the vehicle, it is necessary to perform feature point extraction on the first image, and to perform feature point matching on images of adjacent frames.

第一图像中可以包括时间戳,以便于识别相邻帧图像。Time stamps may be included in the first image to facilitate identification of adjacent frame images.

可以利用单应性矩阵实现相邻两幅图像的特征点匹配。因为单应性矩阵有8个自由度,至少需要4对对应的点才能计算出单应性矩阵。因此,相邻的两个第一图像需要有大于或等于目标数量的匹配像素点,该目标数量可以为4。The feature point matching of two adjacent images can be realized by using the homography matrix. Because the homography matrix has 8 degrees of freedom, at least 4 pairs of corresponding points are required to calculate the homography matrix. Therefore, two adjacent first images need to have matching pixel points greater than or equal to the target number, and the target number may be four.

在真实的应用场景中,本发明计算的点对中都会包含噪声。比如点的位置偏差几个像素,甚至出现特征点对误匹配的现象,如果只使用4个点对来计算单应性矩阵,那会出现很大的误差。因此,为了使得计算更精确,一般都会使用远大于4个点对来计算单应性矩阵。In real application scenarios, the point pairs calculated by the present invention will contain noise. For example, the position of the point deviates by a few pixels, and even the feature point pair mismatch phenomenon occurs. If only 4 point pairs are used to calculate the homography matrix, there will be a large error. Therefore, in order to make the calculation more accurate, generally more than 4 point pairs are used to calculate the homography matrix.

此外,为了使每对相邻的第一图像都包括目标数量的匹配像素点,需要精密计算第一相机的拍摄间隔时间,为了使第一图像中的匹配像素点数量均匀,车辆优选匀速行驶。In addition, in order to make each pair of adjacent first images include a target number of matching pixels, it is necessary to precisely calculate the shooting interval of the first camera. In order to make the number of matching pixels in the first images uniform, the vehicle preferably drives at a constant speed.

602、至少根据当前获取的所述第一图像,计算上一次获取所述第一图像之后,所述车辆行驶的第一里程。602. Calculate a first mileage traveled by the vehicle after the first image was acquired last time according to at least the currently acquired first image.

当前获取的第一图像和上一次获取的第一图像,为相邻的两帧图像。对该两帧图像进行特征点匹配,可以得到图像中像素点的位置变化情况。如何将图像中像素点的位置变化尺度映射到现实中拍摄这两幅图像的时间段内,车辆的实际行驶里程呢?这里需要进行像素坐标系和世界坐标系的坐标映射。The currently acquired first image and the last acquired first image are two adjacent frames of images. By matching the feature points of the two frames of images, the position changes of the pixels in the images can be obtained. How to map the position change scale of the pixels in the image to the actual mileage of the vehicle during the time period when the two images were taken in reality? Coordinate mapping between the pixel coordinate system and the world coordinate system is required here.

通过对摄像机标定,可以得到第一相机的外参数矩阵、内参数矩阵、畸变矩阵,根据这些第一相机的标定参数,本发明可以实现像素坐标系和世界坐标系的坐标映射,即精确地实现现实中的点到图像中对应像素点的投影过程。By calibrating the camera, the external parameter matrix, internal parameter matrix, and distortion matrix of the first camera can be obtained. According to the calibration parameters of the first camera, the present invention can realize the coordinate mapping between the pixel coordinate system and the world coordinate system, that is, accurately realize The projection process from the point in reality to the corresponding pixel in the image.

这样,借助于第一相机的标定参数,可以通过第一图像中像素点的位置变化情况,得到车辆实际行驶的第一里程。In this way, with the help of the calibration parameters of the first camera, the first mileage actually traveled by the vehicle can be obtained through the position changes of the pixels in the first image.

对每对相邻的第一图像进行上述尺度映射,得到多个第一里程,进而可以得到从起始帧到当前帧对应的时间段内,车辆的行驶总里程。The above-mentioned scale mapping is performed on each pair of adjacent first images to obtain a plurality of first mileages, and then the total mileage of the vehicle within the corresponding time period from the initial frame to the current frame can be obtained.

此外,若车辆为匀速行驶,则车辆在相同时间段内的行驶里程是相同的。即:可以将车辆在拍摄上一对相邻第一图像的时间段内行驶的第一里程,作为当前拍摄的一对相邻第一图像对应的时间段内,所述车辆行驶的第一里程。In addition, if the vehicle is traveling at a constant speed, the mileage of the vehicle in the same time period is the same. That is: the first mileage traveled by the vehicle during the time period when the last pair of adjacent first images was taken can be taken as the first mileage traveled by the vehicle during the time period corresponding to the pair of adjacent first images currently taken .

若车辆不是匀速行驶的,则可以引入加速度传感器,测量车辆的加速度。根据拍摄上一帧第一图像时车辆的瞬时速度、加速度、和拍摄上一帧第一图像和当前第一图像之间的时间差,计算上一次获取所述第一图像之后,所述车辆行驶的第一里程。If the vehicle is not traveling at a constant speed, an acceleration sensor can be introduced to measure the acceleration of the vehicle. According to the instantaneous speed and acceleration of the vehicle when the last frame of the first image was captured, and the time difference between the capture of the previous frame of the first image and the current first image, calculate the driving time of the vehicle after the last acquisition of the first image first mile.

可选地,步骤102可以包括以下步骤A1-步骤A5,或者,步骤102可以包括以下步骤B1-步骤B5。Optionally, step 102 may include the following steps A1-step A5, or, step 102 may include the following steps B1-step B5.

其中,步骤A1-步骤A5为根据当前获取的所述第一图像和所述第一相机的标定参数,计算上一次获取所述第一图像之后,所述车辆行驶的第一里程。Wherein, step A1-step A5 is to calculate the first mileage traveled by the vehicle after the last acquisition of the first image according to the currently acquired first image and the calibration parameters of the first camera.

步骤B1-步骤B3为根据当前获取的惯导数据计算惯导里程,根据第一图像和相机的标定参数,计算视觉里程,并最终根据两者的平均值确定第一里程。Step B1-Step B3 is to calculate the inertial mileage based on the currently acquired inertial navigation data, calculate the visual mileage based on the first image and the calibration parameters of the camera, and finally determine the first mileage based on the average value of the two.

A1、根据多个所述第一图像,及相邻所述第一图像之间的匹配特征点,确定所述第一相机的标定参数。A1. Determine the calibration parameters of the first camera according to the multiple first images and matching feature points between adjacent first images.

第一相机的标定参数通过对相机进行标定来确定。相机标定参数可以建立空间三维坐标系和相机图像坐标系的映射关系。The calibration parameters of the first camera are determined by calibrating the camera. The camera calibration parameters can establish the mapping relationship between the spatial three-dimensional coordinate system and the camera image coordinate system.

相机标定参数通常分为内参数矩阵、外参数矩阵、畸变参数矩阵。Camera calibration parameters are usually divided into internal parameter matrix, external parameter matrix, and distortion parameter matrix.

具体地,可以通过以下步骤A11-A15来计算第一相机的标定参数:Specifically, the calibration parameters of the first camera can be calculated through the following steps A11-A15:

A11、遍历m幅第一图像,检测第一图像中的角点,得到n个角点。求解方程AHj=0(共2n个方程,9个未知数),得到单应性矩阵Hj的初值,并考虑噪声影响,进行非线性优化。A11. Traverse the m first images, detect corner points in the first images, and obtain n corner points. Solve the equation AHj=0 (a total of 2n equations, 9 unknowns), get the initial value of the homography matrix Hj, and consider the influence of noise, conduct nonlinear optimization.

A12、摄像机内参数求解:综合m幅第一图像的单应性矩阵Hj,求解方程vb=0(共2m个方程,6个未知数),将中间矩阵b进行分解,获得内参数矩阵K(fx、fy、u0、v0、γ5个参数)。A12, camera internal parameter solution: synthesize the homography matrix Hj of m first images, solve the equation vb=0 (2m equations in total, 6 unknowns), decompose the intermediate matrix b, and obtain the internal parameter matrix K(fx , fy, u0, v0, γ5 parameters).

A13、摄像机外参数求解:计算Rj和tj。A13. Solve the external parameters of the camera: calculate Rj and tj.

A14、畸变系数求解:综合m幅第一图像中的n个角点,求解方程Dk=d(共2mn个方程,2个未知数),得到畸变参数及畸变参数矩阵。A14. Solving distortion coefficients: integrating the n corner points in the m first images, solving the equation Dk=d (a total of 2mn equations, 2 unknowns), and obtaining the distortion parameters and the distortion parameter matrix.

A15、参数最优化:通过非线性最小二乘法,优化K,Rj和tj和K1,K2得到相机的内外参数。A15. Parameter optimization: through nonlinear least square method, optimize K, Rj and tj and K1, K2 to obtain the internal and external parameters of the camera.

A2、根据所述第一相机的标定参数,确定单应性矩阵和畸变参数矩阵;并根据所述单应性矩阵和畸变参数矩阵,得到所述第一图像的像素坐标系和世界坐标系之间的转换关系。A2. Determine the homography matrix and the distortion parameter matrix according to the calibration parameters of the first camera; and obtain the pixel coordinate system and the world coordinate system of the first image according to the homography matrix and the distortion parameter matrix. conversion relationship between them.

单应性变换用来描述物体在世界坐标系和像素坐标系之间的位置映射关系,对应的变换矩阵称为单应性矩阵。单应性矩阵H定义为:The homography transformation is used to describe the position mapping relationship between the object in the world coordinate system and the pixel coordinate system, and the corresponding transformation matrix is called the homography matrix. The homography matrix H is defined as:

Figure BDA0003731693720000181
Figure BDA0003731693720000181

其中,M是相机的内参矩阵,M定义如下:Among them, M is the internal reference matrix of the camera, and M is defined as follows:

Figure BDA0003731693720000182
Figure BDA0003731693720000182

其中,r、t是相机的外参矩阵。Among them, r and t are the extrinsic parameter matrix of the camera.

在步骤A1中已计算出第一相机的外参矩阵和内参矩阵,代入单应性矩阵H即可得到描述所述第一图像的像素坐标系和世界坐标系的转换关系的单应性矩阵。In step A1, the extrinsic and internal reference matrices of the first camera have been calculated and substituted into the homography matrix H to obtain a homography matrix describing the conversion relationship between the pixel coordinate system and the world coordinate system of the first image.

在几何光学和阴极射线管显示中,畸变是对直线投影的一种偏移。确定转换关系时,需要考虑现实世界中的物体投影到图像上的偏移。因此,要进行坐标转换,除了需要使用单应性矩阵,还需要使用畸变参数矩阵。In geometric optics and cathode ray tube displays, distortion is a shift from a rectilinear projection. When determining the transformation relationship, it is necessary to consider the offset of objects in the real world projected onto the image. Therefore, to perform coordinate transformation, in addition to the homography matrix, the distortion parameter matrix is also required.

具体地,利用单应性矩阵将第一图像的像素坐标系转换到世界坐标系,再利用畸变参数矩阵,对转换后的坐标进行校正。Specifically, the pixel coordinate system of the first image is converted to the world coordinate system by using the homography matrix, and then the transformed coordinates are corrected by using the distortion parameter matrix.

A3、确定所述下一帧图像中的目标像素点相对于所述上一帧图像中的所述目标像素点,在图像中的像素位移。A3. Determine the pixel displacement in the image of the target pixel in the next frame of image relative to the target pixel in the previous frame of image.

从相邻的两幅第一图像中选取任意一对匹配的像素点,得到一对目标像素点。分别确定目标像素点在两幅第一图像中的坐标位置,根据该坐标位置的变化情况可以得到下一帧第一图像中的目标像素点,相对于上一帧图像中的该目标像素点,在图像中的像素位移。Select any pair of matching pixel points from the two adjacent first images to obtain a pair of target pixel points. Determine the coordinate position of the target pixel point in the two first images respectively, according to the change of the coordinate position, the target pixel point in the first image of the next frame can be obtained, relative to the target pixel point in the previous frame image, Pixel displacement in the image.

像素位移是指像素点从起始位置到目标位置所经过的像素点数量。Pixel displacement refers to the number of pixels passed by a pixel from the starting position to the target position.

A4、根据所述转换关系,确定所述第一图像中的每个像素点对应在实际空间的实际尺寸。A4. According to the conversion relationship, determine that each pixel in the first image corresponds to an actual size in an actual space.

根据转换关系,可以将第一图像中的像素点从图像坐标系投影到世界坐标系,在世界坐标系中,就可以得到每个像素点对应在实际空间的实际尺寸。According to the conversion relationship, the pixels in the first image can be projected from the image coordinate system to the world coordinate system, and in the world coordinate system, the actual size of each pixel corresponding to the actual space can be obtained.

A5、根据所述实际尺寸和所述像素位移,确定所述下一帧图像与所述上一帧图像之间对应的车辆行驶距离,得到所述车辆行驶的第一里程。A5. According to the actual size and the pixel displacement, determine the vehicle travel distance corresponding between the next frame image and the previous frame image, and obtain the first mileage traveled by the vehicle.

将目标像素点的像素位移,映射到世界坐标系,即可得到下一帧图像与所述上一帧图像之间对应的车辆位移,即车辆行驶距离。具体地,可以计算像素位移和实际尺寸的乘积,得到车辆位移,即第一里程。By mapping the pixel displacement of the target pixel point to the world coordinate system, the corresponding vehicle displacement between the next frame image and the previous frame image can be obtained, that is, the vehicle travel distance. Specifically, the product of the pixel displacement and the actual size can be calculated to obtain the vehicle displacement, that is, the first mileage.

在上述步骤A1-A5中,根据像素坐标系和世界坐标系的转换关系来确定每个像素点的实际尺寸,并将实际尺寸与第一图像中的像素位移结合,得到像素位移对应到实际空间中的位移量,进而得到第一里程。这种计算方法不受卫星定位信号或网络信号的限制,且计算结果的准确性不受车辆的运动速度和运动状态影响,利用像素与实际空间的映射关系计算第一里程,几乎没有误差,计算精度较高。In the above steps A1-A5, the actual size of each pixel is determined according to the conversion relationship between the pixel coordinate system and the world coordinate system, and the actual size is combined with the pixel displacement in the first image to obtain the pixel displacement corresponding to the actual space The displacement in , and then get the first mileage. This calculation method is not limited by satellite positioning signals or network signals, and the accuracy of the calculation results is not affected by the speed and state of the vehicle. The first mileage is calculated using the mapping relationship between pixels and the actual space, and there is almost no error. Higher precision.

B1、根据所述惯性导航装置输出的惯导数据,确定在上一次获取所述第一图像之后,所述车辆行驶的惯导里程。B1. According to the inertial navigation data output by the inertial navigation device, determine the inertial navigation mileage traveled by the vehicle after the last acquisition of the first image.

具体地,可以计算车辆在上一次获取所述第一图像的时刻的瞬时速度V0,并同时获取车辆的惯导数据。根据惯导数据中的加速度和姿态角,确定车辆在行驶方向上的加速度分量a;根据瞬时速度V0、加速度分量a,以及相邻两次获取第一图像之间的时间差t,计算在上一次获取第一图像之后车辆行驶的里程,得到惯导里程S1。惯导里程S1的计算公式如下:Specifically, the instantaneous velocity V 0 of the vehicle at the moment when the first image was acquired last time may be calculated, and the inertial navigation data of the vehicle may be acquired at the same time. According to the acceleration and attitude angle in the inertial navigation data, determine the acceleration component a of the vehicle in the driving direction; according to the instantaneous velocity V 0 , the acceleration component a, and the time difference t between two adjacent acquisitions of the first image, calculate the above The mileage traveled by the vehicle after the first image is acquired once, and the inertial navigation mileage S 1 is obtained. The formula for calculating the inertial mileage S 1 is as follows:

S1=V0t+1/2*at2(公式3)S 1 =V 0 t+1/2*at 2 (Formula 3)

B2、根据当前获取的所述第一图像和上一次获取的所述第一图像之间的匹配像素点,确定在上一次获取所述第一图像之后,所述车辆行驶的视觉里程。B2. According to the matching pixel points between the currently acquired first image and the last acquired first image, determine the visual mileage traveled by the vehicle after the last acquired first image.

视觉里程即步骤102中的第一里程,因此步骤B2可以参照步骤102,此处不再赘述。The visual mileage is the first mileage in step 102, so step B2 can refer to step 102, which will not be repeated here.

B3、将所述惯导里程和所述视觉里程的平均值,作为在上一次获取所述第一图像之后,所述车辆行驶的第一里程。B3. Taking the average value of the inertial navigation mileage and the visual mileage as the first mileage traveled by the vehicle after the last acquisition of the first image.

假设得到的视觉里程为S2,则第一里程S的计算公式如下:Assuming that the obtained visual mileage is S 2 , the calculation formula of the first mileage S is as follows:

S=(S1+S2)/2(公式4)S=(S 1 +S 2 )/2 (Formula 4)

在上述步骤B1-B3中,将根据惯性导航装置计算的里程和根据第一图像计算的里程取平均值,得到第一里程,这样可以有效减小任何一种里程计算方法导致的误差,提高了第一里程的精确度。In the above steps B1-B3, the mileage calculated according to the inertial navigation device and the mileage calculated according to the first image are averaged to obtain the first mileage, which can effectively reduce the error caused by any mileage calculation method and improve the Accuracy of the first mile.

603、当检测到所述车辆打滑时,获取设置在所述车辆上的惯性导航装置所输出的惯导数据。603. Acquire inertial navigation data output by an inertial navigation device installed on the vehicle when the vehicle is detected to be slipping.

车辆打滑的原因分为两种,一种是车辆行驶的路面发生异常,如出现水坑、泥泞等情况;一种是车辆本身的加速、减速导致。There are two reasons for vehicle skidding, one is that the road surface on which the vehicle is driving is abnormal, such as puddles, mud, etc.; the other is the acceleration and deceleration of the vehicle itself.

当车辆发生打滑时,利用第一图像计算第一里程的方法将不再准确。车辆打滑会导致车速变慢或变快,进而影响到相邻的第一图像像素点的匹配。When the vehicle slips, the method of using the first image to calculate the first mileage will no longer be accurate. The vehicle slipping will cause the speed of the vehicle to become slower or faster, thereby affecting the matching of adjacent pixels of the first image.

例如车辆速度过快,会导致第一相机拍摄的第一图像模糊不清,或相邻的两个第一图像间存在的匹配像素点数量减少甚至不存在匹配像素点,这样会导致相邻的两个第一图像匹配不上,进而无法计算第一里程。For example, if the speed of the vehicle is too fast, the first image taken by the first camera will be blurred, or the number of matching pixels between two adjacent first images will be reduced or even no matching pixels will exist, which will cause adjacent The two first images do not match, so the first mileage cannot be calculated.

此时,可以采用惯性导航装置输出的惯导数据来计算车辆行驶的里程。At this time, the inertial navigation data output by the inertial navigation device can be used to calculate the mileage traveled by the vehicle.

惯性导航系统是以陀螺和加速度计为敏感器件的导航参数解算系统,该系统根据陀螺的输出建立导航坐标系,根据加速度计输出解算出运载体在导航坐标系中的速度和位置。The inertial navigation system is a navigation parameter calculation system with gyroscope and accelerometer as sensitive devices. The system establishes a navigation coordinate system based on the output of the gyroscope, and calculates the velocity and position of the carrier in the navigation coordinate system based on the output of the accelerometer.

604、根据所述惯导数据计算在所述车辆打滑期间,所述车辆行驶的第二里程。604. Calculate a second mileage traveled by the vehicle during the skid period of the vehicle according to the inertial navigation data.

惯性导航装置的基本工作原理是以牛顿力学定律为基础,通过测量车辆在惯性参考系的加速度,将它对时间进行积分,且把它变换到导航坐标系中,就能够得到在导航坐标系中的速度、偏航角和位置等信息。The basic working principle of the inertial navigation device is based on Newton's laws of mechanics. By measuring the acceleration of the vehicle in the inertial reference system, integrating it with time, and transforming it into the navigation coordinate system, you can get the acceleration in the navigation coordinate system. information such as speed, yaw angle and position.

根据惯导数据中的加速度、车辆的初始速度及车辆打滑的时间区间,可以得到车辆在打滑期间行驶的第二里程。According to the acceleration in the inertial navigation data, the initial speed of the vehicle and the time interval of the vehicle skidding, the second mileage traveled by the vehicle during the skidding period can be obtained.

可选地,所述惯导数据包括:当前时刻所述车辆的加速度和所述车辆行驶的方向和姿态角,步骤104可以包括以下步骤C1-步骤C3:Optionally, the inertial navigation data includes: the acceleration of the vehicle at the current moment and the direction and attitude angle of the vehicle, and step 104 may include the following steps C1-C3:

C1、根据上一次计算得到的第一里程和所述第一里程对应的时间段,确定所述车辆当前时刻的速度。C1. Determine the current speed of the vehicle according to the first mileage calculated last time and the time period corresponding to the first mileage.

具体地,将上一次计算得到的第一里程和第一里程对应的时间段相除,可以得到车辆当前时刻的速度的估算值,将该估算值作为初始速度V0。Specifically, by dividing the first mileage calculated last time and the time period corresponding to the first mileage, an estimated value of the vehicle's speed at the current moment can be obtained, and the estimated value is used as the initial speed V 0 .

C2、根据所述姿态角、所述车辆的加速度,计算所述车辆在行驶方向上的加速度分量。C2. Calculate an acceleration component of the vehicle in a traveling direction according to the attitude angle and the acceleration of the vehicle.

将车辆的加速度在竖直方向和车辆行驶方向上进行分解,取车辆在行驶方向上的加速度分量作为车辆加速度a。Decompose the acceleration of the vehicle in the vertical direction and the driving direction of the vehicle, and take the acceleration component of the vehicle in the driving direction as the vehicle acceleration a.

C3、根据所述车辆当前时刻的速度和所述加速度分量,以及所述车辆打滑期间对应的时间段,确定在所述车辆打滑期间,所述车辆行驶的第二里程。C3. Determine a second mileage traveled by the vehicle during the vehicle skid period according to the current speed of the vehicle and the acceleration component, and a corresponding time period during the vehicle skid period.

确定车辆打滑期间对应的时间段t。将V0、a、t代入公式3,可以得到车辆行驶的第二里程。The corresponding time period t during vehicle skidding is determined. Substituting V 0 , a, and t into Formula 3, the second mileage traveled by the vehicle can be obtained.

605、根据所述第一里程、所述第二里程,确定所述车辆当前的定位。605. Determine the current location of the vehicle according to the first mileage and the second mileage.

在当前时间点以前,可能存在一段时间内第一里程计算成功,一段时间内第一里程计算失败,则会存在多个第一里程和第二里程。计算所有的第一里程和第二里程的和,可以得到当前车辆行驶的总里程。Before the current time point, there may be a period of time in which the calculation of the first mileage is successful, and a period of time in which the calculation of the first mileage fails, and there may be multiple first mileages and second mileages. The total mileage of the current vehicle can be obtained by calculating the sum of all the first mileage and the second mileage.

获取开始拍摄第一图像时,车辆所处的初始定位;从初始定位开始,在车辆前进的方向加上所述总里程的位移,则得到车辆当前的定位。Acquiring the initial position of the vehicle when the first image is taken; starting from the initial position, adding the displacement of the total mileage in the forward direction of the vehicle to obtain the current position of the vehicle.

在下一次计算车辆的定位时,只需要用前一次的定位加上对应的总里程即可。车辆行驶中每个时刻的定位均可以采用上述方法计算。When calculating the location of the vehicle next time, you only need to add the corresponding total mileage to the previous location. The location of each moment during the driving of the vehicle can be calculated by the above method.

综上,在本发明实施例中,获取第一相机拍摄的多张第一图像;至少根据当前获取的所述第一图像,计算上一次获取所述第一图像之后,所述车辆行驶的第一里程;当检测到所述车辆打滑时,获取安装在所述车辆上的惯性导航装置所输出的惯导数据;根据所述惯导数据计算在所述车辆打滑期间,所述车辆行驶的第二里程;根据所述第一里程、所述第二里程,确定所述车辆当前的定位。在本方案中,不需要使用卫星信号或网络信号,利用第一图像和惯性导航装置便可在隧道中实现高精准度的定位,且给出了第一里程计算失败时采用惯性导航装置定位的方法,提高了定位的成功率。To sum up, in the embodiment of the present invention, a plurality of first images captured by the first camera are obtained; at least according to the currently obtained first image, the first time the vehicle travels after the last acquisition of the first image is calculated. A mileage; when detecting that the vehicle is slipping, obtain the inertial navigation data output by the inertial navigation device installed on the vehicle; calculate the first mileage of the vehicle during the slipping period of the vehicle according to the inertial navigation data Two mileages: according to the first mileage and the second mileage, determine the current location of the vehicle. In this scheme, there is no need to use satellite signals or network signals, and the first image and inertial navigation device can be used to achieve high-precision positioning in the tunnel, and the method of using inertial navigation device for positioning when the first mileage calculation fails is given. method, which improves the success rate of positioning.

图7为本发明实施例提供的第二种定位方法的步骤流程图。FIG. 7 is a flowchart of steps of a second positioning method provided by an embodiment of the present invention.

所述方法包括:The methods include:

701、获取第一相机拍摄的多张第一图像;所述第一相机设置在行驶的车辆上并进行连续拍照,相邻的两个所述第一图像的匹配像素点数量大于或等于目标数量。701. Acquire multiple first images taken by the first camera; the first camera is installed on a moving vehicle and takes pictures continuously, and the number of matching pixels of two adjacent first images is greater than or equal to the target number .

在本发明实施例中,步骤701可以参照步骤601,此处不再赘述。In the embodiment of the present invention, step 701 may refer to step 601, which will not be repeated here.

702、至少根据当前获取的所述第一图像,计算上一次获取所述第一图像之后,所述车辆行驶的第一里程。702. Calculate a first mileage traveled by the vehicle after the first image was acquired last time based on at least the currently acquired first image.

在本发明实施例中,步骤702可以参照步骤602,此处不再赘述。In the embodiment of the present invention, step 702 may refer to step 602, which will not be repeated here.

703、所述行驶的车辆上还设置有第三相机,所述第三相机用于拍摄里程识别对象,所述第一相机和所述第三相机的拍摄时间点一致;对所述第三相机拍摄的第三图像中的内容进行识别。703. The driving vehicle is also provided with a third camera, the third camera is used to photograph the mileage recognition object, and the photographing time points of the first camera and the third camera are consistent; for the third camera The content in the captured third image is identified.

由于第一图像中存在不可避免的噪声信息,使得第一里程的计算会产生误差,误差累计多次,会产生大的偏差。而编码器通过累计计数计算第二里程,由于车轮可能出现的打滑、空转等问题,使得第二里程的误差也偏大。为了减少里程计算的误差,引入定距离校准的机制。利用隧道中普遍会设置的里程识别对象,如路标、距离提醒标志等,对计算的第一里程和第二里程进行校准。Due to the unavoidable noise information in the first image, the calculation of the first mileage will generate errors, and the errors will be accumulated many times, resulting in large deviations. The encoder calculates the second mileage by accumulative counting, and the error of the second mileage is also relatively large due to problems such as wheel slipping and idling that may occur. In order to reduce the error of mileage calculation, a mechanism of fixed distance calibration is introduced. Calibrate the calculated first and second mileages by using mileage recognition objects that are commonly set up in tunnels, such as road signs, distance reminder signs, etc.

需要引入第三相机,对准隧道中的里程识别对象进行拍摄,以便于利用所拍摄的第三图像中的里程数据对计算的里程数进行校准。A third camera needs to be introduced to shoot at the mileage identification object in the tunnel, so as to use the mileage data in the captured third image to calibrate the calculated mileage.

可选地,所述里程识别对象包括隧道侧面的里程标、隧道地面的里程标中的其中一种。Optionally, the mileage recognition object includes one of milestones on the side of the tunnel and milestones on the tunnel floor.

隧道中的里程标可能位于隧道侧面的道路两旁,可以为直立的路桩,或喷涂在墙面上的里程文字,也可能是隧道地面上喷涂的里程文字。Milestones in the tunnel may be located on both sides of the road on the side of the tunnel, and may be upright road piles, or mileage text sprayed on the wall, or may be mileage text sprayed on the tunnel floor.

第一相机和第三相机用相同的触发信号,可以使两者的拍摄时间一致。第三相机的摄像头可以对准上述任一种位置进行连续拍摄。在第三相机拍摄的多个第三图像中,识别是否存在里程标。The first camera and the third camera use the same trigger signal, so that the shooting time of the two cameras can be consistent. The camera head of the third camera can be aimed at any of the above positions for continuous shooting. In the plurality of third images captured by the third camera, whether a milestone is present is identified.

704、若识别到所述里程识别对象,则根据所述里程识别对象中的里程数对所述第一里程进行校正。704. If the mileage identification object is identified, correct the first mileage according to the mileage in the mileage identification object.

对多个第三图像持续进行识别,若识别到当前的第三图像中包括里程识别对象,则利用该里程识别对象中的里程数,对当前所计算出的第一里程进行校正。Continuously identify a plurality of third images, and if it is recognized that the current third image includes a mileage identification object, the currently calculated first mileage is corrected by using the mileage in the mileage identification object.

例如,当前计算的第一里程值为99.9m,而当前获取的第三图像中包含里程数为100m的里程识别对象,则将第一里程校正为100m。For example, if the currently calculated first mileage value is 99.9m, and the currently acquired third image contains a mileage recognition object with a mileage of 100m, the first mileage is corrected to 100m.

每次在第三图像中识别到里程识别对象时,均可以使用其中的里程数对当前的第一里程进行校正,使得第一里程可以保持实际的准确性,进而保证了定位的准确性。Every time the mileage recognition object is recognized in the third image, the mileage number therein can be used to correct the current first mileage, so that the first mileage can maintain the actual accuracy, thereby ensuring the accuracy of positioning.

705、检测设置在所述车辆上的车轮编码器是否输出脉冲,以及检测所述车辆是否发生位移。705. Detect whether the wheel encoder installed on the vehicle outputs pulses, and detect whether the vehicle is displaced.

706、若所述车轮编码器输出脉冲,则在检测到所述车辆未发生位移的情况下,确定所述车辆打滑。706. If the wheel encoder outputs pulses, determine that the vehicle is slipping when it is detected that the vehicle does not move.

707、若所述车轮编码器未输出脉冲,则在检测到所述车辆发生位移的情况下,确定所述车辆打滑。707. If the wheel encoder does not output pulses, determine that the vehicle is slipping when it is detected that the vehicle is displaced.

在步骤705-步骤707中,车辆打滑分为两种情况,第一种打滑是原地打滑,这种情况下车轮转动,但车辆不产生位移;第二种打滑是行驶中打滑,这种情况下车轮不转动,但车辆产生位移。步骤706检测到的是第一种打滑,步骤707检测到的是第二种打滑。In step 705-step 707, vehicle skidding is divided into two situations. The first kind of skidding is in-situ skidding. In this case, the wheels rotate, but the vehicle does not produce displacement; the second kind of skidding is skidding during driving. The lower wheels do not rotate, but the vehicle generates displacement. What is detected in step 706 is the first type of slipping, and what is detected in step 707 is the second type of slipping.

无论是何种打滑,都会对利用第一图像计算车辆行驶的第一里程产生影响。No matter what kind of slippage will affect the calculation of the first mileage traveled by the vehicle using the first image.

可选地,确定所述车辆是否发生位移的方法包括以下步骤D1-步骤D3:Optionally, the method for determining whether the vehicle is displaced includes the following steps D1-D3:

D1、确定当前获取的所述第一图像,与上一次获取的所述第一图像的相似度。D1. Determine the similarity between the first image currently acquired and the first image acquired last time.

D2、若所述相似度大于或等于第一阈值,则确定所述车辆未发生位移;D2. If the similarity is greater than or equal to a first threshold, then determine that the vehicle has not been displaced;

D3、若所述相似度小于第一阈值,则确定所述车辆发生位移。D3. If the similarity is less than a first threshold, determine that the vehicle has been displaced.

在步骤D1-步骤D3中,根据第一图像的相似度确定车辆是否发生位移。若相邻的两个第一图像的相似度很高,则说明第一相机两次拍摄的是同一个对象,说明车辆未发生移动。若相邻的两个第一图像的相似度并不高,则说明两次拍摄的对象不同,说明车辆发生了移动。In step D1-step D3, it is determined whether the vehicle is displaced according to the similarity of the first image. If the similarity between the two adjacent first images is very high, it means that the same object is captured twice by the first camera, which means that the vehicle has not moved. If the similarity between the two adjacent first images is not high, it means that the objects captured in the two shots are different, and it means that the vehicle has moved.

第一阈值可以根据实际情况预设,例如可以设置第一阈值为0.99。The first threshold can be preset according to actual conditions, for example, the first threshold can be set to 0.99.

708、当检测到所述车辆打滑时,获取安装在所述车辆上的惯性导航装置所输出的惯导数据。708. Acquire inertial navigation data output by an inertial navigation device installed on the vehicle when it is detected that the vehicle is slipping.

在本发明实施例中,步骤708可以参照步骤603,此处不再赘述。In the embodiment of the present invention, step 708 may refer to step 603, which will not be repeated here.

709、根据所述惯导数据计算在所述车辆打滑期间,所述车辆行驶的第二里程。709. Calculate the second mileage traveled by the vehicle during the skid period of the vehicle according to the inertial navigation data.

在本发明实施例中,步骤709可以参照步骤604,此处不再赘述。In the embodiment of the present invention, step 709 may refer to step 604, which will not be repeated here.

710、根据所述里程识别对象中的里程数对所述第二里程进行校正。710. Correct the second mileage according to the mileage in the mileage identification object.

同样也可以利用里程识别对象中的里程数对第二里程进行校正,与第一里程校正的过程类似。Similarly, the second mileage can also be corrected by using the mileage number in the mileage identification object, which is similar to the process of correcting the first mileage.

711、根据所述第一里程、所述第二里程,确定所述车辆当前的定位。711. Determine the current location of the vehicle according to the first mileage and the second mileage.

在本发明实施例中,步骤711可以参照步骤605,此处不再赘述。In the embodiment of the present invention, step 711 may refer to step 605, which will not be repeated here.

712、所述车辆上还设置有多个第二相机,所述第二相机用于连续拍摄隧道侧壁,和/或,隧道顶弧,和/或,隧道地面;获取所述第二相机拍摄的第二图像,并从所述第二图像中识别目标对象。712. The vehicle is further provided with a plurality of second cameras, and the second cameras are used to continuously photograph the side walls of the tunnel, and/or the top arc of the tunnel, and/or the ground of the tunnel; obtain the photographs taken by the second cameras A second image of , and identify the target object from the second image.

第二相机可以为多个摄像头分别朝向不同方向的相机阵列,用于全方位、大范围采集隧道衬砌断面影像。具体地,第二相机可以用于拍摄隧道侧壁,和/或,隧道顶弧,和/或,隧道地面。The second camera can be a camera array with multiple cameras facing in different directions, and is used to collect images of tunnel lining sections in all directions and in a large range. Specifically, the second camera may be used to photograph the side wall of the tunnel, and/or the top arc of the tunnel, and/or the ground of the tunnel.

工控机从第二相机拍摄的第二图像中,识别目标对象,目标对象即隧道表面的病害。The industrial computer recognizes the target object from the second image taken by the second camera, and the target object is the lesion on the surface of the tunnel.

隧道表面的病害可以包括衬砌裂缝、渗漏水、冻害、衬砌剥落、隧道变形、路面破损等。通过图像识别算法,可以在第二图像中识别到上述病害。Diseases on the tunnel surface may include lining cracks, water leakage, freezing damage, lining spalling, tunnel deformation, pavement damage, etc. By means of an image recognition algorithm, the aforementioned lesion can be identified in the second image.

713、在识别到所述目标对象时,将所述目标对象所在的第二图像作为目标图像。713. When the target object is recognized, use the second image where the target object is located as a target image.

在识别到病害时,将包含该病害的第二图像作为目标图像。When a disease is identified, the second image containing the disease is used as the target image.

714、根据所述车辆当前的定位,确定所述目标图像拍摄时所述车辆的定位。714. According to the current location of the vehicle, determine the location of the vehicle when the target image is captured.

根据当前车辆的定位,可以得到每个时刻车辆的定位,因此,拍摄目标对象时车辆的定位也是容易得到的。According to the current location of the vehicle, the location of the vehicle at each moment can be obtained. Therefore, the location of the vehicle when shooting the target object is also easy to obtain.

715、根据所述目标图片拍摄时所述车辆的定位确定所述目标图像在隧道中的定位。715. Determine the location of the target image in the tunnel according to the location of the vehicle when the target picture is taken.

病害在隧道中的定位,可以通过定位目标图像来实现。而通过确定拍摄目标图像时车辆的定位可以大致判定目标图像在隧道中的定位。The location of the disease in the tunnel can be realized by locating the target image. By determining the location of the vehicle when the target image is captured, the location of the target image in the tunnel can be roughly determined.

综上,在本发明实施例中,根据编码器是否发出脉冲以及车辆是否发生位移,来确定车辆是否发生打滑,将车辆打滑的两种情况全面考虑,检测结果较为准确;并且,根据相邻两张第一图像的相似度确定车辆是否发生位移,有效利用了第一图像的特点,判断结果准确度较高;同时,根据所述目标图片拍摄时所述车辆的定位确定所述目标图像在隧道中的定位,使得用户可以快速确定目标图像的定位,提高了工作效率;此外,利用里程识别对象中的里程数,对当前所计算出的第一里程进行校正,使得第一里程可以保持与实际的里程数相同,进一步提高了定位的准确性。To sum up, in the embodiment of the present invention, it is determined whether the vehicle is slipping according to whether the encoder sends a pulse and whether the vehicle is displaced, and the two situations of the vehicle slipping are fully considered, and the detection result is relatively accurate; and, according to two adjacent The similarity of the first image determines whether the vehicle is displaced, effectively utilizing the characteristics of the first image, and the accuracy of the judgment result is high; at the same time, according to the location of the vehicle when the target picture is taken, it is determined that the target image is in the tunnel. The positioning in the target image enables the user to quickly determine the positioning of the target image, which improves the work efficiency; in addition, the mileage in the object is recognized by the mileage, and the current calculated first mileage is corrected, so that the first mileage can be kept in line with the actual The mileage is the same, which further improves the accuracy of positioning.

图8为本发明实施例提供的一种定位装置,设置于电子设备,所述电子设备可以是图1中的工控机。FIG. 8 is a positioning device provided by an embodiment of the present invention, which is set in an electronic device, and the electronic device may be the industrial computer in FIG. 1 .

如图8所示,所述装置300包括:As shown in Figure 8, the device 300 includes:

第一图像获取模块301,用于获取第一相机拍摄的多张第一图像;所述第一相机设置在行驶的车辆上并进行连续拍照,相邻的两个所述第一图像的匹配像素点数量大于或等于目标数量;The first image acquisition module 301 is configured to acquire a plurality of first images taken by the first camera; the first camera is arranged on a moving vehicle and continuously takes pictures, and the matching pixels of two adjacent first images The number of points is greater than or equal to the target amount;

第一里程计算模块302,用于至少根据当前获取的所述第一图像,计算上一次获取所述第一图像之后,所述车辆行驶的第一里程;The first mileage calculation module 302 is configured to calculate the first mileage traveled by the vehicle after the last acquisition of the first image based on at least the currently acquired first image;

惯导数据获取模块306,用于当检测到所述车辆打滑时,获取安装在所述车辆上的惯性导航装置所输出的惯导数据;The inertial navigation data acquisition module 306 is used to acquire the inertial navigation data output by the inertial navigation device installed on the vehicle when the vehicle is detected to be slipping;

第二里程计算模块304,用于根据所述惯导数据计算在所述车辆打滑期间,所述车辆行驶的第二里程;The second mileage calculation module 304 is configured to calculate the second mileage traveled by the vehicle during the skid period of the vehicle according to the inertial navigation data;

定位模块305,用于根据所述第一里程、所述第二里程,确定所述车辆当前的定位。The location module 305 is configured to determine the current location of the vehicle according to the first mileage and the second mileage.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

图5是本发明实施例提供的一种电子设备400的结构框图。例如,电子设备400可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 5 is a structural block diagram of an electronic device 400 provided by an embodiment of the present invention. For example, the electronic device 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

参照图5,电子设备400可以包括以下一个或多个组件:处理组件402,存储器404,电力组件406,多媒体组件408,音频组件410,输入/输出(I/O)的接口412,传感器组件414,以及通信组件416。5, electronic device 400 may include one or more of the following components: processing component 402, memory 404, power component 406, multimedia component 408, audio component 410, input/output (I/O) interface 412, sensor component 414 , and the communication component 416 .

处理组件402通常控制电子设备400的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件402可以包括一个或多个处理器420来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件402可以包括一个或多个模块,便于处理组件402和其他组件之间的交互。例如,处理组件402可以包括多媒体模块,以方便多媒体组件408和处理组件402之间的交互。The processing component 402 generally controls the overall operations of the electronic device 400, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 402 may include one or more modules that facilitate interaction between processing component 402 and other components. For example, processing component 402 may include a multimedia module to facilitate interaction between multimedia component 408 and processing component 402 .

存储器404被配置为存储各种类型的数据以支持在设备400的操作。这些数据的示例包括用于在电子设备400上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器404可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 404 is configured to store various types of data to support operations at device 400 . Examples of such data include instructions for any application or method operating on the electronic device 400, contact data, phonebook data, messages, pictures, videos, and the like. The memory 404 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件406为电子设备400的各种组件提供电力。电源组件406可以包括电源管理系统,一个或多个电源,及其他与为电子设备400生成、管理和分配电力相关联的组件。The power supply component 406 provides power to various components of the electronic device 400 . Power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 400 .

多媒体组件408包括在所述电子设备400和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件408包括一个前置摄像头和/或后置摄像头。当设备400处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 408 includes a screen providing an output interface between the electronic device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect a duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 408 includes a front camera and/or a rear camera. When the device 400 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件410被配置为输出和/或输入音频信号。例如,音频组件410包括一个麦克风(MIC),当电子设备400处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器404或经由通信组件416发送。在一些实施例中,音频组件410还包括一个扬声器,用于输出音频信号。The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 400 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 404 or sent via communication component 416 . In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.

I/O接口412为处理组件402和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 412 provides an interface between the processing component 402 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件414包括一个或多个传感器,用于为电子设备400提供各个方面的状态评估。例如,传感器组件414可以检测到设备400的打开/关闭状态,组件的相对定位,例如所述组件为电子设备400的显示器和小键盘,传感器组件414还可以检测电子设备400或电子设备400一个组件的位置改变,用户与电子设备400接触的存在或不存在,电子设备400方位或加速/减速和电子设备400的温度变化。传感器组件414可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件414还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件414还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for electronic device 400 . For example, the sensor component 414 can detect the open/closed state of the device 400, the relative positioning of components, such as the display and the keypad of the electronic device 400, the sensor component 414 can also detect the electronic device 400 or a component of the electronic device 400 The position change of the electronic device 400, the presence or absence of user contact with the electronic device 400, the orientation or acceleration/deceleration of the electronic device 400 and the temperature change of the electronic device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件416被配置为便于电子设备400和其他设备之间有线或无线方式的通信。电子设备400可以接入基于通信标准的无线网络,如WiFi,运营商网络(如2G、4G、4G或5G),或它们的组合。在一个示例性实施例中,通信组件416经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件416还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 416 is configured to facilitate wired or wireless communication between the electronic device 400 and other devices. The electronic device 400 can access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 4G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

二、应用实施例。为了证明本发明的技术方案的创造性和技术价值,该部分是对权利要求技术方案进行具体产品上或相关技术上的应用实施例。2. Application examples. In order to prove the creativity and technical value of the technical solution of the present invention, this part is the application example of the claimed technical solution on specific products or related technologies.

本发明提供的电子设备400可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。The electronic equipment 400 provided by the present invention can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the method described above.

本发明提供的定位方法可应用于包括指令的非临时性计算机可读存储介质,例如包括指令的存储器404,上述指令可由电子设备400的处理器420执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。The positioning method provided by the present invention can be applied to a non-transitory computer-readable storage medium including instructions, such as the memory 404 including instructions, and the above instructions can be executed by the processor 420 of the electronic device 400 to complete the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present invention, these modifications, uses or adaptations follow the general principles of the present invention and include common knowledge or conventional technical means in the technical field not disclosed in this disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the invention being indicated by the following claims.

应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It should be understood that the present invention is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A positioning method, characterized in that the positioning method comprises: the method comprises the steps that a camera arranged on a running vehicle acquires images continuously photographed, and a first driving mileage of the vehicle is calculated according to the currently acquired images and calibration parameters of the camera;
calculating a second mileage traveled by the vehicle according to first mileage calculation failure data output by an encoder arranged on the vehicle;
and determining the current location of the vehicle according to the first mileage and the second mileage.
2. The method of claim 1, further comprising:
acquiring a plurality of first images shot by a first camera; the first cameras are arranged on a running vehicle and carry out continuous photographing, and the number of matched pixel points of two adjacent first images is larger than or equal to the target number;
according to the currently acquired first image and the calibration parameters of the first camera, calculating a first mileage of the vehicle after the first image is acquired last time;
when the first mileage calculation fails, acquiring pulse data output by an encoder arranged on the vehicle;
calculating a second mileage traveled by the vehicle during the first mileage calculation failure based on the pulse data;
and determining the current location of the vehicle according to the first mileage and the second mileage.
3. The positioning method according to claim 2, wherein a plurality of second cameras are further disposed on the vehicle, the second cameras are used for continuously shooting tunnel sidewalls, and/or tunnel top arcs, and/or tunnel ground, and after determining the current positioning of the vehicle, the method further comprises:
acquiring a second image shot by the second camera, and identifying a target object from the second image;
when the target object is identified, taking a second image where the target object is as a target image;
determining the location of the vehicle when the target image is shot according to the current location of the vehicle;
determining the positioning of the target image in the tunnel according to the positioning of the vehicle when the target image is shot;
the currently acquired first image is a next frame image, the last acquired first image is a previous frame image, and the first mileage of the vehicle after the first image is acquired last time according to the currently acquired first image and the calibration parameters of the first camera includes:
determining calibration parameters of the first camera according to the plurality of first images and matching feature points between the adjacent first images;
determining a homography matrix and a distortion parameter matrix according to the calibration parameters of the first camera; obtaining a conversion relation between a pixel coordinate system and a world coordinate system of the first image according to the homography matrix and the distortion parameter matrix;
determining pixel displacement of a target pixel point in the next frame image in an image relative to the target pixel point in the previous frame image;
determining the actual size of each pixel point in the first image corresponding to the actual space according to the conversion relation;
determining a corresponding vehicle driving distance between the next frame image and the previous frame image according to the actual size and the pixel displacement to obtain a first driving mileage of the vehicle;
the pulse data including a time stamp of an output pulse and a number of pulses, the calculating a second mileage traveled by the vehicle during the first mileage calculation failure based on the pulse data, including:
determining a total number of pulses output during the first mileage calculation failure according to the timestamp and the number of pulses;
calculating a second range traveled by the vehicle during the failure of the first range calculation based on the total number of pulses and a circumference of the wheel.
4. The positioning method according to claim 2, further comprising, before acquiring pulse data output from an encoder provided on the vehicle:
when a first abnormal condition is detected to occur, determining that the first mileage calculation is failed;
the first abnormal condition includes at least one of the following conditions: the method comprises the steps that the first image cannot be acquired, foreign matters exist in a target area on the first image, the brightness of the first image is larger than or equal to a first threshold value, and the brightness of the first image is smaller than a second threshold value; the number of matched pixel points included in two adjacent first images is smaller than the target number;
the driving vehicle is further provided with a third camera for shooting a mileage identifying object, the shooting time points of the first camera and the third camera are the same, and after the first image is obtained last time according to the currently obtained first image, the driving vehicle further comprises:
identifying content in a third image taken by the third camera;
if the mileage identification object is identified, correcting the first mileage according to the mileage number in the mileage identification object;
after calculating a second mileage traveled by the vehicle during the first mileage calculation failure based on the pulse data, the method further includes:
correcting the second mileage according to the mileage in the mileage identifying object;
after calculating a second mileage traveled by the vehicle during the first mileage calculation failure from the pulse data, further comprising:
when the second mileage calculation failure is encountered, determining a first time period length corresponding to the second mileage calculation failure period;
acquiring the mileage of the vehicle running for the last first time period;
taking the mileage traveled by the vehicle for the last first time period as a second mileage traveled by the vehicle;
after calculating a second mileage traveled by the vehicle during the first mileage calculation failure based on the pulse data, the method further includes:
when the second mileage calculation fails, acquiring inertial navigation data output by an inertial navigation device arranged on the vehicle;
and calculating a second mileage traveled by the vehicle during the second mileage calculation failure according to the inertial navigation data.
5. A positioning device, comprising:
the first image acquisition module is used for acquiring a plurality of first images shot by a first camera; the first cameras are arranged on a running vehicle and carry out continuous photographing, and the number of matched pixel points of two adjacent first images is larger than or equal to the target number;
the first mileage calculation module is used for calculating a first mileage of the vehicle after the first image is acquired last time according to the first image acquired currently and the calibration parameters of the first camera;
the pulse data acquisition module is used for acquiring pulse data output by an encoder arranged on the vehicle when the first mileage calculation fails;
the second mileage calculation module is used for calculating a second mileage driven by the vehicle during the first mileage calculation failure period according to the pulse data;
and the positioning module is used for determining the current positioning of the vehicle according to the first mileage and the second mileage.
6. The positioning method according to claim 1, further comprising:
acquiring a plurality of first images shot by a first camera; the first cameras are arranged on a running vehicle and carry out continuous photographing, and the number of matched pixel points of two adjacent first images is larger than or equal to the target number;
according to at least the first image acquired currently, calculating a first mileage traveled by the vehicle after the first image is acquired last time;
when the vehicle is detected to skid, acquiring inertial navigation data output by an inertial navigation device installed on the vehicle;
calculating a second mileage traveled by the vehicle during the vehicle slip based on the inertial navigation data;
and determining the current location of the vehicle according to the first mileage and the second mileage.
7. The positioning method according to claim 6, wherein a plurality of second cameras are further provided on the vehicle, the second cameras are used for continuously shooting tunnel side walls, and/or tunnel top arcs, and/or tunnel ground, and after determining the current positioning of the vehicle, the method further comprises:
acquiring a second image shot by the second camera, and identifying a target object from the second image;
when the target object is identified, taking a second image where the target object is as a target image;
determining the location of the vehicle when the target image is shot according to the current location of the vehicle;
determining the positioning of the target image in the tunnel according to the positioning of the vehicle when the target image is shot;
before acquiring inertial navigation data output by an inertial navigation device arranged on the vehicle, the method further comprises the following steps:
detecting whether a wheel encoder arranged on the vehicle outputs pulses or not and detecting whether the vehicle is displaced or not;
if the wheel encoder outputs pulses, determining that the vehicle skids under the condition that the vehicle is detected not to be displaced;
if the wheel encoder does not output pulses, determining that the vehicle slips under the condition that the vehicle is detected to be displaced;
the method for detecting whether the vehicle is displaced comprises the following steps:
determining the similarity between the currently acquired first image and the last acquired first image;
if the similarity is larger than or equal to a first threshold value, determining that the vehicle does not displace;
if the similarity is smaller than a first threshold value, determining that the vehicle displaces;
the inertial navigation data comprises: calculating a second distance traveled by the vehicle during the vehicle slip based on the inertial navigation data, including:
determining the speed of the vehicle at the current moment according to the first mileage obtained by the last calculation and the time period corresponding to the first mileage;
calculating an acceleration component of the vehicle in a driving direction according to the attitude angle and the acceleration of the vehicle;
determining a second mileage driven by the vehicle during the vehicle slip according to the speed and the acceleration component of the vehicle at the current moment and a corresponding time period of the vehicle slip;
the currently acquired first image is a next frame image, the last acquired first image is a last frame image, and the first mileage of the vehicle after the first image is acquired last time at least according to the currently acquired first image comprises:
determining calibration parameters of the first camera according to the plurality of first images and the matching feature points between the adjacent first images;
determining a homography matrix and a distortion parameter matrix according to the calibration parameters of the first camera; obtaining a conversion relation between a pixel coordinate system and a world coordinate system of the first image according to the homography matrix and the distortion parameter matrix;
determining pixel displacement of a target pixel point in the next frame image in an image relative to the target pixel point in the previous frame image;
determining the actual size of each pixel point in the first image corresponding to the actual space according to the conversion relation;
determining a corresponding vehicle driving distance between the next frame image and the previous frame image according to the actual size and the pixel displacement to obtain a first mileage of the vehicle;
the first mileage driven by the vehicle after the first image is last acquired at least according to the first image currently acquired comprises:
determining the driving inertial navigation mileage of the vehicle after the first image is obtained last time according to the inertial navigation data output by the inertial navigation device;
determining the visual mileage of the vehicle after the first image is obtained last time according to the matching pixel points between the first image obtained currently and the first image obtained last time;
taking the average value of the inertial navigation mileage and the visual mileage as a first mileage traveled by the vehicle after the first image was obtained last time;
the driving vehicle is further provided with a third camera for shooting a mileage identifying object, the shooting time points of the first camera and the third camera are the same, and after the first image is obtained last time according to the currently obtained first image, the driving vehicle further comprises:
identifying content in a third image taken by the third camera;
if the mileage identification object is identified, correcting the first mileage according to the mileage number in the mileage identification object;
after calculating a second mileage traveled by the vehicle during the vehicle slip based on the inertial navigation data, further comprising:
and correcting the second mileage according to the mileage in the mileage identifying object.
8. A positioning device, comprising:
the first image acquisition module is used for acquiring a plurality of first images shot by a first camera; the first cameras are arranged on a running vehicle and carry out continuous photographing, and the number of matched pixel points of two adjacent first images is larger than or equal to the target number;
the first mileage calculation module is used for calculating a first mileage traveled by the vehicle after the first image is acquired last time at least according to the currently acquired first image;
the inertial navigation data acquisition module is used for acquiring inertial navigation data output by an inertial navigation device installed on the vehicle when the vehicle is detected to skid;
the second mileage calculation module is used for calculating a second mileage of the vehicle during the vehicle skidding according to the inertial navigation data;
and the positioning module is used for determining the current positioning of the vehicle according to the first mileage and the second mileage.
9. An electronic device comprising a processor and a memory, the processor and memory coupled, the memory for storing computer program instructions that, when executed by the processor, cause the electronic device to perform the positioning method of any of claims 1 to 4 or claims 6 to 8.
10. A computer storage medium, characterized in that it has stored therein program instructions which, when run on an electronic device, cause the electronic device to perform the positioning method according to any one of claims 1 to 4 or claims 6 to 8.
CN202210785532.5A 2022-07-05 2022-07-05 Positioning method, positioning device, electronic equipment and storage medium Pending CN115290077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210785532.5A CN115290077A (en) 2022-07-05 2022-07-05 Positioning method, positioning device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210785532.5A CN115290077A (en) 2022-07-05 2022-07-05 Positioning method, positioning device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115290077A true CN115290077A (en) 2022-11-04

Family

ID=83821348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210785532.5A Pending CN115290077A (en) 2022-07-05 2022-07-05 Positioning method, positioning device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115290077A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118122655A (en) * 2024-05-06 2024-06-04 苏州芯越智能科技有限公司 Calibration system and method for actuating mechanism and camera and computer storage medium
CN118810840A (en) * 2024-04-09 2024-10-22 广西轨交智维科技有限公司 Tunnel inspection vehicle and system thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206327389U (en) * 2016-12-27 2017-07-14 上海铁路局科学技术研究所 A kind of railway positioning system based on contact net bar image recognition
CN208887650U (en) * 2018-11-12 2019-05-21 成都精工华耀科技有限公司 A kind of rail polling car mileage counting device
CN110849368A (en) * 2019-10-23 2020-02-28 同济大学 A high-precision and rapid positioning device and method in a tunnel
CN111693066A (en) * 2020-03-12 2020-09-22 重庆大学 Slip identification and intelligent compensation method for mine heading machine
CN113624260A (en) * 2021-08-26 2021-11-09 三一智矿科技有限公司 Odometer pulse equivalent calibration method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206327389U (en) * 2016-12-27 2017-07-14 上海铁路局科学技术研究所 A kind of railway positioning system based on contact net bar image recognition
CN208887650U (en) * 2018-11-12 2019-05-21 成都精工华耀科技有限公司 A kind of rail polling car mileage counting device
CN110849368A (en) * 2019-10-23 2020-02-28 同济大学 A high-precision and rapid positioning device and method in a tunnel
CN111693066A (en) * 2020-03-12 2020-09-22 重庆大学 Slip identification and intelligent compensation method for mine heading machine
CN113624260A (en) * 2021-08-26 2021-11-09 三一智矿科技有限公司 Odometer pulse equivalent calibration method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118810840A (en) * 2024-04-09 2024-10-22 广西轨交智维科技有限公司 Tunnel inspection vehicle and system thereof
CN118122655A (en) * 2024-05-06 2024-06-04 苏州芯越智能科技有限公司 Calibration system and method for actuating mechanism and camera and computer storage medium

Similar Documents

Publication Publication Date Title
CN113870343B (en) Relative posture calibration method, device, computer equipment and storage medium
Cortés et al. ADVIO: An authentic dataset for visual-inertial odometry
CN111750853A (en) Map establishing method, device and storage medium
JP3724786B2 (en) Method and apparatus for moving displacement measurement of structure
CN108810473B (en) Method and system for realizing GPS mapping camera picture coordinate on mobile platform
CN115366097B (en) Robot following method, device, robot and computer readable storage medium
CN1896684A (en) Geographic data collecting system
CA2684416A1 (en) Method of and apparatus for producing road information
US12462584B2 (en) Lane line labeling method, electronic device and storage medium
CN110906830B (en) Intelligent distance measuring wheel system and distance measuring method thereof
CN112184906B (en) A method and device for constructing a three-dimensional model
JP2018185228A (en) Mobile flaw detector
CN114119886A (en) High-precision map point cloud reconstruction method and device, vehicle, equipment and storage medium
JP2010020729A (en) Vehicle traveling locus observation system, vehicle traveling locus observation method and program
JP2014137321A (en) Position coordinate conversion system, position coordinate conversion method, on-vehicle device, global coordinate measurement device and position coordinate conversion program
CN114549633B (en) Position detection method, device, electronic device and storage medium
CN103411587B (en) Positioning and orientation method and system
CN114323002A (en) AGV positioning navigation method based on binocular vision, IMU and UWB fusion
CN112288825A (en) Camera calibration method and device, electronic equipment, storage medium and road side equipment
JP2018077162A (en) Vehicle position detection device, vehicle position detection method, and computer program for vehicle position detection
CN114972485A (en) Positioning accuracy testing method, positioning accuracy testing apparatus, storage medium, and program product
TWM560099U (en) Indoor precise navigation system using augmented reality technology
CN115984218A (en) A tunnel detection system based on binocular vision
CN105321186B (en) A kind of enclosure space map acquisition method and device based on orthogonal projection
JP5285487B2 (en) Image recording system and image recording 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