Garbage classification method and device

文档序号:353206 发布日期:2021-12-07 浏览:12次 中文

阅读说明:本技术 垃圾分类方法和装置 (Garbage classification method and device ) 是由 孙晓野 于 2020-09-14 设计创作,主要内容包括:本申请实施例公开了垃圾分类方法和装置。该方法的一具体实施方式包括:响应于接收到垃圾倾倒请求,记录垃圾倾倒数据;响应于确定出垃圾桶已满,向目标终端发送垃圾回收信息,其中,垃圾回收信息用于指示对已满的垃圾桶中的垃圾进行回收;确定回收的垃圾的分类等级,基于分类等级,向垃圾分类参与用户的用户账号分发相应的资源。该实施方式提高了垃圾分类效果,提高了垃圾处理的灵活性。(The embodiment of the application discloses a garbage classification method and device. One embodiment of the method comprises: recording garbage dumping data in response to receiving a garbage dumping request; sending garbage collection information to a target terminal in response to the fact that the garbage bin is full, wherein the garbage collection information is used for indicating that garbage in the full garbage bin is collected; and determining the classification level of the recycled garbage, and distributing corresponding resources to the user account of the garbage classification participating user based on the classification level. This embodiment has improved the waste classification effect, has improved the flexibility of refuse treatment.)

1. A method of sorting waste, comprising:

recording garbage dumping data in response to receiving a garbage dumping request;

sending garbage collection information to a target terminal in response to the fact that the garbage bin is full, wherein the garbage collection information is used for indicating that garbage in the full garbage bin is collected;

and determining the classification level of the recycled garbage, and distributing corresponding resources to the user account of the garbage classification participating user based on the classification level.

2. The method of claim 1, wherein said recording garbage dump data in response to receiving a garbage dump request comprises:

in response to receiving a garbage dump request, determining whether a garbage can indicated by the garbage dump request is occupied for the first time;

if yes, recording garbage dumping data and broadcasting garbage can occupation information.

3. The method of claim 2, wherein the request for dumping of refuse includes a category to which the dumped refuse belongs; and

the trash can occupancy message includes the category.

4. The method of claim 1, wherein the determining a classification level of the reclaimed garbage comprises:

determining the classification grade of the recycled garbage based on the sorting duration of the recycled garbage and the weight of the recycled garbage by the garbage sorting equipment.

5. The method of claim 1, wherein the sending garbage collection information to the target terminal in response to determining that the garbage can is full comprises:

and sending garbage recycling information to the target terminal in response to receiving the message for representing that the garbage bin is full.

6. The method of claim 5, wherein the message indicating that the trash can is full is sent by the spam participating user triggering a target icon on a user terminal, wherein the target icon is used to indicate that the trash can is full.

7. The method of claim 5, wherein the trash can indicated by the trash dump request includes a detection device; and

the message characterizing that the trash can is full is sent by the detection device in response to detecting that the trash can is full.

8. The method of claim 1, wherein the method further comprises:

in response to receiving a garbage can registration request, an identifier of a garbage can indicated by the garbage can registration request is generated.

9. The method of any of claims 1-8, wherein the request for trash dumping is sent in response to a user terminal performing a scanning operation on a two-dimensional code corresponding to a trash can.

10. A waste sorting device comprising:

a recording unit configured to record garbage dump data in response to receiving a garbage dump request;

a sending unit configured to send garbage collection information to a target terminal in response to determining that the garbage bin is full, wherein the garbage collection information is used for indicating that garbage in the full garbage bin is collected;

and the distribution unit is configured to determine the classification level of the recycled garbage and distribute the corresponding resources to the user accounts of the garbage classification participating users based on the classification level.

11. A server, comprising:

one or more processors;

a storage device having one or more programs stored thereon,

when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-9.

12. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-9.

Technical Field

The embodiment of the application relates to the technical field of computers, in particular to a garbage classification method and device.

Background

Garbage classification (Garbage classification) generally refers to a collection of activities that store, place, and transport Garbage in a classified manner according to a certain rule or standard, and then convert the Garbage into a common resource. The classification aims to improve the resource value and the economic value of the garbage and strive for making the best use of the garbage. The classified collection of the garbage can reduce the garbage treatment amount and treatment equipment, reduce the treatment cost, reduce the consumption of land resources and have social, economic, ecological and other benefits.

Disclosure of Invention

The embodiment of the application provides a garbage classification method and device.

In a first aspect, an embodiment of the present application provides a garbage classification method, including: recording garbage dumping data in response to receiving a garbage dumping request; sending garbage collection information to a target terminal in response to the fact that the garbage bin is full, wherein the garbage collection information is used for indicating that garbage in the full garbage bin is collected; and determining the classification level of the recycled garbage, and distributing corresponding resources to the user account of the garbage classification participating user based on the classification level.

In some embodiments, in response to receiving a garbage dump request, recording garbage dump data includes: in response to receiving a garbage dump request, determining whether a garbage can indicated by the garbage dump request is occupied for the first time; if yes, recording garbage dumping data and broadcasting garbage can occupation information.

In some embodiments, the request for dumping garbage includes a category to which the dumped garbage belongs; and the trash can occupancy message includes a category.

In some embodiments, determining a classification level of the reclaimed garbage comprises: and determining the classification grade of the recycled garbage based on the sorting time of the recycled garbage by the garbage sorting equipment and the weight of the recycled garbage.

In some embodiments, in response to determining that the trash can is full, sending garbage collection information to the target terminal includes: and sending garbage recycling information to the target terminal in response to receiving the message for representing that the garbage bin is full.

In some embodiments, the message for indicating that the trash can is full is sent by triggering a target icon on the user terminal by the garbage classification participating user, wherein the target icon is used for indicating that the trash can is full.

In some embodiments, the trash can indicated by the trash dump request includes a detection device; and the message for characterizing that the trash can is full is sent by the detection device in response to detecting that the trash can is full.

In some embodiments, the method further comprises: in response to receiving the garbage can registration request, an identifier of the garbage can indicated by the garbage can registration request is generated.

In some embodiments, the garbage dumping request is sent in response to the user terminal performing a scanning operation on a two-dimensional code corresponding to the garbage can.

In a second aspect, an embodiment of the present application provides a garbage classification device, including: a recording unit configured to record garbage dump data in response to receiving a garbage dump request; a sending unit configured to send garbage collection information to the target terminal in response to determining that the garbage bin is full, wherein the garbage collection information is used for indicating that garbage in the full garbage bin is collected; and the distribution unit is configured to determine the classification level of the recycled garbage and distribute corresponding resources to the user accounts of the garbage classification participating users based on the classification level.

In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a storage device, on which one or more programs are stored, which, when executed by the one or more processors, cause the one or more processors to implement the method as described in any implementation manner of the first aspect.

In a fourth aspect, the present application provides a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method as described in any implementation manner of the first aspect.

According to the garbage classification method and device provided by the embodiment of the application, garbage dumping data are recorded by responding to the received garbage dumping request; then, responding to the situation that the garbage bin is full, sending garbage recycling information used for indicating that the garbage in the full garbage bin is recycled to the target terminal; and then, determining the classification level of the recycled garbage, and distributing corresponding resources to the user account of the garbage classification participating user based on the classification level. In the method, the users are stimulated to perform garbage classification through the block chain, so that the garbage classification effect is improved. Meanwhile, compared with the method for recovering the garbage at fixed time and fixed point, the method for actively triggering garbage recovery improves the flexibility of garbage treatment.

Drawings

Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:

FIG. 1 is an exemplary system architecture diagram in which various embodiments of the present application may be applied;

FIG. 2 is a flow diagram of one embodiment of a garbage classification method according to the present application;

FIG. 3 is a schematic diagram of an application scenario of the garbage classification method according to the present application;

FIG. 4 is a timing diagram of one embodiment of a garbage classification method according to the present application;

FIG. 5 is a timing diagram of yet another embodiment of a garbage classification method according to the present application;

FIG. 6 is a schematic structural diagram of one embodiment of a waste sorting device according to the present application;

FIG. 7 is a block diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.

Detailed Description

The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.

It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.

Fig. 1 shows an exemplary system architecture 100 to which embodiments of the garbage classification method of the present application may be applied.

As shown in fig. 1, the system architecture 100 may include user terminals 1011, 1012, networks 1021, 1022, 1023, a blockchain server 103, a target terminal 104 and a garbage can detection device 105. The network 1021 is the medium used to provide the communication link between the user terminals 1011, 1012 and the blockchain server 103. The network 1022 is the medium used to provide a communication link between the blockchain server 103 and the target terminal 104. The network 1023 is used to provide a medium for a communication link between the blockchain server 103 and the detection device 105 of the trash can. Networks 1021, 1022, 1023 can include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.

The user may use the user terminals 1011, 1012 to interact with the blockchain server 103 through the network 1021 to send or receive messages and the like, for example, after the user scans the two-dimensional code corresponding to the trash can, the blockchain server 103 may receive a trash dumping request sent by the user terminals 1011, 1012. The user terminals 1011, 1012 may be installed with various communication client applications, such as shopping applications, instant messaging software, block chain applications for garbage classification, and the like.

The user terminals 1011, 1012 may be hardware or software. When the user terminals 1011, 1012 are hardware, they may be various electronic devices having speakers and supporting information interaction, including but not limited to smart phones, tablet computers, laptop computers, and the like. When the user terminals 1011, 1012 are software, they may be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.

A manager of the garbage disposal unit may use the target terminal 104 to interact with the blockchain server 103 through the network 1022 to send or receive messages and the like, for example, the target terminal 104 may receive garbage collection information sent by the blockchain server 103. The target terminal 104 may have installed thereon various messenger client applications such as instant messenger, blockchain applications for garbage classification, and the like.

