CN115984361A - Garbage can overflow detection method and system - Google Patents

Garbage can overflow detection method and system Download PDF

Info

Publication number
CN115984361A
CN115984361A CN202310257458.4A CN202310257458A CN115984361A CN 115984361 A CN115984361 A CN 115984361A CN 202310257458 A CN202310257458 A CN 202310257458A CN 115984361 A CN115984361 A CN 115984361A
Authority
CN
China
Prior art keywords
garbage
point
points
calculation
trash
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310257458.4A
Other languages
Chinese (zh)
Other versions
CN115984361B (en
Inventor
许正昊
马锡铭
冯绍辉
赵全颖
方长根
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhonghuajie Group Co ltd
Original Assignee
Zhonghuajie Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhonghuajie Group Co ltd filed Critical Zhonghuajie Group Co ltd
Priority to CN202310257458.4A priority Critical patent/CN115984361B/en
Publication of CN115984361A publication Critical patent/CN115984361A/en
Application granted granted Critical
Publication of CN115984361B publication Critical patent/CN115984361B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02WCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO WASTEWATER TREATMENT OR WASTE MANAGEMENT
    • Y02W30/00Technologies for solid waste management
    • Y02W30/10Waste collection, transportation, transfer or storage, e.g. segregated refuse collecting, electric or hybrid propulsion

Landscapes

  • Measurement Of Levels Of Liquids Or Fluent Solid Materials (AREA)
  • Image Analysis (AREA)

Abstract

The invention relates to a method and a system for detecting overflow of a garbage can, wherein the method comprises the steps of obtaining an image of the garbage can; identifying a trash can part of the trash can image and marking the trash can part based on a trash can outline identification rule, and determining an identification image; calculating and identifying the central point of the garbage can part in the image based on a central point calculation rule; determining a plurality of garbage positioning points and a plurality of barrel positioning points according to positioning point determination rules, identification images and the central point; determining an area ratio according to the area calculation rule, the garbage positioning point and the barrel positioning point; and outputting the overflow prompt information according to the ratio judgment rule and the area ratio. The method has the effect of improving the accuracy of judging the overflowing state of the garbage can.

Description

Garbage can overflow detection method and system
Technical Field
The application relates to the technical field of garbage recycling, in particular to a garbage bin overflow detection method and system.
Background
In urban construction, timely and effective treatment of garbage in the garbage can is one of important factors influencing urban civilized construction.
At present, the garbage collection and transportation operation of the garbage bin in public places is to collect and transport the garbage bin in a fixed time, the operation mode is simple, but the garbage bin is not full to collect and transport the garbage, so that the utilization rate of the garbage bin is low, or the garbage bin is full before collection and transportation, the living environment and the living experience of surrounding residents are influenced, peculiar smell can be generated when the garbage is accumulated for a long time, and the peripheral sanitary condition is reduced.
The existing garbage bin overflow detection method is to determine whether the garbage bin is in an overflow state by setting an infrared sensor to detect the information value of the surface height of the garbage in the garbage bin. But the garbage can is not in an ideal state due to the stacking state of the garbage in the garbage can. A large gap possibly exists between the garbage in the garbage can and the garbage, so that the garbage which cannot contain enough garbage in the garbage can is reported to be in an overflow state, and the utilization rate of the garbage can is reduced.
The above prior art solutions have the following drawbacks: the problem that the judgment accuracy rate of the overflow state of the garbage can is low exists.
Disclosure of Invention
In order to solve the problem of low accuracy of judgment of the overflow state of the garbage can, the application provides a garbage can overflow detection method and system.
In a first aspect of the present application, a method for detecting overfilling of a trash can is provided. The method comprises the following steps:
acquiring a garbage can image, wherein the garbage can image is a top view of the uncovering state of the garbage can;
identifying a trash can part of the trash can image and marking the trash can part based on a trash can outline identification rule to determine an identification image;
calculating the central point of the garbage can part in the identification image based on a central point calculation rule;
determining a plurality of garbage positioning points and a plurality of barrel positioning points according to positioning point determination rules, the identification images and the central point;
determining an area ratio according to an area calculation rule, the garbage positioning points and the barrel positioning points;
and outputting overflow prompt information according to the ratio judgment rule and the area ratio.
According to the technical scheme, the garbage can image is obtained, the garbage can part is identified from the garbage can image and marked, the marked image is marked as an identification image, the central point of the garbage can part is determined according to the identification image, the garbage positioning point and the can positioning point are determined according to the central point, and the area ratio is calculated according to the area calculation rule, the garbage positioning point and the can positioning point; and finally, outputting overflow prompt information according to the ratio judgment rule and the calculated area ratio. The state of the garbage in the garbage can is determined by calculating the area ratio, the prompt information is output, and the problem that the overflow state of the garbage can is low in judgment accuracy can be improved to a certain extent by judging the state of the garbage can according to the area ratio.
In a possible implementation manner, the calculating a center point of the trash can in the identification image based on a center point calculation rule includes:
acquiring coordinates of all points of the garbage can part;
determining the maximum value of the abscissa, the minimum value of the abscissa, the maximum value of the ordinate and the minimum value of the ordinate according to the coordinates of all the points;
and respectively calculating the horizontal coordinate midpoint and the vertical coordinate midpoint according to the horizontal coordinate maximum value, the horizontal coordinate minimum value, the vertical coordinate maximum value and the vertical coordinate minimum value, wherein the point corresponding to the coordinate formed by the horizontal coordinate midpoint and the vertical coordinate midpoint is the central point.
In a possible implementation manner, the determining a plurality of garbage locating points and a plurality of bucket locating points according to a locating point determining rule, the identification image and the central point includes:
stretching along rays to the periphery by taking the central point as a midpoint, wherein the rays have intersection points with the garbage can part;
and for one ray, when a plurality of intersection points exist with the garbage can part, marking the intersection point with the shortest distance from the central point as a garbage positioning point and marking the intersection point with the longest distance from the central point as a can positioning point.
In a possible implementation manner, the determining an area ratio according to the area calculation rule, the garbage locating point and the bucket locating point includes:
determining corresponding barrel calculation points and garbage calculation points from the barrel positioning points and the garbage positioning points respectively according to a key point determination rule;
respectively sequencing the barrel calculation points and the garbage calculation points according to a preset sequencing rule, and respectively determining a garbage calculation point sequence and a barrel calculation point sequence;
sequentially taking garbage calculation points from the garbage calculation point sequence, and calculating the area of a triangle formed by two adjacent garbage calculation points and the central point, wherein the area is the garbage sub-area;
when the garbage calculation points in the garbage calculation point sequence are taken, calculating the sum of all garbage sub-areas to obtain a garbage area;
sequentially taking barrel calculation points from the barrel calculation point sequence, and calculating the area of a triangle formed by two adjacent barrel calculation points and the central point, wherein the area is the barrel area;
when the bucket computing points in the bucket computing point sequence are taken, computing the sum of the areas of all the buckets to obtain the bucket area;
the area ratio = the trash area/the bin area.
In a possible implementation manner, the outputting the overflow prompting information according to the ratio determination rule and the area ratio includes:
according to a preset ratio range and the area ratio, making state marks on the garbage can images, wherein the state marks comprise an empty can state, a small quantity state, a half can state, a full load state and an overflow state;
and when the mark of the garbage can image is in a full-load state or an overflow state, outputting overflow prompt information.
In one possible implementation, the method further includes:
acquiring garbage weight data;
and when the garbage weight data is larger than a preset weight value, outputting weight alarm information.
In one possible implementation, the method further includes:
acquiring radiation intensity data;
and when the radiation intensity data is greater than the intensity preset value, outputting intensity alarm information.
In a second aspect of the present application, a trashcan overfill detection system is provided. The system comprises: the device comprises a camera, a controller, an alarm module, a weight detection device and a radiation detection device, wherein the camera, the weight detection device and the radiation detection device are all electrically connected with the controller, and the controller is electrically connected with the alarm module;
the camera is used for acquiring image information of the trash can and outputting images of the trash can;
the weight detection device is used for detecting the weight of the garbage in the garbage can and outputting garbage weight data;
the radiation detection device is used for detecting the radiation intensity in the garbage can and outputting radiation intensity data;
the controller is used for executing the garbage bin overflow detection method and also used for outputting strength alarm information, weight alarm information and overflow prompt information;
the alarm module is used for receiving the strength alarm information, the weight alarm information and the overflow prompt information, and giving an alarm when any one or more of the strength alarm information, the weight alarm information and the overflow prompt information are received.
In one possible implementation, the controller includes:
the data acquisition module is used for acquiring a garbage can image, and the garbage can image is a top view of the uncovering state of the garbage can;
the image identification module is used for identifying a garbage can part of the garbage can image and marking the garbage can part based on a garbage can outline identification rule to determine an identification image;
the center determining module is used for calculating the center point of the garbage can part in the identification image based on a center point calculation rule;
the locating point determining module is used for determining a plurality of garbage locating points and a plurality of barrel locating points according to locating point determining rules, the identification images and the central point;
the ratio determining module is used for determining an area ratio according to an area calculation rule, the garbage positioning points and the barrel positioning points;
and the information output module is used for outputting the overflow prompt information according to the ratio judgment rule and the area ratio.
In a possible implementation manner, the system further comprises an infrared thermometer, wherein the infrared thermometer is electrically connected with the controller;
the infrared thermometer is used for detecting the temperature of the garbage in the garbage can and outputting a temperature detection signal;
the controller is used for receiving the temperature detection signal and outputting a temperature abnormal signal when the temperature reflected by the temperature detection signal is higher than a preset temperature value;
and the alarm module is used for receiving the temperature abnormal signal and giving an alarm.
In summary, the present application includes at least one of the following beneficial technical effects:
the method comprises the steps of obtaining a garbage can image, identifying a garbage can part from the garbage can image and marking the garbage can part, marking the marked image as an identification image, determining a central point of the garbage can part according to the identification image, determining a garbage positioning point and a can positioning point according to the central point, and calculating an area ratio according to an area calculation rule, the garbage positioning point and the can positioning point; and finally, according to the ratio judgment rule and the area ratio, outputting overflow prompt information. The problem of low judgment accuracy of the overflowing state of the garbage can be improved to a certain extent by judging the state of the garbage can according to the area ratio.
Drawings
Fig. 1 is a schematic flow chart of a trash can overfill detection method provided by the present application.
Fig. 2 is a schematic structural diagram of a trash can overflow detection system provided by the present application.
Fig. 3 is a schematic structural diagram of a controller provided in the present application.
In the figure, 200, a garbage bin overflow detection system; 10. a controller; 101. a data acquisition module; 102. an image recognition module; 103. a center determination module; 104. a positioning point determining module; 105. a ratio determination module; 106. an information output module; 20. a camera; 30. a weight detecting device; 40. a radiation detection device; 50. an infrared thermometer; 60. and an alarm module.
Detailed description of the preferred embodiments
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship, unless otherwise specified.
The embodiments of the present application will be described in further detail with reference to the drawings attached hereto.
The embodiment of the application provides a garbage bin overflow detection method, and the main processes of the method are described as follows.
As shown in fig. 1:
step S101: and acquiring an image of the trash can.
Specifically, the trash can image is an image corresponding to a top view of the trash can in the open state, and the trash can image is acquired through an image acquisition device.
Step S102: and identifying the trash can part of the trash can image and marking the trash can part based on the trash can contour identification rule, and determining an identification image.
In one example, a training data set is obtained, where the training data set includes a trash can image obtained by a camera and a marked trash can image, the marked trash can image is obtained by marking a trash can part in the collected trash can image, and the marked trash can image and an initial trash can image are input to a preset neural network model to obtain a trained model. The acquired garbage can image is input into the trained model, so that the garbage can part of the garbage can image can be identified and marked, and an identification image is obtained.
In another example, a color range value of the trash can is obtained, pixel points of the trash can image are traversed, whether color values corresponding to the pixel points are within the color range value or not is compared, if yes, the pixel points are marked, and if not, the color value of the next pixel point is judged. And when the traversal of the pixel points in the garbage can image is completed, the obtained image is the identification image.
Step S103: and calculating and identifying the central point of the garbage can part in the image based on the central point calculation rule.
Specifically, coordinates of all points of the garbage can part are obtained; determining the maximum value of the abscissa, the minimum value of the abscissa, the maximum value of the ordinate and the minimum value of the ordinate according to the coordinates of all the points; and respectively calculating the midpoint of the abscissa and the midpoint of the ordinate according to the maximum value of the abscissa, the minimum value of the abscissa, the maximum value of the ordinate and the minimum value of the ordinate, wherein a point corresponding to a coordinate consisting of the midpoint of the abscissa and the midpoint of the ordinate is the center point. The abscissa maximum value represents the maximum value in the abscissa of all points of the waste bin portion, the abscissa minimum value represents the minimum value in the abscissa of all points of the waste bin portion, the ordinate maximum value represents the maximum value in the ordinate of all points of the waste bin portion, and the ordinate minimum value represents the minimum value in the ordinate of all points of the waste bin portion. The abscissa midpoint = (abscissa maximum value + abscissa minimum value)/2, and the ordinate midpoint = (ordinate maximum value + ordinate minimum value)/2. And taking the middle point of the abscissa as the abscissa, taking the middle point of the ordinate as the ordinate, and taking a coordinate point formed by the middle point of the abscissa and the middle point of the ordinate as the central point.
Step S104: and determining a plurality of garbage positioning points and a plurality of barrel positioning points according to the positioning point determination rule, the identification image and the central point.
Specifically, the central point is taken as a middle point and extends towards the periphery, and the ray taking the central point as an end point has an intersection with the garbage can part; for one of the rays, when a plurality of intersection points exist with the garbage can part, marking the intersection point with the shortest distance from the central point as a garbage positioning point and marking the intersection point with the longest distance from the central point as a can positioning point; for the ray, when only one intersection point exists with the garbage can part, the intersection point is indicated to be just positioned at the edge of the garbage can, namely the intersection point is marked as a garbage positioning point and a can positioning point; and for the ray, when no intersection point exists with the garbage can part, the ray indicates that part of garbage exceeds the edge of the garbage can, the edge of the garbage can is determined according to different shapes of the garbage can, and the intersection point of the ray and the edge is used as a garbage locating point and a can locating point. For example, when the input port of the garbage can is the center of a circle, the center point is used as the center of a circle, the distance between the center point and the maximum value of the abscissa is used as the radius to draw a circle, and the obtained circle is the edge of the garbage can; when the input opening of the garbage can is rectangular or rounded rectangle, the rectangle surrounded by the straight lines corresponding to the maximum value of the abscissa, the minimum value of the abscissa, the maximum value of the ordinate and the minimum value of the ordinate is used as the edge of the garbage can.
Step S105: and determining the area ratio according to the area calculation rule, the garbage positioning point and the barrel positioning point.
Specifically, according to a key point determination rule, corresponding barrel calculation points and garbage calculation points are determined from the barrel positioning points and the garbage positioning points respectively, the barrel calculation points include a point corresponding to a maximum abscissa value, a point corresponding to a minimum abscissa value, a point corresponding to a maximum ordinate value, a point corresponding to a minimum ordinate value and other barrel calculation points, the other barrel calculation points are determined according to the accuracy requirement of a user for a calculation result, the accuracy of the calculation result and the number of the other barrel calculation points have a corresponding relationship, the corresponding relationship is pre-stored in a database, when the user determines the accuracy of the calculation result, the number of the other barrel calculation points is determined according to the accuracy, and in one example, a specified number of barrel positioning points are randomly selected from the other barrel positioning points as the barrel calculation points. And respectively determining the garbage calculation points corresponding to the minimum value of the abscissa, the maximum value of the ordinate and the minimum value of the ordinate according to the determination method by taking the garbage positioning point on the line segment where the point corresponding to the maximum value of the abscissa and the central point are connected as a garbage calculation point. The garbage calculation points comprise the four garbage calculation points and other garbage calculation points. The determination method of other garbage calculation points is the same as that of other barrel calculation points, and is not described herein again.
In another example, the other bucket computation points (or other garbage computation points) are determined by: under the condition that the number of the other bucket computing points is determined, each other bucket computing point is computed to be connected with the central point to form a line segment, and the included angle formed by every two adjacent line segments is the same. For example, 360 °/4=90 ° for a total of four other bucket calculation points, so the angle corresponding to the same included angle is ninety degrees, one of the bucket positioning points is arbitrarily selected as the other bucket calculation point, then a ray is drawn from the central point according to the included angle spaced by 90 degrees, and the bucket positioning point on the ray is the other bucket calculation point.
Respectively sequencing the barrel calculation points and the garbage calculation points according to a preset sequencing rule, and respectively determining a garbage calculation point sequence and a barrel calculation point sequence; sequentially taking garbage calculation points from the garbage calculation point sequence, and calculating the area of a triangle formed by two adjacent garbage calculation points and the central point to be garbage sub-area; and when the garbage calculation points in the garbage calculation point sequence are taken, calculating the sum of all garbage sub-areas to obtain the garbage area. Sequentially taking barrel calculation points from the barrel calculation point sequence, and calculating the area of a triangle formed by two adjacent barrel calculation points and the central point to be the area of the barrel; when the bucket computing points in the bucket computing point sequence are taken completely, the area of a triangle formed by the last bucket computing point, the first bucket computing point and the central point is also needed to be computed, namely the bucket area, and the sum of all the bucket areas is computed to be the bucket area; area ratio = trash area/can area.
A specific process of sorting the bucket computation points and the garbage computation points respectively (taking the bucket computation point sequence as an example): taking a central point as an end point, making a ray in the direction of a certain bucket computing point, wherein the bucket computing point is the first value of a bucket computing point sequence, taking the central point as a fixed point, carrying out clockwise (or anticlockwise) rotation on the ray, and sequencing according to the sequence of points which are overlapped with the ray in the rotation process to form the bucket computing point sequence. The determination method of the garbage calculation point sequence is the same as that of the barrel calculation point sequence, and is not described herein again.
Step S106: and outputting overflow prompt information according to the ratio judgment rule and the area ratio.
Specifically, according to a preset ratio range and the area ratio, state marks are made on the garbage can images, and the state marks comprise an empty can state, a small quantity state, a half can state, a full load state and an overflow state. And when the mark of the garbage can image is in a full-load state or an overflow state, outputting overflow prompt information. The garbage can corresponding to the garbage can image is a garbage can with the garbage input opening area larger than the garbage can bottom surface area. For example, when the area ratio is less than or equal to seventy percent, the garbage amount put into the garbage can does not cover the bottom surface of the garbage can completely, and the state of the garbage can is a small amount; when the area ratio is more than seventy percent and less than or equal to ninety percent, the garbage amount is indicated to cover the bottom of the garbage can and is less than a half can, and the state of the garbage can is a half can state; when the area ratio is more than ninety percent and less than or equal to ninety-eight percent, the garbage bin is in a full-load state.
In one example, each trash can image corresponds to an area ratio, the ratio ranges are set by an operator according to experience, the empty can state, the half can state, the full load state and the overflow state correspond to different area ratio ranges respectively, the area ratio corresponding to the trash can image is judged to be in the area ratio range corresponding to which state, and corresponding state marks are made on the trash can image. When the state of the garbage can image is marked as a full-load state or an overflow state, the garbage can corresponding to the garbage can image needs to be cleared, and overflow prompt information is output to prompt a worker to clear the garbage can.
The garbage bin overflow detection method further comprises the following steps: and acquiring garbage weight data and radiation intensity data, and outputting alarm information according to the garbage weight data, the radiation intensity data and the data judgment rule.
Specifically, radiation intensity data is acquired through a radiation detection device, and garbage weight data is acquired through a weight detection device. Judging the garbage weight data and the radiation intensity data according to a data judgment rule; when the garbage weight data is larger than a preset weight value, outputting weight alarm information; and when the radiation intensity data is greater than the intensity preset value, outputting intensity alarm information. The strength preset value and the weight preset value are determined according to the requirements of people.
Except that holding the difference of how much rubbish according to the garbage bin, output prompt message carries out the receipts fortune of rubbish, still from the bearing of garbage bin and the condition output alarm information of the radiation intensity two aspects of rubbish, can reduce to a certain extent because there is the injury that radiation intensity's rubbish pile caused to personnel on every side, the monitoring to the garbage bin bearing is in order to reduce when needs receive the fortune to the garbage bin, because the great garbage bin that leads to of rubbish weight in the garbage bin damages and then probably causes the problem of casualties.
The embodiment of the application provides a garbage bin overflow detection system 200, referring to fig. 2, the garbage bin overflow detection system 200 includes a camera 20, a controller 10, an alarm module 60, a weight detection device 30, a radiation detection device 40, and an infrared thermometer 50, the camera 20, the weight detection device 30, the radiation detection device 40, and the infrared thermometer 50 are all electrically connected to the controller 10, and the controller 10 is electrically connected to the alarm module 60; the camera 20 is used for acquiring image information of the trash can and outputting images of the trash can; the weight detection device 30 is used for detecting the weight of the garbage in the garbage bin and outputting garbage weight data; the radiation detection device 40 is used for detecting the radiation intensity in the garbage bin and outputting radiation intensity data; the infrared thermometer 50 is used for detecting the temperature of the garbage in the garbage can and outputting a temperature detection signal; the controller 10 is configured to execute the method for detecting overflow of a trash can, and further configured to output intensity alarm information, weight alarm information, and overflow prompt information; the controller 10 further receives the temperature detection signal, and outputs a temperature abnormal signal when the temperature reflected by the temperature detection signal is higher than a preset temperature value; the alarm module 60 is configured to receive the strength alarm information, the weight alarm information, the overfill prompt information, and the temperature abnormal signal, and alarm when receiving any one or more of the strength alarm information, the weight alarm information, the overfill prompt information, and the temperature abnormal signal.
In this embodiment, the radiation detection device 40 is a geiger counter, the weight detection device 30 is a weight sensor, and the alarm module 60 is a buzzer alarm, but in other embodiments, other devices capable of detecting radiation intensity or detecting weight or realizing an alarm function may be used, and are not limited herein.
Referring to fig. 3, the controller 10 includes:
the data acquisition module 101 is used for acquiring a garbage can image, wherein the garbage can image is a top view of an uncovering state of a garbage can;
the image identification module 102 is configured to identify a trash can part of the trash can image and label the trash can part based on a trash can outline identification rule, so as to determine an identification image;
the center determining module 103 is configured to calculate a center point of the trash can portion in the identification image based on a center point calculation rule;
a locating point determining module 104, configured to determine a plurality of garbage locating points and a plurality of barrel locating points according to a locating point determining rule, the identification image, and the central point;
a ratio determination module 105, configured to determine an area ratio according to an area calculation rule, the garbage locating point, and the barrel locating point;
and the information output module 106 is used for outputting the overflow prompt information according to the ratio judgment rule and the area ratio.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the described module may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the application referred to in the present application is not limited to the embodiments with a particular combination of the above-mentioned features, but also encompasses other embodiments with any combination of the above-mentioned features or their equivalents without departing from the spirit of the application. For example, the above features may be replaced with (but not limited to) features having similar functions as those described in this application.

Claims (10)

1. A garbage bin overflow detection method is characterized by comprising the following steps:
acquiring a garbage can image, wherein the garbage can image is a top view of the uncovering state of the garbage can;
identifying a trash can part of the trash can image and marking the trash can part based on a trash can outline identification rule to determine an identification image;
calculating the central point of the garbage can part in the identification image based on a central point calculation rule;
determining a plurality of garbage positioning points and a plurality of barrel positioning points according to positioning point determination rules, the identification images and the central point;
determining an area ratio according to an area calculation rule, the garbage positioning points and the barrel positioning points;
and outputting overflow prompt information according to the ratio judgment rule and the area ratio.
2. The trash can overfill detection method of claim 1, wherein said calculating the center point of the trash can in the identification image based on the center point calculation rule comprises:
acquiring coordinates of all points of the garbage can part;
determining the maximum value of the abscissa, the minimum value of the abscissa, the maximum value of the ordinate and the minimum value of the ordinate according to the coordinates of all the points;
and respectively calculating the midpoint of the abscissa and the midpoint of the ordinate according to the maximum value of the abscissa, the minimum value of the abscissa, the maximum value of the ordinate and the minimum value of the ordinate, wherein a point corresponding to a coordinate formed by the midpoint of the abscissa and the midpoint of the ordinate is the central point.
3. The trash can overfill detection method of claim 1, wherein said determining a plurality of trash anchor points and a plurality of can anchor points based on anchor point determination rules, said identification image and said center point comprises:
stretching along rays to the periphery by taking the central point as a midpoint, wherein the rays have intersection points with the garbage can part;
and for one ray, when a plurality of intersection points exist with the garbage can part, marking the intersection point with the shortest distance from the central point as a garbage positioning point and marking the intersection point with the longest distance from the central point as a can positioning point.
4. The trash can overfill detection method of claim 2, wherein said determining an area ratio based on area calculation rules, said trash anchor points and said can anchor points comprises:
determining corresponding barrel calculation points and garbage calculation points from the barrel positioning points and the garbage positioning points respectively according to a key point determination rule;
according to a preset sorting rule, sorting the barrel calculation points and the garbage calculation points respectively, and determining a garbage calculation point sequence and a barrel calculation point sequence respectively;
sequentially taking garbage calculation points from the garbage calculation point sequence, and calculating the area of a triangle formed by two adjacent garbage calculation points and the central point, wherein the area is the garbage sub-area;
when the garbage calculation points in the garbage calculation point sequence are taken completely, calculating the sum of all garbage sub-areas to obtain a garbage area;
sequentially taking barrel calculation points from the barrel calculation point sequence, and calculating the area of a triangle formed by two adjacent barrel calculation points and the central point, wherein the area is the barrel area;
when the bucket computing points in the bucket computing point sequence are taken, computing the sum of the areas of all the buckets to obtain the bucket area;
the area ratio = the trash area/the bin area.
5. The method for detecting overflow of a trash can according to claim 1, wherein outputting the overflow prompting information according to the ratio determination rule and the area ratio comprises:
according to a preset ratio range and the area ratio, making state marks on the garbage can image, wherein the state marks comprise an empty can state, a small quantity state, a half can state, a full load state and an overflow state;
and when the mark of the garbage can image is in a full-load state or an overflow state, outputting overflow prompt information.
6. The method of claim 1, further comprising:
acquiring garbage weight data;
and outputting weight alarm information when the garbage weight data is larger than a preset weight value.
7. The method of claim 1, further comprising:
acquiring radiation intensity data;
and when the radiation intensity data is greater than the intensity preset value, outputting intensity alarm information.
8. The garbage bin overflow detection system is characterized by comprising a camera (20), a controller (10), an alarm module (60), a weight detection device (30) and a radiation detection device (40), wherein the camera (20), the weight detection device (30) and the radiation detection device (40) are all electrically connected with the controller (10), and the controller (10) is electrically connected with the alarm module (60);
the camera (20) is used for acquiring image information of the trash can and outputting images of the trash can;
the weight detection device (30) is used for detecting the weight of the garbage in the garbage can and outputting garbage weight data;
the radiation detection device (40) is used for detecting the radiation intensity in the garbage bin and outputting radiation intensity data;
the controller (10) is used for executing the method according to any one of claims 1 to 7, and further comprises a step of outputting intensity alarm information, weight alarm information and overflow prompt information;
the alarm module (60) is used for receiving the strength alarm information, the weight alarm information and the overflow prompt information, and giving an alarm when any one or more of the strength alarm information, the weight alarm information and the overflow prompt information are received.
9. The trashcan overfill detection system of claim 8, wherein the controller (10) comprises:
the data acquisition module (101) is used for acquiring a garbage can image, and the garbage can image is a top view of the uncovering state of the garbage can;
the image recognition module (102) is used for recognizing a garbage can part of the garbage can image and marking the garbage can part based on a garbage can outline recognition rule, so as to determine a recognition image;
a center determining module (103) for calculating a center point of the garbage can part in the identification image based on a center point calculation rule;
the locating point determining module (104) is used for determining a plurality of garbage locating points and a plurality of barrel locating points according to a locating point determining rule, the identification image and the central point;
a ratio determination module (105) for determining an area ratio according to an area calculation rule, the garbage locating point and the barrel locating point;
and the information output module (106) is used for outputting the overflow prompt information according to the ratio judgment rule and the area ratio.
10. The trash can overfill detection system of claim 8, further comprising an infrared thermometer (50), said infrared thermometer (50) being electrically connected to said controller (10);
the infrared thermometer (50) is used for detecting the temperature of the garbage in the garbage can and outputting a temperature detection signal;
the controller (10) is used for receiving the temperature detection signal and outputting a temperature abnormal signal when the temperature reflected by the temperature detection signal is higher than a preset temperature value;
and the alarm module (60) is used for receiving the temperature abnormal signal and giving an alarm.
CN202310257458.4A 2023-03-17 2023-03-17 Garbage can overflow detection method and system Active CN115984361B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310257458.4A CN115984361B (en) 2023-03-17 2023-03-17 Garbage can overflow detection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310257458.4A CN115984361B (en) 2023-03-17 2023-03-17 Garbage can overflow detection method and system

Publications (2)

Publication Number Publication Date
CN115984361A true CN115984361A (en) 2023-04-18
CN115984361B CN115984361B (en) 2023-07-11

Family

ID=85972487

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310257458.4A Active CN115984361B (en) 2023-03-17 2023-03-17 Garbage can overflow detection method and system

Country Status (1)

Country Link
CN (1) CN115984361B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118350549A (en) * 2024-05-06 2024-07-16 苏州市南环桥数创信息科技有限公司 Intelligent online monitoring system and method for sanitation of agricultural batch market products based on cloud platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN210116880U (en) * 2019-07-04 2020-02-28 烟台久思智慧智能科技有限公司 Garbage data information acquisition system for garbage can
US20200082167A1 (en) * 2018-09-07 2020-03-12 Ben Shalom System and method for trash-detection and management
CN114782681A (en) * 2022-06-01 2022-07-22 深圳市润江科技有限公司 Exposed garbage and overflow garbage detection method based on deep learning
CN115035391A (en) * 2022-06-24 2022-09-09 盛视科技股份有限公司 Garbage bin overflow judging method and system
CN115043111A (en) * 2022-05-23 2022-09-13 海南省量心环保科技有限公司 Intelligent garbage can detection system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200082167A1 (en) * 2018-09-07 2020-03-12 Ben Shalom System and method for trash-detection and management
CN210116880U (en) * 2019-07-04 2020-02-28 烟台久思智慧智能科技有限公司 Garbage data information acquisition system for garbage can
CN115043111A (en) * 2022-05-23 2022-09-13 海南省量心环保科技有限公司 Intelligent garbage can detection system
CN114782681A (en) * 2022-06-01 2022-07-22 深圳市润江科技有限公司 Exposed garbage and overflow garbage detection method based on deep learning
CN115035391A (en) * 2022-06-24 2022-09-09 盛视科技股份有限公司 Garbage bin overflow judging method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118350549A (en) * 2024-05-06 2024-07-16 苏州市南环桥数创信息科技有限公司 Intelligent online monitoring system and method for sanitation of agricultural batch market products based on cloud platform

Also Published As

Publication number Publication date
CN115984361B (en) 2023-07-11

Similar Documents

Publication Publication Date Title
CN105957238A (en) Banknote management method and system
CN115984361A (en) Garbage can overflow detection method and system
CN103279735B (en) Dust stratification detection method and system in a kind of financial document identification module
CN109871730A (en) A kind of target identification method, device and monitoring device
CN106373426A (en) Computer vision-based parking space and illegal lane occupying parking monitoring method
CN110329684A (en) A kind of refuse collection method, system and garbage truck
CN101369315A (en) Human face detection method
CN102222384A (en) Analysis method of multispectral image of note
CN113657143B (en) Garbage classification method based on classification and detection combined judgment
CN116342895B (en) Method and system for improving sorting efficiency of renewable resources based on AI (advanced technology attachment) processing
CN110321779B (en) Inspection method and system for garbage throwing point and computer readable storage medium
CN114758127A (en) Urban scene garbage detection system based on big data
CN110834843A (en) Dry and wet rubbish intelligent recognition garbage bin
CN113705638A (en) Mobile vehicle-mounted intelligent garbage information management method and system
JP5433182B2 (en) Waste material discrimination method and material discrimination device
CN114971274B (en) Use method of digital city management information system
CN103971159B (en) Whole bundle of bank note number of passing detection device
CN106296975A (en) The recognition methods of a kind of dollar bill face amount and device
JP5629362B2 (en) Waste material discrimination method and material discrimination device
CN113222082B (en) Intelligent garbage station management and control method, system, device and storage medium
CN114283387A (en) Intelligent garbage point cleaning work order generation method and device and related medium
CN114882435A (en) Storage scene human-vehicle safety distance identification method, electronic equipment and storage medium
CN111353409B (en) Container identification method, device and robot
JPH07190955A (en) Equipment for deciding extent of smear of printed matter
Kumar Smart Garbage Detection System for Sustainable Waste Management using Deep Learning Techniques

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant