[go: up one dir, main page]

CN107918775B - Zebra crossing detection method and system for assisting safe driving of vehicle - Google Patents

Zebra crossing detection method and system for assisting safe driving of vehicle Download PDF

Info

Publication number
CN107918775B
CN107918775B CN201711461054.8A CN201711461054A CN107918775B CN 107918775 B CN107918775 B CN 107918775B CN 201711461054 A CN201711461054 A CN 201711461054A CN 107918775 B CN107918775 B CN 107918775B
Authority
CN
China
Prior art keywords
line
road image
line segment
interest
target
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.)
Expired - Fee Related
Application number
CN201711461054.8A
Other languages
Chinese (zh)
Other versions
CN107918775A (en
Inventor
范玉华
孙忠贵
范丽亚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Liaocheng University
Original Assignee
Liaocheng University
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 Liaocheng University filed Critical Liaocheng University
Priority to CN201711461054.8A priority Critical patent/CN107918775B/en
Publication of CN107918775A publication Critical patent/CN107918775A/en
Application granted granted Critical
Publication of CN107918775B publication Critical patent/CN107918775B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/56Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle
    • G06V20/588Recognition of the road, e.g. of lane markings; Recognition of the vehicle driving pattern in relation to the road
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

本发明公开了一种辅助车辆安全驾驶的斑马线检测方法及系统,方法包括:S1、通过车载摄像机对目标场景进行拍摄,获取目标场景中的道路图像;S2、对道路图像进行线特征检测,得到线特征;S3、根据线特征获取灭点的位置信息;S4、对所述道路图像进行二次线特征检测,得到所述道路图像中的直线特征;S5、对道路图像中的线特征进行黑白标记,并获取所有的线段信息;S6、对道路图像中的线段进行一次筛选,得到候选感兴趣区域;S7、对候选感兴趣区域进行二次筛选,得到最终检测结果。本发明的有益效果是:不仅可以检测单个目标,而且可以检测复杂路口下的多个待检测目标。

Figure 201711461054

The invention discloses a zebra crossing detection method and system for assisting safe driving of vehicles. The method includes: S1, photographing a target scene through a vehicle-mounted camera to obtain a road image in the target scene; S2, performing line feature detection on the road image to obtain line feature; S3, obtain the position information of the vanishing point according to the line feature; S4, perform secondary line feature detection on the road image to obtain the straight line feature in the road image; S5, perform black and white on the line feature in the road image mark, and obtain all line segment information; S6, perform primary screening on the line segments in the road image to obtain a candidate region of interest; S7, perform secondary screening on the candidate region of interest to obtain a final detection result. The beneficial effect of the present invention is that not only a single target can be detected, but also multiple targets to be detected under complex intersections can be detected.

Figure 201711461054

Description

Zebra crossing detection method and system for assisting safe driving of vehicle
Technical Field
The invention relates to the technical field of target detection, in particular to a zebra crossing detection method and a zebra crossing detection system for assisting safe driving of a vehicle.
Background
With the development of social economy, the traffic problem has been paid more and more attention by people, and the urban road intersections concentrate traffic flow and pedestrian flow from all directions, are in the core position in the urban road network, and are also places with higher traffic accident occurrence rate. The intersection is a very important traffic area nowadays, and according to data statistics, when a motor vehicle runs on a road in an urban area, 30% of the time is used at the intersection on average, and 64% of traffic accidents occur at the intersection of the road. The road zebra crossing is an important safety sign, traffic sign information which must be identified in a safety driving system based on visual identification is used as the basis, and for a vehicle driver, the zebra crossing means that the vehicle driver drives carefully and safely passes at a slow speed; for pedestrians, the zebra crossing is a protective strip which safely passes through the road.
Important road traffic signs such as speed limit, prohibition, indication and other signs are detected and positioned and are obtained by being fused with vehicle GPS information, and drivers mainly rely on signal lamps to judge distances for mastering intersections. And many intersections in China have zebra crossings, but no signal lamps are arranged, so that the risk of drivers and pedestrians in traveling is increased.
In the prior art, the zebra crossing characteristics are obtained mainly by means of visual information and the like, and then a classifier is trained to detect the zebra crossing characteristics. The method can be effective when the visual information of the zebra crossing is complete, the target is obviously contrasted with the background, and only one zebra crossing is provided. If the road zebra crossing cannot be maintained in time and the weather condition is not good, effective detection is difficult to realize. In a complex intersection with a plurality of zebra crossings, other targets can be automatically ignored due to the fact that corresponding information is obtained through geometric transformation. Therefore, the prior art has the following problems: 1. at a large complex intersection, a plurality of zebra stripes cannot be detected at one time, and 2, the zebra stripes which are untimely in use and maintenance and seriously stained cannot be effectively detected.
Disclosure of Invention
The invention provides a zebra crossing detection method and a zebra crossing detection system for assisting safe driving of a vehicle, and solves the technical problem in the prior art.
The technical scheme for solving the technical problems is as follows:
a zebra crossing detection method for assisting safe driving of a vehicle comprises the following steps:
s1, shooting a target scene through a vehicle-mounted camera, and acquiring a road image in the target scene, wherein the road image comprises an interested area containing a target to be detected and a non-interested area not containing the target to be detected, and the target to be detected is a zebra crossing;
s2, carrying out primary line feature detection on the road image to obtain line features;
s3, acquiring the position information of vanishing points in the road image according to the line characteristics;
s4, carrying out secondary line feature detection on the road image to obtain a straight line in the road image, and extracting line segments along the straight line direction according to a gray scale change rule;
s5, marking the line segments in the road image in a black and white mode according to the visual characteristics of the target to be detected, and acquiring line segment information;
s6, screening the line segments in the road image for the first time according to the line segment information to obtain candidate interesting regions;
and S7, performing secondary screening on the candidate interesting region according to the position information of the vanishing point, the cross ratio invariance of the target to be detected, and the brightness information and the region aspect ratio of the region corresponding to the target to be detected to obtain a final detection result.
The invention has the beneficial effects that: according to the technical scheme, effective detection of a plurality of vanishing points in the image can be realized, so that not only a single target can be detected, but also a plurality of targets to be detected under a complex intersection can be detected. On the basis of the primary detection of the region of interest, multiple priori constraint knowledge information is introduced to realize the target detection from coarse to fine.
On the basis of the technical scheme, the invention can be further improved as follows.
Preferably, the S2 specifically includes:
and carrying out line feature detection on the road image by a Hough transform method to obtain line features.
The beneficial effects of the above technical scheme are: the straight line or line segment can be detected from the black and white image by the Hough transform method, the straight line features with certain interruption length can be connected by the Hough transform method, the data loss and missing detection caused by the shielding of the target part under the condition of road fouling are reduced, the line features of the target to be detected can be effectively captured, and information is provided for subsequent detection and identification.
Preferably, the S3 specifically includes:
constructing a Gaussian hemisphere by taking the center of an optical axis of the vehicle-mounted camera as a sphere center;
taking the Gaussian hemisphere as an accumulation space, projecting the road image to the accumulation space, and acquiring parallel lines in the road image, wherein one line in the road image corresponds to a circle on the Gaussian hemisphere, and a vanishing point in the road image corresponds to an intersection point where a plurality of circles on the Gaussian hemisphere intersect;
and acquiring the position information of the vanishing points corresponding to the parallel lines according to the voting strategy of the accumulation space.
Preferably, the S6 specifically includes:
when the number of the line segments in the line segment information and the length of the line segments are confirmed to be within the corresponding empirical threshold, determining the line segments corresponding to the line segment information as the target to be detected, and determining the area corresponding to the line segments corresponding to the line segment information as the region of interest,
and when the number of the line segments or the length of the line segments in the line segment information is determined not to be within the corresponding empirical threshold, determining that the line segments corresponding to the line segment information are not the target to be detected, determining that the area corresponding to the line segments corresponding to the line segment information is the non-interesting area, and removing the non-interesting area to obtain a candidate interesting area.
Preferably, the S7 specifically includes:
and when the line segment in the candidate interesting region is confirmed to be in accordance with the intersection ratio invariance restrained in the vanishing point corresponding to the line segment, the brightness information of the candidate interesting region is in the confidence interval of the brightness information, and the area aspect ratio of the candidate interesting region is in the confidence interval of the area aspect ratio, determining the candidate interesting region as the interesting region, and obtaining the final detection result.
Preferably, the S7 specifically obtains the confidence interval of the brightness information and the confidence interval of the area aspect ratio by a positive and negative sample statistics method.
A zebra crossing detection system to assist in safe driving of a vehicle, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for shooting a target scene through a vehicle-mounted camera and acquiring a road image in the target scene, the road image comprises an interested area containing a target to be detected and a non-interested area not containing the target to be detected, and the target to be detected is a zebra crossing;
the primary line detection module is used for carrying out primary line feature detection on the road image to obtain line features;
the second acquisition module is used for acquiring the position information of vanishing points in the road image according to the line characteristics;
the secondary line detection module is used for carrying out secondary line feature detection on the road image to obtain a straight line in the road image, and extracting line segments along the straight line direction according to a gray level change rule;
the marking module is used for carrying out black and white marking on the line segments in the road image according to the visual characteristics of the target to be detected and acquiring line segment information;
the primary screening module is used for carrying out primary screening on the line segments in the road image according to the line segment information to obtain candidate interesting regions;
and the secondary screening module is used for carrying out secondary screening on the candidate interesting region according to the position information of the vanishing point, the cross ratio invariance of the target to be detected, and the brightness information and the region aspect ratio of the region corresponding to the target to be detected to obtain a final detection result.
Preferably, the primary line detection module is specifically configured to:
carrying out line feature detection on the road image by a Hough transform method to obtain line features;
the second obtaining module is specifically configured to:
constructing a Gaussian hemisphere by taking the center of an optical axis of the vehicle-mounted camera as a sphere center;
taking the Gaussian hemisphere as an accumulation space, projecting the road image to the accumulation space, and acquiring parallel lines in the road image, wherein one line in the road image corresponds to a circle on the Gaussian hemisphere, and a vanishing point in the road image corresponds to an intersection point where a plurality of circles on the Gaussian hemisphere intersect;
and acquiring the position information of the vanishing points corresponding to the parallel lines according to the voting strategy of the accumulation space.
Preferably, the primary screening module is specifically configured to:
when the number of the line segments in the line segment information and the length of the line segments are confirmed to be within the corresponding empirical threshold, determining the line segments corresponding to the line segment information as the target to be detected, and determining the area corresponding to the line segments corresponding to the line segment information as the region of interest,
and when the number of the line segments or the length of the line segments in the line segment information is determined not to be within the corresponding empirical threshold, determining that the line segments corresponding to the line segment information are not the target to be detected, determining that the area corresponding to the line segments corresponding to the line segment information is the non-interesting area, and removing the non-interesting area to obtain a candidate interesting area.
Preferably, the secondary screening module is specifically configured to:
when the line segment in the candidate interesting region is confirmed to be in accordance with the intersection ratio invariance restrained in the vanishing point corresponding to the line segment, the brightness information of the candidate interesting region is in the confidence interval of the brightness information, and the area aspect ratio of the candidate interesting region is in the confidence interval of the area aspect ratio, the candidate interesting region is determined to be the interesting region, and the final detection result is obtained; and also used for
And acquiring a confidence interval of the brightness information and a confidence interval of the area aspect ratio by a positive and negative sample statistical method.
Drawings
Fig. 1 is a flowchart of a zebra crossing detection method for assisting safe driving of a vehicle according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a Gaussian hemisphere provided in accordance with another embodiment of the present invention;
FIG. 3 is a schematic diagram of cross-ratio constraints in an image plane according to another embodiment of the present invention;
fig. 4 is a structural diagram of a zebra crossing detection system for assisting safe driving of a vehicle according to another embodiment of the present invention.
Detailed Description
The principles and features of this invention are described below in conjunction with the following drawings, which are set forth by way of illustration only and are not intended to limit the scope of the invention.
As shown in fig. 1, a zebra crossing detection method for assisting safe driving of a vehicle includes:
s1, shooting a target scene through a vehicle-mounted camera, and acquiring a road image in the target scene, wherein the road image comprises an interested area containing a target to be detected and a non-interested area not containing the target to be detected, and the target to be detected is a zebra crossing;
s2, carrying out primary line feature detection on the road image to obtain line features;
s3, acquiring the position information of vanishing points in the road image according to the line characteristics;
s4, carrying out secondary line feature detection on the road image to obtain a straight line in the road image, and extracting line segments along the straight line direction according to the gray scale change rule;
s5, marking the line segments in the road image in a black and white mode according to the visual characteristics of the target to be detected, and acquiring line segment information;
s6, screening the line segments in the road image for the first time according to the line segment information to obtain candidate interesting regions;
and S7, carrying out secondary screening on the candidate interesting region according to the position information of the vanishing point, the cross ratio invariance of the target to be detected, the brightness information of the region corresponding to the target to be detected and the region aspect ratio to obtain a final detection result.
The effective detection of a plurality of vanishing points in the image can be realized, so that not only a single target can be detected, but also a plurality of targets to be detected under a complex intersection can be detected. On the basis of the primary detection of the region of interest, multiple priori constraint knowledge information is introduced to realize the target detection from coarse to fine.
Preferably, S2 specifically includes:
and carrying out line feature detection on the road image by a Hough transform method to obtain line features.
The straight line or line segment can be detected from the black and white image by the Hough transform method, the straight line features with certain interruption length can be connected by the Hough transform method, the data loss and missing detection conditions caused by the shielding of the target part under the condition of road fouling are reduced, the line features of the target to be detected can be effectively captured, and information is provided for subsequent detection and identification.
Preferably, S3 specifically includes:
constructing a Gaussian hemisphere by taking the center of an optical axis of the vehicle-mounted camera as a sphere center;
taking a Gaussian hemisphere as an accumulation space, projecting a road image to the accumulation space, and obtaining parallel lines in the road image, wherein one line in the road image corresponds to a circle on the Gaussian hemisphere, and a vanishing point in the road image corresponds to an intersection point of intersection of a plurality of circles on the Gaussian hemisphere;
and acquiring the position information of vanishing points corresponding to the parallel lines according to a voting strategy of the accumulation space.
Preferably, S6 specifically includes:
when the number of the line segments in the line segment information and the length of the line segments are confirmed to be within the corresponding empirical threshold, the line segments corresponding to the line segment information are determined to be the target to be detected, the areas corresponding to the line segments corresponding to the line segment information are the interested areas,
and when the number of the line segments or the length of the line segments in the line segment information is determined not to be within the corresponding empirical threshold, determining that the line segments corresponding to the line segment information are not the target to be detected, determining that the areas corresponding to the line segments corresponding to the line segment information are non-interesting areas, and removing the non-interesting areas to obtain candidate interesting areas.
Preferably, S7 specifically includes:
and when the line segment in the candidate interesting region is confirmed to be in accordance with the intersection ratio invariance restrained in the vanishing point corresponding to the line segment, the brightness information of the candidate interesting region is in the confidence interval of the brightness information, and the area aspect ratio of the candidate interesting region is in the confidence interval of the area aspect ratio, determining the candidate interesting region as the interesting region, and obtaining the final detection result.
Preferably, the confidence interval of the brightness information and the confidence interval of the area aspect ratio are obtained by a reasonably effective positive and negative sample statistics method.
1. Extraction vanishing point
A set of mutually parallel straight lines in the scene are projected into the photograph either intersecting at a point or continuing to be mutually parallel. The point where a set of parallel lines in a three-dimensional scene intersect in two-dimensional space is called vanishing point. In the case of continuing parallelism in a two-dimensional scene, the vanishing point is considered to be at infinity, such vanishing points being referred to as infinite vanishing points. The zebra stripes are parallel in a three-dimensional scene, but intersect at vanishing points in a two-dimensional image, and the detection of the zebra stripes is mainly used for accurately detecting the vanishing points in the scene.
In order to avoid missing the target, the initial line detection method requires comprehensive detection of parallel lines, which requires different situations to be considered in the vanishing point detection process, so that the detection results under different imaging conditions provide necessary support information for target detection as much as possible. Based on the traditional Hough transform, straight lines belonging to the same vanishing point are firstly classified into the same class, and the process is an accumulation process and is used for searching main straight line classes. The accumulation process is to reduce the computational complexity of the clustering process, and project the unconstrained two-dimensional image into a constrained space, so that the processing has the advantage of processing vanishing points at infinity and vanishing points at a finite distance in the same way. With gaussian hemisphere as accumulation space. Wherein, the optical axis center of the camera is taken as the spherical center of the Gaussian hemisphere. As shown in fig. 2, a circle on the gaussian hemisphere represents a line in the image, and a point on the gaussian hemisphere corresponds to a vanishing point in the image. For the accumulation of lines, a gaussian hemisphere is embedded in the counting cell, and corresponding to the increase of lines, the circles on the hemisphere are increased.
Assume N is a set of detected line segments that converge in a sum vanishing point direction oneSo that
Figure BDA0001530158230000081
The corresponding straight lines in the three-dimensional space are respectively l1,l2,…,lN. Meanwhile, the coordinate systems of the three-dimensional space and the camera are respectively (O, X, Y, Z) and (F, X, Y, Z), theta and phi are respectively included angles formed by the line segments and the coordinate axis under the camera coordinate system, and at least k of the N straight lines are arranged at the jth vanishing point Vj(j is more than or equal to 0). For a given
Figure BDA0001530158230000082
Vector terms, all eligible vectors
Figure BDA0001530158230000083
Satisfies the condition gaussian hemisphere Γ: cos (theta)iu)sinφisinφu+cosφicosφu=0,θu∈[0,2π),φuE [0, pi/2), i and u are positive integers. Each cross line in the image plane corresponds to a circle of the gaussian hemisphere, indicating that there is a vanishing point, and in this way, it is possible to avoid the situation of excessive vanishing points.
Let the k-th vanishing point possibly be in the direction
Figure BDA0001530158230000091
In the above, the voting strategy in the accumulation space can obtain the real vanishing point position in the actual image space. In an actual dynamic traffic scene, objects to be detected can appear in the vehicle advancing direction and the vertical direction of the vehicle at a complex intersection. During the detection process, we prefer to select the parallel lines consistent with the scene motion direction as the main direction, and the parallel line group in the vertical direction as the other direction for finding vanishing points in the image plane. In the vanishing point detection process, based on the characteristics of the zebra crossing, a simple regular equal interval search method is adopted for the quantization and accumulation method of the Hough space, so that redundant vanishing points are avoided, and the execution efficiency of the algorithm is improved.
2. Extracting line features
For the image containing the zebra crossing target to be detected, the target is easily limited by vehicles, pedestrians and imaging conditions, so that the traditional Hough transform line detection effect is not ideal, a plurality of straight lines are easy to miss detection, or a plurality of false straight line information is generated, which is not beneficial to actual scene target detection. In the Hough transform method, based on a new voting method, linear features with certain interruption length are connected, data loss and missing detection caused by shielding of a target part under the condition of road fouling are reduced, the line features of the zebra crossing can be effectively captured, and information is provided for subsequent detection and identification. Because the zebra stripes are located underground and the camera is located at the front windshield, the target to be detected is located at the lower half part of the image, and in order to reduce the unnecessary search and the storage space requirement of the algorithm and improve the execution efficiency of the algorithm, only the line detection processing is considered to be carried out in the target area of the image. On the basis of on-line detection, based on the rule of gray scale change of adjacent straight lines, the line segment of the straight line with severe gray scale change in the straight line direction is taken, the black color is marked on the part from black to white, and the white color is marked on the part from white to black, so that the segmentation result is obtained.
3. Cross ratio invariance constraint
The cross ratio invariance constraint is a basic invariant related to mapping transformation, and essential features in an image can be revealed by utilizing the calculation of the cross ratio invariance, and the cross ratio invariance constraint is also a hot spot of computer vision research. In image space P2Given different four points P on a straight line1,P2,P3,P4Two arbitrary points PiAnd PjExpressed as Δ P, the euclidean distance between themiPjThen, as shown in fig. 3, the cross-ratio invariance constrained at vanishing point O can be expressed as:
Figure BDA0001530158230000101
corresponding four points P1',P2',P3',P4' will also retain the property of cross-ratio invariance. In the algorithm of zebra crossing detection, the cross ratio of parallel line groups is emphasizedAnd (4) invariance constraint to obtain a line segment meeting the condition, and positioning a region of interest (a region formed by zebra stripes) containing the target to be detected (the zebra stripes) in the image. Due to the characteristics of the zebra crossing, whether different straight line groups meet the knowledge information can be checked based on the dynamic cross ratio invariance constraint condition, and the occurrence of false detection or false alarm is reduced as much as possible. In the primary screening process, the number of the preset parallel lines is 6, so that the numerical value is reasonable and accords with the actual situation, and meanwhile, in the vehicle-mounted environment, whether zebra stripes appear or not can be determined to a great extent by the alternate appearance mode of three black and white areas, so that the false alarm rate is reduced, and the practical application is facilitated.
4. Luminance information constraint
The zebra crossing to be detected in the image keeps the stability of the form to a certain extent due to the mode information, and the brightness information characteristic of the zebra crossing alternately appearing in black and white can provide powerful information support for further confirmation of the region of interest.
CI road image from RGB spaceRGB(x, y) conversion to LST space ILSTThe transformation formula for (x, y) is as follows:
Figure BDA0001530158230000102
wherein, IR(x,y),IG(x,y),IB(x, y) represent spatial information of red, green, and blue parts, respectively, IL(x,y),IS(x,y),IT(x, y) represent spatial information of L, S and T, respectively, l (luminance channel) is a luminance channel, S and T are chrominance channels, α ═ 255/max { I {R(x,y),IG(x,y),IB(x, y) }, information of the S part and the T part in the LST space does not change along with the change of the brightness information, and the information of the S part can correctly reflect the information of illumination change. In the zebra crossing detection, the change of the brightness information is one of the very important characteristics of the target, and the adoption of the strategy is beneficial to removing the false and true, reducing the false alarm rate of the detection algorithm and improving the accuracy.
The detected candidate regions of interest are first represented in the LST space while the average value within the region is calculated. The area is represented by F (x, y), the width × height represents the size of the area, and F (x, y) represents the grayscale value of the pixel (x, y). Assuming that an interested region in a road image contains n × p pixel points, i, j, n and p are positive integers, the information of a mean value m and a variance d in the interested region can be obtained by calculation with a method of the following formula:
Figure BDA0001530158230000111
the analysis of the target mode to be detected can be known, the standard deviation can be used for noise evaluation in the region of interest, the mean value represents the average brightness information in the region of interest, the confidence interval of the brightness information is obtained by adopting a sample statistics-based method, for the detection result obtained in the rough extraction stage, positive and negative samples are randomly selected and are respectively 500 used for statistical analysis, and the finally determined confidence interval of the brightness information in the region of interest is [80,160 ]. The area below 80 is most likely the road surface, while the area above 160 is background information that appears randomly within the number of buildings, numbers or images.
5. Aspect ratio constraint
The randomness of the scene image information leads to the complexity of the candidate regions, so that a high false alarm rate often occurs in the detection algorithm. Due to the collective characteristic of the zebra crossing, the whole area of the zebra crossing is a rectangle with a certain range of aspect ratio in the camera image, and the zebra crossing also meets the characteristic even when the zebra crossing is imaged at a long distance or at different angles. Therefore, the aspect ratio constraint of the candidate interesting region is taken as a piece of constraint information to be used for filtering out the information from adjacent vehicles, pedestrians, trees or other regions which do not contain the target to be detected, and the accuracy of the detection result is improved as much as possible under the condition of ensuring the recall rate.
And similarly, obtaining a confidence interval of the aspect ratio of a region to be detected (a candidate interesting region) by adopting a statistical analysis method, randomly selecting 300 positive samples and negative samples as statistical objects in the candidate region with the detection result, wherein the statistical result shows that the effective aspect ratio confidence interval is [1,8.65 ]. When the aspect ratio is greater than or equal to less than 1 or greater than 8.65, the candidate region is a detection result of a randomly occurring adjacent interferent, and may be filtered out to retain the candidate region including the target.
Compared with the prior art, the method has the advantages that: (1) the zebra crossing can be effectively detected under different weather conditions on different roads; (2) when the vehicle travels about 30 meters, the zebra crossing can be effectively and accurately detected by the image captured by the vehicle-mounted camera; (3) when more than one zebra crossing target appears in the image, the target can be effectively detected.
As shown in fig. 4, a zebra crossing detection system for assisting safe driving of a vehicle includes:
the system comprises a first acquisition module 1, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for shooting a target scene through a vehicle-mounted camera and acquiring a road image in the target scene, the road image comprises an interested area containing a target to be detected and a non-interested area not containing the target to be detected, and the target to be detected is a zebra crossing;
the primary line detection module 2 is used for carrying out primary line feature detection on the road image to obtain line features;
the second acquisition module 3 is used for acquiring the position information of vanishing points in the road image according to the line characteristics;
the secondary line detection module 4 is used for performing secondary line feature detection on the road image to obtain a straight line in the road image, and extracting line segments along the straight line direction according to a gray level change rule;
the marking module 5 is used for carrying out black and white marking on line segments in the road image according to the visual characteristics of the target to be detected and acquiring line segment information;
the primary screening module 6 is used for carrying out primary screening on the line segments in the road image according to the line segment information to obtain candidate interesting regions;
and the secondary screening module 7 is used for carrying out secondary screening on the candidate interesting region according to the position information of the vanishing point, the cross ratio invariance of the target to be detected, the brightness information of the region corresponding to the target to be detected and the region aspect ratio to obtain a final detection result.
Preferably, the primary line detection module 2 is specifically configured to:
carrying out line feature detection on the road image by a Hough transform method to obtain line features;
the second obtaining module 3 is specifically configured to:
constructing a Gaussian hemisphere by taking the center of an optical axis of the vehicle-mounted camera as a sphere center;
taking a Gaussian hemisphere as an accumulation space, projecting a road image to the accumulation space, and obtaining parallel lines in the road image, wherein one line in the road image corresponds to a circle on the Gaussian hemisphere, and a vanishing point in the road image corresponds to an intersection point of intersection of a plurality of circles on the Gaussian hemisphere;
and acquiring the position information of vanishing points corresponding to the parallel lines according to a voting strategy of the accumulation space.
Preferably, the primary screening module 6 is specifically configured to:
when the number of the line segments in the line segment information and the length of the line segments are confirmed to be within the corresponding empirical threshold, the line segments corresponding to the line segment information are determined to be the target to be detected, the areas corresponding to the line segments corresponding to the line segment information are the interested areas,
and when the number of the line segments or the length of the line segments in the line segment information is determined not to be within the corresponding empirical threshold, determining that the line segments corresponding to the line segment information are not the target to be detected, determining that the areas corresponding to the line segments corresponding to the line segment information are non-interesting areas, and removing the non-interesting areas to obtain candidate interesting areas.
Preferably, the secondary screening module 7 is specifically configured to:
when the line segment in the candidate interesting region is confirmed to be in accordance with the intersection ratio invariance restrained in the vanishing point corresponding to the line segment, the brightness information of the candidate interesting region is in the confidence interval of the brightness information, and the area aspect ratio of the candidate interesting region is in the confidence interval of the area aspect ratio, the candidate interesting region is determined to be the interesting region, and the final detection result is obtained; and also used for
And obtaining a confidence interval of the brightness information and a confidence interval of the area aspect ratio by a positive and negative sample statistical method.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (9)

1.一种辅助车辆安全驾驶的斑马线检测方法,其特征在于,包括:1. a zebra crossing detection method for assisting vehicle safe driving, is characterized in that, comprises: S1、通过车载摄像机对目标场景进行拍摄,获取所述目标场景中的道路图像,所述道路图像中包括包含待检测目标的感兴趣区域和不包含待检测目标的非感兴趣区域,所述待检测目标为斑马线;S1. The target scene is photographed by a vehicle-mounted camera, and a road image in the target scene is obtained, where the road image includes an area of interest that includes the target to be detected and a non-interest area that does not include the target to be detected. The detection target is zebra crossing; S2、对所述道路图像进行一次线特征检测,得到线特征;S2, performing a line feature detection on the road image to obtain line features; S3、根据所述线特征获取所述道路图像中灭点的位置信息;S3, obtaining the position information of the vanishing point in the road image according to the line feature; S4、对所述道路图像进行二次线特征检测,得到所述道路图像中的直线,根据灰度变化规律沿所述直线方向提取线段;S4, performing secondary line feature detection on the road image to obtain a straight line in the road image, and extracting line segments along the straight line direction according to the grayscale variation law; S5、根据所述待检测目标的视觉特性,对所述道路图像中的线段进行黑白标记,并获取线段信息;S5. According to the visual characteristics of the target to be detected, black and white marking is performed on the line segments in the road image, and line segment information is obtained; S6、根据所述线段信息对所述道路图像中的线段进行一次筛选,得到候选感兴趣区域;S6. Screen the line segments in the road image once according to the line segment information to obtain a candidate region of interest; S7、根据所述灭点的位置信息、所述待检测目标的交比不变性,以及所述待检测目标对应区域的亮度信息和区域纵横比对所述候选感兴趣区域进行二次筛选,得到最终检测结果;S7. Perform secondary screening on the candidate region of interest according to the position information of the vanishing point, the invariance of the cross ratio of the target to be detected, and the brightness information and the regional aspect ratio of the corresponding region of the target to be detected, to obtain final test result; 所述S3具体包括:The S3 specifically includes: 以所述车载摄像机的光轴中心为球心构建高斯半球;Constructing a Gaussian hemisphere with the center of the optical axis of the vehicle-mounted camera as the center of the sphere; 以所述高斯半球为累积空间,将所述道路图像投影到所述累积空间,获取所述道路图像中的平行线,其中,所述道路图像中的一条线对应所述高斯半球上的一个圆,所述道路图像中的一个灭点对应所述高斯半球上多个圆相交的一个交点;Using the Gaussian hemisphere as the accumulation space, project the road image into the accumulation space, and obtain parallel lines in the road image, wherein a line in the road image corresponds to a circle on the Gaussian hemisphere , a vanishing point in the road image corresponds to an intersection of a plurality of circles on the Gaussian hemisphere; 根据所述累积空间的投票策略获取所述平行线对应的灭点的位置信息。The position information of the vanishing point corresponding to the parallel line is obtained according to the voting strategy of the cumulative space. 2.根据权利要求1所述的一种辅助车辆安全驾驶的斑马线检测方法,其特征在于,所述S2具体包括:2. The zebra crossing detection method for assisting safe driving of a vehicle according to claim 1, wherein the S2 specifically comprises: 通过霍夫变换方法对所述道路图像进行线特征检测,得到线特征。Line feature detection is performed on the road image through the Hough transform method to obtain line features. 3.根据权利要求1或2所述的一种辅助车辆安全驾驶的斑马线检测方法,其特征在于,所述S6具体包括:3. a kind of zebra crossing detection method for assisting vehicle safe driving according to claim 1 or 2, is characterized in that, described S6 specifically comprises: 当确认所述线段信息中的线段数量和线段长度均在对应的经验阈值内时,确定所述线段信息对应的线段为所述待检测目标,所述线段信息对应的线段对应的区域为所述感兴趣区域,When it is confirmed that the number of line segments and the length of the line segments in the line segment information are both within the corresponding empirical thresholds, it is determined that the line segment corresponding to the line segment information is the target to be detected, and the area corresponding to the line segment corresponding to the line segment information is the area of interest, 当确认所述线段信息中的线段数量或线段长度不在对应的经验阈值内时,确定所述线段信息对应的线段不为所述待检测目标,确定所述线段信息对应的线段对应的区域为所述非感兴趣区域,去除所述非感兴趣区域,得到候选感兴趣区域。When it is confirmed that the number of line segments or the length of the line segment in the line segment information is not within the corresponding empirical threshold, it is determined that the line segment corresponding to the line segment information is not the target to be detected, and the area corresponding to the line segment corresponding to the line segment information is determined to be the The region of interest is removed, and the region of interest is removed to obtain a candidate region of interest. 4.根据权利要求1或2所述的一种辅助车辆安全驾驶的斑马线检测方法,其特征在于,所述S7具体包括:4. a kind of zebra crossing detection method for assisting vehicle safe driving according to claim 1 or 2, is characterized in that, described S7 specifically comprises: 当确认所述候选感兴趣区域中的线段符合约束在该线段对应灭点的交比不变性,且所述候选感兴趣区域的亮度信息在亮度信息的置信区间内,且所述候选感兴趣区域的区域纵横比在区域纵横比的置信区间内时,确定所述候选感兴趣区域为感兴趣区域,得到最终检测结果。When it is confirmed that the line segment in the candidate region of interest conforms to the invariance of the intersection ratio constrained to the vanishing point corresponding to the line segment, and the brightness information of the candidate region of interest is within the confidence interval of the brightness information, and the candidate region of interest When the region aspect ratio of , is within the confidence interval of the region aspect ratio, the candidate region of interest is determined to be the region of interest, and a final detection result is obtained. 5.根据权利要求4所述的一种辅助车辆安全驾驶的斑马线检测方法,其特征在于,所述S7具体通过正负样本统计的方法获取所述亮度信息的置信区间和所述区域纵横比的置信区间。5. The zebra crossing detection method for assisting safe driving of a vehicle according to claim 4, wherein the S7 specifically obtains the confidence interval of the brightness information and the area aspect ratio through a method of positive and negative sample statistics. confidence interval. 6.一种辅助车辆安全驾驶的斑马线检测系统,其特征在于,包括:6. A zebra crossing detection system for assisting safe driving of vehicles, comprising: 第一获取模块,用于通过车载摄像机对目标场景进行拍摄,获取所述目标场景中的道路图像,所述道路图像中包括包含待检测目标的感兴趣区域和不包含待检测目标的非感兴趣区域,所述待检测目标为斑马线;The first acquisition module is used for photographing the target scene through a vehicle-mounted camera, and acquiring a road image in the target scene, where the road image includes an area of interest that includes the target to be detected and a non-interesting area that does not include the target to be detected. area, the target to be detected is a zebra crossing; 一次线检测模块,用于对所述道路图像进行一次线特征检测,得到线特征;a primary line detection module for performing primary line feature detection on the road image to obtain line features; 第二获取模块,用于根据所述线特征获取所述道路图像中灭点的位置信息;a second obtaining module, configured to obtain the position information of the vanishing point in the road image according to the line feature; 二次线检测模块,用于对所述道路图像进行二次线特征检测,得到所述道路图像中的直线,根据灰度变化规律沿所述直线方向提取线段;a secondary line detection module, configured to perform secondary line feature detection on the road image, obtain a straight line in the road image, and extract line segments along the direction of the straight line according to the grayscale variation law; 标记模块,用于根据所述待检测目标的视觉特性,对所述道路图像中的线段进行黑白标记,并获取线段信息;a marking module, configured to mark the line segments in the road image in black and white according to the visual characteristics of the target to be detected, and obtain line segment information; 一次筛选模块,用于根据所述线段信息对所述道路图像中的线段进行一次筛选,得到候选感兴趣区域;A primary screening module, configured to perform primary screening on the line segments in the road image according to the line segment information to obtain candidate regions of interest; 二次筛选模块,用于根据所述灭点的位置信息、所述待检测目标的交比不变性,以及所述待检测目标对应区域的亮度信息和区域纵横比对所述候选感兴趣区域进行二次筛选,得到最终检测结果;The secondary screening module is used for performing the screening on the candidate region of interest according to the position information of the vanishing point, the invariance of the cross ratio of the target to be detected, and the brightness information and the area aspect ratio of the corresponding area of the target to be detected. Secondary screening to get the final test results; 所述第二获取模块具体用于:The second acquisition module is specifically used for: 以所述车载摄像机的光轴中心为球心构建高斯半球;Constructing a Gaussian hemisphere with the center of the optical axis of the vehicle-mounted camera as the center of the sphere; 以所述高斯半球为累积空间,将所述道路图像投影到所述累积空间,获取所述道路图像中的平行线,其中,所述道路图像中的一条线对应所述高斯半球上的一个圆,所述道路图像中的一个灭点对应所述高斯半球上多个圆相交的一个交点;Using the Gaussian hemisphere as the accumulation space, project the road image into the accumulation space, and obtain parallel lines in the road image, wherein a line in the road image corresponds to a circle on the Gaussian hemisphere , a vanishing point in the road image corresponds to an intersection of a plurality of circles on the Gaussian hemisphere; 根据所述累积空间的投票策略获取所述平行线对应的灭点的位置信息。The position information of the vanishing point corresponding to the parallel line is obtained according to the voting strategy of the cumulative space. 7.根据权利要求6所述的一种辅助车辆安全驾驶的斑马线检测系统,其特征在于,所述一次线检测模块具体用于:7. The zebra crossing detection system of claim 6, wherein the primary line detection module is specifically used for: 通过霍夫变换方法对所述道路图像进行线特征检测,得到线特征。Line feature detection is performed on the road image through the Hough transform method to obtain line features. 8.根据权利要求6或7所述的一种辅助车辆安全驾驶的斑马线检测系统,其特征在于,所述一次筛选模块具体用于:8. The zebra crossing detection system for assisting safe driving of a vehicle according to claim 6 or 7, wherein the primary screening module is specifically used for: 当确认所述线段信息中的线段数量和线段长度均在对应的经验阈值内时,确定所述线段信息对应的线段为所述待检测目标,所述线段信息对应的线段对应的区域为所述感兴趣区域,When it is confirmed that the number of line segments and the length of the line segments in the line segment information are both within the corresponding empirical thresholds, it is determined that the line segment corresponding to the line segment information is the target to be detected, and the area corresponding to the line segment corresponding to the line segment information is the area of interest, 当确认所述线段信息中的线段数量或线段长度不在对应的经验阈值内时,确定所述线段信息对应的线段不为所述待检测目标,确定所述线段信息对应的线段对应的区域为所述非感兴趣区域,去除所述非感兴趣区域,得到候选感兴趣区域。When it is confirmed that the number of line segments or the length of the line segment in the line segment information is not within the corresponding empirical threshold, it is determined that the line segment corresponding to the line segment information is not the target to be detected, and the area corresponding to the line segment corresponding to the line segment information is determined to be the The region of interest is removed, and the region of interest is removed to obtain a candidate region of interest. 9.根据权利要求6或7所述的一种辅助车辆安全驾驶的斑马线检测系统,其特征在于,所述二次筛选模块具体用于:9. The zebra crossing detection system for assisting safe driving of a vehicle according to claim 6 or 7, wherein the secondary screening module is specifically used for: 当确认所述候选感兴趣区域中的线段符合约束在该线段对应灭点的交比不变性,且所述候选感兴趣区域的亮度信息在亮度信息的置信区间内,且所述候选感兴趣区域的区域纵横比在区域纵横比的置信区间内时,确定所述候选感兴趣区域为感兴趣区域,得到最终检测结果;还用于When it is confirmed that the line segment in the candidate region of interest conforms to the invariance of the intersection ratio constrained to the vanishing point corresponding to the line segment, and the brightness information of the candidate region of interest is within the confidence interval of the brightness information, and the candidate region of interest When the regional aspect ratio of , is within the confidence interval of the regional aspect ratio, the candidate region of interest is determined to be the region of interest, and the final detection result is obtained; it is also used for 通过正负样本统计的方法获取所述亮度信息的置信区间和所述区域纵横比的置信区间。The confidence interval of the luminance information and the confidence interval of the area aspect ratio are obtained by the method of positive and negative sample statistics.
CN201711461054.8A 2017-12-28 2017-12-28 Zebra crossing detection method and system for assisting safe driving of vehicle Expired - Fee Related CN107918775B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711461054.8A CN107918775B (en) 2017-12-28 2017-12-28 Zebra crossing detection method and system for assisting safe driving of vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711461054.8A CN107918775B (en) 2017-12-28 2017-12-28 Zebra crossing detection method and system for assisting safe driving of vehicle

Publications (2)

Publication Number Publication Date
CN107918775A CN107918775A (en) 2018-04-17
CN107918775B true CN107918775B (en) 2020-04-17

Family

ID=61894348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711461054.8A Expired - Fee Related CN107918775B (en) 2017-12-28 2017-12-28 Zebra crossing detection method and system for assisting safe driving of vehicle

Country Status (1)

Country Link
CN (1) CN107918775B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109886120B (en) * 2019-01-22 2021-04-30 贵州民族大学 Zebra crossing detection method and system
CN111174796B (en) * 2019-12-31 2022-04-29 驭势科技(浙江)有限公司 Navigation method based on single vanishing point, electronic equipment and storage medium
CN112199999B (en) * 2020-09-09 2024-08-20 浙江大华技术股份有限公司 Road detection method, device, storage medium and electronic equipment
CN112215123B (en) * 2020-10-09 2022-10-25 腾讯科技(深圳)有限公司 Target detection method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2838051A2 (en) * 2013-08-12 2015-02-18 Ricoh Company, Ltd. Linear road marking detection method and linear road marking detection apparatus
CN105261020A (en) * 2015-10-16 2016-01-20 桂林电子科技大学 Method for detecting fast lane line
CN105718870A (en) * 2016-01-15 2016-06-29 武汉光庭科技有限公司 Road marking line extracting method based on forward camera head in automatic driving
CN106128115A (en) * 2016-08-01 2016-11-16 青岛理工大学 Fusion method for detecting road traffic information based on double cameras
CN106529493A (en) * 2016-11-22 2017-03-22 北京联合大学 Robust multi-lane line detection method based on perspective drawing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063711B (en) * 2014-06-23 2018-04-06 西北工业大学 A kind of corridor end point fast algorithm of detecting based on K means methods

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2838051A2 (en) * 2013-08-12 2015-02-18 Ricoh Company, Ltd. Linear road marking detection method and linear road marking detection apparatus
CN105261020A (en) * 2015-10-16 2016-01-20 桂林电子科技大学 Method for detecting fast lane line
CN105718870A (en) * 2016-01-15 2016-06-29 武汉光庭科技有限公司 Road marking line extracting method based on forward camera head in automatic driving
CN106128115A (en) * 2016-08-01 2016-11-16 青岛理工大学 Fusion method for detecting road traffic information based on double cameras
CN106529493A (en) * 2016-11-22 2017-03-22 北京联合大学 Robust multi-lane line detection method based on perspective drawing

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Zebra-crossing Detection Based on Geometric Feature and Vertical Vanishing Point;Md. Khaliluzzaman等;《2016 3rd International Conference on Electrical Engineering and Information Communication Technology (ICEEICT)》;20170309;1-6 *
Zebra-crossing detection for the partially sighted;Stephen Se;《IEEE Conference on Computer Vision and Pattern Recognition. CVPR 2000》;20020806;211-217 *
基于机器视觉的车道线及斑马线和道路标志的检测和识别技术的研究与实现;姜仁婉;《中国优秀硕士学位论文全文数据库 信息科技辑(月刊)》;20170315;第2017年卷(第3期);第1.1节,第2章引言,第4章引言,第4.1节,4.5节 *
斑马线自动识别与预警;徐超;《中国优秀硕士学位论文全文数据库 信息科技辑(月刊)》;20131015;第2013年卷(第10期);第2章第2.1节 *

Also Published As

Publication number Publication date
CN107918775A (en) 2018-04-17

Similar Documents

Publication Publication Date Title
CN110178167B (en) Video Recognition Method of Intersection Violation Based on Camera Cooperative Relay
CN106919915B (en) Map road marking and road quality acquisition device and method based on ADAS system
Siogkas et al. Traffic lights detection in adverse conditions using color, symmetry and spatiotemporal information
CN105702048B (en) Highway front truck illegal road occupation identifying system based on automobile data recorder and method
CN102915433B (en) Character combination-based license plate positioning and identifying method
CN107918775B (en) Zebra crossing detection method and system for assisting safe driving of vehicle
CN103824452A (en) Lightweight peccancy parking detection device based on full view vision
CN105488454A (en) Monocular vision based front vehicle detection and ranging method
JP2013529348A (en) Lighting invariant and robust apparatus and method for detecting and recognizing various traffic signs
Zhang et al. A multi-feature fusion based traffic light recognition algorithm for intelligent vehicles
CN110619279A (en) Road traffic sign instance segmentation method based on tracking
Li et al. Inverse perspective mapping based urban road markings detection
CN109635737A (en) Automobile navigation localization method is assisted based on pavement marker line visual identity
CN109147393A (en) Vehicle lane change detection method based on video analysis
CN105184301B (en) A kind of method that vehicle heading is differentiated using four-axle aircraft
CN113903008A (en) Ramp exit vehicle violation identification method based on deep learning and trajectory tracking
CN101369312B (en) Method and equipment for detecting intersection in image
Doval et al. Traffic sign detection and 3D localization via deep convolutional neural networks and stereo vision
CN116682268A (en) Portable urban road vehicle violation inspection system and method based on machine vision
Keerimolel et al. A survey on traffic sign recognition and detection
Coronado et al. Detection and classification of road signs for automatic inventory systems using computer vision
Xuan et al. Robust lane-mark extraction for autonomous driving under complex real conditions
TWI743637B (en) Traffic light recognition system and method thereof
CN112183427A (en) A fast method for extracting candidate image regions of arrow-shaped traffic lights
CN109522851B (en) Vehicle speed and license plate recognition method based on non-visible light imaging

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200417

CF01 Termination of patent right due to non-payment of annual fee