CN113988719A - Urban road sanitation quality evaluation method and device, storage medium and equipment - Google Patents

Urban road sanitation quality evaluation method and device, storage medium and equipment Download PDF

Info

Publication number
CN113988719A
CN113988719A CN202111607368.0A CN202111607368A CN113988719A CN 113988719 A CN113988719 A CN 113988719A CN 202111607368 A CN202111607368 A CN 202111607368A CN 113988719 A CN113988719 A CN 113988719A
Authority
CN
China
Prior art keywords
road
road section
sanitation
lane
urban
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.)
Granted
Application number
CN202111607368.0A
Other languages
Chinese (zh)
Other versions
CN113988719B (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.)
Nanchang Institute of Technology
Original Assignee
Nanchang Institute of Technology
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 Nanchang Institute of Technology filed Critical Nanchang Institute of Technology
Priority to CN202111607368.0A priority Critical patent/CN113988719B/en
Publication of CN113988719A publication Critical patent/CN113988719A/en
Application granted granted Critical
Publication of CN113988719B publication Critical patent/CN113988719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • G06Q10/06395Quality analysis or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume

Abstract

The invention provides an urban road sanitation quality evaluation method, device, storage medium and equipment, wherein the method comprises the following steps: acquiring a video stream of at least one section of an urban road; inputting the video stream into a pre-trained road recognition model to recognize and count the garbage and lane dotted lines, so as to obtain the quantity of each type of garbage and the quantity of the lane dotted lines on the road section; calculating the actual width of the road section according to the video stream, and calculating the road surface area of the road section according to the actual width of the road section and the number of the lane dotted lines; and calculating the sanitation index of the road section according to the quantity of each type of garbage on the road section and the road surface area of the road section so as to evaluate the sanitation quality of the road section. The invention provides a method capable of automatically evaluating the urban road sanitation quality based on an urban road video, and provides an objective, accurate and efficient method for evaluating civilized cities and the sanitation quality requirement.

Description

