A method, device and electronic device for detecting overflow of a garbage can

Through multiple algorithms combined with conventional cameras, the overflow detection of trash cans solves the problem that existing technology cannot cope with complex scenarios and high costs, and achieves accurate detection of overflowing trash bins and efficient garbage removal.

CN114155467BActive Publication Date: 2024-09-06SHANGHAI HOWELL ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111460594.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-02
Publication Date
2024-09-06
Estimated Expiration
2041-12-02

AI Technical Summary

Technical Problem

Existing garbage bin overflow detection methods have problems such as being unable to cope with complex scenarios, high cost, and complex equipment, and are difficult to effectively detect ordinary garbage bins.

Method used

Use multiple algorithms combined with conventional cameras to detect the overflow status of the trash can through the garbage target detection model, trash can classification model and garbage volume regression model, generate statistical information and notify the garbage removal team, reducing hardware dependence and reducing costs. Total flow cost.

Benefits of technology

It achieves stable detection of overflowing trash bins in various real-life scenarios, improves garbage removal efficiency, reduces system modification and operating costs, and adapts to the detection needs of different environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114155467B
    Figure CN114155467B
Patent Text Reader

Abstract

The present invention relates to the field of computer technology, and specifically to a method, device and electronic device for detecting overflowing garbage cans, comprising: acquiring a video image to be detected; performing target detection on the video image to be detected using a garbage target detection model to obtain a detection target, wherein the detection target includes one detection target or multiple detection targets; analyzing and processing the detection target to obtain statistical information of the detection target; summarizing the statistical information, and notifying the summarized information to the garbage removal work party. The present invention uses a variety of algorithms to detect the overflowing conditions of garbage cans in various real scenarios, providing assistance for efficient garbage removal work, and at the same time adopts a solution of adding an efficient analysis module to a conventional camera, minimizing hardware dependence and system requirements, reducing the workload of modifying the existing system, and greatly saving total flow costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device and electronic equipment for detecting overflow of a garbage can. Background Art

[0002] As my country accelerates the implementation of the garbage classification system, the corresponding product technologies are also increasing. In urban construction, timely and effective treatment of garbage in garbage bins is one of the important factors affecting the construction of a city's civilization. In related technologies, the method of detecting overflowing garbage bins is that sanitation workers manually inspect the garbage bins, which not only wastes the time and energy of sanitation workers, but also wastes a certain amount of financial resources for the sanitation department to allocate sanitation workers to each area.

[0003] The invention of Beijing Yihualu Information Technology Co., Ltd. proposed a trash can detection model training method and a trash can overflow detection method, but lacked a system solution for dealing with complex scenarios and no real cases; Shenzhen Huawei Minkang Technology Co., Ltd.'s utility model patent disclosed an overflow detection device, but it can only be applied to special smart trash cans and cannot be applied to ordinary trash cans; Shanghai Yeting Intelligent Technology Co., Ltd.'s utility model patent disclosed a trash can overflow detection device, which requires a specially designed trash can and includes: motors, depth cameras, ultrasonic sensors and other complex and high-cost components; Chuangyou Digital Technology (Guangdong) Co., Ltd.'s algorithm patent disclosed a method and device for detecting the overflow state of a trash can, that is, processing images, extracting image features, and using image features to determine the location and overflow state of the trash can. Compared with current deep learning technology, this method is too old and difficult to achieve ideal results. Summary of the invention

[0004] The present invention provides a method, device and electronic device for detecting overflow of a trash can, which realizes overflow detection of trash cans in various real scenarios through multiple algorithms, thus providing assistance for efficient garbage removal. At the same time, a solution of adding an efficient analysis module to a conventional camera is adopted, which greatly saves the total flow cost.

[0005] The embodiment of this specification provides a method for detecting a trash can overflowing, including:

[0006] Acquire the video image to be detected;

[0007] Performing target detection on the video image to be detected using a junk target detection model to obtain a detection target, wherein the detection target includes one detection target or multiple detection targets;

