Rural garbage positioning and collecting method and device, electronic equipment and medium

Through drone detection and path planning technology, the problem of low efficiency in rural garbage collection and processing is solved and a more efficient garbage collection and processing process is achieved.

CN118799762AActive Publication Date: 2024-10-18SHANXI LANDEKEL LAND PLANNING & DESIGN CONSULTING CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411248704.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2024-10-18
Estimated Expiration
2044-09-06

AI Technical Summary

Technical Problem

The process of rural garbage collection and processing lags behind, is difficult and inefficient, and lacks a specialized garbage classification collection, transportation and processing system, resulting in low garbage collection efficiency.

Method used

UAVs are used to capture rural area images and vehicle location information, perform garbage detection and processing, determine the location of uncollected garbage, establish a positioning coordinate system, generate garbage positioning and collection paths, and improve the collection efficiency of garbage collection vehicles.

Benefits of technology

Through drone detection and path planning, the efficiency of rural garbage collection is improved, the transportation distance and time of collection vehicles are reduced, and the systematicness and efficiency of garbage treatment are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799762A_ABST
    Figure CN118799762A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of garbage positioning, in particular to a rural garbage positioning and collecting method and device, electronic equipment and a medium, and the method comprises the steps: obtaining a rural area image and vehicle position information, carrying out the garbage detection processing of the rural area image, and determining whether uncollected garbage exists in the rural area image or not; when uncollected garbage exists in the rural area image, obtaining original coordinates of the rural image with the uncollected garbage, establishing a positioning coordinate system based on the original coordinates, and determining vehicle position coordinates and garbage positioning coordinates based on the vehicle position information and the positioning coordinate system; and according to the vehicle position coordinates and the garbage positioning coordinates, generating a garbage positioning collection path, and sending the garbage positioning collection path to the garbage collection vehicle terminal. According to the invention, the efficiency of collecting the rural garbage is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of garbage positioning, and in particular to a method, device, electronic equipment and medium for positioning and collecting rural garbage. Background Art

[0002] Garbage is discarded items that have lost their use value and cannot be used. It is an important part of the material cycle and is solid or fluid material that is not needed or useful. In densely populated cities, the common garbage collection and treatment method is to first go to various garbage collection points, and then collect the garbage in the garbage bins placed at the garbage collection points into garbage trucks. After the garbage trucks have collected the garbage at the garbage collection points, they are sent to landfills for landfill or secondary use, or incinerators are used for garbage incineration.

[0003] Compared with cities, the process of garbage collection and treatment in rural areas is relatively lagging and more difficult. The rural population is more dispersed than that in cities, and the distance for collecting and transporting domestic garbage is several times that of cities. In some areas, the rural collective economy is weak, and there is less investment in the classification and treatment of domestic garbage. A special garbage classification collection, transportation and treatment system has not yet been established. Garbage collection is only carried out by garbage collection vehicles within a certain period of time. However, since the current rural garbage is discarded in a relatively random location, it is difficult to collect rural garbage, which reduces the efficiency of collecting rural garbage. Summary of the invention

[0004] In order to solve at least one of the above-mentioned technical problems, the present application provides a rural garbage positioning and collection method, device, equipment and medium.

[0005] In the first aspect, the present application provides a method for locating and collecting rural garbage, which adopts the following technical solution: Obtaining images of rural areas taken by drones and vehicle location information, wherein the vehicle location information is the real-time relative position of the garbage collection vehicle and villages in different areas; Performing garbage detection processing on the rural area image to determine whether there is uncollected garbage in the rural area image, wherein the uncollected garbage is garbage that has not been collected by the garbage collection vehicle; When there is uncollected garbage in the rural area image, original coordinates of the rural image where the uncollected garbage exists are obtained, and a positioning coordinate system is established based on the original coordinates, wherein the original coordinates are center coordinates determined according to the area of ​​the rural area image; The vehicle position coordinates and the garbage position coordinates are determined based on the vehicle position information and the positioning coordinate system, and a garbage positioning and collection path is generated according to the vehicle position coordinates and the garbage positioning coordinates, and the garbage positioning and collection path is sent to the garbage collection vehicle terminal.

[0006] By adopting the above technical scheme, before collecting rural garbage, the rural area image of the rural area where the garbage is to be collected is obtained by drone photography, so as to facilitate the subsequent detection of whether there is rural garbage. At the same time, the vehicle position information of the current garbage truck is also obtained to facilitate the subsequent design of the garbage collection route. Then, the rural area image taken by the drone is subjected to garbage detection processing to determine whether there is uncollected garbage in the rural area image. When it exists, the center coordinates of the rural area are determined according to the area area of ​​the rural area image, and the center coordinates are defined as the original coordinates. A positioning coordinate system is established based on the original coordinates, and then the vehicle position coordinates are determined according to the vehicle position information and the positioning coordinate system. At the same time, the garbage positioning coordinates and the vehicle position coordinates are determined according to the garbage position detected by the rural area image and the positioning coordinate system established according to the rural area image. The garbage positioning coordinates and the vehicle position coordinates are determined. The garbage positioning collection path is determined based on the garbage positioning coordinates and the vehicle position coordinates. The garbage truck collects garbage at different locations in the rural area according to the garbage positioning collection path, thereby improving the garbage collection efficiency in the rural area.