The target terminal 104 may be hardware or software. When the target terminal 104 is hardware, it may be various electronic devices having a speaker and supporting information interaction, including but not limited to a smart phone, a tablet computer, a laptop computer, and the like. When the target terminal 104 is software, it can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.

The sensing device 105 of the trash can may be a device installed at a preset position of the trash can for sensing whether the trash can is filled. The detection device 105 of the trash can may interact with the blockchain server 103 through the network 1023 to send or receive messages or the like, e.g., the detection device 105 of the trash can may send an indication to the blockchain server 103 that the trash can is full. The detection device 105 of the trash can may include, but is not limited to: infrared detection device and camera.

The blockchain server 103 may be a blockchain server that provides various services. For example, the garbage dump data may be recorded in response to receiving a garbage dump request sent by the user terminal 1011, 1012; thereafter, in response to determining that the trash can is full, may send garbage collection information to the target terminal 104 indicating that garbage in the full trash can is to be collected; then, the classification level of the recycled garbage can be determined, and corresponding resources can be distributed to the user accounts of the users participating in the garbage classification based on the classification level.

The blockchain server 103 may be hardware or software. When the blockchain server 103 is hardware, it may be implemented as a distributed server cluster composed of multiple servers, or may be implemented as a single server. When the blockchain server 103 is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.

It should be noted that the garbage classification method provided in the embodiment of the present application is generally performed by the blockchain server 103.

It should be understood that the number of user terminals, networks, blockchain servers, target terminals and detection means for the trash can in fig. 1 are merely illustrative. There may be any number of user terminals, networks, blockchain servers, target terminals and detection devices for the trash can, as desired for implementation.

With continued reference to FIG. 2, a flow 200 of one embodiment of a garbage classification method according to the present application is shown. The garbage classification method comprises the following steps:

in response to receiving a garbage dumping request, recording garbage dumping data, step 201.

In this embodiment, the executing agent of the garbage classification method (e.g., blockchain server 103 shown in fig. 1) may determine whether a garbage dump request is received. Here, before dumping the garbage for the first time, the user (cell resident) usually needs to install the blockchain application corresponding to the blockchain system served by the execution subject on the user terminal, and the user performs garbage classification by using the blockchain application so as to obtain the corresponding resource (reward). The user may then register in the blockchain application described above, thereby obtaining the user's unique identifier, which is typically associated with the user account, for use as a credential for subsequent use of the resource.

As an example, when dumping garbage, the user may select a garbage can for garbage dumping in the above block chain application, and at this time, the user terminal may send a garbage dumping request to the above execution subject, where the garbage dumping request typically includes an identifier of the garbage can.

If the garbage dump request is received, the execution body may record garbage dump data (i.e., transaction data in the blockchain system). The garbage dumping data may include a garbage category, an identifier of the garbage can, an identifier of a cell to which the garbage can belongs, and a user account of a user who dumps garbage. In some cases, the garbage dump data may also include garbage dump time and volume of garbage. The volume of garbage may be user entered in the blockchain application. The identity of the cell to which the trash can belongs may be preset in association with an identifier of the trash can.

Here, before the garbage can is filled, the execution body usually receives a plurality of garbage dumping requests, and records a piece of garbage dumping data in sequence every time the garbage dumping request is received.

It should be noted that, the trash can in this embodiment may be preset with corresponding trash categories, and be distinguished by patterns or colors corresponding to the trash categories. The above garbage categories may include, but are not limited to, at least one of: kitchen waste, recyclable waste, other waste and harmful waste.

Step 202, in response to determining that the trash can is full, sending trash recycling information to the target terminal.

In this embodiment, the execution body may determine whether the trash can is filled. As an example, if the recorded garbage dumping data includes the volume of garbage, the executing entity may determine the sum of the volumes of the garbage in the garbage can by using the volume of the garbage in the garbage dumping data, and then may determine whether the sum of the volumes of the garbage in the garbage can is greater than or equal to the volume of the garbage can, and if so, may determine that the garbage can is full.

If the garbage can is determined to be full, the execution main body can send garbage collection information to the target terminal. The target terminal may be a terminal device corresponding to a garbage disposal unit. The garbage collection information can be used for indicating that garbage in a full garbage bin is collected.

Step 203, determining the classification level of the recycled garbage, and distributing corresponding resources to the user account of the garbage classification participating user based on the classification level.

In this embodiment, the execution subject may determine the classification level of the recycled garbage. The classification grade can be evaluated by secondary classification of the recycled garbage by workers of the garbage disposal unit, and can reflect the classification effect of the user on the garbage. The execution main body can receive the classification grade of the recycled garbage fed back by the staff. It should be noted that the classification levels may be user-defined, for example, the classification levels may include a first level, a second level and a third level, where the first level may indicate that the garbage classification effect is the best, and the third level may indicate that the garbage classification effect is the worst.