[0008] Analyzing and processing the detection target to obtain statistical information of the detection target;

[0009] The statistical information is summarized and the summary information is notified to the garbage removal work party.

[0010] Preferably, the detection target includes: a garbage dump;

[0011] The analyzing and processing the detection target includes:

[0012] Information analysis is performed on the garbage dump to generate garbage dump statistical information.

[0013] Preferably, the detection target also includes: a trash can;

[0014] The analyzing and processing the detection target further includes:

[0015] Identify the trash can using a trash can classification model to obtain a first trash can type;

[0016] The garbage volume regression model is used to estimate the garbage volume in the garbage bin to obtain an estimated garbage volume;

[0017] The overflow state of the trash can is determined according to the estimated trash amount, and information statistics are collected on the determination result.

[0018] Preferably, the detection target also includes: a person;

[0019] The analyzing and processing the detection target further includes:

[0020] The interfering operations of the character are eliminated.

[0021] Preferably, the detection target also includes: a trash can lid;

[0022] The analyzing and processing the detection target further includes:

[0023] Identify the trash can cover by using the trash can cover classification model to obtain a second trash can type;

[0024] Using the front and back classification model of the trash can cover to identify the front and back of the trash can cover, and obtain the front and back information of the trash can cover;

[0025] Collect information statistics on the second trash can type and the front and back information of the trash can cover.

[0026] Preferably, determining the overflow state of the trash can according to the estimated trash amount includes:

[0027] When the estimated garbage amount is lower than a preset garbage amount threshold, the garbage bin is in a full state;

[0028] When the estimated garbage amount is higher than a preset garbage amount threshold, the garbage bin is in a full state.

[0029] The embodiment of this specification also provides a garbage can overflow detection device, including:

[0030] An image acquisition module, used to acquire the video image to be detected;

[0031] A target detection module, used to perform target detection on the video image to be detected using a junk target detection model to obtain a detection target, wherein the detection target includes one detection target or multiple detection targets;

[0032] A processing module, used to analyze and process the detection target to obtain statistical information of the detection target;

[0033] The notification module is used to summarize the statistical information and notify the garbage removal work party of the summary information.

[0034] Preferably, the detection target includes: a garbage dump;

[0035] The processing module comprises:

[0036] The analysis unit is used to perform information analysis on the garbage dump and generate garbage dump statistical information.

[0037] An electronic device, wherein the electronic device comprises:

[0038] A processor and a memory storing computer executable instructions, wherein when the executable instructions are executed, the processor executes any of the methods described above.

[0039] A computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the one or more programs implement any of the methods described above.

[0040] The present invention uses a variety of algorithms to detect the overflow of garbage bins in various real scenarios. From neat and standardized garbage rooms to chaotic and disordered garbage dumping sites, the present invention can stably detect the overflow of garbage bins, thereby providing assistance for efficient garbage removal. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0042] Figure 1 A schematic diagram of the principle of a method for detecting a garbage can overflowing provided in an embodiment of this specification;

[0043] Figure 2A schematic diagram of the structure of a garbage can overflow detection device provided in an embodiment of this specification;

[0044] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification;

[0045] Figure 4 A schematic diagram of a computer-readable medium provided for an embodiment of this specification;

[0046] Figure 5 A flowchart of a method for detecting a trash can overflowing provided in an embodiment of this specification. DETAILED DESCRIPTION

[0047] Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. However, exemplary embodiments can be implemented in a variety of forms, and should not be construed as limiting the present invention to the embodiments set forth herein. On the contrary, providing these exemplary embodiments enables the present invention to be more comprehensive and complete, and is more convenient for fully conveying the inventive concept to those skilled in the art. The same reference numerals in the figures represent the same or similar elements, components or parts, and thus their repeated description will be omitted.

[0048] Under the premise of being consistent with the technical concept of the present invention, the features, structures, characteristics or other details described in a specific embodiment do not exclude that they can be combined in one or more other embodiments in a suitable manner.