[0007] In a possible implementation, the performing garbage detection processing on the rural area image to determine whether there is uncollected garbage in the rural area image also includes: Performing edge-preserving filtering on the rural area image to form a first layer and a second layer, wherein the first layer is a region basic contour layer in the rural area image, and the second layer is a region detail contour layer in the rural area image; Divide the first layer into a plurality of sub-regions, and obtain a sub-region histogram corresponding to each sub-region and a global histogram corresponding to the first layer, as well as a sub-region flatness corresponding to each sub-region and a global flatness corresponding to the first layer; According to the global histogram and the global flatness, obtaining a first tone curve and a first brightness enhancement curve corresponding to the first layer; According to the sub-region histogram of each sub-region, a second tone curve corresponding to each sub-region is obtained, and the second tone curve is merged with the first tone curve to obtain a merged tone curve; According to the sub-region flatness of each sub-region, a brightness and darkness curve fusion weight corresponding to each sub-region is obtained, and according to the brightness and darkness curve fusion weight, the fused tone curve is fused with the first brightness and darkness enhancement curve to obtain an adjustment curve; According to the adjustment curve, adjusting each sub-region of the first layer to obtain an adjusted first layer; The adjusted first layer is fused with the second layer to obtain a processed rural area image.

[0008] In a possible implementation, obtaining the brightness and darkness curve fusion weight corresponding to each sub-region according to the sub-region flatness of each sub-region includes: According to a mapping curve between a preset sub-region dark area tone weight threshold and a preset sub-region dark area average pixel threshold, a sub-region dark area tone fusion weight corresponding to the dark area average pixel value of each sub-region is obtained; According to a mapping curve between a preset sub-region bright area tone weight threshold and a preset sub-region bright area average pixel threshold, a sub-region bright area tone fusion weight corresponding to the bright area average pixel value of each sub-region is obtained; According to the dark area hue fusion weight of each sub-area corresponding to each sub-area and the sub-area flatness, the dark area fusion weight of the fused tone curve and the first brightness and darkness curve is obtained; according to the bright area hue fusion weight of each sub-area corresponding to each sub-area and the sub-area flatness, the brightness and darkness curve fusion weight of the fused tone curve and the first brightness and darkness enhancement curve is obtained.

[0009] In a possible implementation, performing garbage detection processing on the rural area image to determine whether there is uncollected garbage in the rural area image includes: The processed rural area image is input into a preset garbage detection model to perform garbage detection to determine whether there is uncollected garbage in the rural area image.

[0010] In a possible implementation, when there is uncollected garbage in the rural area image, the method further includes: When there is no uncollected garbage in the rural area image, detecting whether there are overlapping objects in the rural area image, and if so, marking the image in the rural area image with the overlapping objects as an image to be detected; Determine a common view area image in the rural area image that is adjacent to the image to be detected and has the overlapping object, and perform three-dimensional simulation processing based on the image to be detected and the common view area image to obtain a three-dimensional image of the object; Determine coordinate information of overlapping objects in the three-dimensional image of the object and first descriptor information corresponding to the coordinate information; Based on the overlapping object image feature points in the three-dimensional image of the object, a multi-dimensional spatial data search is performed on overlapping images in a preset overlapping image library to obtain an overlapping image set, wherein the preset overlapping image library is an image collection library in which overlapping objects exist in rural area images taken by the drone within a historical time period and the overlapping objects contain garbage; Performing a similarity analysis on the image to be detected and each overlapping image in the overlapping image set according to the coordinate information and the first descriptor to obtain similarity ratio information; Based on the similarity ratio information, a descriptor similarity ratio mean is determined, and it is judged whether the descriptor similarity ratio mean satisfies a preset similarity ratio condition. If so, it is determined that there is uncollected garbage in the image to be detected, and the position corresponding to the image to be detected is located based on the positioning coordinate system to obtain the hidden garbage coordinates.

[0011] In a possible implementation, the process of determining the coordinate information of the overlapping objects in the three-dimensional image of the object and the first descriptor information includes: Converting the three-dimensional image of the object into a three-dimensional video of the object according to a preset observation angle and a preset action change rule, and performing visual frame acquisition on the three-dimensional video of the object to obtain a visual frame of the object; Analyzing and processing the object visual frame to obtain object map points; Based on the object map points, coordinate information and first descriptor information corresponding to overlapping object image feature points in the object three-dimensional image in different observation directions are determined.

[0012] In a possible implementation, performing similarity analysis on the image to be detected and each overlapping image in the overlapping image set according to the coordinate information and the first descriptor to obtain similarity information includes: Corresponding the coordinate information to the corresponding coordinate position of each overlapping image in the overlapping image set, respectively, to obtain second descriptor information, where the second descriptor information is used to represent the descriptor information corresponding to the coordinate information of each overlapping image in the overlapping image set; Perform matrix comparison on the descriptors in the first descriptor information and the descriptors in the second descriptor information to obtain similarity ratio information.

[0013] In the second aspect, the present application provides a rural garbage positioning and collection device, which adopts the following technical solution: A rural garbage positioning and collection device, comprising: An information acquisition module is used to acquire rural area images taken by drones and vehicle location information, wherein the vehicle location information is the real-time relative position of the garbage collection vehicle and villages in different areas; A garbage detection module is used to perform garbage detection processing on the rural area image to determine whether there is uncollected garbage in the rural area image, wherein the uncollected garbage is garbage that has not been collected by the garbage collection vehicle; A coordinate determination module, for obtaining original coordinates of the rural image containing uncollected garbage when uncollected garbage exists in the rural area image, and establishing a positioning coordinate system based on the original coordinates, wherein the original coordinates are center coordinates determined according to the area of ​​the rural area image; The positioning and collection module is used to determine the vehicle position coordinates and the garbage position coordinates based on the vehicle position information and the positioning coordinate system, generate a garbage positioning and collection path according to the vehicle position coordinates and the garbage position coordinates, and send the garbage positioning and collection path to the garbage collection vehicle terminal.