Urban road sanitation quality evaluation method and device, storage medium and equipment
Technical Field
The invention relates to the technical field of image recognition, in particular to a method, a device, a storage medium and equipment for evaluating urban road sanitation quality.
Background
The modern metropolis gradually develop towards intellectualization, while the environmental sanitation is very important for the development of the brightness of the city, and a feasible evaluation method can promote the improvement of the environmental sanitation degree of the city.
The traditional urban road sanitation quality evaluation method generally adopts manpower evaluation, is time-consuming and labor-consuming, and has the problems of large main influence on evaluation results, low accuracy, low timeliness and the like.
Disclosure of Invention
Based on this, the present invention provides a method, an apparatus, a storage medium and a device for evaluating the quality of urban road sanitation, so as to solve at least one technical problem in the background art.
The urban road sanitation quality evaluation method according to the embodiment of the invention comprises the following steps:
acquiring a video stream of at least one section of an urban road;
inputting the video stream into a pre-trained road recognition model to recognize and count the garbage and lane dotted lines, so as to obtain the quantity of each type of garbage and the quantity of the lane dotted lines on the road section;
calculating the actual width of the road section according to the video stream, and calculating the road surface area of the road section according to the actual width of the road section and the number of the lane dotted lines;
and calculating the sanitation index of the road section according to the quantity of each type of garbage on the road section and the road surface area of the road section so as to evaluate the sanitation quality of the road section.
In addition, the urban road sanitation quality evaluation method according to the embodiment of the invention may further have the following additional technical features:
further, the step of calculating the actual width of the road segment from the video stream includes:
segmenting a road region in each frame of image of the video stream;
acquiring the width of each lane dotted line and the corresponding road width at the position of the lane dotted line from the divided road area;
and calculating the actual width of the road section according to the width of each lane dotted line and the width of the road at each lane dotted line.
Further, the actual width of the road section satisfies the following conditional expression:
Figure 587469DEST_PATH_IMAGE001
wherein X represents the actual width of the road segment,irepresents the firstiThe broken line of the lane is a broken line,knumber of dashed lines of the lane, 1 i≤k DIs the actual width of the lane dotted line preset,d i represents the firstiThe width of the dotted line of the individual lanes,x i represents the firstiRoad width at the dashed line of the individual lanes.
Further, after the step of segmenting the road region in each frame of image of the video stream, the method further comprises:
judging whether the divided road area is in the central position of the corresponding image;
if not, screening out; if yes, reserving;
and the reserved divided road area executes the step of acquiring the width of each lane dotted line and the corresponding road width at the position of the lane dotted line from the divided road area.
Further, the step of calculating the road surface area of the road section according to the actual width of the road section and the number of the lane dotted lines includes:
calculating the actual length of the road section according to the number of the lane dotted lines;
calculating the road surface area of the road section according to the actual length and the actual width of the road section;
wherein the actual length of the road section satisfies the following conditional expression:
L=k*(L 1+L 2);
wherein L is the actual length of the road section,kthe number of dashed lines of the lane is,L 1is the actual length of the lane dotted line preset,L 2is the spacing distance of the preset lane dotted line.
Further, the step of calculating the sanitation index of the road section according to the quantity of each kind of garbage on the road section and the road surface area of the road section comprises the following steps:
calculating the density of each type of garbage according to the quantity of each type of garbage on the road section and the road surface area of the road section;
determining the corresponding cleaning grade of each kind of garbage according to the density of each kind of garbage, wherein the cleaning grade comprises primary cleaning, secondary cleaning, tertiary cleaning and quaternary cleaning;
calculating the sanitation index of the road section according to the number of the sanitation grades;
P=p 1*k 1 + p 2* k 2 + p 3* k 3 + p 4* k 4 ;
in the formula (I), the compound is shown in the specification,Prepresents a hygiene index for the road section in question,p 1- p 4respectively represent the number of primary cleaning, secondary cleaning, tertiary cleaning and quaternary cleaning,k 1- k 4is the corresponding weight coefficient.
Further, when acquiring video streams of multiple road segments of an urban road, after the step of evaluating the sanitation quality of the road segments according to the quantity of each type of garbage on the road segments and the road surface area of the road segments, the method further comprises the following steps:
and calculating the comprehensive sanitation index of the urban road according to the sanitation index of each road section so as to evaluate the sanitation quality of the urban road.
The urban road sanitation quality evaluation device according to the embodiment of the invention comprises:
the video acquisition module is used for acquiring a video stream of at least one road section of the urban road;
the video identification module is used for inputting the video stream into a pre-trained road identification model to identify and count the garbage and lane dotted lines so as to obtain the quantity of each type of garbage and the quantity of the lane dotted lines on the road section;
the area calculation module is used for calculating the actual width of the road section according to the video stream and calculating the road surface area of the road section according to the actual width of the road section and the number of the lane dotted lines;
and the quality evaluation module is used for calculating the sanitation index of the road section according to the quantity of each type of garbage on the road section and the road surface area of the road section so as to evaluate the sanitation quality of the road section.
The invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the urban road sanitation quality evaluation method.
The invention also provides urban road sanitation quality evaluation equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the urban road sanitation quality evaluation method.
Compared with the prior art: the method comprises the steps of training a road recognition model capable of recognizing and counting road garbage and lane dotted lines, extracting the quantity of each type of garbage and the quantity of the lane dotted lines on the urban road through the road recognition model, calculating the road surface area of the road based on road videos and the quantity of the lane dotted lines, and immediately calculating the sanitation index of the urban road according to the quantity of each type of garbage and the road surface area on the urban road so as to evaluate the sanitation quality of the road. Therefore, the invention provides a method for automatically evaluating the urban road sanitation quality based on the urban road video, and provides an objective, accurate and efficient method for evaluating civilized cities and the sanitation quality requirements.
Drawings
Fig. 1 is a flowchart of an urban road sanitation quality evaluation method in a first embodiment of the present invention;
FIG. 2 is a schematic road image provided by an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an urban road sanitation quality evaluation device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an urban road sanitation quality evaluation device in a fourth embodiment of the present invention.
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Several embodiments of the invention are presented in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like as used herein are for illustrative purposes only.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Example one
Referring to fig. 1, a method for evaluating urban road sanitation quality according to a first embodiment of the present invention is shown, and may be applied to an urban road sanitation quality evaluation device, where the urban road sanitation quality evaluation device may be implemented by software and/or hardware, and the method specifically includes steps S01-S04.
And step S01, acquiring a video stream of at least one section of the urban road.
In specific implementation, the video stream can be obtained by shooting through a camera, and the camera can be carried on a movable carrier such as a motor vehicle (such as a sanitation vehicle) and an unmanned aerial vehicle so as to obtain the video stream of at least one section of the urban road by moving and shooting along the urban road; or the camera may be a fixed camera fixed on the urban road, in this case, a plurality of fixed cameras may be arranged at equal intervals along the urban road, and the fixed camera at each position may capture a video stream of the road segment where the fixed camera is located.
And step S02, inputting the video stream into a pre-trained road recognition model for recognizing and counting the garbage and lane dotted lines to obtain the quantity of each type of garbage and the quantity of the lane dotted lines on the road section.
It should be noted that the data set needs to be prepared in advance before the road recognition model is trained. Firstly, a large number of urban road pictures or videos can be collected, then the garbage on each frame of urban road picture is manually marked and classified, the lane dotted lines on each frame of urban road picture are manually marked, and a data set for road recognition model training is formed after marking.
After the data set is prepared, a model algorithm of the road recognition model needs to be selected, in some preferred embodiments of the present embodiment, the road recognition model adopts YOLOv3-DeepSORT as the model algorithm, that is, the YOLOv3-DeepSORT algorithm is trained through the data set, so as to obtain the road recognition model.
When the video stream is input into the road identification model, the road identification model identifies each frame of picture of the video stream so as to identify the garbage and the type of the garbage on each frame of picture, count the quantity of the garbage of each type, identify and count the lane dotted lines on each frame of picture, and obtain the quantity of the garbage of each type and the quantity of the lane dotted lines on the road section corresponding to the video stream.
And step S03, calculating the actual width of the road section according to the video stream, and calculating the road surface area of the road section according to the actual width of the road section and the number of the lane dotted lines.
Specifically, in some preferred cases of this embodiment, the step of calculating the actual width of the road segment according to the video stream may specifically include:
segmenting a road region in each frame of image of the video stream through a polyYOLO semantic segmentation algorithm;
acquiring the width of each lane dotted line and the corresponding road width at the position of the lane dotted line from the divided road area;
calculating the actual width of the road section according to the width of each lane dotted line and the width of the road at each lane dotted line;
wherein the actual width of the road section satisfies the following conditional expression:
Figure 261027DEST_PATH_IMAGE001
wherein X represents the actual width of the road segment,irepresents the firstiThe broken line of the lane is a broken line,knumber of dashed lines of the lane, 1 i≤k DIs the actual width of the lane dotted line preset,d i represents the firstiThe width of the dotted line of the individual lanes,x i represents the firstiRoad width at the dashed line of the individual lanes.
By way of example and not limitation, in the scenario shown in fig. 2, a road region in a road image is first segmented by a polyyolo semantic segmentation algorithm, since a road recognition model has recognized a lane dotted line in a corresponding imageTherefore, the width of the dotted line of each lane can be obtained at this timed i And the width of the road at the dotted line of the lanex i The width of the lane dotted line is the width of the lane dotted line recognition frame, and the width of the road at the lane dotted line is the width of the road area at the corresponding lane dotted line;
because the relevant departments print the lane dotted lines on the urban roads with the unified standard, the actual width of the general lane dotted line isD=0.15m, actual length of dashed lane lineL 1=2m, distance between dashed lane linesL 2=4 m. Since the images generally have a certain zoom or stretch ratio, i.e. are not taken 1:1, the width of the dashed lane line on the figured i Not its actual width, the width of the road at the dashed line of the lanex i Nor the actual road width, so the embodiment first passesD/d i Calculating the scaling or stretching ratio of the image at the dotted line of each lane, and multiplying the scaling or stretching ratio by the width of the road at the corresponding positionx i And finally, summing and averaging the actual road widths at the dotted line of each lane to obtain the actual width X of the road section.
Further, the step of calculating the road surface area of the road section according to the actual width of the road section and the number of the lane dotted lines may specifically include:
calculating the actual length of the road section according to the number of the lane dotted lines;
calculating the road surface area of the road section according to the actual length and the actual width of the road section;
wherein the actual length of the road section satisfies the following conditional expression:
L=k*(L 1+L 2);
wherein L is the actual length of the road section,kthe number of dashed lines of the lane is,L 1is the actual length of the lane dotted line preset,L 2is the spacing distance of the preset lane dotted line.
Due to the fact thatActual length of dashed lane lineL 1Distance of separation of =2m from dashed lane lineL 2=4m is known, so the actual length L of the link = number K × 6 of dashed lane lines.
When the actual length L of the link and the actual width X of the link are known, the road surface area S = L × X of the link can be calculated.
And step S04, calculating the sanitation index of the road section according to the quantity of each type of garbage on the road section and the road surface area of the road section so as to evaluate the sanitation quality of the road section.
Specifically, the step of calculating the sanitation index of the road section according to the quantity of each type of garbage on the road section and the road surface area of the road section comprises the following steps:
calculating the density of each type of garbage according to the quantity of each type of garbage on the road section and the road surface area of the road section, wherein the density of each type of garbage = the quantity of each type of garbage/the road surface area;
determining the corresponding cleaning grade of each kind of garbage according to the density of each kind of garbage, wherein the cleaning grade comprises primary cleaning, secondary cleaning, tertiary cleaning and quaternary cleaning;
calculating the sanitation index of the road section according to the number of the sanitation grades;
P=p 1*k 1 + p 2* k 2 + p 3* k 3 + p 4* k 4 ;
in the formula (I), the compound is shown in the specification,Prepresents a hygiene index for the road section in question,p 1- p 4respectively represent the number of primary cleaning, secondary cleaning, tertiary cleaning and quaternary cleaning,k 1- k 4for the corresponding weighting coefficients, in some preferred embodiments of the present embodiment,k 1=8,k 2=6, k 3=3,k 4=0。
that is, the present embodiment defines four levels of sanitation, which are primary sanitation, secondary sanitation, tertiary sanitation and quaternary sanitation, and the level is actually determined according to the density of the garbage, and the larger the density of the garbage is, the larger the sanitation level is, the worse the sanitation quality is.
By way of example and not limitation, in some alternative embodiments of the present invention, the trash to be identified specifically includes trash piles, trash can overflows, small trash piles, paper cups, trash bottles, plastic bags, packaging bags, paper boxes, toilet paper, paper scraps, cigarette butts, fallen leaves, and the like. As shown in table 1 below, the trash piles are classified into one type, the trash can overflow and the small trash piles are classified into one type, the paper cups, the trash bottles, the plastic bags, the packaging bags, and the paper boxes are classified into one type, the toilet paper and the paper scraps are classified into one type, the cigarette butts are classified into one type, and the fallen leaves are classified into one type.
Table 1:
Figure 194348DEST_PATH_IMAGE002
each kind of garbage corresponds to the four cleaning grades, and each kind of garbage corresponds to a preset classification density threshold value with different cleaning grades (as shown in the above table 1, determined by on-site research and by using the scoring standard of the urban environmental sanitation department), so that the classification grade of the kind of garbage can be judged according to the actual density of the kind of garbage, for example, the density of cigarette butts is 7/1000 m2And judging the cleaning grade of the cigarette butts to be secondary cleaning, and analogizing the cleaning grade corresponding to other types of garbage in turn, so that the cleaning grade of each type of garbage can be determined.
And finally, carrying out weighted summation on the quantity of each cleaning grade to obtain the sanitation index of the road section. By way of example and not limitation, assuming that a trash pile corresponds to primary sanitation, a trash can is overflowed and a small trash pile corresponds to primary sanitation, a paper cup, a trash bottle, a plastic bag, a packaging bag and a paper box correspond to tertiary sanitation, toilet paper and paper scraps correspond to secondary sanitation, a cigarette end corresponds to primary sanitation, a leaf fall corresponds to secondary sanitation, the number of the primary sanitation is 3, the number of the secondary sanitation is 2, and the number of the tertiary sanitation is 1, the sanitation index of the road section is obtainedP=3*8+ 2* 6+ 1*3=39. The embodiment classifies the garbage, determines the cleaning grades corresponding to various types of garbage, and performs weighted summation on the quantity of each cleaning grade to determine the sanitation index of the road section, so as to reduce the influence of various errors as much as possible and make more accurate and reliable sanitation quality evaluation.
In summary, in the urban road sanitation quality evaluation method in the above embodiments of the present invention, the road recognition model capable of recognizing and counting the road garbage and the lane dotted lines is trained, so as to extract the quantity of each type of garbage and the quantity of the lane dotted lines on the urban road through the road recognition model, calculate the road surface area of the road based on the road video and the quantity of the lane dotted lines, and then calculate the sanitation index of the urban road according to the quantity of each type of garbage and the road surface area on the urban road, so as to evaluate the road sanitation quality. Therefore, the invention provides a method for automatically evaluating the urban road sanitation quality based on the urban road video, and provides an objective, accurate and efficient method for evaluating civilized cities and the sanitation quality requirements.
Example two
The second embodiment of the present invention also provides an urban road sanitation quality evaluation method, where the difference between the urban road sanitation quality evaluation method in this embodiment and the urban road sanitation quality evaluation method in the first embodiment is that:
when video streams of a plurality of road sections of an urban road are acquired, after the step of evaluating the sanitation quality of the road sections according to the quantity of each type of garbage on the road sections and the road surface area of the road sections, the method further comprises the following steps:
and calculating the comprehensive sanitation index of the urban road according to the sanitation index of each road section so as to evaluate the sanitation quality of the urban road.
Wherein the composite sanitary index of the urban road is the average value of the sanitary indexes of all road sections, namelyP Heald=( P 1 + P 2 +… + P z )/ zWhereinzIs the number of road sectionsThe amount of the compound (A) is,P z represents the sanitary index of the z-th road section, wherein z is an integer and is more than or equal to 1.
In this embodiment, the video streams of the multiple road segments may be obtained by segmenting the video of the same urban road, that is, the video of the whole urban road is shot first, and then the video is segmented according to time length or size, so as to obtain multiple video streams, where each video stream corresponds to one road segment of the urban road.
In addition, after the step of segmenting the road region in each frame of image of the video stream, the method may further include:
judging whether the divided road area is in the central position of the corresponding image;
if not, screening out; if yes, reserving;
and the reserved divided road area executes the step of acquiring the width of each lane dotted line and the corresponding road width at the position of the lane dotted line from the divided road area.
Specifically, whether the road is located in the center of the video picture can be judged according to the position of the lane dotted line in the center of the road in the video, when the road is located in the center of the video picture, the currently segmented road area is reserved, otherwise, the currently segmented road area is screened out, and then the width of the lane dotted line is carried out based on the reserved segmented road aread i And road width at dashed line of lanex i The method can avoid the influence of the image of the road deviating from the center of the picture on the calculation of the road area, and improve the precision and the reliability of the urban road sanitation quality evaluation, so that the camera is required to be aligned to the center of the road to shoot when in specific shooting, and the road is always kept at the center of the video picture.
EXAMPLE III
Another aspect of the present invention further provides an apparatus for evaluating urban road sanitation quality, referring to fig. 3, which shows an apparatus for evaluating urban road sanitation quality according to a third embodiment of the present invention, the apparatus including:
the video acquisition module 11 is configured to acquire a video stream of at least one road segment of an urban road;
the video identification module 12 is configured to input the video stream into a pre-trained road identification model to perform recognition and counting of garbage and lane dotted lines, so as to obtain the quantity of each type of garbage and the quantity of lane dotted lines on the road section;
the area calculation module 13 is configured to calculate an actual width of the road section according to the video stream, and calculate a road surface area of the road section according to the actual width of the road section and the number of lane dotted lines;
and the quality evaluation module 14 is configured to calculate a sanitation index of the road section according to the quantity of each type of garbage on the road section and the road surface area of the road section, so as to evaluate the sanitation quality of the road section.
Further, in some optional embodiments of the present invention, the area calculating module 13 includes:
a region dividing unit for dividing a road region in each frame image of the video stream;
the width acquisition unit is used for acquiring the width of each lane dotted line and the corresponding road width at the position of the lane dotted line from the divided road area;
and the width calculation unit is used for calculating the actual width of the road section according to the width of each lane dotted line and the width of the road at each lane dotted line.
Further, in some alternative embodiments of the present invention, the actual width of the road segment satisfies the following conditional expression:
Figure 659964DEST_PATH_IMAGE001
wherein X represents the actual width of the road segment,irepresents the firstiThe broken line of the lane is a broken line,knumber of dashed lines of the lane, 1 i≤k DIs the actual width of the lane dotted line preset,d i represents the firstiThe width of the dotted line of the individual lanes,x i represents the firstiRoad width at the dashed line of the individual lanes.
Further, in some optional embodiments of the present invention, the area calculating module 13 further includes:
the region screening module is used for judging whether the segmented road region is in the central position of the corresponding image; if not, screening out; if yes, reserving; and the reserved divided road area executes the step of acquiring the width of each lane dotted line and the corresponding road width at the position of the lane dotted line from the divided road area.
Further, in some optional embodiments of the present invention, the area calculating module 13 further includes:
the length calculating unit is used for calculating the actual length of the road section according to the number of the lane dotted lines;
the area calculation unit is used for calculating the road surface area of the road section according to the actual length and the actual width of the road section;
wherein the actual length of the road section satisfies the following conditional expression:
L=k*(L 1+L 2);
wherein L is the actual length of the road section,kthe number of dashed lines of the lane is,L 1is the actual length of the dashed line of the lane,L 2is the separation distance of the dashed lane lines.
Further, in some optional embodiments of the present invention, the quality evaluation module 14 includes:
the density calculation unit is used for calculating the density of each type of garbage according to the quantity of each type of garbage on the road section and the road surface area of the road section;
the grade determining unit is used for determining the corresponding cleaning grade of each type of garbage according to the density of each type of garbage, and the cleaning grade comprises primary cleaning, secondary cleaning, tertiary cleaning and quaternary cleaning;
the quality evaluation unit is used for calculating the sanitation index of the road section according to the quantity of each sanitation grade;
P=p 1*k 1 + p 2* k 2 + p 3* k 3 + p 4* k 4 ;
in the formula (I), the compound is shown in the specification,Prepresents a hygiene index for the road section in question,p 1- p 4respectively represent the number of primary cleaning, secondary cleaning, tertiary cleaning and quaternary cleaning,k 1- k 4is the corresponding weight coefficient.
Further, in some optional embodiments of the present invention, when obtaining the video streams of multiple segments of the urban road, the quality evaluation module 14 is further configured to calculate a comprehensive sanitation index of the urban road according to the sanitation index of each of the segments, so as to evaluate the sanitation quality of the urban road.
The functions or operation steps of the modules and units when executed are substantially the same as those of the method embodiments, and are not described herein again.
In summary, in the urban road sanitation quality evaluation device in the above embodiment of the present invention, the road recognition model capable of recognizing and counting the road garbage and the lane dotted lines is trained, so as to extract the quantity of each type of garbage and the quantity of the lane dotted lines on the urban road through the road recognition model, calculate the road surface area of the road based on the road video and the quantity of the lane dotted lines, and then calculate the sanitation index of the urban road according to the quantity of each type of garbage and the road surface area on the urban road, so as to evaluate the road sanitation quality. Therefore, the invention provides a method for automatically evaluating the urban road sanitation quality based on the urban road video, and provides an objective, accurate and efficient method for evaluating civilized cities and the sanitation quality requirements.
Example four
Referring to fig. 4, the urban road sanitation quality evaluating apparatus according to a fourth embodiment of the present invention includes a memory 20, a processor 10, and a computer program 30 stored in the memory and operable on the processor, where the processor 10 executes the computer program 30 to implement the urban road sanitation quality evaluating method.
The urban road sanitation quality evaluation equipment can be carried on movable carriers such as motor vehicles (such as sanitation vehicles) and unmanned aerial vehicles, and at the moment, the urban road sanitation quality evaluation equipment can shoot urban road images through a camera or by means of the camera of the movable carrier so as to realize real-time urban road sanitation quality evaluation in a moving state; or the urban road sanitation quality evaluation equipment can also be a background server and the like and is used for receiving the urban road image shot by the front end of the camera and then carrying out urban road sanitation quality evaluation.
Specifically, the processor 10 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data Processing chip in some embodiments, and is used for executing program codes stored in the memory 20 or Processing data, such as executing an access limiting program.
The memory 20 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 20 may be an internal storage unit of the urban road sanitation quality evaluation device in some embodiments, for example, a hard disk of the urban road sanitation quality evaluation device. The memory 20 may also be an external storage device of the urban road sanitation quality evaluation equipment in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like equipped on the urban road sanitation quality evaluation equipment. Further, the memory 20 may also include both an internal storage unit and an external storage device of the urban road sanitation quality evaluation apparatus. The memory 20 may be used not only to store application software installed in the urban road sanitation quality evaluating apparatus and various types of data, but also to temporarily store data that has been output or will be output.
It should be noted that the configuration shown in fig. 4 does not constitute a limitation of the urban road sanitation quality evaluation device, and in other embodiments, the urban road sanitation quality evaluation device may include fewer or more components than those shown, or some components may be combined, or a different arrangement of components may be used.
In summary, in the urban road sanitation quality evaluation device in the above embodiment of the present invention, the road recognition model capable of recognizing and counting the road garbage and the lane dotted lines is trained, so as to extract the quantity of each type of garbage and the quantity of the lane dotted lines on the urban road through the road recognition model, calculate the road surface area of the road based on the road video and the quantity of the lane dotted lines, and then calculate the sanitation index of the urban road according to the quantity of each type of garbage and the road surface area on the urban road, so as to evaluate the road sanitation quality. Therefore, the invention provides a method for automatically evaluating the urban road sanitation quality based on the urban road video, and provides an objective, accurate and efficient method for evaluating civilized cities and the sanitation quality requirements.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method for evaluating the urban road sanitation quality is realized.
Those of skill in the art will understand that the logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be viewed as implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for evaluating the environmental sanitation quality of urban roads is characterized by comprising the following steps:
acquiring a video stream of at least one section of an urban road;
inputting the video stream into a pre-trained road recognition model to recognize and count the garbage and lane dotted lines, so as to obtain the quantity of each type of garbage and the quantity of the lane dotted lines on the road section;
calculating the actual width of the road section according to the video stream, and calculating the road surface area of the road section according to the actual width of the road section and the number of the lane dotted lines;
and calculating the sanitation index of the road section according to the quantity of each type of garbage on the road section and the road surface area of the road section so as to evaluate the sanitation quality of the road section.
2. The urban road sanitation quality evaluation method according to claim 1, wherein the step of calculating the actual width of the road segment from the video stream comprises:
segmenting a road region in each frame of image of the video stream;
acquiring the width of each lane dotted line and the corresponding road width at the position of the lane dotted line from the divided road area;
and calculating the actual width of the road section according to the width of each lane dotted line and the width of the road at each lane dotted line.
3. The urban road sanitation quality evaluation method according to claim 2, wherein the actual width of the road section satisfies the following conditional expression:
Figure 254157DEST_PATH_IMAGE001
wherein X represents the actual width of the road segment,irepresents the firstiThe broken line of the lane is a broken line,knumber of dashed lines of the lane, 1≤i≤k DIs the actual width of the lane dotted line preset,d i represents the firstiThe width of the dotted line of the individual lanes,x i represents the firstiRoad width at the dashed line of the individual lanes.
4. The urban road sanitation quality evaluation method according to claim 2 or 3, wherein after the step of segmenting the road region in each frame of image of the video stream, further comprising:
judging whether the divided road area is in the central position of the corresponding image;
if not, screening out; if yes, reserving;
and the reserved divided road area executes the step of acquiring the width of each lane dotted line and the corresponding road width at the position of the lane dotted line from the divided road area.
5. The urban road sanitation quality evaluation method according to claim 1, wherein the step of calculating the road surface area of the road section according to the actual width of the road section and the number of the lane dotted lines comprises:
calculating the actual length of the road section according to the number of the lane dotted lines;
calculating the road surface area of the road section according to the actual length and the actual width of the road section;
wherein the actual length of the road section satisfies the following conditional expression:
L=k*(L 1+L 2);
wherein L is the actual length of the road section,kthe number of dashed lines of the lane is,L 1is the actual length of the lane dotted line preset,L 2is the spacing distance of the preset lane dotted line.
6. The urban road sanitation quality evaluation method according to claim 1, wherein the step of calculating the sanitation index of the road section according to the quantity of each type of garbage on the road section and the road surface area of the road section comprises:
calculating the density of each type of garbage according to the quantity of each type of garbage on the road section and the road surface area of the road section;
determining the corresponding cleaning grade of each kind of garbage according to the density of each kind of garbage, wherein the cleaning grade comprises primary cleaning, secondary cleaning, tertiary cleaning and quaternary cleaning;
calculating the sanitation index of the road section according to the number of the sanitation grades;
P=p 1*k 1 + p 2* k 2 + p 3* k 3 + p 4* k 4 ;
in the formula (I), the compound is shown in the specification,Prepresents a hygiene index for the road section in question,p 1- p 4respectively represent the number of primary cleaning, secondary cleaning, tertiary cleaning and quaternary cleaning,k 1- k 4is the corresponding weight coefficient.
7. The urban road sanitation quality evaluation method according to claim 6, wherein when video streams of a plurality of road segments of an urban road are acquired, after the step of evaluating the sanitation quality of the road segments according to the quantity of each type of garbage on the road segments and the road surface area of the road segments, further comprising:
and calculating the comprehensive sanitation index of the urban road according to the sanitation index of each road section so as to evaluate the sanitation quality of the urban road.
8. An urban road sanitation quality evaluation device, characterized in that the device includes:
the video acquisition module is used for acquiring a video stream of at least one road section of the urban road;
the video identification module is used for inputting the video stream into a pre-trained road identification model to identify and count the garbage and lane dotted lines so as to obtain the quantity of each type of garbage and the quantity of the lane dotted lines on the road section;
the area calculation module is used for calculating the actual width of the road section according to the video stream and calculating the road surface area of the road section according to the actual width of the road section and the number of the lane dotted lines;
and the quality evaluation module is used for calculating the sanitation index of the road section according to the quantity of each type of garbage on the road section and the road surface area of the road section so as to evaluate the sanitation quality of the road section.
9. A computer-readable storage medium on which a computer program is stored, the program, when being executed by a processor, implementing the urban road sanitation quality assessment method according to any one of claims 1 to 7.
10. An urban road sanitation quality evaluation device, comprising a memory, a processor and a computer program stored on the memory and operable on the processor, the processor implementing the urban road sanitation quality evaluation method according to any one of claims 1 to 7 when executing the program.
CN202111607368.0A 2021-12-27 2021-12-27 Urban road sanitation quality evaluation method and device, storage medium and equipment Active CN113988719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111607368.0A CN113988719B (en) 2021-12-27 2021-12-27 Urban road sanitation quality evaluation method and device, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111607368.0A CN113988719B (en) 2021-12-27 2021-12-27 Urban road sanitation quality evaluation method and device, storage medium and equipment

