A method for calculating green view rate of urban streets

Through an automated urban street green visual rate calculation method, using the HSV color model and semantic segmentation model, the inefficiency problem of manual smearing of images in the existing technology is solved, efficient and accurate green visual rate calculation is achieved, and the calculation is improved. Reliability of results.

CN118552598BActive Publication Date: 2024-10-18SHEN ZHEN HAO LAN HUAN JING KE JI YOU XIAN GONG SI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411006606.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-18
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

The existing technology requires manual smearing of green plant pixels on the captured images when calculating the greenness ratio of urban streets, which is time-consuming and labor-intensive and has low calculation efficiency.

Method used

An urban street green view rate calculation method is adopted, which includes dividing the street area, selecting sampling points, shooting images, preprocessing and pixel traversal, using the HSV color model to mark green pixels, and calculating the green view rate of a single street view photo and the entire street. Green vision rate, and segmentation and verification through semantic segmentation model and edge detection model to reduce manual intervention.

Benefits of technology

It improves the calculation efficiency and accuracy of green vision ratio, reduces manual operations, enhances the accuracy and learning ability of the segmentation model, and improves the reliability of calculation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552598B_ABST
    Figure CN118552598B_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of ecological environment greening, and specifically relates to a method for calculating the green view rate of urban streets. The method comprises the following steps: S1, dividing an evaluation street into regions; S2, selecting sampling points; S3, acquiring images, using a full-frame camera with a shooting height of 160cm±5cm, a 24mm fixed-focus lens or a zoom lens with a focal length of 24mm, and photographing the street according to different types of sampling points and preset shooting angles of the sampling points of this type; S4, preprocessing the acquired image to remove interference; S5, performing pixel traversal on the image; S6, parsing a pixel RGB model of the image traversed by the pixels in step S5, converting the pixel RGB color model into an HSV color model, and obtaining an HSV image; the invention does not require manual smearing of green plant pixels on the photographed image, thereby improving the calculation efficiency of the green view rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of ecological environment greening, and in particular relates to a method for calculating the green view rate of urban streets. Background Art

[0002] Green Looking Ratio: refers to the proportion of green plants in objects seen by people's eyes. It emphasizes the three-dimensional visual effect and represents a higher level of urban greening.

[0003] The "green view rate" is considered from the perspective of people's perception of the environment, and it changes with time and space. It is a dynamic measurement factor that focuses on the three-dimensional composition of the greening of the community. Compared with the "greening rate" and "green land rate", the "green view rate" can better reflect the quality of the public greening environment and is closer to people's lives. The introduction of the concept of "green view rate" provides a new measurement angle for the quality of greening in residential communities, and provides a new idea for the design of landscape greening in residential communities. It truly realizes the "people-oriented" design concept in landscape greening design, and has practical guiding significance.

[0004] The current commonly used calculation method requires manual painting of green plant pixels in the captured images, which is time-consuming and labor-intensive, and has low calculation efficiency.

[0005] The present invention proposes a method for calculating the green view rate of urban streets to solve the above-mentioned background problems. Summary of the invention

[0006] In order to achieve the above-mentioned object of the invention, the present invention provides a method for calculating the green view rate of urban streets, which comprises the following steps:

[0007] S1. Divide the assessed streets into regions;

[0008] S2, select sampling points;

[0009] S3, acquiring images, using a full-frame camera with a shooting height of 160 cm ± 5 cm, a 24 mm fixed-focus lens, or a zoom lens with a focal length of 24 mm, and photographing the street according to different types of sampling points and preset shooting angles of the sampling points of that type;

[0010] S4, preprocessing the acquired image to remove interference;

[0011] S5, traversing the image pixels;

[0012] S6, analyzing the pixel RGB model of the image traversed by the pixel in step S5, converting the pixel RGB color model into the HSV color model to obtain an HSV image;

[0013] S7, analyzing the H, S, and V values ​​of the pixels of the HSV image, and marking the pixels with 70≤H≤180 as green, to obtain a green marked image;

[0014] S8. Calculate the green view rate of a single street view photo, where the green view rate of a single street view photo is the percentage of green pixels in the single street view photo to the total pixels in the single street view photo;

[0015] S9. Calculate the green view rate of the entire street. The green view rate of the entire street is the average value of the green view rates of all photos taken to evaluate the street.