Then, the executing entity may distribute the corresponding resource to the user account of the user participating in the garbage classification based on the classification level. The execution body may store a first correspondence table of correspondence between the classification level and the resource. The executing body may search for the resource corresponding to the determined classification level in the first correspondence table, and distribute the searched resource to the user account of the garbage classification participating user. Here, the garbage classification participating user may be a user who dumps the collected garbage. The resources may be virtual goods distributed on the internet, and may include but are not limited to: red envelope, coupons, vouchers, and experience tickets. Generally, the better the classification level reflects, the more resources are distributed.

The method provided by the embodiment of the application can stimulate the user to classify the garbage through the block chain, so that the garbage classification effect is improved. Compare in timing fixed point to retrieve rubbish, this kind of initiative of this embodiment triggers rubbish mode of retrieving has improved refuse handling's flexibility, has avoided retrieving produced cost of transportation to rubbish when the garbage bin is not filled up, and this kind of mode makes the user carry out rubbish in the period of relatively concentrating and emptys simultaneously, has shortened the refuse handling cycle.

In some optional implementations of this embodiment, the executing entity may record the garbage dumping data in response to receiving the garbage dumping request by: the execution main body can respond to the received garbage dumping request and determine whether the garbage can indicated by the garbage dumping request is occupied for the first time. The states of the trash can may include an idle state and an occupied state. If the garbage bin has garbage, the garbage bin is in an occupied state; if the garbage can does not have garbage, the garbage can is in an idle state. If the garbage can indicated by the garbage dumping request is in an idle state before the garbage dumping request is received, it can be determined that the garbage can is occupied for the first time. If the garbage can indicated by the garbage dumping request is determined to be occupied for the first time, the garbage dumping data can be recorded, and a garbage can occupying message is broadcasted to the block chain system where the execution main body is located. The trash can occupancy message can be used to inform each node in the blockchain system that the trash can is occupied.

In some optional implementations of the embodiment, the garbage dumping request may include a category to which the dumped garbage belongs, for example, kitchen garbage, recyclable garbage, other garbage, and harmful garbage. The user may select the category to which the dumped trash belongs in the target page. The target page may be a page in the blockchain application. At this time, the trash can occupancy message broadcasted to the blockchain system may include the above categories.

In some optional implementation manners of this embodiment, after the garbage is pulled to the garbage disposal site, the garbage sorting device generally needs to perform secondary sorting on the garbage, and the sorting time of the garbage sorting device for performing secondary sorting on the garbage can reflect the sorting effect of the first sorting (i.e., the garbage sorting performed by the user). Generally speaking, the shorter the sorting time of the garbage sorting equipment for garbage is, the better the sorting effect of the first sorting is. The execution subject may determine the classification level of the recycled garbage by: the execution body may determine the classification level of the recycled garbage based on a sorting duration of the recycled garbage by the garbage sorting apparatus and a weight of the recycled garbage. As an example, the executing body may determine a ratio of a sorting duration of the garbage sorting apparatus to the recycled garbage to a weight of the recycled garbage, and a second correspondence table of a correspondence between the ratio and a classification level may be stored in the executing body; then, the executing body may look up a classification level corresponding to the determined ratio from the second correspondence table as the classification level of the collected garbage. It should be noted that, the smaller the ratio in the correspondence table is, the better the classification effect indicated by the corresponding classification level is.

In some optional implementations of this embodiment, the executing body may send the garbage collection information to the target terminal in response to determining that the garbage bin is full by: the execution body may send garbage collection information to the target terminal in response to receiving a message indicating that the garbage can is full. As an example, a trigger button may be installed on the trash can, and if the garbage classification participant user finds that the trash can is full, the trigger button on the trash can may be triggered, and at this time, the execution main body may receive a message for indicating that the trash can is full.

In some optional implementations of the embodiment, the message for indicating that the trash can is full may be sent by the garbage classification participating user triggering (e.g., clicking) a target icon on the user terminal, where the target icon may be used to indicate that the trash can is full.

In some optional implementations of the present embodiment, the trash can indicated by the trash dumping request may include a detection device. The detection device can detect whether the garbage bin is full, and if so, the detection device can send a message for representing that the garbage bin is full to the execution main body. As an example, if the detecting device detects that the time period of the lid of the trash can being in the non-closed state exceeds a preset time period threshold (for example, 5 minutes), it may be determined that the trash can is full. As another example, if the above-mentioned detecting device detects that the trash in the trash can has reached the preset loading line, it may be determined that the trash can has been filled.

In some optional implementations of the present embodiment, the execution principal may determine whether a trash can registration request is received. When a new garbage can is enabled, a unique identifier (also referred to as token) of the new garbage can is generally required to be set in the blockchain system, a blockchain application corresponding to the blockchain system is installed can be manually operated, and the execution body receives a garbage can registration request and can generate the identifier of the garbage can indicated by the garbage can registration request.

In some optional implementations of the embodiment, the garbage dumping request may be sent in response to the user terminal performing a scanning operation on a two-dimensional code corresponding to the garbage can. The two-dimensional code that the garbage bin corresponds can be pasted on the ladle body of garbage bin or on the upper cover. The two-dimensional code corresponding to the trash can be generated by converting the identifier of the trash can.