[0014] In a possible implementation, the device further includes: a layer forming module, a region dividing module, a curve acquiring module, a first curve fusion module, a second curve fusion module, a region adjusting module and a layer fusion module, wherein: The layer forming module is used to perform edge-preserving filtering on the rural area image to form a first layer and a second layer, wherein the first layer is a region basic contour layer in the rural area image, and the second layer is a region detail contour layer in the rural area image; The region division module is used to divide the first layer into multiple sub-regions, obtain a sub-region histogram corresponding to each sub-region and a global histogram corresponding to the first layer, and a sub-region flatness corresponding to each sub-region and a global flatness corresponding to the first layer; The curve acquisition module is used to acquire a first tone curve and a first brightness enhancement curve corresponding to the first layer according to the global histogram and the global flatness; A first curve fusion module, configured to obtain a second tone curve corresponding to each sub-region according to a sub-region histogram of each sub-region, and fuse the second tone curve with the first tone curve to obtain a fused tone curve; The second curve fusion module is used to obtain a brightness and darkness curve fusion weight corresponding to each sub-region according to the sub-region flatness of each sub-region, and fuse the fused tone curve with the first brightness and darkness enhancement curve according to the brightness and darkness curve fusion weight to obtain an adjustment curve; A region adjustment module, used for adjusting each sub-region of the first layer according to the adjustment curve to obtain an adjusted first layer; The layer fusion module is used to fuse the adjusted first layer with the second layer to obtain a processed rural area image.

[0015] In another possible implementation, when the second curve fusion module obtains the brightness and darkness curve fusion weight corresponding to each sub-region according to the sub-region flatness of each sub-region, it is specifically used to: According to a mapping curve between a preset sub-region dark area tone weight threshold and a preset sub-region dark area average pixel threshold, a sub-region dark area tone fusion weight corresponding to the dark area average pixel value of each sub-region is obtained; According to a mapping curve between a preset sub-region bright area tone weight threshold and a preset sub-region bright area average pixel threshold, a sub-region bright area tone fusion weight corresponding to the bright area average pixel value of each sub-region is obtained; According to the dark area hue fusion weight of each sub-area corresponding to each sub-area and the sub-area flatness, the dark area fusion weight of the fused tone curve and the first brightness and darkness curve is obtained; according to the bright area hue fusion weight of each sub-area corresponding to each sub-area and the sub-area flatness, the brightness and darkness curve fusion weight of the fused tone curve and the first brightness and darkness enhancement curve is obtained.

[0016] In another possible implementation, when the garbage detection module performs garbage detection processing on the rural area image to determine whether there is uncollected garbage in the rural area image, it is specifically configured to: The processed rural area image is input into a preset garbage detection model to perform garbage detection to determine whether there is uncollected garbage in the rural area image.

[0017] In another possible implementation, the device includes: an overlapping object detection module, a three-dimensional simulation module, an information determination module, an image search module, a similarity ratio analysis module, and a hidden positioning module, wherein: The overlapping object detection module is used to detect whether there are overlapping objects in the rural area image when there is no uncollected garbage in the rural area image, and if so, mark the image with overlapping objects in the rural area image as an image to be detected; The three-dimensional simulation module is used to determine a common view area image in the rural area image that is adjacent to the image to be detected and has the overlapping object, and perform three-dimensional simulation processing based on the image to be detected and the common view area image to obtain a three-dimensional image of the object; The information determination module is used to determine the coordinate information of the overlapping objects in the three-dimensional image of the object and the first descriptor information corresponding to the coordinate information; The image search module is used to perform a multi-dimensional spatial data search on overlapping images in a preset overlapping image library based on overlapping object image feature points in the three-dimensional image of the object to obtain an overlapping image set, wherein the preset overlapping image library is an image collection library in which overlapping objects exist in rural area images taken by the drone within a historical time period and the overlapping objects contain garbage; The similarity ratio analysis module is used to perform a similarity ratio analysis on the image to be detected and each overlapping image in the overlapping image set according to the coordinate information and the first descriptor to obtain similarity ratio information; The hidden positioning module is used to determine the mean similarity ratio of the descriptors based on the similarity ratio information, and judge whether the mean similarity ratio of the descriptors meets the preset similarity ratio condition. If so, it is determined that there is uncollected garbage in the image to be detected, and the position corresponding to the image to be detected is located based on the positioning coordinate system to obtain the hidden garbage coordinates.

[0018] In another possible implementation, when determining the coordinate information of the overlapping objects in the three-dimensional image of the object and the first descriptor information, the information determination module is specifically used to: Converting the three-dimensional image of the object into a three-dimensional video of the object according to a preset observation angle and a preset action change rule, and performing visual frame acquisition on the three-dimensional video of the object to obtain a visual frame of the object; Analyzing and processing the object visual frame to obtain object map points; Based on the object map points, coordinate information and first descriptor information corresponding to overlapping object image feature points in the object three-dimensional image in different observation directions are determined.

