CN111598885B - Automatic visibility grade marking method for highway foggy pictures - Google Patents

Automatic visibility grade marking method for highway foggy pictures Download PDF

Info

Publication number
CN111598885B
CN111598885B CN202010437766.1A CN202010437766A CN111598885B CN 111598885 B CN111598885 B CN 111598885B CN 202010437766 A CN202010437766 A CN 202010437766A CN 111598885 B CN111598885 B CN 111598885B
Authority
CN
China
Prior art keywords
visibility
foggy
fog
pictures
detection algorithms
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010437766.1A
Other languages
Chinese (zh)
Other versions
CN111598885A (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.)
Traffic Management Research Institute of Ministry of Public Security
Original Assignee
Traffic Management Research Institute of Ministry of Public Security
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 Traffic Management Research Institute of Ministry of Public Security filed Critical Traffic Management Research Institute of Ministry of Public Security
Priority to CN202010437766.1A priority Critical patent/CN111598885B/en
Publication of CN111598885A publication Critical patent/CN111598885A/en
Application granted granted Critical
Publication of CN111598885B publication Critical patent/CN111598885B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30204Marker
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30204Marker
    • G06T2207/30208Marker matrix

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

The invention provides an automatic marking method for the visibility grade of a highway foggy picture, which comprises the following steps: step S1, testing a plurality of known foggy detection algorithms by using the labeled foggy picture test sample set to obtain an identification accuracy matrix A of the plurality of known foggy detection algorithms; step S2, identifying the to-be-labeled group fog pictures by utilizing the plurality of known group fog detection algorithms to obtain a corresponding identification result matrix P; step S3, obtaining a voting result matrix F by using the formula F = a × P; step S4, calculating a maximum vote value in the voting result matrix; step S5, automatically labeling the visibility grade corresponding to the maximum voting value with a group fog picture to be labeled; and S6, repeating the steps S2-S5, and automatically marking the visibility levels of all the group fog pictures to be marked in the group fog pictures to be marked. The invention avoids the problem of inconsistent labeling results caused by manual labeling, and has higher labeling efficiency.

Description