With continuing reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the garbage classification method according to the present embodiment. In the application scenario of fig. 3, a user scans a two-dimensional code 301 on a trash can with a user terminal 302, sending a garbage dump request 304 to a blockchain server 303. After that, blockchain server 303 may record garbage dump data 305, where before the trash can is filled, the garbage dump data 305 recorded by blockchain server 303 includes garbage dump data a, garbage dump data B, garbage dump data C, and garbage dump data D. Here, the volume of the garbage is included in the recorded garbage dump data 305, and the blockchain server 304 may determine the sum of the volumes of the garbage in the garbage can by using the volume of the garbage in the garbage dump data 305, and then may determine whether the sum of the volumes of the garbage in the garbage can is greater than or equal to the volume of the garbage can, and if so, may determine that the garbage can is full. The blockchain server 303 may then send garbage collection information 307 to the target terminal 306 indicating that garbage in the full garbage can is to be collected. Then, the blockchain server 303 may receive the classification level 308 of the recycled spam fed back by the staff using the target terminal 306, and may distribute resources to the user accounts of the spam classification participating users based on the classification level 308, where a red packet may be distributed to the user account a of the spam classification participating user a, a voucher may be distributed to the user account B of the spam classification participating user B, an experience voucher may be distributed to the user account C of the spam classification participating user C, and a discount voucher may be distributed to the user account D of the spam classification participating user D, respectively.

With further reference to FIG. 4, a timing diagram 400 of one embodiment of a garbage classification method is shown.

As shown in fig. 4, in step 401, the blockchain server receives a garbage dump request sent by a user terminal.

In this embodiment, the blockchain server may receive a garbage dumping request sent by the user terminal. Here, before dumping the garbage for the first time, the user (cell resident) usually needs to install a blockchain application corresponding to the blockchain system served by the blockchain server on the user terminal, and the user performs garbage classification by using the blockchain application so as to obtain a corresponding resource (reward). The user may then register in the blockchain application described above, thereby obtaining the user's unique identifier, which is typically associated with the user account, for use as a credential for subsequent use of the resource.

As an example, when dumping garbage, the user may select a garbage can for garbage dumping in the above block chain application, and at this time, the block chain server may receive a garbage dumping request sent by the user terminal, where the garbage dumping request typically includes an identifier of the garbage can.

In step 402, in response to receiving a garbage dump request sent by a user terminal, the blockchain server records garbage dump data.

In this embodiment, if a garbage dump request sent by the user terminal is received, the blockchain server may record garbage dump data (i.e. transaction data in the blockchain system). The garbage dumping data may include a garbage category, an identifier of the garbage can, an identifier of a cell to which the garbage can belongs, and a user account of a user who dumps garbage. In some cases, the garbage dump data may also include garbage dump time and volume of garbage. The volume of garbage may be user entered in the blockchain application. The identity of the cell to which the trash can belongs may be preset in association with an identifier of the trash can.

Here, before the trash can is full, the blockchain server typically receives a plurality of garbage dumping requests, and each time a garbage dumping request is received, a piece of garbage dumping data is recorded in sequence.

It should be noted that, the trash can in this embodiment may be preset with corresponding trash categories, and be distinguished by patterns or colors corresponding to the trash categories. The above garbage categories may include, but are not limited to, at least one of: kitchen waste, recyclable waste, other waste and harmful waste.

In step 403, the blockchain server determines whether the trash can is full.

In this embodiment, the blockchain server may determine whether the trash can is full. As an example, if the volume of the garbage is included in the recorded garbage dump data, the blockchain server may determine a sum of the volumes of the garbage in the garbage can by using the volume of the garbage in the garbage dump data, and then may determine whether the sum of the volumes of the garbage in the garbage can is greater than the volume of the garbage can, and if so, may determine that the garbage can is full.

In step 404, in response to the blockchain server determining that the trash can is full, garbage collection information is sent to the target terminal.

In this embodiment, if it is determined that the trash can is full, the blockchain server may send the garbage collection information to the target terminal. The target terminal may be a terminal device corresponding to a garbage disposal unit. The garbage collection information can be used for indicating that garbage in a full garbage bin is collected.

In step 405, the blockchain server determines a classification level of the recycled spam, and distributes corresponding resources to the user accounts of the users participating in the spam classification based on the classification level.

In this embodiment, the blockchain server may determine a classification level of the reclaimed spam. The classification grade can be evaluated by secondary classification of the recycled garbage by workers of the garbage disposal unit, and can reflect the classification effect of the user on the garbage. The blockchain server may receive the classification level of the recycled spam as fed back by the staff. It should be noted that the classification levels may be user-defined, for example, the classification levels may include a first level, a second level and a third level, where the first level may indicate that the garbage classification effect is the best, and the third level may indicate that the garbage classification effect is the worst.