[0019] In another possible implementation, when the similarity ratio analysis module performs a similarity ratio analysis on the image to be detected and each overlapping image in the overlapping image set according to the coordinate information and the first descriptor to obtain the similarity ratio information, it is specifically used to: Corresponding the coordinate information to the corresponding coordinate position of each overlapping image in the overlapping image set, respectively, to obtain second descriptor information, where the second descriptor information is used to represent the descriptor information corresponding to the coordinate information of each overlapping image in the overlapping image set; Perform matrix comparison on the descriptors in the first descriptor information and the descriptors in the second descriptor information to obtain similarity ratio information.

[0020] On the third side, the present application provides an electronic device, which adopts the following technical solution: at least one processor; Memory; At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute a rural garbage positioning and collection method as described in any one of the first aspects.

[0021] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: A computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute the rural garbage positioning and collection method as described in any one of the first aspects.

[0022] In summary, the present application includes at least one of the following beneficial technical effects: Before collecting rural garbage, the rural area images of the rural areas where the garbage is to be collected are acquired by drone photography, so as to facilitate the subsequent detection of whether there is rural garbage. At the same time, the vehicle position information of the current garbage truck is also acquired to facilitate the subsequent design of the garbage collection route. Then, the rural area images taken by the drone are subjected to garbage detection processing to determine whether there is uncollected garbage in the rural area images. When there is, the center coordinates of the rural area are determined according to the area area of ​​the rural area image, and the center coordinates are defined as the original coordinates. A positioning coordinate system is established based on the original coordinates, and then the vehicle position coordinates are determined according to the vehicle position information and the positioning coordinate system. At the same time, the garbage positioning coordinates and the vehicle position coordinates are determined according to the garbage position detected by the rural area image and the positioning coordinate system established according to the rural area image. The garbage positioning coordinates and the vehicle position coordinates are determined. The garbage positioning collection path is determined based on the garbage positioning coordinates and the vehicle position coordinates. The garbage truck collects garbage at different locations in the rural area according to the garbage positioning collection path, thereby improving the garbage collection efficiency in the rural area. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A schematic flow chart of a rural garbage positioning and collection method provided in an embodiment of the present application.

[0024] Figure 2 A schematic structural diagram of a rural garbage positioning and collection device provided in an embodiment of the present application.

[0025] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0026] Figure 4 A schematic diagram of coordinate system positioning of a rural garbage positioning and collection device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] The following is combined with Figure 1-4 This application is described in further detail.

[0028] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. After reading this specification, a person skilled in the art may make non-creative modifications to the present embodiment as needed, but such modifications are protected by the patent law as long as they are within the scope of the present application.

[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0030] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.

[0031] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.

[0032] The embodiment of the present application provides a method for locating and collecting rural garbage, which is executed by an electronic device, which can be a server or a terminal device, wherein the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. The terminal device can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The terminal device and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiment of the present application. Figure 1 As shown, the method includes: Step S10: Acquire the rural area image taken by the drone and the vehicle location information.

[0033] Among them, the vehicle location information is the real-time relative position of the garbage collection vehicle and villages in different areas.

[0034] Step S11: perform garbage detection processing on the rural area image to determine whether there is uncollected garbage in the rural area image, where the uncollected garbage is garbage that has not been collected by the garbage collection vehicle.

[0035] Specifically, the processed rural area image is input into a preset garbage detection model for garbage detection to determine whether there is uncollected garbage in the rural area image. In the embodiment of the present application, the preset garbage detection model is a neural network model, and the preset garbage detection model is trained by collecting garbage images of different types and shapes to obtain a trained preset garbage detection model, and then the rural area image is input into the preset garbage detection model for garbage identification to obtain uncollected garbage in the rural area image.

[0036] Step S12: When there is uncollected garbage in the rural area image, the original coordinates of the rural image with uncollected garbage are obtained, and a positioning coordinate system is established based on the original coordinates, where the original coordinates are the center coordinates determined according to the area of ​​the rural area image.

[0037] For the embodiment of the present application, the electronic device determines the rural area contour through the rural area image, and then expands the rural area contour according to the maximum horizontal value and the maximum vertical value, so that the irregular rural area contour is changed to a regular rural area contour, and then the diagonals of the changed rural area contours are connected, and the intersection of the two diagonals is the center coordinate of the rural area image. Specifically, Figure 4 As shown, area A is the rural area outline determined based on the rural area image, area B is the changed rural area outline, a and b are the two diagonals of the rural area outline, and point x is the intersection of the two diagonals, which is the center coordinate of the rural area image in the embodiment of the present application.

[0038] Specifically, a positioning coordinate system is established with the center coordinates as the origin coordinates according to the north-up and south-down orientation, wherein the unit length of the positioning coordinate system is 3 meters.

[0039] Step S13: determine the vehicle position coordinates and the garbage position coordinates based on the vehicle position information and the positioning coordinate system, generate a garbage positioning and collection path according to the vehicle position coordinates and the garbage positioning and collection path, and send the garbage positioning and collection path to the garbage collection vehicle terminal.

[0040] Specifically, since the vehicle position information is the real-time relative position between the garbage collection vehicle and villages in different areas, the vehicle position information is mapped to the positioning coordinate system according to the relative position relationship to obtain the vehicle position coordinates. At the same time, the garbage positioning coordinates are determined based on the position of uncollected garbage in the detected rural area image and the positioning coordinate system.

