Method for determining garbage disposal behavior based on image information and related products
The image information is used to identify hands and garbage information, and combined with the trash can information to determine whether the user has placed garbage, which solves the problems of inaccurate statistics and high cost of garbage placement behavior in the existing technology, and achieves high-accuracy and low-cost garbage placement behavior. judge.
Patent Information
- Application Number
- CN202111437321.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-11-29
AI Technical Summary
The existing garbage disposal behavior statistics method is based on smart trash cans, which changes residents' habits of throwing garbage, increases costs, and the statistical data is inaccurate, making it impossible to accurately determine whether users have placed garbage.
The garbage disposal behavior determination method based on image information is used to obtain image information around the trash can through camera equipment, identify hands and garbage information, and determine whether the user has garbage disposal behavior based on the trash can information to improve the accuracy of judgment.
It improves the accuracy of judging garbage placement behavior, does not require the modification of trash cans, reduces the cost for users to put garbage, and is suitable for a variety of scenarios and different age groups.
Smart Images

Figure CN114120449B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a method for determining garbage disposal behavior based on image information and related products. Background Art
[0002] With the introduction of garbage classification and other policies in various regions, garbage management has become a focus of environmental protection, and accurate statistics on the number of times garbage is disposed has also become a basic indicator. However, the current statistics on the number of times garbage is disposed are mostly based on improvements to the structure of the garbage can itself. This will not only change the user's habit of throwing garbage, but also cannot accurately determine whether the user has disposed of garbage. Summary of the invention
[0003] The embodiments of the present application provide a method for determining garbage disposal behavior based on image information and related products, in order to improve the accuracy of determining garbage disposal behavior without increasing the cost of garbage disposal for users.
[0004] In a first aspect, an embodiment of the present application provides a method for determining garbage placement behavior based on image information, which is applied to a first server of a garbage placement system, wherein the garbage placement system includes the first server and a camera device, wherein the camera device is installed at a preset position in an environment where a garbage bin is located, and the method includes:
[0005] Acquire first image information of the preset environment of the trash can taken by the camera device;
[0006] Acquire first hand information, first junk information, and information of the trash can appearing in the preset environment from the first image information;
[0007] Determine a target user who puts garbage into the garbage bin according to the first hand information and the first garbage information;
[0008] Determining the second-hand information of the target user placing the garbage and the second garbage information of the placed garbage;
[0009] It is determined whether the target user has trash dropping behavior according to the second hand information, the second trash information and the trash can information.
[0010] In a second aspect, an embodiment of the present application provides a device for determining garbage placement behavior based on image information, which is applied to a first server of a garbage placement system, wherein the garbage placement system includes the first server and a camera device, wherein the camera device is installed at a preset position in an environment where a garbage bin is located, and the device includes:
[0011] A first acquisition unit, used to acquire first image information of the preset environment of the trash can taken by the camera device;
[0012] A second acquisition unit, configured to acquire first hand information, first junk information, and information of the trash can appearing in the preset environment from the first image information;
[0013] A first determining unit, configured to determine a target user who puts garbage into the garbage bin according to the first hand information and the first garbage information;
[0014] A second determining unit, configured to determine the second hand information of the target user placing the garbage and the second garbage information of the placed garbage;
[0015] The third determining unit is used to determine whether the target user has a garbage disposal behavior according to the second hand information, the second garbage information and the information of the garbage bin.
[0016] In a third aspect, the present application provides an electronic device, characterized in that it includes a processor, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps of any method described in the first aspect or the second aspect above.
[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in any method of the first aspect or the second aspect of the embodiment of the present application.
[0018] In a fifth aspect, an embodiment of the present application provides a computer program, wherein the computer program is operable to cause a computer to execute some or all of the steps described in any method of the first aspect or the second aspect of the embodiment of the present application. The computer program can be a software installation package.
[0019] It can be seen that in the embodiment of the present application, the first server first obtains the first image information from the camera device, and then obtains the first hand information, the first garbage information and the trash can information according to the first image information, and then determines the target user according to the first hand information and the first garbage information, and then determines the second hand information of the target user and the second garbage information corresponding to the second hand information, the second hand information is the hand information in the first hand information, and finally determines whether the target user has garbage disposal behavior according to the second hand information, the second garbage information and the trash can information. In this way, the user's hand information, the garbage information to be thrown away and the trash can information are combined to jointly determine whether the user has disposed garbage, which can not only improve the accuracy of the judgment of the user's garbage disposal behavior, but also is through the processing and judgment of the image captured by the camera device, and there is no need to make additional modifications to the trash can, and it will not increase the cost of users' garbage disposal, and it can be flexibly adapted to a variety of scenarios and different user age groups. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1a is a schematic diagram of a garbage delivery system provided in an embodiment of the present application;
[0022] Figure 1b is a schematic diagram of another garbage delivery system provided in an embodiment of the present application;
[0023] Figure 1c It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0024] Figure 2a It is a flowchart of a method for determining garbage placement behavior based on image information provided by an embodiment of the present application;
[0025] Figure 2b is a schematic diagram of an image corresponding to first image information provided in an embodiment of the present application;
[0026] Figure 3 It is a structural schematic diagram of a device for determining garbage placement behavior based on image information provided by an embodiment of the present application;
[0027] Figure 4It is a structural schematic diagram of another device for determining garbage disposal behavior based on image information provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0030] Reference to "embodiments" herein means that specific features, structures, or characteristics described in conjunction with the embodiments may be included in the embodiments of the present application. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0031] At present, with the increasing emphasis on environmental protection, the number of garbage thrown by residents also needs to be frequently counted. At present, there are similar methods for counting garbage disposal behaviors on the market. The principle is mainly based on "smart trash cans", which are used to trigger the opening of the lid through "face scanning", "code scanning", or physical buttons to count the frequency of disposal. This method has serious shortcomings. First, it has changed the living habits of residents, increased the cost of garbage disposal for residents, and caused dissatisfaction among residents. Many smart trash cans have been damaged and "artificially modified" to a certain extent; second, the statistical data is inaccurate. Because the system cannot determine how many people have put garbage in the box at one time, there is a huge deviation in the statistical data, and the data cannot be used as an actual basis.
[0032] In response to the above problems, the present application provides a method for determining garbage disposal behavior based on image information and related products. In order to better understand the technical solutions of the embodiments of the present application, the garbage disposal system that may be involved in the embodiments of the present application is first introduced below.
[0033] See also Figure 1a , Figure 1a 1 is a schematic diagram of a garbage disposal system provided by an embodiment of the present application. As shown in the figure, the garbage disposal system 10 includes a first server 110 and a camera device 111, the first server 110 and the camera device 111 are in communication connection, the device 111 can obtain image information around the garbage bin to be counted, and the first server 110 can process the image obtained by the camera device 111 to determine whether a certain user has the behavior of disposing garbage.
[0034] See also Figure 1b , Figure 1b It is a schematic diagram of another garbage placement system provided by an embodiment of the present application. As shown in the figure, the garbage placement system 20 may include a first server 222, a second server 221 and a third server 220, and the first server 222, the second server 221 and the third server 220 are respectively connected in communication. The first server 222 and the second server 221 may be servers for one or several garbage bins, and may correspond to one or more camera devices respectively, for processing the image information transmitted by the camera devices to determine whether the user has the behavior of placing garbage. The third server 220 may be a server for counting the number of garbage placed, that is, the first server 222 and the second server 221 first determine which users have placed garbage, and then send the determined content to the third server 220, and the third server 220 counts the number of garbage placed. It should be noted that the first server 222, the second server 221 and the third server 220 may be multiple.
[0035] See also Figure 1c , Figure 1c It is a structural diagram of an electronic device provided in an embodiment of the present application. As shown in the figure, the electronic device 101 can be the first server, the second server, or the third server described above, which can be used to implement the steps in the method for determining the garbage placement behavior based on image information. The electronic device 101 includes a processor 102, a memory 103, a communication interface 104, and one or more programs 113, wherein the one or more programs 113 are stored in the memory 103 and are configured to be executed by the processor 102, and the one or more programs 113 include instructions for executing any step in the following method embodiment.
[0036] The communication interface 104 is used to support communication between the server and the electronic device.
[0037] Among them, the processor 102 can be an application processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, units and circuits described in conjunction with the disclosure of this application. The processor 102 can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0038] The memory 103 is used to store the program code and data of the server. The memory 103 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DRRAM).
[0039] In combination with the above description, the following will introduce the execution steps of the method for determining the garbage placement behavior based on image information from the perspective of the method embodiment. Figure 2a , Figure 2a This is a flow chart of a method for determining garbage placement behavior based on image information provided by an embodiment of the present application. As shown in the figure, the method for determining garbage placement behavior based on image information is applied to a first server of a garbage placement system, the garbage placement system includes the first server and a camera device, the camera device is installed at a preset position in the environment where the garbage bin is located, and the method includes:
[0040] S201, obtaining first image information of the preset environment of the trash can captured by the camera device.
[0041] Among them, the camera device can be a camera device specially installed around the trash can to be detected, used to detect whether there is any garbage disposal behavior. The camera device can also be an existing camera monitoring device that can cover a certain area around the trash can, such as a road monitoring device.
[0042] In a specific implementation, a first server can be connected to multiple camera devices, and these multiple camera devices are all used to obtain image information around the same trash can to be detected, that is, the first server can simultaneously determine the garbage disposal behavior around a trash can based on the information obtained by multiple camera devices. The multiple camera devices connected to a server can also be used to obtain image information around different trash cans to be detected, that is, a first server can determine the garbage disposal situation of multiple trash cans to be detected. It should be noted that the area around the trash can can refer to a preset area range, or it can be the camera range covered by the camera device. The first server can also be referred to as an edge box, and the edge box can be a processor equipped with a disposal behavior model, and the disposal behavior model is used to judge the garbage disposal behavior based on image information.
[0043] S202: Acquire first hand information, first junk information, and information about the trash can that appear in the preset environment from the first image information.
[0044] Among them, the first server can perform feature recognition on the acquired image, and then classify and mark the content in the image, that is, determine the hands, garbage and trash can in the image, and then mark all the recognized hands in the image to obtain first hand information, mark all the garbage in the image to obtain first garbage information, and mark the trash can in the image to obtain trash can information.
[0045] In a specific implementation, before obtaining the first hand information, the first garbage information and the garbage bin information, the method further includes: determining the garbage bin information according to the first image information, determining a preset range according to the garbage bin information, and only determining the hand information and garbage information within the preset range. That is, in a picture, the position of the garbage bin can be determined first, and then a preset range can be determined according to the position of the garbage bin, and then only the hand and garbage within the preset range can be determined, and then the hand information and garbage information can be obtained.
[0046] S203: Determine a target user who puts garbage into the garbage bin according to the first hand information and the first garbage information.
[0047] Among them, since there are multiple users included in the image acquired by the camera device, and not all users are going to throw away garbage, the first server also needs to process the acquired hand information and garbage information to determine the target user who is going to throw away garbage. The method for determining the target user may include determining whether the target user carries garbage according to the first hand information, and if the target user carries garbage, it is considered to be the target user. The method for determining whether the target user carries garbage may include determining the distance between the hand information and the garbage information, and if the distance is less than a preset value, it is determined that the target user carries garbage. Specifically, the type of garbage can be determined according to the garbage information, the carrying method can be determined according to the garbage type, and the preset value can be determined according to the carrying method. Or the garbage image and the user's hand image can be determined according to the garbage information and the hand information. When the garbage image and the hand image overlap, it is determined that the user carries garbage. After determining the target user, the method also includes: acquiring multiple image information according to the camera device, and then tracking the behavior of the target user in the multiple image information. In particular, if a user is determined to be a target user in the previous image information, it is not necessary to determine whether the user is a target user again.
[0048] S204: Determine the second-hand information of the target user placing the spam and the second spam information of the placed spam.
[0049] S205: Determine whether the target user has trashing behavior based on the second hand information, the second trash information, and the trash can information.
[0050] Among them, because multiple garbage information and hand information have been obtained before, it is necessary to determine the second hand information and the second garbage information of the target user from the multiple garbage information and multiple hand information obtained before. The second hand information is the information corresponding to the hand of the target user, and the second garbage information is the information of the garbage that the target user needs to throw away. When finally determining whether to throw away the garbage, it is necessary to combine the hand information of the target user, the garbage information of the garbage to be thrown away, and the information of the garbage bin to determine whether the user has thrown away the garbage.
[0051] It can be seen that in this example, in the embodiment of the present application, the first server first obtains the first image information from the camera device, and then obtains the first hand information, the first garbage information and the trash can information according to the first image information, and then determines the target user according to the first hand information and the first garbage information, and then determines the second hand information of the target user and the second garbage information corresponding to the second hand information, the second hand information is the hand information in the first hand information, and finally determines whether the target user has garbage disposal behavior according to the second hand information, the second garbage information and the trash can information. In this way, the user's hand information, the garbage information to be thrown away and the trash can information are combined to jointly determine whether the user has disposed garbage, which can not only improve the accuracy of the judgment of the user's garbage disposal behavior, but also is through the processing and judgment of the image captured by the camera device, and there is no need to make additional modifications to the trash can, and it will not increase the cost of users' garbage disposal, and it can be flexibly adapted to a variety of scenarios and different user age groups.
[0052] In a possible instance, determining the target user who throws garbage into the garbage bin based on the first hand information and the first garbage information includes: establishing a coordinate system in the first image information, and extracting the hand coordinates pointed to by each of the first hand information and the garbage coordinates pointed to by the first garbage information; judging whether the distance between the hand coordinates and the garbage coordinates is less than a preset value, and determining the hand coordinates and the garbage coordinates that are less than the preset value as a target coordinate set with garbage throwing behavior; determining in the first image information the target hand image pointed to by the hand coordinates in the target coordinate set, and the target garbage image pointed to by the garbage coordinates in the target coordinate set; when there is an overlapping area between the target hand image and the target garbage image, determining the user pointed to by the target hand image in the overlapping area as the target user.
[0053] Among them, a coordinate system can be established first, and then the corresponding hand coordinates and garbage coordinates are determined in the coordinate system according to the acquired hand information and garbage information, and then the distance between each hand and each garbage in the image is determined according to the hand coordinates and garbage coordinates to obtain a target set. The method for determining the target set includes: determining each hand as a target hand, and determining the garbage whose distance from the hand coordinates of the target hand is less than a preset distance as the target garbage, so that a target set includes a target hand coordinate of a target hand and a target garbage coordinate of a target garbage. And the garbage coordinates of the same garbage can exist in multiple target sets at the same time.
[0054] When obtaining the hand coordinates and garbage coordinates, the image can be first identified to determine the hand area and the garbage area, and then the center or any point of the area is determined as the hand coordinate point and the garbage coordinate point, so as to determine the hand coordinates and the garbage coordinates. Therefore, the first hand information and the first garbage information can be the information of the hand area and the information of the garbage area, or a hand coordinate point information and a garbage coordinate point information. If it is the hand coordinate point information and the garbage coordinate point information, when obtaining the target hand image and the target garbage image, the target hand coordinates and the target garbage coordinates need to be used as the focus, and the hand image corresponding to the target hand coordinates and the garbage image corresponding to the target garbage coordinates are determined according to image recognition.
[0055] In a specific implementation, when the hand area overlaps with the garbage area, it means that the hand is holding garbage. When the same target garbage image is determined to overlap with the target hand image in different sets, the user corresponding to one of the multiple target hands can be determined as the target user. It can also be determined based on the distance between the target garbage coordinates of the target garbage and the multiple target hand coordinates, that is, the user corresponding to the target hand closest to the target garbage coordinates is determined as the target user. For example, when a bag of garbage is carried by two people at the same time, since both of them are in contact with the garbage, any one of them can be selected as the target user, and the other person can be determined as an alternative user. When the target user does not reach the trash-throwing range of the trash can to be tested, if the hand image of the target user no longer overlaps with the garbage image of the target garbage, or the distance of the coordinates is greater than the preset distance, the hand image of the alternative user is obtained, and it is re-determined whether the alternative user is the target user.
[0056] It can be seen that in this example, the user to throw away the garbage is determined based on the hand coordinates, garbage coordinates and messy image information. Not only is the calculation method simple, but the user to throw away the garbage can also be accurately determined, so that it can be determined in a targeted manner whether he will throw away the garbage in the future, thereby improving processing efficiency.
[0057] In a possible example, the garbage disposal system further includes a second server, the first server is communicatively connected to the second server, and the method further includes: obtaining second image information of the preset environment of the garbage can taken by the camera device; determining the image information processing rate and the amount of image information to be processed of the first server; determining the amount of image information that can be processed by the first server according to the image information processing rate and the amount of image information to be processed; and forwarding the second image information to the second server when the amount of processable image information is less than a preset amount.
[0058] Among them, the processable number can be how many image information the first server can still process within a preset time range from the current time. When the number is less than the preset number, that is, the first server has no time to process, the newly acquired second image information can be forwarded to the second server for processing, and the preset number can be the number of image information to be processed. At this time, the second server has the same function as the first server, and can also be called an edge box, both of which are used to process the acquired images to determine whether there is any garbage disposal behavior. In forwarding image information, the first server can first send a forwarding request to the second server with which it has established a communication connection, and then if the second server can still process it, it sends a reply message to the first server, and the first server forwards it to the second server that sent the reply message. It can also be that the first server sends the second image information to the third server, and then the third server determines the second server that can still process it, and the third server forwards it to the second server.
[0059] It can be seen that in this example, determining whether to forward the newly acquired second image to the second server for processing is based on the real-time processing rate of the first server, which can ensure the efficiency of image processing, improve the rate of determining whether to discard garbage, and reduce the processing burden of the server.
[0060] In a possible instance, before forwarding the second image information to the second server, the method further includes: determining whether the second image information includes the target user; if so, forwarding the second image information to the second server if the spam behavior of the target user has been determined; and determining that the second image information is image information to be processed by the first server if the spam behavior of the target user has not been determined.
[0061] Among them, in order to ensure that the entire process of the same user's garbage disposal is sent to the same server for processing and avoid data collection omissions, it is also necessary to ensure that the video surveillance equipment sends image information to the same server before determining whether the target user has disposed of garbage.
[0062] It can be seen that in this example, when the second image includes a target user who has not yet determined whether to throw away garbage, the second image is not forwarded to the second server, which can ensure the accuracy of the determination of whether the user throws garbage and avoid repeated image processing for the same user, which wastes processing resources.
[0063] In a possible instance, the determining whether the target user has engaged in garbage throwing behavior based on the second hand information, the second garbage information and the information of the garbage can includes: determining whether the target user is in a range where garbage can be thrown based on the second hand information and the information of the garbage can; if not, obtaining third image information of the target user being in the range where garbage can be thrown; determining third hand information of the target user appearing in the range where garbage can be thrown and third garbage information of the thrown garbage based on the third image information; determining the hand trajectory and garbage trajectory of the target user based on the third hand information and the third garbage information; obtaining the height of the garbage can based on the information of the garbage can; and determining whether the target user has engaged in garbage throwing behavior based on the height of the garbage can, the hand trajectory and the garbage trajectory.
[0064] Among them, Figure 2b As shown, Figure 2b It is a schematic diagram of an image corresponding to a first image information provided in an embodiment of the present application. In the first image information, there are user A who needs to throw away garbage, and user B who does not need to throw away garbage. At this time, user A is determined as the target user, and the third image information needs to be obtained after user A is in the range where garbage can be thrown. When user A is not in the range where garbage can be thrown in the acquired first image information, the third image information is acquired after a preset period of time, and at this time user A is already in the range where garbage can be thrown. The range where garbage can be thrown can be determined based on the height of the user and the position of the trash can in the first image information, and users of different heights have different corresponding ranges where garbage can be thrown. The hand trajectory can be used to indicate the user's garbage throwing behavior, and the hand trajectory, garbage trajectory and trash can height are used to determine whether the garbage can be accurately thrown into the trash can.
[0065] In a specific implementation, the first server can obtain multiple image information from the camera device in real time. When processing the multiple image information, it can determine whether the target user is within the range where garbage can be thrown according to the position of the target user in each image information. When it is determined for the first time that the target user is within the range where garbage can be thrown, the image information is determined to be the third image information. At this time, the third image information can be determined once at intervals of a preset time period, that is, after it is determined for the first time that the user is within the range where garbage can be thrown, the third image information can be obtained once at intervals of a preset time. For example, after the user is within the range where garbage can be thrown for the first time, the first server obtains A image information from the camera device, and then some of the A image information can be determined as the third image information according to the time interval.
[0066] It can be seen that in this example, determining whether the user has trash disposal behavior based on the trash bin height, hand trajectory, and trash trajectory at the same time can improve the accuracy of the obtained results.
[0067] In a possible example, obtaining the third image information of the target user being in a trash-disposable range includes: determining the age group of the target user based on the first image information; determining a first distance between the target user and the trash can based on the second hand information and the trash can information; determining a time period for obtaining the third image information based on the age group and the first distance; and obtaining the third image information within the time period.
[0068] Among them, since the moving speeds of different age groups are quite different, it is possible to determine how long it will take for the user to be in the movable range according to the moving speed corresponding to the age group the user is in, and obtain the third image information of the user during this period of time. The age groups can be roughly divided into the elderly, young people, and infants. In this way, there is no need to determine the position of the user in each image information, which can reduce the processing burden of the server. It should be noted that the time range is used to indicate the time from when the target user enters the trash-disposable range until the target user leaves the trash-disposable range.
[0069] It can be seen that in this example, determining the time for acquiring the third image information according to the age group of the target user can reduce the processing burden of the first server.
[0070] In a possible example, determining whether the target user has engaged in garbage disposal behavior based on the second hand information, the second garbage information, and the information of the garbage bin includes: determining the target user's garbage disposal range and the garbage bin coordinates based on the garbage bin information; after the target user is in the garbage disposal range, obtaining fourth image information that the target user is not in the garbage disposal range; obtaining fourth hand information of the target user appearing outside the garbage disposal range and fourth garbage information of garbage that has been disposed based on the fourth image information, the garbage corresponding to the fourth garbage information being the same as the garbage corresponding to the second garbage information; establishing a coordinate system in the fourth image information, and extracting the second hand coordinates pointed to by the fourth hand information and the second garbage coordinates pointed to by the fourth garbage information; determining a second distance based on the second hand coordinates and the second garbage coordinates; determining a third distance based on the second garbage coordinates and the garbage bin coordinates; and determining whether the target user has engaged in garbage disposal behavior at the second distance and the third distance.
[0071] Among them, when a user appears in the image information for the first time and is determined as the target user, if the user happens to be in the range where garbage can be thrown, the fourth image information can be obtained after a preset period of time, that is, when the server determines that the target user has left the range where garbage can be thrown according to one of the multiple image information from the camera device, the image information can be determined to be the fourth image information. Then, according to the hand coordinates and the garbage coordinates, it is determined whether the target user is still holding garbage in his hand, and the distance between the garbage and the trash can. In other words, if the second distance is greater than the first preset distance, it is determined that the user has thrown away the garbage, and if the third distance is less than the preset distance, it is determined that the user has thrown the garbage into the trash can, and if the third distance is greater than the preset distance, it is determined that the user has thrown the garbage but has not thrown the garbage into the trash can.
[0072] It can be seen that in this example, garbage is determined based on the user's hand information, garbage information and trash can information, and it can also cover the situation where the user does not throw the garbage into the trash can, which can improve the accuracy of determining the garbage disposal behavior.
[0073] In a possible example, the first server determines whether the target user has engaged in garbage disposal behavior based on the second hand information, the second garbage information, and the garbage bin information, and obtains a determination result; sends the determination result to a third server; and the third server performs statistics on garbage disposal based on the determination result.
[0074] Optionally, the determination result includes multiple image information, the number of these multiple images is less than the number of images obtained by the first server, and the multiple image information can be obtained based on the image information of the target user in the range where garbage can be thrown. Calculating the number of times garbage is thrown into the trash can to be detected can include: determining whether there is a target image in the determination result, and the target image is used to indicate whether the user has a throwing behavior. If it is included, then determining that the determination result corresponds to a number of garbage throwings; if the target image is not included, then determining again whether the user has a throwing behavior based on the multiple images in the determination result. The determination method can be to determine the user behavior based on multiple images, and then compare the user behavior with the throwing behavior model to determine whether the user has a throwing behavior. The determination result is determined to correspond to a number of garbage throwings only when it is determined that the user has a throwing behavior.
[0075] In a specific implementation, the server can also perform face recognition on the pictures included in each determination result to determine the first face information of the person who throws garbage every day, and obtain multiple locations where the garbage can can be placed in the community, divide the community according to the multiple locations, obtain multiple areas, obtain the second face information of the corresponding residents in each area, compare the first face information with the second face information, and obtain the first area corresponding to the user who throws garbage the most times every day. According to multiple statistics, for example, the first area is determined according to the first face information of the person who throws garbage in a week or a month, and the area with the most appearances in the determined first area is determined as the target area, and then it is determined whether the garbage can is at the location where the garbage can can be placed in the target area. If not, the target person is prompted to move the garbage can to the specified location. For example, if it is determined that most of the people who put garbage in the garbage can are from area A, it is necessary to remind the sanitation worker to move the garbage can to the location where the garbage can is parked corresponding to area A.
[0076] With the above Figure 2a For details on the embodiments shown in the drawings, please refer to Figure 3 , Figure 3It is a structural schematic diagram of a device for determining garbage placement behavior based on image information provided by an embodiment of the present application. As shown in the figure, the device for determining garbage placement behavior based on image information is applied to the first server of the garbage placement system, the garbage placement system includes the first server and a camera device, the first server is connected to the camera device in communication, and the device 30 includes: a first acquisition unit 301, used to acquire first image information from the camera device; a second acquisition unit 302, used to acquire at least first hand information, first garbage information and garbage bin information according to the first image information; a first determination unit 303, used to determine the target user according to the first hand information and the first garbage information; a second determination unit 304, used to determine the second hand information of the target user and the second garbage information corresponding to the second hand information, the second hand information is the hand information in the first hand information, and the second garbage information is the garbage information in the first garbage information; a third determination unit 305, used to determine whether the target user has garbage placement behavior according to the second hand information, the second garbage information and the garbage bin information.
[0077] In a possible instance, in terms of determining the target user based on the first hand information and the first garbage information, the first determination unit 303 is specifically used to: obtain a first hand coordinate based on the first hand information; obtain a first garbage coordinate based on the first garbage information; obtain a target set based on the first hand coordinate and the first garbage coordinate, each target set including a target hand coordinate and a target garbage coordinate, and different target sets include different target hand coordinates; determine a target hand image based on the first image information and the target hand coordinates; determine a target garbage image corresponding to each target garbage coordinate based on the first image information and the target garbage coordinates; and when there is an overlapping area between the target hand image and the target garbage image, determine that the user corresponding to the target hand image is the target user.
[0078] In a possible example, the garbage disposal system further includes a second server, the first server is communicatively connected to the second server, and the device 30 is further used to: obtain second image information from the camera device; determine the image information processing rate and the amount of image information to be processed of the first server; determine the amount of image information that can be processed by the first server based on the image information processing rate and the amount of image information to be processed; and forward the second image information to the second server when the amount of image information that can be processed is less than a preset amount.
[0079] In a possible example, before forwarding the second image information to the second server, the device 30 is further used to: determine whether the second image information includes the target user; if so, forwarding the second image information to the second server if it has been determined whether the target user has engaged in spam; and determining that the second image information is image information to be processed by the first server if it has not been determined whether the target user has engaged in spam.
[0080] In a possible example, in terms of determining whether the target user has engaged in garbage disposal behavior based on the second hand information, the second garbage information and the garbage bin information, the third determination unit 305 is specifically used to: determine whether the target user is in a garbage disposal range based on the second hand information and the garbage bin information; if not, obtain third image information, the third image information including an image of the target user in the garbage disposal range; determine the target user's third hand information and third garbage information corresponding to the third hand information based on the third image information; determine the target user's hand trajectory and garbage trajectory based on the third hand information and the third garbage information; obtain the garbage bin height based on the garbage bin information; and determine whether the target user has engaged in garbage disposal behavior based on the garbage bin height, the hand trajectory and the garbage trajectory.
[0081] In a possible example, in terms of acquiring the third image information, the third determination unit 305 is specifically used to: determine the age group of the target user based on the first image information; determine the first distance between the target user and the trash can based on the second hand information and the trash can information; determine the time range for acquiring the third image information based on the age group and the first distance; and acquire the third image information within the time range.
[0082] In a possible example, in terms of determining whether the target user has engaged in garbage disposal behavior based on the second hand information, the second garbage information and the garbage bin information, the third determination unit 305 is specifically used to: determine the target user's garbage disposal range and garbage bin coordinates based on the garbage bin information; obtain fourth image information after the target user is in the garbage disposal range, the fourth image information including an image of the target user when not in the garbage disposal range; obtain fourth hand information and fourth garbage information of the target user based on the fourth image information, the garbage corresponding to the fourth garbage information being the same as the garbage corresponding to the second garbage information; obtain second hand coordinates based on the fourth hand information; obtain second garbage coordinates based on the fourth garbage information; determine a second distance based on the second hand coordinates and the second garbage coordinates; determine a third distance based on the second garbage coordinates and the garbage bin coordinates; and determine whether the target user has engaged in garbage disposal behavior at the second distance and the third distance.
[0083] It can be understood that since the method embodiment and the device embodiment are different presentation forms of the same technical concept, the content of the method embodiment part in this application should be synchronously adapted to the device embodiment part and will not be repeated here.
[0084] In the case of integrated units, such as Figure 4 As shown, Figure 4 is a schematic diagram of the structure of another device for determining garbage placement behavior based on image information provided by an embodiment of the present application. Figure 4 In the present invention, the apparatus 400 for determining the behavior of garbage placement based on image information includes: a processing module 402 and a communication module 401. The processing module 402 is used to control and manage the actions of the apparatus for determining the behavior of garbage placement based on image information, for example, to control and manage the first acquisition unit 301, the second acquisition unit 302, the first determination unit 303, the second determination unit 304 and the third determination unit 305 when executing related commands, and / or to perform other processes of the technology described herein. The communication module 401 is used to support the interaction between the apparatus for determining the behavior of garbage placement based on image information and other devices. Figure 4 As shown, the apparatus for determining the behavior of garbage placement based on image information may further include a storage module 403, and the storage module 403 is used to store program codes and data of the apparatus for determining the behavior of garbage placement based on image information.
[0085] Among them, the processing module 402 can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements a computing function, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 401 can be a transceiver, an RF circuit or a communication interface, and the like. The storage module 403 can be a memory.
[0086] All relevant contents of each scenario involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. The above-mentioned garbage placement behavior determination device 30 based on image information and the garbage placement behavior determination device 400 based on image information can both execute the above-mentioned Figure 2a The method for determining garbage disposal behavior based on image information is shown.
[0087] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0088] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method recorded in the above method embodiments, and the above computer includes an electronic device.
[0089] The embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes an electronic device.
[0090] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0091] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and systems can be implemented in other ways. For example, the device embodiments described above are merely schematic; for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0092] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0093] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0094] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.
[0095] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions without departing from the spirit and scope of the present invention, and can make various changes and modifications, including the combination of the above-mentioned different functions and implementation steps, including software and hardware implementation methods, all of which are within the scope of protection of the present invention.
Claims
1. A method for determining garbage disposal behavior based on image information, characterized in that: A first server applied to a garbage delivery system, the garbage delivery system comprising the first server and a camera device, the camera device being installed at a preset position of an environment where a garbage can is located, the method comprising: Acquire first image information of the preset environment of the trash can taken by the camera device; Acquire first hand information, first junk information, and information of the trash can appearing in the preset environment from the first image information; Determine a target user who puts garbage into the garbage bin according to the first hand information and the first garbage information; Determining the second-hand information of the target user placing the garbage and the second garbage information of the placed garbage; Determining whether the target user has trash delivery behavior according to the second hand information, the second trash information, and the trash can information; The determining, based on the second hand information, the second junk information, and the information of the junk bin, whether the target user has engaged in junk placement behavior includes: Determine whether the target user is within a trash can range according to the second hand information and the trash can information; the trash can range is determined based on the height of the target user and the location of the trash can in the first image information, and users of different heights have different trash can ranges. If yes, determine the age group of the target user according to the first image information; determine the first distance between the target user and the trash can according to the second hand information and the trash can information; determine the time period for acquiring the third image information according to the age group and the first distance; acquire the third image information once every preset time within the time period; Determine, according to the third image information, third hand information of the target user appearing in the throwable garbage range and third garbage information of the thrown garbage; Determining a hand trajectory and a spam trajectory of the target user according to the third hand information and the third spam information; Acquire the height of the trash can according to the information of the trash can; It is determined whether the target user has trash throwing behavior according to the trash bin height, the hand trajectory and the trash trajectory.
2. The method according to claim 1, characterized in that: The determining, according to the first hand information and the first garbage information, a target user who puts garbage into the garbage bin includes: Establishing a coordinate system in the first image information, and extracting hand coordinates pointed to by each piece of the first hand information and garbage coordinates pointed to by the first garbage information; Determine whether the distance between the hand coordinates and the garbage coordinates is less than a preset value, and determine the hand coordinates and the garbage coordinates that are less than the preset value as a target coordinate set with garbage placement behavior; Determine, in the first image information, a target hand image pointed to by the hand coordinates in the target coordinate set, and a target garbage image pointed to by the garbage coordinates in the target coordinate set; When there is an overlapping area between the target hand image and the target garbage image, the user pointed to by the target hand image in the overlapping area is determined as the target user.
3. The method according to claim 1, characterized in that The garbage delivery system further includes a second server, the first server is in communication connection with the second server, and the method further includes: Acquire second image information of the preset environment of the trash can taken by the camera device; Determining an image information processing rate and an amount of image information to be processed by the first server; Determining the amount of image information that can be processed by the first server according to the image information processing rate and the amount of image information to be processed; When the amount of processable image information is less than a preset amount, the second image information is forwarded to the second server.
4. The method according to claim 3, characterized in that Before forwarding the second image information to the second server, the method further includes: determining whether the second image information includes the target user; If yes, forwarding the second image information to the second server in the case where the spam behavior of the target user has been determined; Without determining the spam delivery behavior of the target user, determining that the second image information is image information to be processed by the first server.
5. The method according to claim 1, characterized in that The determining, based on the second hand information, the second junk information, and the information of the junk bin, whether the target user has junk dropping behavior includes: Determine the target user's trash disposal range and trash bin coordinates based on the trash bin information; After the target user is in the trash-disposable range, obtaining fourth image information that the target user is not in the trash-disposable range; Acquire, according to the fourth image information, fourth hand information of the target user appearing outside the throwable garbage range and fourth garbage information of the thrown garbage, wherein the garbage corresponding to the fourth garbage information is the same as the garbage corresponding to the second garbage information; Establishing a coordinate system in the fourth image information, and extracting the second hand coordinates pointed to by the fourth hand information and the second garbage coordinates pointed to by the fourth garbage information; determining a second distance according to the second hand coordinate and the second garbage coordinate; Determine a third distance according to the second garbage coordinates and the garbage bin coordinates; It is determined whether the target user has garbage disposal behavior at the second distance and the third distance.
6. A device for determining garbage disposal behavior based on image information, characterized in that: A first server applied to a garbage delivery system, the garbage delivery system comprising the first server and a camera device, the camera device being installed at a preset position in an environment where a garbage can is located, the device comprising: A first acquisition unit, used to acquire first image information of the preset environment of the trash can taken by the camera device; A second acquisition unit, configured to acquire first hand information, first junk information, and information of the trash can appearing in the preset environment from the first image information; A first determining unit, configured to determine a target user who puts garbage into the garbage bin according to the first hand information and the first garbage information; A second determining unit, configured to determine the second hand information of the target user placing the garbage and the second garbage information of the placed garbage; A third determining unit, configured to determine whether the target user has a garbage disposal behavior according to the second hand information, the second garbage information and the information of the garbage bin; Wherein, the third determining unit is specifically used for: Determine whether the target user is within a trash can range according to the second hand information and the trash can information; the trash can range is determined based on the height of the target user and the location of the trash can in the first image information, and users of different heights have different trash can ranges. If yes, determine the age group of the target user according to the first image information; determine the first distance between the target user and the trash can according to the second hand information and the trash can information; determine the time period for acquiring the third image information according to the age group and the first distance; acquire the third image information once every preset time within the time period; Determine, according to the third image information, third hand information of the target user appearing in the throwable garbage range and third garbage information of the thrown garbage; Determining a hand trajectory and a spam trajectory of the target user according to the third hand information and the third spam information; Acquire the height of the trash can according to the information of the trash can; It is determined whether the target user has trash throwing behavior according to the trash bin height, the hand trajectory and the trash trajectory.
7. An electronic device, characterized in that: The method comprises a processor, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 5.