Then, the blockchain server may distribute the corresponding resources to the user accounts of the users participating in the garbage classification based on the classification level. A first correspondence table of correspondences between classification levels and resources may be stored in the blockchain server. The block chain server may search for resources corresponding to the determined classification level in the first correspondence table, and distribute the searched resources to the user account of the garbage classification participating user. Here, the garbage classification participating user may be a user who dumps the collected garbage. The resources may be virtual goods distributed on the internet, and may include but are not limited to: red envelope, coupons, vouchers, and experience tickets. Generally, the better the classification level reflects, the more resources are distributed.

According to the embodiment of the application, the users can be stimulated to perform garbage classification through the block chain, so that the garbage classification effect is improved. Meanwhile, compared with the method for recovering the garbage at fixed time and fixed point, the method for actively triggering garbage recovery improves the flexibility of garbage treatment.

In some optional implementations of the present embodiment, the blockchain server may determine whether the trash can indicated by the above-described trash dump request is occupied for the first time in response to receiving the trash dump request. The states of the trash can may include an idle state and an occupied state. If the garbage bin has garbage, the garbage bin is in an occupied state; if the garbage can does not have garbage, the garbage can is in an idle state. If the garbage can indicated by the garbage dumping request is in an idle state before the garbage dumping request is received, it can be determined that the garbage can is occupied for the first time. If the trash can indicated by the trash dumping request is determined to be occupied for the first time, the blockchain server can record the trash dumping data and broadcast a trash can occupation message to a blockchain system where the blockchain server is located. The trash can occupancy message can be used to inform each node in the blockchain system that the trash can is occupied.

In some optional implementations of the embodiment, the garbage dumping request may include a category to which the dumped garbage belongs, for example, kitchen garbage, recyclable garbage, other garbage, and harmful garbage. The user may select the category to which the dumped trash belongs in the target page. The target page may be a page in the blockchain application. At this time, the trash can occupancy message broadcasted to the blockchain system may include the above categories.

In some optional implementations of this embodiment, the blockchain server may send garbage collection information to the target terminal in response to receiving a message indicating that the garbage can is full. As an example, a trigger button may be installed on the trash can, and if the garbage classification participating user finds that the trash can is full, the trigger button on the trash can may be triggered, and at this time, the blockchain server may receive a message for indicating that the trash can is full.

In some optional implementations of the embodiment, the message for indicating that the trash can is full may be sent by the garbage classification participating user triggering (e.g., clicking) a target icon on the user terminal, where the target icon may be used to indicate that the trash can is full.

In some optional implementations of the present embodiment, the blockchain server may determine whether a garbage can registration request is received. When a new garbage can is enabled, a unique identifier (also referred to as token) of the new garbage can is generally required to be set in the blockchain system, a blockchain application corresponding to the blockchain system can be manually operated, and the blockchain server receives a garbage can registration request and can generate the identifier of the garbage can indicated by the garbage can registration request.

With further reference to fig. 5, a timing diagram 500 of yet another embodiment of a garbage classification method is shown.

As shown in fig. 5, in step 501, the user terminal detects whether a two-dimensional code corresponding to a trash can is scanned.

In this embodiment, the user terminal may detect whether to scan the two-dimensional code corresponding to the trash can. As an example, the user may scan the two-dimensional code corresponding to the trash can by using a blockchain application (an application corresponding to a blockchain system served by a blockchain server) installed on the user terminal. The two-dimensional code that the garbage bin corresponds can be pasted on the ladle body of garbage bin or on the upper cover. The two-dimensional code corresponding to the trash can be generated by converting the identifier of the trash can.

In step 502, if it is detected that the two-dimensional code corresponding to the trash can is scanned, the user terminal sends a trash dumping request to the blockchain server.

In this embodiment, if it is detected in step 501 that the two-dimensional code corresponding to the trash can is scanned, the user terminal may send a trash dumping request to the blockchain server. As an example, a user may select a trash can for trash dumping in the above-described blockchain application when dumping trash, at which point the user terminal may send a trash dumping request to the blockchain server, where the trash dumping request typically includes an identifier of the trash can.

In step 503, the blockchain server records the garbage dump data.

In this embodiment, if the garbage dump request is received, the blockchain server may record garbage dump data (i.e., transaction data in the blockchain system). The garbage dumping data may include a garbage category, an identifier of the garbage can, an identifier of a cell to which the garbage can belongs, and a user account of a user who dumps garbage. In some cases, the garbage dump data may also include garbage dump time and volume of garbage. The volume of garbage may be user entered in the blockchain application. The identity of the cell to which the trash can belongs may be preset in association with an identifier of the trash can.

Here, before the trash can is full, the blockchain server typically receives a plurality of garbage dumping requests, and each time a garbage dumping request is received, a piece of garbage dumping data is recorded in sequence.

It should be noted that, the trash can in this embodiment may be preset with corresponding trash categories, and be distinguished by patterns or colors corresponding to the trash categories. The above garbage categories may include, but are not limited to, at least one of: kitchen waste, recyclable waste, other waste and harmful waste.

In step 504, the detecting device of the trash can detects whether the trash can is full.