[0049] In the description of specific embodiments, the features, structures, characteristics or other details described in the present invention are intended to enable those skilled in the art to fully understand the embodiments. However, it does not exclude that those skilled in the art can practice the technical solutions of the present invention without one or more of the specific features, structures, characteristics or other details.

[0050] The figures shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be performed in the order described. For example, some operations / steps can be decomposed, while some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0051] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0052] The term "and / or" or "and / or" includes all combinations of any one or more of the associated listed items.

[0053] Reference Figure 1 A schematic diagram of a trash can overflow detection method provided in an embodiment of this specification includes:

[0054] S101: Acquire a video image to be detected;

[0055] In a preferred embodiment of the present invention, a frame of video image is obtained from a camera, generally a 1280x720 resolution RGB format image, wherein the video image acquisition method is not limited to the camera, and the video image should include the entire scene, and at least a trash can should exist in the scene. We avoid the large cost of modifying the trash can and abandon the use of expensive components such as depth cameras. Instead, we adopt a solution of adding an efficient analysis module to a conventional camera, which minimizes hardware dependence and system requirements, reduces the workload of modifying the existing system, greatly saves the total flow cost, and makes it possible to promote it on a large scale.

[0056] Furthermore, an optimal video image to be detected is obtained by screening and processing the video image collected by the camera.

[0057] S102: performing target detection on the to-be-detected video image using a junk target detection model to obtain a detection target, where the detection target includes one detection target or multiple detection targets;

[0058] In a preferred embodiment of the present invention, we use the YOLOv5 deep model to detect targets in the monitored garbage area, which are divided into the following categories of targets:

[0059] Garbage pile: If garbage is not removed from the garbage disposal point in time, the garbage will accumulate on the garbage bin, or even completely cover the garbage bin, forming a garbage pile;

[0060] Trash bins: bins that are not full, or bins whose rims are not completely covered;

[0061] People: Generally, they are garbage collectors. Their behaviors such as carrying, cleaning garbage bins, and sorting recyclable garbage will interfere with the final result and need to be filtered out.

[0062] Trash Can Lid: The trash can lid may be a covered trash can, or the flip-back lid of an open trash can.

[0063] By detecting multiple targets as described above, the accuracy of the final detection of the overflowing result of the trash can is guaranteed.

[0064] S103: Analyze and process the detection target to obtain statistical information of the detection target;

[0065] In a preferred embodiment of the present invention, when there are multiple detection targets, each detection target is analyzed and processed separately through different processing methods to obtain analysis and processing results of multiple detection targets, and the processing results are statistically analyzed to facilitate subsequent message notifications to garbage cleaning personnel.

[0066] S104: Summarize the statistical information and notify the garbage removal work party of the summary information.

[0067] In a preferred embodiment of the present invention, when the detection targets include trash cans, garbage piles, people and trash can lids, the information statistics of each detection target are summarized as above to form a final summary report. The management platform will send the summary report to relevant staff according to specific needs or when the trash can is full, it will automatically alarm and notify the garbage removal personnel to dispose of the garbage, thereby achieving efficient disposal of the garbage and avoiding the cumbersome garbage cleaning problem caused by overfilling.

[0068] Further, the detection targets include: garbage dumps;

[0069] The analyzing and processing the detection target includes:

[0070] Information analysis is performed on the garbage dump to generate garbage dump statistical information.

[0071] In a preferred embodiment of the present invention, due to untimely garbage removal from garbage disposal points, garbage will accumulate on the garbage cans, or even completely cover the garbage cans, forming a garbage pile. Therefore, when there is a garbage pile in the detection target, information analysis will be performed on the garbage pile to generate garbage pile statistical information, which will be used for subsequent statistical information aggregation and alerting cleaning staff to dispose of the garbage in a timely manner.

[0072] Furthermore, the detection target also includes: a trash can;

[0073] The analyzing and processing the detection target further includes:

[0074] Identify the trash can using a trash can classification model to obtain a first trash can type;

