Monocular distance measurement method and device for random scene under rapid movement

文档序号:1736158 发布日期:2019-12-20 浏览:21次 中文

阅读说明:本技术 一种快速移动下随机场景的单目测距方法及装置 (Monocular distance measurement method and device for random scene under rapid movement ) 是由 邹复民 罗思杰 蔡祈钦 郭峰 廖律超 蒋新华 陈必俊 方卫东 甘振华 陈子标 朱 于 2019-09-13 设计创作,主要内容包括:本申请提供了一种快速移动下随机场景的单目测距方法及装置,涉及电数据处理领域。该方法包括:当相邻车辆在摄像头中的图像的宽度大于安全阈值时,获取所述相邻车辆的车牌规格,并获取拍摄角度;根据所述车牌规格和所述拍摄角度,在预设的车距数据库中获取所述相邻车辆的车距。本申请通过计算获取相邻车辆与本车的真实车距,从而减少司机对车距的误判,保证司机的人身安全,同时由于测量并记录了相邻车辆的距离信息,在发生交通事故时,也可以为交警的定责提供依据。(The application provides a monocular distance measurement method and device for a random scene under rapid movement, and relates to the field of electric data processing. The method comprises the following steps: when the width of an image of an adjacent vehicle in a camera is larger than a safety threshold value, acquiring the license plate specification of the adjacent vehicle and acquiring a shooting angle; and acquiring the distance between the adjacent vehicles in a preset distance database according to the license plate specification and the shooting angle. The method and the device obtain the real distance between the adjacent vehicle and the vehicle through calculation, thereby reducing misjudgment of the driver on the distance and ensuring the personal safety of the driver.)

1. A monocular distance measuring method for a random scene under fast movement is characterized by comprising the following steps:

when the width of an image of an adjacent vehicle in a camera is larger than a safety threshold value, acquiring the license plate specification of the adjacent vehicle and acquiring a shooting angle;

and acquiring the distance between the adjacent vehicles in a preset distance database according to the license plate specification and the shooting angle.

2. The method of claim 1, wherein said obtaining license plate specifications for said neighboring vehicles comprises:

and acquiring the license plate specification through the pixel value of the license plate.

3. The method of claim 2, wherein obtaining the license plate specification from pixel values of the license plate comprises:

acquiring pixel values of license plates of the adjacent vehicles through a license plate recognition algorithm;

determining the length and width pixels of the license plate according to the pixel values;

and determining the license plate specification of the adjacent vehicles according to the ratio of the length pixels to the width pixels.

4. The method of claim 3, wherein determining the license plate specification of the neighboring vehicle based on the ratio of the length and width pixels comprises:

and comparing the proportion with a preset proportion database, and determining the license plate specification according to the comparison result.

5. The method of claims 1 to 4, wherein the obtaining of the shooting angle comprises:

according to the formulaAnd acquiring a shooting angle, wherein alpha is the shooting angle, beta is the maximum shooting angle of the vehicle-mounted shooting equipment, the horizontal distance from the middle point of the license plate of the adjacent vehicle in the delta w image to the central axis of the image, and L is the width of the image.

6. A monocular distance measuring device of random scene under fast moving, characterized by that includes:

the system comprises an acquisition module, a storage module and a display module, wherein the acquisition module is used for acquiring the license plate specification of an adjacent vehicle and acquiring a shooting angle when the width of an image of the adjacent vehicle in a camera is larger than a safety threshold;

and the vehicle distance acquisition module is used for acquiring the vehicle distance of the adjacent vehicle in a preset vehicle distance database according to the license plate specification and the shooting angle.

7. The apparatus of claim 6, wherein said obtaining license plate specifications for said neighboring vehicles comprises:

and acquiring the license plate specification through the pixel value of the license plate.

8. The apparatus of claim 7, wherein the obtaining means comprises:

the pixel value acquisition unit is used for acquiring the pixel values of the license plates of the adjacent vehicles through a license plate recognition algorithm;

the length and width pixel determining unit is used for determining the length and width pixels of the license plate according to the pixel values;

and the license plate specification determining unit is used for determining the license plate specification of the adjacent vehicle according to the ratio of the length pixels and the width pixels.

9. The apparatus of claim 8, wherein determining a license plate specification of a neighboring vehicle based on the ratio of the length and width pixels comprises:

and comparing the proportion with a preset proportion database, and determining the license plate specification according to the comparison result.

10. The apparatus according to any one of claims 6 to 9, wherein the acquiring of the shooting angle comprises:

according to the formulaAnd acquiring a shooting angle, wherein alpha is the shooting angle, beta is the maximum shooting angle of the vehicle-mounted shooting equipment, the horizontal distance from the middle point of the license plate of the adjacent vehicle in the delta w image to the central axis of the image, and L is the width of the image.

Technical Field

The application belongs to the field of electric data processing, and particularly relates to a monocular distance measuring method and device for a random scene under rapid movement.

Background