In this embodiment, the detecting device of the trash can detect whether the trash can is full. As an example, if the detection device of the trash can detects that the time period of the lid of the trash can in the non-closed state exceeds a preset time period threshold (for example, 5 minutes), it can be determined that the trash can is full. As another example, if the detecting device of the trash can detects that the trash in the trash can has reached the preset loading line, it may be determined that the trash can has been filled. If the trash can is detected to be full, the trash can detection device can execute step 505.

In step 505, if the detecting device of the trash can detects that the trash can is full, the detecting device of the trash can sends a message for indicating that the trash can is full to the blockchain server.

In this embodiment, if the detecting device of the trash can detects that the trash can is full, the detecting device of the trash can may send a message for indicating that the trash can is full to the blockchain server.

In step 506, the blockchain server sends garbage collection information to the target terminal.

In this embodiment, if the blockchain server receives a message indicating that the trash can is full sent by the detection device of the trash can, the blockchain server may send the garbage collection information to the target terminal. The target terminal may be a terminal device corresponding to a garbage disposal unit. The garbage collection information can be used for indicating that garbage in a full garbage bin is collected.

In step 507, the blockchain server determines a classification level of the recycled garbage based on a sorting duration of the garbage sorting device for the recycled garbage and a weight of the recycled garbage.

In this embodiment, after the garbage is pulled to the garbage disposal site, the garbage sorting device is generally required to perform secondary sorting on the garbage, and the sorting time of the garbage sorting device for performing secondary sorting on the garbage can reflect the sorting effect of the first sorting (i.e. the user performs garbage sorting). Generally speaking, the shorter the sorting time of the garbage sorting equipment for garbage is, the better the sorting effect of the first sorting is.

The block chain server may determine a classification level of the recycled garbage based on a sorting duration of the recycled garbage by the garbage sorting apparatus and a weight of the recycled garbage. As an example, the blockchain server may determine a ratio of a sorting duration of the garbage sorting device to the recycled garbage to a weight of the recycled garbage, and a second correspondence table of a correspondence between the ratio and a classification level may be stored in the blockchain server; then, the blockchain server may look up a classification level corresponding to the determined ratio from the second correspondence table as the classification level of the recycled garbage. It should be noted that, the smaller the ratio in the correspondence table is, the better the classification effect indicated by the corresponding classification level is.

In step 508, the blockchain server distributes the corresponding resources to the user accounts of the users participating in the garbage classification based on the classification level.

In this embodiment, the blockchain server may distribute corresponding resources to the user accounts of the users participating in the garbage classification based on the classification level. A first correspondence table of correspondences between classification levels and resources may be stored in the blockchain server. The block chain server may search for resources corresponding to the determined classification level in the first correspondence table, and distribute the searched resources to the user account of the garbage classification participating user. Here, the garbage classification participating user may be a user who dumps the collected garbage. The resources may be virtual goods distributed on the internet, and may include but are not limited to: red envelope, coupons, vouchers, and experience tickets. Generally, the better the classification level reflects, the more resources are distributed.

The above-mentioned embodiment of this application can send rubbish to the block chain server through the two-dimensional code that the scanning garbage bin corresponds and empty the request more conveniently. Whether the garbage bin is filled or not is detected through the detection device of the garbage bin, and whether the garbage bin is filled or not can be detected more accurately in the mode. The sorting time of the recycled garbage and the weight of the recycled garbage are determined by the garbage sorting equipment, and the classification grade of the recycled garbage can be determined more accurately.

With further reference to fig. 6, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment of a garbage classification apparatus, which corresponds to the method embodiment shown in fig. 2, and which can be applied to various electronic devices.

As shown in fig. 6, the garbage classification apparatus 600 of the present embodiment includes: recording unit 601, transmitting unit 602, and distributing unit 603. Wherein the recording unit 601 is configured to record the garbage dumping data in response to receiving the garbage dumping request; the sending unit 602 is configured to send garbage collection information to the target terminal in response to determining that the garbage bin is full, wherein the garbage collection information is used for indicating that garbage in the full garbage bin is collected; the distribution unit 603 is configured to determine a classification level of the recycled spam, and distribute the corresponding resource to the user account of the spam classification participating user based on the classification level.

In this embodiment, the specific processing of the recording unit 601, the sending unit 602, and the distributing unit 603 of the garbage classification apparatus 600 may refer to step 201, step 202, and step 203 in the corresponding embodiment of fig. 2.

In some optional implementations of the present embodiment, the recording unit 601 may record the garbage dumping data in response to receiving the garbage dumping request by: the recording unit 601 may determine whether the trash can indicated by the trash dumping request is occupied for the first time in response to receiving the trash dumping request. The states of the trash can may include an idle state and an occupied state. If the garbage bin has garbage, the garbage bin is in an occupied state; if the garbage can does not have garbage, the garbage can is in an idle state. If the garbage can indicated by the garbage dumping request is in an idle state before the garbage dumping request is received, it can be determined that the garbage can is occupied for the first time. If it is determined that the trash can indicated by the trash dumping request is occupied for the first time, the recording unit 601 may record the trash dumping data and broadcast the trash can occupation message to the blockchain system where the recording unit 601 is located. The trash can occupancy message can be used to inform each node in the blockchain system that the trash can is occupied.