[0075] The garbage volume regression model is used to estimate the garbage volume in the garbage bin to obtain an estimated garbage volume;

[0076] The overflow state of the trash can is determined according to the estimated trash amount, and information statistics are collected on the determination result.

[0077] In a preferred embodiment of the present invention, general trash cans are divided into four categories: dry trash cans, wet trash cans, recyclable trash cans, and hazardous waste. Under normal circumstances, they are distinguished by color. However, in real applications, due to fading, dirtiness, insufficient light, and other factors, some trash cans are not easy to distinguish with the human eye. Therefore, we trained the MobilenetV3 model with a large amount of data to obtain the final trash can classification model, and achieved a good trash can classification effect. After the trash can is located and the category is identified, it is necessary to estimate the amount of garbage. Because the common regression model cannot adapt to the complex and chaotic situation in the trash can, we use the deep classification model as the backbone and modify it to construct a new garbage volume regression model. We choose the dense convolutional network DenseNet121 as the backbone, which has the advantages of full feature utilization and a small number of parameters. The modification plan is as follows: dropout is added to avoid overfitting, the cost function selects MSE (standard error of mean, sampling error of the mean), the activation function selects softplus, and the output layer is changed to one-dimensional regression. The garbage volume regression model obtained through the above modifications can better estimate the garbage volume in the garbage bin, and then determine the overflow state of the garbage bin based on the estimated garbage volume. The above method can be used to determine whether to alert the cleaning staff to rush to the area where the garbage bin is located to dispose of the garbage, thereby improving the garbage cleaning efficiency.

[0078] Furthermore, after the amount of garbage is confirmed, the garbage bin can be predicted to be full with a high probability based on historical garbage dumping data. Specifically, a garbage volume prediction model is trained based on historical garbage dumping data, and the garbage volume in the future time period is predicted through the model, which reduces the monitoring time of the camera accordingly. This solution is an optional solution, and the model can be added according to specific circumstances.

[0079] Furthermore, the detection targets also include: people;

[0080] The analyzing and processing the detection target further includes:

[0081] The interfering operations of the character are eliminated.

[0082] In a preferred embodiment of the present invention, when there are garbage cleaners among the detection targets, the interference operations of the garbage cleaners are eliminated to avoid interference in the recognition of garbage bins due to human operations, thereby improving the accuracy of the recognition results of overflowing garbage bins.

[0083] Furthermore, the detection target also includes: a trash can lid;

[0084] The analyzing and processing the detection target further includes:

[0085] Identify the trash can cover by using the trash can cover classification model to obtain a second trash can type;

[0086] Using the front and back classification model of the trash can cover to identify the front and back of the trash can cover, and obtain the front and back information of the trash can cover;

[0087] Collect information statistics on the second trash can type and the front and back information of the trash can cover.

[0088] In a preferred embodiment of the present invention, when there is a trash can lid in the detection target, the trash can lid is identified by using a trash can lid classification model, and the specific category of the trash can is determined according to the specific pattern or color mark on the trash can lid. The front and back of the trash can lid are identified by using a trash can lid front and back classification model. When the trash can lid is facing up, it means that this is a covered trash can, and the amount of garbage inside the garbage can be found through historical garbage placement information. When the trash can lid is facing up, it means that this is an open trash can lid. At this time, the lid information is ignored, and the above results are used to generate covered trash can information, and trash can overflow statistics are generated. The management platform will make corresponding arrangements or alarms based on the statistical information to achieve rapid processing of garbage. When the trash can lid is facing up, the garbage volume regression model will be used to determine the garbage volume, which is the same as the garbage volume confirmation method of the above-mentioned trash can, and will not be repeated here. Among them, the trash can lid classification model and the trash can lid front and back classification model are obtained by training two MobilenetV3 models.

[0089] Further, determining the overflow state of the trash can according to the estimated trash amount includes:

[0090] When the estimated garbage amount is lower than a preset garbage amount threshold, the garbage bin is in a full state;