[0016] As a preferred technical solution of the present invention, the step S7 further includes the following steps:

[0017] S71, extract the image overlapping with the green area in the green marked image in the HSV image obtained in step S6 to obtain the image to be segmented, then use the semantic segmentation model to segment the image to be segmented to obtain a segmented image, and at the same time use the edge detection model to extract the edge of the object in the image after the interference is removed to obtain an edge image, extract the straight line segments in the edge image to obtain a straight line image, analyze and compare the segmented image with the straight line image, if a straight line segment in the straight line image appears in at least two different segmentation areas in the segmented image, mark the segmented image as a segmented image to be confirmed that requires manual confirmation, and output the segmented image to be confirmed for manual segmentation, after manual segmentation, mark the segmented image to be confirmed as a confirmed segmented image, and at the same time transmit the confirmed segmented image after manual segmentation to the semantic segmentation model for learning; if a straight line segment does not appear in at least two different segmentation areas in the straight line image, mark the segmented image as a confirmed segmented image;

[0018] S72, analyzing and identifying each segmented area in the confirmed segmented image, eliminating non-plant areas, and then marking the pixels corresponding to the remaining segmented areas as green.

[0019] As a preferred technical solution of the present invention, step S1 includes step S11, using traffic road network vector data to divide the evaluated streets into residential roads, traffic roads, commercial roads and landscape and leisure roads.

[0020] As a preferred technical solution of the present invention, step S2 includes:

[0021] S21. No less than three observation points shall be set up for each residential road, commercial road and landscape leisure road, and the intervals between adjacent observation points on the three types of roads shall be set at 250m, 200m and 250m respectively;

[0022] No less than three observation points are arranged on each traffic road, and the interval between adjacent observation points is 500m. The sampling time for the four types of roads is 9:00-16:00.

[0023] As a preferred technical solution of the present invention, for sampling points located on parallel straight roads, shooting should be performed in three directions on each side of the road. The first direction is shooting toward the front of the road, the second direction is shooting toward the back of the road, and the third direction is shooting toward the middle of the road and perpendicular to the road.

[0024] As a preferred technical solution of the present invention, for the T-junction sampling point, shooting should be performed in three directions at the intersection of the bisector that divides the width of the termination road into two and the edge line of the non-termination road away from the termination road. The first direction is shooting toward the front of the non-termination road, the second direction is shooting toward the rear of the non-termination road, and the third direction is shooting in the direction of the termination road.

[0025] As a preferred technical solution of the present invention, for the sampling points at the intersections of multiple roads, photos are taken at the turning points towards the intersection center of the roads.

[0026] As a preferred technical solution of the present invention, for the traffic island sampling points, photography should be taken toward the center of the island on the right side of all entrances to the traffic island, or photography should be taken toward the center of the island on the right side of all exits from the traffic island.

[0027] As a preferred technical solution of the present invention, for the sampling point at the curve, the camera should be taken from the front and rear directions along the tangent line at the outer circle road edge of the curve, and from the radial direction toward the point.

[0028] As a preferred technical solution of the present invention, S73, extract the area image in the HSV image obtained in step S6 that does not overlap with the green area in the green marked image to obtain an image to be processed, select the corresponding pixel in the image to be processed as the target seed according to the color of the non-green plants in the image to be processed, extract the pixels in the image to be processed whose color difference with the target seed is less than a preset value to obtain a non-green plant image, and then use the semantic segmentation model to segment the non-green plant image, analyze and identify the segmented image, eliminate the non-plant area, and then mark the plant area as green to obtain a second image, and then integrate the first image and the second image into one image.

[0029] Compared with the prior art, the beneficial effects of the present invention are at least as follows:

[0030] 1. The present invention does not require manual smearing of green plant pixels on the captured image, thereby improving the calculation efficiency of the green viewing rate.

[0031] 2. The present invention compares the straight line segments in the segmented image and the edge image. On the one hand, it can verify whether the segmentation of the segmented area in the segmented image is correct. If it is incorrect, it can be reminded in time and manually corrected to improve the accuracy of the green view rate. On the other hand, the confirmed segmented image after manual segmentation is transmitted to the semantic segmentation model for learning, so that the segmentation accuracy of the segmentation model can be improved in the subsequent segmentation process. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A flowchart of the steps of a method for calculating the green view rate of urban streets according to the present invention;