[0041] A possible implementation method of the embodiment of the present application is to perform garbage detection processing on the rural area image to determine whether there is uncollected garbage in the rural area image, and the method also includes: performing edge preservation filtering on the rural area image to form a first layer and a second layer, the first layer is a regional basic contour layer in the rural area image, and the second layer is a regional detail contour layer in the rural area image, dividing the first layer into multiple sub-areas, obtaining a sub-area histogram corresponding to each sub-area and a global histogram corresponding to the first layer, as well as a sub-area flatness corresponding to each sub-area and a global flatness corresponding to the first layer, and obtaining the first image according to the global histogram and the global flatness. The first tone curve and the first brightness enhancement curve corresponding to the layer are obtained, and the second tone curve corresponding to each sub-region is obtained according to the sub-region histogram of each sub-region, and the second tone curve is merged with the first tone curve to obtain a fused tone curve, and the brightness curve fusion weight corresponding to each sub-region is obtained according to the sub-region flatness of each sub-region, and the fused tone curve is merged with the first brightness enhancement curve according to the brightness curve fusion weight to obtain an adjustment curve, and each sub-region of the first layer is adjusted according to the adjustment curve to obtain the adjusted first layer, and the adjusted first layer is merged with the second layer to obtain a processed rural area image.

[0042] Specifically, based on a mapping curve between a preset sub-region dark area tone weight threshold and a preset sub-region dark area average pixel threshold, a sub-region dark area tone fusion weight corresponding to each sub-region dark area average pixel value is obtained; based on a mapping curve between a preset sub-region bright area tone weight threshold and a preset sub-region bright area average pixel threshold, a sub-region bright area tone fusion weight corresponding to each sub-region bright area average pixel value is obtained; based on the sub-region dark area tone fusion weight corresponding to each sub-region and the sub-region flatness, the dark area fusion weight of the fused tone curve and the first brightness and darkness curve is obtained; based on the sub-region bright area tone fusion weight corresponding to each sub-region and the sub-region flatness, the brightness and darkness curve fusion weight of the fused tone curve and the first brightness and darkness enhancement curve is obtained.

[0043] A possible implementation method of the embodiment of the present application, when there is uncollected garbage in the rural area image, further includes: when there is no uncollected garbage in the rural area image, detecting whether there is an overlapping object in the rural area image, if so, marking the image in the rural area image with the overlapping object as an image to be detected, determining a common view area image in the rural area image that is adjacent to the image to be detected and has an overlapping object, performing three-dimensional simulation processing based on the image to be detected and the common view area image to obtain a three-dimensional image of the object, determining coordinate information of the overlapping object in the three-dimensional image of the object and first descriptor information corresponding to the coordinate information, and based on feature points of the overlapping object image in the three-dimensional image of the object A multi-dimensional spatial data search is performed on overlapping images in a preset overlapping image library to obtain an overlapping image set. The preset overlapping image library is an image collection library in which overlapping objects exist in images of rural areas taken by drones within a historical time period, and the overlapping objects contain garbage. A similarity analysis is performed on the image to be detected and each overlapping image in the overlapping image set according to the coordinate information and the first descriptor to obtain similarity information. A descriptor similarity mean is determined based on the similarity information, and it is judged whether the descriptor similarity mean meets the preset similarity condition. If so, it is determined that there is uncollected garbage in the image to be detected, and the position corresponding to the image to be detected is located based on the positioning coordinate system to obtain the coordinates of the hidden garbage.

[0044] Specifically, the description of the feature points of overlapping object images is to assign a specific and identifiable ID to the extracted feature points, which is usually related to the brightness of the surrounding images, which can be compared to issuing an ID number to each person. At the same time, the description of the feature point generally also includes an intensity value of the feature point, indicating the prominence of this feature. The higher the intensity, the less sensitive and more stable it is to the influence of ambient light, and the lower the intensity, the less reliable it is. Each extracted feature point can be expressed as: .

[0045] Where (u, v) represents the position coordinates of the feature point, s is its intensity value, and d is the descriptor (usually a matrix of fixed size).

[0046] Specifically, the process of determining the coordinate information of overlapping objects in the three-dimensional image of the object and the first descriptor information includes: converting the three-dimensional image of the object into a three-dimensional video of the object according to a preset observation angle and a preset action change rule, and performing visual frame acquisition on the three-dimensional video of the object to obtain the object visual frame, analyzing and processing the object visual frame to obtain the object map point, and determining the coordinate information and the first descriptor information corresponding to the overlapping object image feature points in the three-dimensional image of the object in different observation directions based on the object map point.

[0047] Among them, the preset observation angle includes the initial observation angle of the three-dimensional image of the object and the final observation angle of the three-dimensional image of the object. The preset action change rule is used to represent the change process rule of the three-dimensional image of the object from the initial position to the final position. For example: when the three-dimensional image of the object is tiled, its observation angle is defined as 90 degrees, that is, the observation is perpendicular to the three-dimensional image of the object. At this time, the electronic device observes the image from left to right, and the initial observation angle of the three-dimensional image of the object is 0 degrees, and the final observation angle of the three-dimensional image of the object is 180 degrees. The preset action change rule is based on the central axis of the three-dimensional image of the object to rotate counterclockwise, so that the observation angle of the three-dimensional image of the object changes from 0 degrees to 180 degrees.

[0048] Specifically, similarity analysis is performed on the image to be detected and each overlapping image in the overlapping image set according to the coordinate information and the first descriptor to obtain similarity information, including: the coordinate information is respectively matched with the corresponding coordinate position of each overlapping image in the overlapping image set to obtain second descriptor information, the second descriptor information is used to represent the descriptor information corresponding to the coordinate information of each overlapping image in the overlapping image set. The descriptors in the first descriptor information are respectively compared with the descriptors in the second descriptor information to obtain similarity information.