[0091] When the estimated garbage amount is higher than a preset garbage amount threshold, the garbage bin is in a full state.

[0092] In a preferred embodiment of the present invention, each trash can has a fixed trash volume threshold, and the capacities of trash cans in the same area are basically the same. Therefore, when it is detected that the estimated trash volume is lower than the preset trash volume threshold, it is determined that the trash can is not full at this time; when the estimated trash volume is higher than the preset trash volume threshold, it is determined that the trash can is full at this time, and it is necessary to promptly alert the cleaning staff to carry out timely garbage disposal to prevent excessive garbage overflow and affect the garbage cleaning efficiency.

[0093] Reference Figure 5A flowchart of a method for detecting a trash can overflowing is provided in an embodiment of the present specification. First, a camera image, i.e., a video image to be detected, is acquired through a camera. Then, a garbage target detection model is used to identify the camera image. When a garbage pile is detected, it indicates that the trash can is full at this time. After direct data processing, trash can overflow statistics are generated and reported to a management platform, which notifies the staff to handle the problem. When a trash can is detected, a trash can classification model is used to determine the classification of the trash can. Then, a garbage recovery model is used to estimate the amount of garbage in the trash can. Then, based on the estimated amount of garbage, the trash can overflow state is determined to generate a trash can. Overflow statistics are collected and sent to the management platform for management; when a task is detected, human interference is removed to determine the final overflow status of the trash can; when a trash can lid is detected, the trash can lid classification model is used to determine the type of trash can, and the front and back of the trash can lid are determined by the trash can lid positive and negative classification model, and the covered trash can information is generated. For the trash can lid, if the front side is facing up, it means that this is a covered trash can, and the amount of garbage inside can be found through historical garbage placement information. If the back side is facing up, it means that this is an open trash can lid, and the lid information is ignored. The above results are used to generate covered trash can information. Finally, all the information is counted and sent to the management platform. Or according to the actual situation, the full trash can is alarmed, and the management platform will automatically notify the corresponding cleaning staff to handle it. The algorithm used in the model of the present invention has strong adaptability and high accuracy, and has been tested in various real-life scenarios. The algorithm comprehensively utilizes multiple deep models such as YOLOv5, DenseNet121, and MobilenetV3, and can still perform stably in some old and chaotic garbage room environments; the system minimizes its dependence on hardware, can make full use of existing systems, and greatly reduces overall costs.

[0094] Figure 2 A schematic diagram of a garbage can overflow detection device provided in an embodiment of this specification includes:

[0095] An image acquisition module 201 is used to acquire a video image to be detected;

[0096] The target detection module 202 is used to perform target detection on the video image to be detected by using a junk target detection model to obtain a detection target, wherein the detection target includes one detection target or multiple detection targets;

[0097] The processing module 203 is used to analyze and process the detection target to obtain statistical information of the detection target;

[0098] The notification module 204 is used to summarize the statistical information and notify the garbage removal work party of the summary information.

[0099] Further, the detection targets include: garbage dumps;

[0100] The processing module 203 includes:

[0101] The analysis unit is used to perform information analysis on the garbage dump and generate garbage dump statistical information.

[0102] Furthermore, the detection target also includes: a trash can;

[0103] The processing module 203 further includes:

[0104] A first identification unit, configured to identify the trash can by using a trash can classification model to obtain a first trash can type;

[0105] A second identification unit is used to estimate the amount of garbage in the garbage bin by using a garbage amount regression model to obtain an estimated amount of garbage;

[0106] The determination unit is used to determine the overflow state of the trash can according to the estimated trash amount, and to collect information statistics on the determination result.

[0107] Furthermore, the detection targets also include: people;

[0108] The processing module 203 further includes:

[0109] The elimination unit is used to eliminate the interfering operations of the character.

[0110] Furthermore, the detection target also includes: a trash can lid;

[0111] The processing module 203 further includes:

[0112] a third identification unit, configured to identify the trash can cover by using the trash can cover classification model to obtain a second trash can type;