[0033] Figure 2 This is a flow chart of step S7 of the present invention;

[0034] Figure 3 A schematic diagram of the shooting of sampling points on a parallel straight road of the present invention;

[0035] Figure 4 A schematic diagram of a shooting schematic diagram of a sampling point at a T-junction of the present invention;

[0036] Figure 5 A schematic diagram of shooting sampling points at intersections of multiple roads of the present invention;

[0037] Figure 6 This is a schematic diagram of the shooting of the traffic island sampling point of the present invention;

[0038] Figure 7 This is a schematic diagram of shooting sampling points at a bend in the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0040] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script.

[0041] The present invention provides Figure 1 A method for calculating the green view rate of urban streets is shown, and the method comprises the following steps:

[0042] S1. Divide the assessed streets into regions;

[0043] Specifically, the step S1 includes step S11, using the traffic road network vector data, importing the traffic road network vector data into ArcGIS, and using ArcGIS to divide the assessed streets into residential roads, traffic roads, commercial roads and landscape and leisure roads;

[0044] S2, select sampling points;

[0045] Further, the detailed steps of step S2 are as follows:

[0046] S21. No less than three observation points shall be set up for each residential road, commercial road and landscape leisure road, and the intervals between adjacent observation points on the three types of roads shall be set at 250m, 200m and 250m respectively;

[0047] No less than three observation points are arranged on each traffic road, and the interval between adjacent observation points is 500m. The sampling time for the four types of roads is 9:00-16:00.

[0048] The present invention improves the accuracy of the calculated green viewing rate by setting no less than three observation points; the present invention can make the taken photos clearer by setting the sampling time to 9:00-16:00 and utilizing the favorable light during the day.

[0049] S3, acquiring images, using a full-frame camera with a shooting height of 160 cm ± 5 cm, a 24 mm fixed-focus lens, or a zoom lens with a focal length of 24 mm, and photographing the street according to different types of sampling points and preset shooting angles of the sampling points of that type;

[0050] Since the average height of adult males is 167.1 cm and that of females is 155.8 cm, the present invention sets the shooting height to 160 cm ± 5 cm, so that the calculated green viewing rate can be closer to the feelings of more people.

[0051] Specifically, Figure 3 As shown, for sampling points located on parallel straight roads, shooting should be performed in three directions on each side of the road. The first direction is shooting towards the front of the road, the second direction is shooting towards the back of the road, and the third direction is shooting towards the middle of the road and perpendicular to the road.

[0052] Specifically, Figure 4 As shown, for the T-junction sampling point, shooting should be carried out in three directions at the intersection of the bisector that divides the width of the termination road into two and the edge line of the non-termination road away from the termination road. The first direction is shooting towards the front of the non-termination road, the second direction is shooting towards the rear of the non-termination road, and the third direction is shooting in the direction of the termination road.

[0053] Specifically, Figure 5As shown, for the sampling points at the intersections of multiple roads, photos are taken at the turning points towards the intersection center of the roads.

[0054] Specifically, Figure 6 As shown, for the traffic island sampling points, photos should be taken towards the center of the island from the right side of all entrances to the traffic island, or from the right side of all exits to the traffic island.

[0055] Specifically, Figure 7 As shown, for the sampling point at the curve, the camera should be taken from the outer edge of the curve along the tangent line in the front and rear directions, as well as from the radial direction toward the point.

[0056] S4. Preprocess the acquired image to remove interference; by preprocessing, the clarity of the photo is improved and noise can be removed, thereby improving the accuracy of the calculated green view rate.

[0057] S5, traversing the image pixels;

[0058] S6, analyzing the pixel RGB model of the image traversed by the pixel in step S5, converting the pixel RGB color model into the HSV color model to obtain an HSV image;

[0059] S7, analyzing the H, S, and V values ​​of the pixels of the HSV image, and marking the pixels with 70≤H≤180 as green, to obtain a green marked image;

[0060] S8. Calculate the green view rate of a single street view photo, where the green view rate of a single street view photo is the percentage of green pixels in the single street view photo to the total pixels in the single street view photo;

[0061] S9. Calculate the green view rate of the entire street. The green view rate of the entire street is the average value of the green view rates of all photos taken to evaluate the street.