[0049] Specifically, the descriptor matrix in the first descriptor information is compared with the descriptor matrix in the second descriptor information, and the matching degree in the two matrices is calculated to obtain similarity ratio information. For example: the descriptor matrix in the first descriptor information and the descriptor matrix in the second descriptor information both have three rows and three columns of data, that is, nine groups of data, of which five groups of data are the same, then the similarity ratio of the two matrices is 5 / 9.

[0050] In the embodiment of the present application, the preset similarity condition is that the average similarity ratio is not less than 86%.

[0051] The following is an introduction to a rural garbage positioning and collection device provided in an embodiment of the present application. The rural garbage positioning and collection device described below and the rural garbage positioning and collection method described above can be referred to each other. Please refer to Figure 2 , Figure 2 : is a schematic diagram of the structure of a rural garbage positioning and collection device 20 provided in an embodiment of the present application, comprising: The information acquisition module 21 is used to acquire the rural area images taken by the drone and the vehicle position information, the rural area images are remote sensing images of villages in different areas, and the vehicle position information is the real-time relative position of the garbage collection vehicle and the villages in different areas; The garbage detection module 22 is used to perform garbage detection processing on the rural area image to determine whether there is uncollected garbage in the rural area image, where the uncollected garbage is garbage that has not been collected by the garbage collection vehicle; A coordinate determination module 23 is used to obtain the original coordinates of the rural image where there is uncollected garbage when there is uncollected garbage in the rural area image, and establish a positioning coordinate system based on the original coordinates, where the original coordinates are the center coordinates determined according to the area of ​​the rural area image; The positioning and collecting module 24 is used to determine the vehicle position coordinates and the garbage position coordinates based on the vehicle position information and the positioning coordinate system, generate a garbage positioning and collecting path according to the vehicle position coordinates and the garbage position coordinates, and send the garbage positioning and collecting path to the garbage collection vehicle terminal.

[0052] In a possible implementation of the embodiment of the present application, the device 20 further includes: a layer forming module, a region dividing module, a curve acquiring module, a first curve fusion module, a second curve fusion module, a region adjustment module and a layer fusion module, wherein: A layer forming module, used for performing edge-preserving filtering on the rural area image to form a first layer and a second layer, wherein the first layer is a region basic contour layer in the rural area image, and the second layer is a region detail contour layer in the rural area image; A region division module, used for dividing the first layer into a plurality of sub-regions, obtaining a sub-region histogram corresponding to each sub-region and a global histogram corresponding to the first layer, as well as a sub-region flatness corresponding to each sub-region and a global flatness corresponding to the first layer; A curve acquisition module, used for acquiring a first tone curve and a first brightness enhancement curve corresponding to the first layer according to a global histogram and a global flatness; A first curve fusion module is used to obtain a second tone curve corresponding to each sub-region according to the sub-region histogram of each sub-region, and fuse the second tone curve with the first tone curve to obtain a fused tone curve; A second curve fusion module is used to obtain a brightness and darkness curve fusion weight corresponding to each sub-region according to the sub-region flatness of each sub-region, and fuse the fused tone curve with the first brightness and darkness enhancement curve according to the brightness and darkness curve fusion weight to obtain an adjustment curve; A region adjustment module, used for adjusting each sub-region of the first layer according to the adjustment curve to obtain an adjusted first layer; The layer fusion module is used to fuse the adjusted first layer with the second layer to obtain a processed rural area image.

[0053] In another possible implementation of the embodiment of the present application, when the second curve fusion module obtains the brightness and darkness curve fusion weight corresponding to each sub-region according to the sub-region flatness of each sub-region, it is specifically used to: According to a mapping curve between a preset sub-region dark area tone weight threshold and a preset sub-region dark area average pixel threshold, a sub-region dark area tone fusion weight corresponding to the dark area average pixel value of each sub-region is obtained; According to a mapping curve between a preset sub-region bright area tone weight threshold and a preset sub-region bright area average pixel threshold, a sub-region bright area tone fusion weight corresponding to the bright area average pixel value of each sub-region is obtained; According to the dark area hue fusion weight and sub-area flatness corresponding to each sub-area, the dark area fusion weight of the fused tone curve and the first brightness and darkness curve is obtained; according to the bright area hue fusion weight and sub-area flatness corresponding to each sub-area, the brightness and darkness curve fusion weight of the fused tone curve and the first brightness and darkness enhancement curve is obtained.

[0054] In another possible implementation of the embodiment of the present application, when the garbage detection module 22 performs garbage detection processing on the rural area image to determine whether there is uncollected garbage in the rural area image, it is specifically used to: The processed rural area images are input into a preset garbage detection model for garbage detection to determine whether there is uncollected garbage in the rural area images.