In some optional implementations of the embodiment, the garbage dumping request may include a category to which the dumped garbage belongs, for example, kitchen garbage, recyclable garbage, other garbage, and harmful garbage. The user may select the category to which the dumped trash belongs in the target page. The target page may be a page in the blockchain application. At this time, the trash can occupancy message broadcasted to the blockchain system may include the above categories.

In some optional implementation manners of this embodiment, after the garbage is pulled to the garbage disposal site, the garbage sorting device generally needs to perform secondary sorting on the garbage, and the sorting time of the garbage sorting device for performing secondary sorting on the garbage can reflect the sorting effect of the first sorting (i.e., the garbage sorting performed by the user). Generally speaking, the shorter the sorting time of the garbage sorting equipment for garbage is, the better the sorting effect of the first sorting is. The distribution unit 603 may determine the classification level of the recycled garbage according to the following manner: the distribution unit 603 may determine the classification level of the recycled garbage based on a sorting time of the recycled garbage by the garbage sorting apparatus and a weight of the recycled garbage. As an example, the distributing unit 603 may determine a ratio of a sorting duration of the garbage sorting apparatus to the recycled garbage to a weight of the recycled garbage, and the distributing unit 603 may store a second correspondence table of a correspondence between the ratio and a classification level; then, the distribution unit 603 may search the classification level corresponding to the determined ratio from the second correspondence table as the classification level of the collected garbage. It should be noted that, the smaller the ratio in the correspondence table is, the better the classification effect indicated by the corresponding classification level is.

In some optional implementations of this embodiment, the sending unit 602 may send the garbage collection information to the target terminal in response to determining that the garbage bin is full by: the sending unit 602 may send garbage collection information to the target terminal in response to receiving the message for indicating that the garbage bin is full. As an example, a trigger button may be installed on the trash can, and if the garbage classification participant user finds that the trash can is full, the trigger button on the trash can may be triggered, and at this time, the sending unit 602 may receive a message for indicating that the trash can is full.

In some optional implementations of the embodiment, the message for indicating that the trash can is full may be sent by the garbage classification participating user triggering (e.g., clicking) a target icon on the user terminal, where the target icon may be used to indicate that the trash can is full.

In some optional implementations of the present embodiment, the trash can indicated by the trash dumping request may include a detection device. The detecting device may detect whether the trash can is full, and if so, the detecting device may send a message indicating that the trash can is full to the sending unit 602. As an example, if the detecting device detects that the time period of the lid of the trash can being in the non-closed state exceeds a preset time period threshold (for example, 5 minutes), it may be determined that the trash can is full. As another example, if the above-mentioned detecting device detects that the trash in the trash can has reached the preset loading line, it may be determined that the trash can has been filled.

In some optional implementations of this embodiment, the garbage classification apparatus 600 may further include a generating apparatus (not shown in the figure). The generating means may determine whether a trash can registration request is received. When a new garbage can is enabled, a unique identifier of the new garbage can is generally required to be set in the blockchain system, the blockchain application corresponding to the blockchain system is installed can be manually operated, and the generating device can generate the identifier of the garbage can indicated by the garbage can registration request after receiving the garbage can registration request.

In some optional implementations of the embodiment, the garbage dumping request may be sent in response to the user terminal performing a scanning operation on a two-dimensional code corresponding to the garbage can. The two-dimensional code that the garbage bin corresponds can be pasted on the ladle body of garbage bin or on the upper cover. The two-dimensional code corresponding to the trash can be generated by converting the identifier of the trash can.

Referring now to fig. 7, a schematic diagram of an electronic device (e.g., the blockchain server of fig. 1) 700 suitable for use in implementing embodiments of the present disclosure is shown. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.

As shown in fig. 7, electronic device 700 may include a processing means (e.g., central processing unit, graphics processor, etc.) 701 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from storage 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.

Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 illustrates an electronic device 700 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 7 may represent one device or may represent multiple devices as desired.

In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of embodiments of the present disclosure. It should be noted that the computer readable medium described in the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present disclosure, however, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.

The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: recording garbage dumping data in response to receiving a garbage dumping request; sending garbage collection information to a target terminal in response to the fact that the garbage bin is full, wherein the garbage collection information is used for indicating that garbage in the full garbage bin is collected; and determining the classification level of the recycled garbage, and distributing corresponding resources to the user account of the garbage classification participating user based on the classification level.

Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).

The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

The units described in the embodiments of the present disclosure may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a recording unit, a transmitting unit, and a distributing unit. Where the names of these units do not in some cases constitute a limitation on the unit itself, for example, a recording unit may also be described as a "unit that records garbage dump data in response to receiving a garbage dump request".

The foregoing description is only exemplary of the preferred embodiments of the disclosure 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 invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

21页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种废旧电池回收装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!