[0062] Furthermore, the step S7 further includes the following steps:

[0063] S71. Extract the image that overlaps with the green area in the green marked image in the HSV image obtained in step S6 to obtain the image to be segmented, and then use the semantic segmentation model to segment the image to be segmented to obtain a segmented image. At the same time, use the edge detection model to extract the edge of the object in the image after interference is removed to obtain an edge image, extract the straight line segments in the edge image to obtain a straight line image, analyze and compare the segmented image with the straight line image, if a straight line segment in the straight line image appears in at least two different segmentation areas in the segmented image, mark the segmented image as a segmented image to be confirmed that requires manual confirmation, and output the segmented image to be confirmed for manual segmentation. After manual segmentation, mark the segmented image to be confirmed as a confirmed segmented image, and at the same time, transmit the confirmed segmented image after manual segmentation to the semantic segmentation model for learning; if a straight line segment in the straight line image does not appear in at least two different segmentation areas, area, the segmented image is marked as a confirmed segmented image; the present invention compares the straight line segments in the segmented image and the edge image. On the one hand, it can verify whether the segmentation of the segmented area in the segmented image is correct. If it is incorrect, it can be reminded in time and manually corrected, thereby improving the accuracy of the green view rate; on the other hand, the confirmed segmented image after manual segmentation is transmitted to the semantic segmentation model for learning, so that the segmentation accuracy of the segmentation model can be improved in the subsequent segmentation process; on the third hand, the verification and calibration is performed by extracting a small number of straight line segments, thereby improving the verification and calibration efficiency; on the fourth hand, the image to be segmented is obtained by extracting the image that overlaps with the green area in the green marked image in the HSV image obtained in step S6, thereby quickly deleting the non-target area and retaining the green target area, thereby reducing the segmentation difficulty and segmentation time of the semantic segmentation in the subsequent semantic segmentation process and improving the semantic segmentation efficiency.

[0064] S72. Analyze and identify each segmented area in the confirmed segmented image, eliminate non-plant areas, and then mark the pixels corresponding to the remaining segmented areas as green to obtain a first image; the present invention identifies the non-plant areas in the confirmed segmented image and marks the pixels corresponding to the remaining segmented areas as green, thereby preparing for the subsequent calculation of the green viewing rate; in this operation step, analyze and identify each segmented area and eliminate non-plant areas, so that non-plant green object pixels such as green billboards and green glass of office buildings in the image can be eliminated, thereby improving the accuracy of the green viewing rate calculation.

[0065] Furthermore, although the above calculation method can extract all green plant pixels in the image, there are still some non-green plants in the existing streets, such as redwood, ginkgo and other non-green plant species. Due to the variety of species, the pixels of non-green plants cannot be included in the calculation of the green viewing rate. To solve the above problem, the step S7 also includes step S73;

[0066] S73. Extract the image of the area in the HSV image obtained in step S6 that does not overlap with the green area in the green marked image to obtain an image to be processed, select corresponding pixels in the image to be processed as target seeds according to the color of the non-green plants in the image to be processed, extract the pixels in the image to be processed whose color difference with the target seed is less than a preset value to obtain a non-green plant image, and then use the semantic segmentation model to segment the non-green plant image, analyze and identify the segmented image, eliminate non-plant areas, and then mark the plant areas as green to obtain a second image, and then integrate the first image and the second image into one image; the present invention incorporates the pixels of non-green plants into the calculation of the green viewing rate, thereby further improving the accuracy of the green viewing rate.

[0067] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.

[0068] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0069] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

[0070] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for calculating the green view rate of urban streets, characterized in that: The method comprises the following steps: S1. Divide the assessed streets into regions; S2, select sampling points; S3, acquiring images, using a full-frame camera with a shooting height of 160 cm ± 5 cm, a 24 mm fixed-focus lens, or a zoom lens with a focal length of 24 mm, and photographing the street according to different types of sampling points and preset shooting angles of the sampling points of that type; S4, preprocessing the acquired image to remove interference; S5, traversing the image pixels; S6, analyzing the pixel RGB model of the image traversed by the pixel in step S5, converting the pixel RGB color model into the HSV color model to obtain an HSV image; S7, analyzing the H, S, and V values ​​of the pixels of the HSV image, and marking the pixels with 70≤H≤180 as green, to obtain a green marked image; S71, extract the image overlapping with the green area in the green marked image in the HSV image obtained in step S6 to obtain the image to be segmented, then use the semantic segmentation model to segment the image to be segmented to obtain a segmented image, and at the same time use the edge detection model to extract the edge of the object in the image after the interference is removed to obtain an edge image, extract the straight line segments in the edge image to obtain a straight line image, analyze and compare the segmented image with the straight line image, if a straight line segment in the straight line image appears in at least two different segmentation areas in the segmented image, mark the segmented image as a segmented image to be confirmed that requires manual confirmation, and output the segmented image to be confirmed for manual segmentation. After manual segmentation, mark the segmented image to be confirmed as a confirmed segmented image, and at the same time transmit the confirmed segmented image after manual segmentation to the semantic segmentation model for learning; if a straight line segment does not appear in at least two different segmentation areas in the straight line image, mark the segmented image as a confirmed segmented image; S72, analyzing and identifying each segmented area in the confirmed segmented image, removing non-plant areas, and then marking the pixels corresponding to the remaining segmented areas as green; S8. Calculate the green view rate of a single street view photo, where the green view rate of a single street view photo is the percentage of green pixels in the single street view photo to the total pixels in the single street view photo; S9. Calculate the green view rate of the entire street. The green view rate of the entire street is the average value of the green view rates of all photos taken to evaluate the street.

2. The method for calculating the green view rate of urban streets according to claim 1, characterized in that: The step S1 includes step S11, using the traffic road network vector data to divide the assessed streets into residential roads, traffic roads, commercial roads and landscape and leisure roads.

3. The method for calculating the green view rate of urban streets according to claim 1, characterized in that: The step S2 comprises: S21, setting up no less than 3 observation points for each residential road, commercial road and landscape leisure road, and setting the intervals between adjacent observation points of the three types of roads to 250m, 200m and 250m respectively; No less than three observation points are arranged on each traffic road, and the interval between adjacent observation points is 500m. The sampling time for the four types of roads is 9:00-16:

00.

4. The method for calculating the green view rate of urban streets according to claim 1, characterized in that: For sampling points located on parallel straight roads, shooting should be carried out in three directions on each side of the road. The first direction is shooting towards the front of the road, the second direction is shooting towards the back of the road, and the third direction is shooting towards the middle of the road and perpendicular to the road.

5. The method for calculating the green view rate of urban streets according to claim 1, characterized in that: For the sampling point of the T-junction, shooting should be carried out in three directions at the intersection of the bisector that divides the width of the termination road into two and the edge line of the non-termination road away from the termination road. The first direction is shooting toward the front of the non-termination road, the second direction is shooting toward the rear of the non-termination road, and the third direction is shooting in the direction of the termination road.

6. The method for calculating the green view rate of urban streets according to claim 1, characterized in that: For sampling points at intersections of multiple roads, take photos at the turning points towards the intersection center of the roads.

7. The method for calculating the green view rate of urban streets according to claim 1, characterized in that: For sampling points on traffic islands, photos should be taken on the right side of all entrances to the traffic island toward the center of the island, or on the right side of all exits from the traffic island toward the center of the island.

8. The method for calculating the green view rate of urban streets according to claim 1, characterized in that: For sampling points at curves, photos should be taken from the outer edge of the curve along the tangent line in the front and rear directions, as well as in the radial direction toward the point.

9. The method for calculating the green view rate of urban streets according to claim 1, characterized in that: S73. Extract the area image of the HSV image obtained in step S6 that does not overlap with the green area in the green marked image to obtain an image to be processed. According to the color of the non-green plants in the image to be processed, select the corresponding pixels in the image to be processed as target seeds, extract the pixels in the image to be processed whose color difference with the target seed is less than a preset value to obtain a non-green plant image, and then use the semantic segmentation model to segment the non-green plant image, analyze and identify the segmented image, eliminate the non-plant area, and then mark the plant area as green to obtain a second image, and then integrate the first image and the second image into one image.

Citation Information

Patent Citations

  • Urban color quantitative analysis and evaluation method and system and storage medium

    CN113160340A

  • Green vision rate measuring method and system

    CN113792650A