[0055] In another possible implementation of the embodiment of the present application, the device 20 includes: an overlapping object detection module, a three-dimensional simulation module, an information determination module, an image search module, a similarity ratio analysis module and a hidden positioning module, wherein: An overlapping object detection module is used to detect whether there are overlapping objects in the rural area image when there is no uncollected garbage in the rural area image, and if so, mark the image with the overlapping object in the rural area image as an image to be detected; A three-dimensional simulation module is used to determine a common view area image of an object adjacent to the image to be detected and having overlapping objects in the rural area image, and perform three-dimensional simulation processing based on the image to be detected and the common view area image to obtain a three-dimensional image of the object; An information determination module, used to determine coordinate information of overlapping objects in the three-dimensional image of the object and first descriptor information corresponding to the coordinate information; An image search module is used to perform a multi-dimensional spatial data search on overlapping images in a preset overlapping image library based on overlapping object image feature points in the three-dimensional image of the object to obtain an overlapping image set. The preset overlapping image library is an image collection library in which overlapping objects exist in rural area images taken by drones within a historical period and the overlapping objects contain garbage; A similarity ratio analysis module, used for performing similarity ratio analysis on the image to be detected and each overlapping image in the overlapping image set according to the coordinate information and the first descriptor to obtain similarity ratio information; The hidden positioning module is used to determine the mean similarity ratio of the descriptor based on the similarity ratio information, and to judge whether the mean similarity ratio of the descriptor meets the preset similarity ratio condition. If so, it is determined that there is uncollected garbage in the image to be detected, and the position corresponding to the image to be detected is located based on the positioning coordinate system to obtain the coordinates of the hidden garbage.

[0056] In another possible implementation of the embodiment of the present application, when the information determination module determines the coordinate information of the overlapping object in the three-dimensional image of the object and the first descriptor information, it is specifically used to: Converting the three-dimensional image of the object into a three-dimensional video of the object according to a preset observation angle and a preset action change rule, and performing visual frame acquisition on the three-dimensional video of the object to obtain a visual frame of the object; Analyze and process the object visual frame to obtain the object map point; Based on the object map points, coordinate information and first descriptor information corresponding to overlapping object image feature points in the object three-dimensional image at different observation directions are determined.

[0057] In another possible implementation of the embodiment of the present application, when the similarity ratio analysis module performs similarity ratio analysis on the image to be detected and each overlapping image in the overlapping image set according to the coordinate information and the first descriptor to obtain similarity ratio information, it is specifically used to: Corresponding the coordinate information to the corresponding coordinate position of each overlapping image in the overlapping image set, to obtain second descriptor information, where the second descriptor information is used to represent the descriptor information corresponding to each overlapping image in the overlapping image set and the coordinate information; The descriptors in the first descriptor information are respectively compared with the descriptors in the second descriptor information to obtain similarity ratio information.

[0058] An electronic device provided in an embodiment of the present application is introduced below. The electronic device described below and the rural garbage positioning and collection method described above can be referenced to each other.

[0059] The present application embodiment provides an electronic device, such as Figure 3 As shown, Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Figure 3 The electronic device 300 shown includes: a processor 301 and a memory 303. The processor 301 and the memory 303 are connected, such as through a bus 302. Optionally, the electronic device 300 may also include a transceiver 304. It should be noted that in actual applications, the transceiver 304 is not limited to one, and the structure of the electronic device 300 does not constitute a limitation on the embodiments of the present application.

[0060] The processor 301 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the embodiments of the present application. The processor 301 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0061] The bus 302 may include a path to transmit information between the above components. The bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0062] The memory 303 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0063] The memory 303 is used to store application code for executing the solution of the embodiment of the present application, and the execution is controlled by the processor 301. The processor 301 is used to execute the application code stored in the memory 303 to implement the content shown in the above method embodiment.

[0064] Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0065] A computer-readable storage medium provided in an embodiment of the present application is introduced below. The computer-readable storage medium described below and the method described above can be referenced to each other.

[0066] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above rural garbage positioning and collection method are implemented.

[0067] Since the embodiments of the computer-readable storage medium part and the embodiments of the method part correspond to each other, the embodiments of the computer-readable storage medium part refer to the description of the embodiments of the method part.

[0068] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0069] The above are only some implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for locating and collecting rural garbage, characterized in that: include: Obtaining images of rural areas taken by drones and vehicle location information, wherein the vehicle location information is the real-time relative position of the garbage collection vehicle and villages in different areas; Performing garbage detection processing on the rural area image to determine whether there is uncollected garbage in the rural area image, wherein the uncollected garbage is garbage that has not been collected by the garbage collection vehicle; When there is uncollected garbage in the rural area image, original coordinates of the rural image where the uncollected garbage exists are obtained, and a positioning coordinate system is established based on the original coordinates, wherein the original coordinates are center coordinates determined according to the area of ​​the rural area image; The vehicle position coordinates and the garbage position coordinates are determined based on the vehicle position information and the positioning coordinate system, and a garbage positioning and collection path is generated according to the vehicle position coordinates and the garbage positioning coordinates, and the garbage positioning and collection path is sent to the garbage collection vehicle terminal.

2. A method for locating and collecting rural garbage according to claim 1, characterized in that: The performing garbage detection processing on the rural area image to determine whether there is uncollected garbage in the rural area image also includes: Performing edge-preserving filtering on the rural area image to form a first layer and a second layer, wherein the first layer is a region basic contour layer in the rural area image, and the second layer is a region detail contour layer in the rural area image; Divide the first layer into a plurality of sub-regions, and obtain a sub-region histogram corresponding to each sub-region and a global histogram corresponding to the first layer, as well as a sub-region flatness corresponding to each sub-region and a global flatness corresponding to the first layer; According to the global histogram and the global flatness, obtaining a first tone curve and a first brightness enhancement curve corresponding to the first layer; According to the sub-region histogram of each sub-region, a second tone curve corresponding to each sub-region is obtained, and the second tone curve is merged with the first tone curve to obtain a merged tone curve; According to the sub-region flatness of each sub-region, a brightness and darkness curve fusion weight corresponding to each sub-region is obtained, and according to the brightness and darkness curve fusion weight, the fused tone curve is fused with the first brightness and darkness enhancement curve to obtain an adjustment curve; According to the adjustment curve, adjusting each sub-region of the first layer to obtain an adjusted first layer; The adjusted first layer is fused with the second layer to obtain a processed rural area image.