Automatic visibility grade marking method for highway foggy pictures
Technical Field
The invention belongs to the technical field of image recognition, and particularly relates to an automatic highway foggy picture visibility grade marking method.
Background
The field of deep learning is rapidly developed recently, and particularly, the application of the deep learning technology to image recognition is mature, and the group fog recognition based on the monitoring image of the expressway also starts to apply the deep learning technology. The key point of the deep learning technology lies in the collection and labeling of a large number of training sample pictures, the difficulty of highway group fog identification lies in the labeling of the visibility grade of the sample pictures, and the visibility value of the visibility detector is difficult to match with the monitoring image due to the following reasons:
1. visibility detector deployment density is lower
On average, the visibility detectors on the highway are about 10 kilometers 1 set, the number of intact equipment is less, and the monitoring cameras on the highway are 1 kilometer 1 set on average.
2. The visibility detector and the monitoring camera are not deployed at the same point and have a considerable distance
3. Problem of roadside occlusion
Visibility detector generally installs the highway roadside, and the mounting height is only about 1.5 meters, is difficult to avoid being sheltered from by trees, sign sighting rod etc. of roadside, influences the accuracy of visibility.
4. Distinction between point monitoring and area monitoring
The visibility detector is used for point monitoring, the obtained visibility value only represents one point, and the monitoring image is used for surface monitoring and represents the visibility condition of the whole road section within an effective monitoring distance (such as 100 meters). The cluster fog is affected by the microclimate environment of local areas, and in the local range of tens to hundreds of meters in the big fog, the fog with higher concentration and lower visibility appears. Due to the regional nature of the cloud, it is likely that the visibility detector area is not covered.
Therefore, the labeling of the visibility grade of the foggy sample picture cannot only depend on the visibility value obtained by the visibility detector, and other labeling methods are necessary.
In the aspect of visual application, deep learning mainly comprises three types of target classification, target detection and semantic segmentation, and in the aspect of group fog recognition, only the target classification is applicable, and continuous visibility values cannot be obtained.
Referring to the standards of the police and meteorological departments, the images of the cloud can be classified into six levels:
(1) visibility level one
Representing visibility below 50 meters.
(2) Visibility second level
Representing a visibility of 50 to 100 meters.
(3) Visibility is tertiary
Representing a visibility of 100 to 200 meters.
(4) Visibility four-level
Representing a visibility of 200 to 500 meters.
(5) Visibility five-level
Representing a visibility of 500 to 1000 meters.
(6) Fog-free
Visibility above 1000 meters is considered fog-free.
The police and the traffic department mainly perform corresponding road management and control according to the risk level of the group fog, and the group fog visibility level is distinguished by adopting a deep learning algorithm, so that the service requirement can be met.
However, the visibility level detection algorithm based on deep learning needs a large number of labeled sample pictures, the manual labeling is high in labor cost, the judgment of the labeling personnel on the visibility is very subjective, and the condition that the labeling results are inconsistent can occur even if the same labeling personnel performs labeling twice. There is a need for an automated labeling method with high objectivity.
Disclosure of Invention
The invention aims to overcome the defects in the prior art, provides an automatic labeling method for the visibility grade of a highway group fog picture, avoids the problem of inconsistent labeling results caused by manual labeling, adopts a plurality of group fog detection algorithms to vote, selects the visibility grade with the most voted tickets as a labeling result, and realizes scientific automatic labeling. The technical scheme adopted by the invention is as follows:
a highway foggy image visibility grade automatic labeling method comprises the following steps:
step S1, testing a plurality of known foggy detection algorithms by using the labeled foggy picture test sample set to obtain an identification accuracy matrix A of the plurality of known foggy detection algorithms;
step S2, identifying the to-be-labeled group fog pictures by utilizing the plurality of known group fog detection algorithms to obtain a corresponding identification result matrix P;
step S3, obtaining a voting result matrix F according to the formula F ═ a × P;
step S4, calculating a maximum vote value in the voting result matrix;
step S5, automatically labeling the visibility grade corresponding to the maximum voting value with a group fog picture to be labeled;
and S6, repeating the steps S2-S5, and automatically marking the visibility levels of all the group fog pictures to be marked in the group fog pictures to be marked.
Further, in step S5, if there are a plurality of equal maximum vote values or the maximum vote values are smaller than the set threshold value, the labeling is discarded.
Further, step S1 specifically includes:
step S101, selecting a plurality of known cloud detection algorithms; selecting algorithms with different principles during selection;
step S102, preparing a marked group fog picture test sample set;
the cluster fog picture test samples in the cluster fog picture test sample set adopt cluster fog pictures which are verified with the visibility detector data;
and step S103, testing a plurality of known cluster fog detection algorithms by using the labeled cluster fog picture test sample set to obtain a corresponding accuracy matrix A.
Further, the visibility grade is divided into five grades;
(1) visibility first, representing visibility below 50 meters;
(2) visibility level two, representing visibility 50 to 100 meters;
(3) visibility three-level, representing visibility 100 to 200 meters;
(4) visibility four, representing visibility 200 to 500 meters;
(5) visibility grade five, representing visibility 500 to 1000 meters.
The invention has the advantages that:
1) compared with manual labeling, the labeling efficiency is greatly improved.
2) Compared with the uncertainty of manual labeling, the method provided by the invention identifies through each group fog detection algorithm, and can eliminate the uncertainty of labeling when the results tend to be consistent for many times.
3) The algorithm recognition accuracy is used as the voting weight for counting the votes, and both the objectivity and the accuracy are improved.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
The invention is further illustrated by the following specific figures and examples.
The embodiment of the invention provides an automatic marking method for the visibility grade of a highway foggy picture, which comprises the following steps:
step S1, testing a plurality of known foggy detection algorithms by using the labeled foggy picture test sample set to obtain an identification accuracy matrix A of the plurality of known foggy detection algorithms;
step S1 specifically includes:
step S101, selecting a plurality of known cloud detection algorithms;
the traditional foggy detection algorithm comprises a foggy identification algorithm based on contrast, a dark channel first-aid algorithm and the like, wherein an algorithm with higher accuracy rate is selected during selection, and simultaneously, the selected algorithms with different principles are balanced, so that the excessive algorithm occupation of a single principle is avoided;
step S102, preparing a marked group fog picture test sample set;
the cluster fog picture test samples in the cluster fog picture test sample set are the key for obtaining the identification accuracy of each algorithm, and preferably cluster fog pictures which are verified with the data of the visibility detector are adopted;
step S103, testing a plurality of known cluster fog detection algorithms by using the marked cluster fog picture test sample set to obtain a corresponding accuracy matrix A;
the important disadvantage of manual visibility marking of the highway foggy pictures is that objective standards are lacked, the visibility judgment of each person is very subjective, and the marking results of the same marking person for two times of marking the same picture are inconsistent; although the traditional foggy detection algorithm is adopted, the identification precision is required to be provided, if the identification results tend to be consistent for many times, the uncertainty of the labeling can be eliminated;
assuming that n algorithms are provided and 5 visibility levels are provided, the identification accuracy matrix A obtained by testing is as follows:
Figure BDA0002502928930000031
wherein, the ith group fog recognition algorithm is used for the jth group fogVisibility level identification accuracy AijNamely the voting weight of the ith cloud identification algorithm to the jth visibility level;
step S2, identifying the to-be-labeled group fog pictures by utilizing the plurality of known group fog detection algorithms to obtain a corresponding identification result matrix P;
in the step, firstly, preparing a group fog picture to be annotated to form a group fog picture set to be annotated; then, identifying the to-be-labeled group fog pictures by using the plurality of known group fog detection algorithms to obtain an identification result matrix P; for example:
Figure BDA0002502928930000041
step S3, obtaining a voting result matrix F by calculating according to the formula F ═ a × P; for example, the voting result matrix F is obtained as follows:
Figure BDA0002502928930000042
the vote value for the jth visibility level is:
Figure BDA0002502928930000043
step S4, calculating a maximum vote value in the voting result matrix; for example, in the voting result matrix, the maximum voting value is F2=0.65+0.56=1.21;
Step S5, automatically labeling the visibility grade corresponding to the maximum voting value with a group fog picture to be labeled;
in the step, if a plurality of conditions that the maximum voting value is equal to or smaller than a set threshold exist, giving up marking;
and S6, repeating the steps S2-S5, and automatically marking the visibility levels of all the group fog pictures to be marked in the group fog pictures to be marked.
The existing traditional visibility detection algorithm, namely the group fog detection algorithm, is mature, but the identification accuracy of visibility grades is not very high, and the visibility grade with the most votes is selected as a marking result by voting through a plurality of group fog detection algorithms, so that scientific automatic marking is realized.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention has been described in detail with reference to examples, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, which should be covered by the claims of the present invention.