Publications (2)

Publication Number Publication Date
CN113988719A true CN113988719A (en) 2022-01-28
CN113988719B CN113988719B (en) 2022-10-04

Family

ID=79734404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111607368.0A Active CN113988719B (en) 2021-12-27 2021-12-27 Urban road sanitation quality evaluation method and device, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN113988719B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165582A (en) * 2018-08-09 2019-01-08 河海大学 A kind of detection of avenue rubbish and cleannes appraisal procedure
CN109288455A (en) * 2018-09-21 2019-02-01 北京智行者科技有限公司 Refuse sweeping method and device
US20190121368A1 (en) * 2017-10-20 2019-04-25 Italdesign-Giugiaro S.P.A. Waste collection system with autonomous mobility of waste containers
CN110258412A (en) * 2019-06-14 2019-09-20 长沙中联重科环境产业有限公司 Road-cleaning equipment and its blower and the intelligent control method and system for sweeping disk
CN111242493A (en) * 2020-01-17 2020-06-05 广州市城市规划勘测设计研究院 Street quality evaluation method, device and system and storage medium
CN111985317A (en) * 2020-07-10 2020-11-24 上海富洁科技有限公司 Road surface cleanliness evaluation method for intelligent road sweeping
CN112396868A (en) * 2020-11-05 2021-02-23 中国联合网络通信集团有限公司 Collision early warning implementation method and system, computer equipment and storage medium
CN112562330A (en) * 2020-11-27 2021-03-26 深圳市综合交通运行指挥中心 Method and device for evaluating road operation index, electronic equipment and storage medium
CN112927283A (en) * 2021-01-29 2021-06-08 成都安智杰科技有限公司 Distance measuring method and device, storage medium and electronic equipment
CN108665466B (en) * 2018-05-21 2021-06-11 山东科技大学 Automatic extraction method for road surface diseases in road laser point cloud

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190121368A1 (en) * 2017-10-20 2019-04-25 Italdesign-Giugiaro S.P.A. Waste collection system with autonomous mobility of waste containers
CN108665466B (en) * 2018-05-21 2021-06-11 山东科技大学 Automatic extraction method for road surface diseases in road laser point cloud
CN109165582A (en) * 2018-08-09 2019-01-08 河海大学 A kind of detection of avenue rubbish and cleannes appraisal procedure
CN109288455A (en) * 2018-09-21 2019-02-01 北京智行者科技有限公司 Refuse sweeping method and device
CN110258412A (en) * 2019-06-14 2019-09-20 长沙中联重科环境产业有限公司 Road-cleaning equipment and its blower and the intelligent control method and system for sweeping disk
CN111242493A (en) * 2020-01-17 2020-06-05 广州市城市规划勘测设计研究院 Street quality evaluation method, device and system and storage medium
CN111985317A (en) * 2020-07-10 2020-11-24 上海富洁科技有限公司 Road surface cleanliness evaluation method for intelligent road sweeping
CN112396868A (en) * 2020-11-05 2021-02-23 中国联合网络通信集团有限公司 Collision early warning implementation method and system, computer equipment and storage medium
CN112562330A (en) * 2020-11-27 2021-03-26 深圳市综合交通运行指挥中心 Method and device for evaluating road operation index, electronic equipment and storage medium
CN112927283A (en) * 2021-01-29 2021-06-08 成都安智杰科技有限公司 Distance measuring method and device, storage medium and electronic equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
JIACAI LIAO: "Road Garbage Segmentation and Cleanliness Assessment Based on Semantic Segmentation Network for Cleaning Vehicles", 《 IEEE TRANSACTIONS ON VEHICULAR TECHNOLOGY》 *
张鹏程: "一种融合移动边缘计算和深度学习的城市街道垃圾检测和清洁", 《小型微型计算机系统》 *
陈文婧: "路面清洁技术选择的影响因素分析", 《绿色环保建材》 *