3. A method for locating and collecting rural garbage according to claim 2, characterized in that: The step of obtaining the brightness and darkness curve fusion weight corresponding to each sub-region according to the sub-region flatness of each sub-region includes: According to a mapping curve between a preset sub-region dark area tone weight threshold and a preset sub-region dark area average pixel threshold, a sub-region dark area tone fusion weight corresponding to the average pixel value of each sub-region dark area is obtained; According to a mapping curve between a preset sub-region bright area tone weight threshold and a preset sub-region bright area average pixel threshold, a sub-region bright area tone fusion weight corresponding to the bright area average pixel value of each sub-region is obtained; According to the dark area hue fusion weight of each sub-area corresponding to each sub-area and the sub-area flatness, the dark area fusion weight of the fused tone curve and the first brightness and darkness curve is obtained; according to the bright area hue fusion weight of each sub-area corresponding to each sub-area and the sub-area flatness, the brightness and darkness curve fusion weight of the fused tone curve and the first brightness and darkness enhancement curve is obtained.

4. A method for locating and collecting rural garbage according to claim 2, characterized in that: The performing garbage detection processing on the rural area image to determine whether there is uncollected garbage in the rural area image includes: The processed rural area image is input into a preset garbage detection model to perform garbage detection to determine whether there is uncollected garbage in the rural area image.

5. A method for locating and collecting rural garbage according to claim 1, characterized in that: When there is uncollected garbage in the rural area image, the method further includes: When there is no uncollected garbage in the rural area image, detecting whether there are overlapping objects in the rural area image, and if so, marking the image in the rural area image with the overlapping objects as an image to be detected; Determine a common view area image in the rural area image that is adjacent to the image to be detected and has the overlapping object, and perform three-dimensional simulation processing based on the image to be detected and the common view area image to obtain a three-dimensional image of the object; Determine coordinate information of overlapping objects in the three-dimensional image of the object and first descriptor information corresponding to the coordinate information; Based on the overlapping object image feature points in the three-dimensional image of the object, a multi-dimensional spatial data search is performed on overlapping images in a preset overlapping image library to obtain an overlapping image set, wherein the preset overlapping image library is an image collection library in which overlapping objects exist in rural area images taken by the drone within a historical time period and the overlapping objects contain garbage; Performing a similarity analysis on the image to be detected and each overlapping image in the overlapping image set according to the coordinate information and the first descriptor to obtain similarity ratio information; Based on the similarity ratio information, a descriptor similarity ratio mean is determined, and it is judged whether the descriptor similarity ratio mean satisfies a preset similarity ratio condition. If so, it is determined that there is uncollected garbage in the image to be detected, and the position corresponding to the image to be detected is located based on the positioning coordinate system to obtain the hidden garbage coordinates.

6. A method for locating and collecting rural garbage according to claim 5, characterized in that: The process of determining the coordinate information of the overlapping objects in the three-dimensional image of the object and the first descriptor information includes: Converting the three-dimensional image of the object into a three-dimensional video of the object according to a preset observation angle and a preset action change rule, and performing visual frame acquisition on the three-dimensional video of the object to obtain a visual frame of the object; Analyzing and processing the object visual frame to obtain object map points; Based on the object map points, coordinate information and first descriptor information corresponding to overlapping object image feature points in the object three-dimensional image in different observation directions are determined.

7. A method for locating and collecting rural garbage according to claim 5, characterized in that: The performing similarity analysis on the image to be detected and each overlapping image in the overlapping image set according to the coordinate information and the first descriptor to obtain similarity ratio information includes: Corresponding the coordinate information to the corresponding coordinate position of each overlapping image in the overlapping image set, respectively, to obtain second descriptor information, where the second descriptor information is used to represent the descriptor information corresponding to the coordinate information of each overlapping image in the overlapping image set; Perform matrix comparison on the descriptors in the first descriptor information and the descriptors in the second descriptor information to obtain similarity ratio information.

8. A rural garbage positioning and collection device, characterized in that: include: An information acquisition module is used to acquire rural area images taken by drones and vehicle location information, wherein the vehicle location information is the real-time relative position of the garbage collection vehicle and villages in different areas; A garbage detection module is used to perform garbage detection processing on the rural area image to determine whether there is uncollected garbage in the rural area image, wherein the uncollected garbage is garbage that has not been collected by the garbage collection vehicle; A coordinate determination module, for obtaining original coordinates of the rural image containing uncollected garbage when uncollected garbage exists in the rural area image, and establishing a positioning coordinate system based on the original coordinates, wherein the original coordinates are center coordinates determined according to the area of ​​the rural area image; The positioning and collection module is used to determine the vehicle position coordinates and the garbage position coordinates based on the vehicle position information and the positioning coordinate system, generate a garbage positioning and collection path according to the vehicle position coordinates and the garbage position coordinates, and send the garbage positioning and collection path to the garbage collection vehicle terminal.

9. An electronic device, characterized in that: include: at least one processor; Memory; At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute a rural garbage positioning and collection method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer program is stored which can be loaded by a processor and execute the rural garbage positioning and collection method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • System for comprehensively treating typical agricultural non-point source pollution

    CN114202868A

  • A system for detection and collection of pollutant objects and method thereof

    IN201821010428A

  • life garbage integrated management system

    KR1020130141170A