Claims (2)

1. A highway foggy image visibility grade automatic labeling method comprises the following steps:
step S1, testing a plurality of known foggy detection algorithms by using the labeled foggy picture test sample set to obtain an identification accuracy matrix A of the plurality of known foggy detection algorithms;
step S2, identifying the to-be-labeled group fog pictures by utilizing the plurality of known group fog detection algorithms to obtain a corresponding identification result matrix P;
step S3, obtaining a voting result matrix F by using the formula F = a × P;
step S4, calculating a maximum vote value in the voting result matrix;
step S5, automatically labeling the visibility grade corresponding to the maximum voting value with a group fog picture to be labeled;
step S6, repeating the steps S2-S5, and automatically marking the visibility grade of all the group fog pictures to be marked in the group fog pictures to be marked;
in step S5, if there are a plurality of equal maximum vote values or the maximum vote values are smaller than the set threshold, discarding the labeling;
step S1 specifically includes:
step S101, selecting a plurality of known cloud detection algorithms; selecting algorithms with different principles during selection;
step S102, preparing a marked group fog picture test sample set;
the cluster fog picture test samples in the cluster fog picture test sample set adopt cluster fog pictures which are verified with the visibility detector data;
and step S103, testing a plurality of known cluster fog detection algorithms by using the labeled cluster fog picture test sample set to obtain a corresponding accuracy matrix A.
2. The automatic labeling method for the visibility grade of the highway foggy pictures as claimed in claim 1,
the visibility grade is divided into five grades;
(1) visibility first, representing visibility below 50 meters;
(2) visibility level two, representing visibility 50 to 100 meters;
(3) visibility three-level, representing visibility 100 to 200 meters;
(4) visibility four, representing visibility 200 to 500 meters;
(5) visibility grade five, representing visibility 500 to 1000 meters.
CN202010437766.1A 2020-05-21 2020-05-21 Automatic visibility grade marking method for highway foggy pictures Active CN111598885B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010437766.1A CN111598885B (en) 2020-05-21 2020-05-21 Automatic visibility grade marking method for highway foggy pictures

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010437766.1A CN111598885B (en) 2020-05-21 2020-05-21 Automatic visibility grade marking method for highway foggy pictures