At present, when a driver uses a vehicle to drive on a highway, misjudgment is usually carried out on the distance between the driver and the adjacent vehicle, and the misjudgment easily causes traffic accidents such as rear-end collision, scraping and the like, thereby causing serious threat to the personal safety of the driver.

Disclosure of Invention

The embodiment of the invention mainly aims to provide a monocular distance measurement method and device for a random scene under rapid movement.

In a first aspect, a monocular distance measuring method for a random scene under fast movement is provided, and the method includes:

when the width of an image of an adjacent vehicle in a camera is larger than a safety threshold value, acquiring the license plate specification of the adjacent vehicle and acquiring a shooting angle;

and acquiring the distance between the adjacent vehicles in a preset distance database according to the license plate specification and the shooting angle.

In one possible implementation manner, the obtaining the license plate specification of the adjacent vehicle includes:

and acquiring the license plate specification through the pixel value of the license plate.

In another possible implementation manner, the obtaining the license plate specification through the pixel values of the license plate includes:

acquiring pixel values of license plates of the adjacent vehicles through a license plate recognition algorithm;

determining the length and width pixels of the license plate according to the pixel values;

and determining the license plate specification of the adjacent vehicles according to the ratio of the length pixels to the width pixels.

In yet another possible implementation manner, the determining the license plate specification of the adjacent vehicle according to the ratio of the length and the width pixels includes:

and comparing the proportion with a preset proportion database, and determining the license plate specification according to the comparison result.

In yet another possible implementation manner, the acquiring the shooting angle includes:

according to the formulaAnd acquiring a shooting angle, wherein alpha is the shooting angle, beta is the maximum shooting angle of the vehicle-mounted shooting equipment, the horizontal distance from the middle point of the license plate of the adjacent vehicle in the delta w image to the central axis of the image, and L is the width of the image.

In a second aspect, a monocular distance measuring device for a random scene under fast moving comprises:

the system comprises an acquisition module, a storage module and a display module, wherein the acquisition module is used for acquiring the license plate specification of an adjacent vehicle and acquiring a shooting angle when the width of an image of the adjacent vehicle in a camera is larger than a safety threshold;

and the vehicle distance acquisition module is used for acquiring the vehicle distance of the adjacent vehicle in a preset vehicle distance database according to the license plate specification and the shooting angle.

In one possible implementation manner, the obtaining the license plate specification of the adjacent vehicle includes:

and acquiring the license plate specification through the pixel value of the license plate.

In another possible implementation manner, the obtaining apparatus includes:

the pixel value acquisition unit is used for acquiring the pixel values of the license plates of the adjacent vehicles through a license plate recognition algorithm;

the length and width pixel determining unit is used for determining the length and width pixels of the license plate according to the pixel values;

and the license plate specification determining unit is used for determining the license plate specification of the adjacent vehicle according to the ratio of the length pixels and the width pixels.

In yet another possible implementation manner, the determining the license plate specification of the adjacent vehicle according to the ratio of the length and the width pixels includes:

and comparing the proportion with a preset proportion database, and determining the license plate specification according to the comparison result.

In yet another possible implementation manner, the acquiring the shooting angle includes:

according to the formulaAnd acquiring a shooting angle, wherein alpha is the shooting angle, beta is the maximum shooting angle of the vehicle-mounted shooting equipment, the horizontal distance from the middle point of the license plate of the adjacent vehicle in the delta w image to the central axis of the image, and L is the width of the image.

The beneficial effect that technical scheme that this application provided brought is: the real distance between the adjacent vehicle and the vehicle is obtained through calculation, so that misjudgment of the driver on the distance is reduced, the personal safety of the driver is ensured, and meanwhile, because the distance information of the adjacent vehicle is measured and recorded, a basis can be provided for the responsibility determination of a traffic police when a traffic accident happens.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.

Fig. 1 is a flowchart of a monocular distance measuring method for a random scene under fast movement according to an embodiment of the present application;

fig. 2 is a flowchart of a monocular distance measuring method for a random scene under fast moving according to another embodiment of the present application;

fig. 3 is a schematic diagram illustrating an effect of a monocular distance measuring method for a random scene under fast movement according to another embodiment of the present application;

fig. 4 is a schematic diagram illustrating an effect of a monocular distance measuring method for a random scene under fast moving according to another embodiment of the present application

Fig. 5 is a block diagram of a monocular distance measuring device for a random scene under fast moving according to another embodiment of the present application.

Detailed Description

Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.

As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.

To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.

At present, when a driver uses a vehicle to drive on a highway, misjudgment is usually carried out on the distance between the driver and the adjacent vehicle, and the misjudgment easily causes traffic accidents such as rear-end collision, scraping and the like, thereby causing serious threat to the personal safety of the driver.

The application provides a monocular distance measuring method and device for a random scene under rapid movement, and aims to solve the technical problems in the prior art.

The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于时间反转技术的频控阵时间聚焦方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!