[0113] A fourth recognition unit, configured to recognize the front and back of the trash can cover by using the front and back classification model of the trash can cover, and obtain the front and back information of the trash can cover;

[0114] An information statistics unit is used to collect information statistics on the front and back information of the second trash can type and the trash can lid.

[0115] Furthermore, the determination unit includes:

[0116] A first determination subunit, configured to determine that the trash bin is not full when the estimated trash amount is lower than a preset trash amount threshold;

[0117] The second determination subunit is configured to determine that the trash bin is full when the estimated trash amount is higher than a preset trash amount threshold.

[0118] The functions of the device in the embodiment of the present invention have been described in the above method embodiment, so for details not provided in the description of this embodiment, please refer to the relevant description in the above embodiment, and no further description will be given here.

[0119] Based on the same inventive concept, an embodiment of this specification also provides an electronic device.

[0120] The following describes an electronic device embodiment of the present invention, which can be regarded as a specific physical implementation of the method and device embodiments of the present invention. The details described in the electronic device embodiment of the present invention should be regarded as a supplement to the above method or device embodiments; details not disclosed in the electronic device embodiment of the present invention can be implemented with reference to the above method or device embodiments.

[0121] Reference Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this specification. Figure 3 The electronic device 300 according to the embodiment of the present invention is described. Figure 3 The electronic device 300 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0122] like Figure 3 As shown, the electronic device 300 is in the form of a general computing device. The components of the electronic device 300 may include, but are not limited to: at least one processing unit 310, at least one storage unit 320, a bus 330 connecting different device components (including the storage unit 320 and the processing unit 310), a display unit 340, etc.

[0123] The storage unit stores program codes, which can be executed by the processing unit 310, so that the processing unit 310 performs the steps according to various exemplary embodiments of the present invention described in the above processing method section of this specification. For example, the processing unit 310 can perform the following steps: Figure 1 Steps shown.

[0124] The storage unit 320 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 3201 and / or a cache memory unit 3202 , and may further include a read-only memory unit (ROM) 3203 .

[0125] The storage unit 320 may also include a program / utility 3204 having a set (at least one) of program modules 3205, such program modules 3205 including but not limited to: operating means, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.

[0126] Bus 330 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0127] The electronic device 300 may also communicate with one or more external devices 400 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 300, and / or any device that enables the electronic device 300 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 350. Furthermore, the electronic device 300 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 360. The network adapter 360 may communicate with other modules of the electronic device 300 through the bus 330. It should be understood that although Figure 3 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape drives, and data backup storage devices.

[0128] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the exemplary embodiments described in the present invention can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation method of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.) or on a network, including a number of instructions to enable a computing device (which can be a personal computer, server, or network device, etc.) to execute the above method according to the present invention. When the computer program is executed by a data processing device, the computer-readable medium can implement the above method of the present invention, that is: Figure 1 The method shown.

[0129] Reference Figure 4 A schematic diagram of a computer-readable medium provided for an embodiment of this specification.

[0130] accomplish Figure 1The computer program of the method shown can be stored on one or more computer readable media. The computer readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor device, device or component, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0131] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution device, device, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.

[0132] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0133] In summary, the present invention can be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that general data processing devices such as microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components in the embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0134] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the present invention is not inherently related to any specific computer, virtual device or electronic device, and various general devices can also implement the present invention. The above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