Publications (2)

Publication Number Publication Date
CN111598885A CN111598885A (en) 2020-08-28
CN111598885B true CN111598885B (en) 2022-02-11

Family

ID=72187457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010437766.1A Active CN111598885B (en) 2020-05-21 2020-05-21 Automatic visibility grade marking method for highway foggy pictures

Country Status (1)

Country Link
CN (1) CN111598885B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112784880B (en) * 2021-01-04 2023-04-07 安徽大学 Method for marking visibility grade of expressway in foggy days based on natural feature statistical method
CN114627382B (en) * 2022-05-11 2022-07-22 南京信息工程大学 Expressway fog visibility detection method combined with geometric prior of lane lines

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160313349A1 (en) * 2013-12-16 2016-10-27 Paranta Biosciences Limited Method of diagnosis and treatment
CN104463196B (en) * 2014-11-11 2017-07-25 中国人民解放军理工大学 A kind of weather phenomenon recognition methods based on video
CN109165676A (en) * 2018-07-27 2019-01-08 北京以萨技术股份有限公司 A kind of round-the-clock highway fog grade monitoring method based on video analysis
CN109242038A (en) * 2018-09-25 2019-01-18 安徽果力智能科技有限公司 A kind of robot classification of landform device training method for label deficiency situation
CN111178405A (en) * 2019-12-18 2020-05-19 浙江工业大学 Similar object identification method fusing multiple neural networks

Also Published As

Publication number Publication date
CN111598885A (en) 2020-08-28

Similar Documents

Publication Publication Date Title
US20220196459A1 (en) Real-time vehicle overload detection method based on convolutional neural network
CN108765404A (en) A kind of road damage testing method and device based on deep learning image classification
CN111784657A (en) Digital image-based system and method for automatically identifying cement pavement diseases
CN104700099A (en) Method and device for recognizing traffic signs
CN109670404A (en) A kind of road ponding image detection method for early warning based on mixed model
CN111598885B (en) Automatic visibility grade marking method for highway foggy pictures
CN113327248B (en) Tunnel traffic flow statistical method based on video
CN115201218A (en) Vehicle-mounted pavement disease intelligent detection method and system
CN110674887A (en) End-to-end road congestion detection algorithm based on video classification
Li et al. Automated classification and detection of multiple pavement distress images based on deep learning
CN117474870B (en) Road pavement crack identification decision-making method and system based on big data screening
Kim et al. Framework for machine learning-based pavement marking inspection and Geohash-based monitoring
CN114494845A (en) Artificial intelligence hidden danger troubleshooting system and method for construction project site
CN116229396B (en) High-speed pavement disease identification and warning method
CN110765900B (en) Automatic detection illegal building method and system based on DSSD
CN113256978A (en) Method and system for diagnosing urban congestion area and storage medium
CN117037449A (en) Group fog monitoring method and system based on edge calculation
CN116363088A (en) Expressway concrete pavement crack detection method based on unmanned aerial vehicle, electronic equipment and storage medium
CN110163081A (en) SSD-based real-time regional intrusion detection method, system and storage medium
CN116434525A (en) Intelligent management early warning system for expressway
CN115170783A (en) Expressway pavement crack detection method using street view image
CN114743168A (en) Driving risk source identification and evaluation method and system based on deep learning
CN113284340A (en) Road traffic safety grading system
Manjusha et al. A review of advanced pavement distress evaluation techniques using unmanned aerial vehicles
CN116739357B (en) Multi-mode fusion perception city existing building wide area monitoring and early warning method and device

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