Also Published As

Publication number Publication date
CN113988719B (en) 2022-10-04

Similar Documents

Publication Publication Date Title
CN109165582B (en) Urban street garbage detection and cleanliness assessment method
CN106373426B (en) Parking stall based on computer vision and violation road occupation for parking monitoring method
CN103971097B (en) Vehicle license plate recognition method and system based on multiscale stroke models
CN111368687A (en) Sidewalk vehicle illegal parking detection method based on target detection and semantic segmentation
CN107871130A (en) Image procossing
CN108921083B (en) Illegal mobile vendor identification method based on deep learning target detection
CN103383733A (en) Lane video detection method based on half-machine study
CN104408475B (en) A kind of licence plate recognition method and car license recognition equipment
CN105184291B (en) A kind of polymorphic type detection method of license plate and system
CN104156734A (en) Fully-autonomous on-line study method based on random fern classifier
CN103679187B (en) Image-recognizing method and system
CN102867417A (en) Taxi anti-forgery system and taxi anti-forgery method
CN113420745B (en) Image-based target identification method, system, storage medium and terminal equipment
CN107590486B (en) Moving object identification method and system, and bicycle flow statistical method and equipment
CN112707058B (en) Detection method, system, device and medium for standard actions of kitchen waste
CN104463232A (en) Density crowd counting method based on HOG characteristic and color histogram characteristic
CN104463220A (en) License plate detection method and system
CN104463204A (en) Target quantity statistical method
CN111898491A (en) Method and device for identifying reverse driving of vehicle and electronic equipment
CN113221750A (en) Vehicle tracking method, device, equipment and storage medium
CN111400533A (en) Image screening method and device, electronic equipment and storage medium
CN115546763A (en) Traffic signal lamp identification network training method and test method based on visual ranging
Djamaluddin et al. The simulation of vehicle counting system for traffic surveillance using Viola Jones method
JP6698191B1 (en) Road marking failure detection device, road marking failure detection method, and road marking failure detection program
CN113988719B (en) Urban road sanitation quality evaluation method and device, storage medium and equipment

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