[0135] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0136] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for detecting overflow of a garbage can, characterized in that: include: Acquire the video image to be detected; Performing target detection on the video image to be detected using a junk target detection model to obtain a detection target, wherein the detection target includes one detection target or multiple detection targets; The detection targets include trash cans and trash can lids; Analyzing and processing the detection target to obtain statistical information of the detection target includes: When the detection target is a trash can, the trash can classification model is used to identify the trash can to obtain a first trash can type; the trash amount regression model is used to estimate the trash amount in the trash can to obtain an estimated trash amount; the overflow state of the trash can is determined according to the estimated trash amount, and information statistics are performed on the determination result; wherein the trash amount regression model selects a dense convolutional network DenseNet121 as the backbone, adds dropout to avoid overfitting, selects the sampling error of the average for the cost function, selects softplus for the activation function, and changes the output layer to a one-dimensional regression; When the detection target is a trash can lid, the trash can lid is identified by using a trash can lid classification model to obtain a second trash can type; the front and back of the trash can lid are identified by using a trash can lid front and back classification model to obtain front and back information of the trash can lid; information statistics are performed on the second trash can type and the front and back information of the trash can lid; wherein, the front and back of the trash can lid are identified by using a trash can lid front and back classification model to obtain the front and back information of the trash can lid, including: when the trash can lid is identified by using a trash can front and back classification model as being front-facing, the amount of garbage in the trash can is searched through historical garbage placement information; when the trash can lid is identified by using a trash can front and back classification model as being back-facing, the amount of garbage in the trash can is determined by using a garbage amount regression model; The statistical information is summarized and the summary information is notified to the garbage removal work party.

2. A method for detecting overflow of a garbage can as claimed in claim 1, characterized in that: The detection targets include: garbage dumps; The analyzing and processing the detection target includes: Information analysis is performed on the garbage dump to generate garbage dump statistical information.

3. A method for detecting overflow of a garbage can as claimed in claim 2, characterized in that: The detection targets also include: people; The analyzing and processing the detection target further includes: The interfering operations of the character are eliminated.

4. A method for detecting overflow of a garbage can as claimed in claim 3, characterized in that: The determining the overflow state of the trash can according to the estimated trash amount includes: When the estimated garbage amount is lower than a preset garbage amount threshold, the garbage bin is in a full state; When the estimated garbage amount is higher than a preset garbage amount threshold, the garbage bin is in a full state.

5. A garbage bin overflow detection device, characterized in that: include: An image acquisition module, used to acquire the video image to be detected; A target detection module, used to perform target detection on the video image to be detected using a junk target detection model to obtain a detection target, wherein the detection target includes one detection target or multiple detection targets; The detection targets include trash cans and trash can lids; A processing module, used to analyze and process the detection target to obtain statistical information of the detection target, including: When the detection target is a trash can, the trash can classification model is used to identify the trash can to obtain a first trash can type; the trash amount regression model is used to estimate the trash amount in the trash can to obtain an estimated trash amount; the overflow state of the trash can is determined according to the estimated trash amount, and information statistics are performed on the determination result; wherein the trash amount regression model selects a dense convolutional network DenseNet121 as the backbone, adds dropout to avoid overfitting, selects the sampling error of the average for the cost function, selects softplus for the activation function, and changes the output layer to a one-dimensional regression; When the detection target is a trash can lid, the trash can lid is identified by using a trash can lid classification model to obtain a second trash can type; the front and back of the trash can lid are identified by using a trash can lid front and back classification model to obtain front and back information of the trash can lid; information statistics are performed on the second trash can type and the front and back information of the trash can lid; wherein, the front and back of the trash can lid are identified by using a trash can lid front and back classification model to obtain the front and back information of the trash can lid, including: when the trash can lid is identified by using a trash can front and back classification model as being front-facing, the amount of garbage in the trash can is searched through historical garbage placement information; when the trash can lid is identified by using a trash can front and back classification model as being back-facing, the amount of garbage in the trash can is determined by using a garbage amount regression model; The notification module is used to summarize the statistical information and notify the garbage removal work party of the summary information.

6. A garbage can overflow detection device as claimed in claim 5, characterized in that: The detection targets include: garbage dumps; The processing module comprises: The analysis unit is used to perform information analysis on the garbage dump and generate garbage dump statistical information.

7. An electronic device, wherein: The electronic device includes: processor; and, A memory storing computer executable instructions which, when executed, cause the processor to perform the method according to any one of claims 1-4.

8. A computer-readable storage medium, wherein: The computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the method of any one of claims 1 to 4 is implemented.