CN110598879B - Garbage collection method, device, equipment and storage medium based on block chain - Google Patents

Garbage collection method, device, equipment and storage medium based on block chain Download PDF

Info

Publication number
CN110598879B
CN110598879B CN201910862699.5A CN201910862699A CN110598879B CN 110598879 B CN110598879 B CN 110598879B CN 201910862699 A CN201910862699 A CN 201910862699A CN 110598879 B CN110598879 B CN 110598879B
Authority
CN
China
Prior art keywords
garbage
user
target
target user
blockchain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910862699.5A
Other languages
Chinese (zh)
Other versions
CN110598879A (en
Inventor
吴楠
李亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911301708.XA priority Critical patent/CN111079958A/en
Priority to CN201910862699.5A priority patent/CN110598879B/en
Publication of CN110598879A publication Critical patent/CN110598879A/en
Application granted granted Critical
Publication of CN110598879B publication Critical patent/CN110598879B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/30Administration of product recycling or disposal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02WCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO WASTEWATER TREATMENT OR WASTE MANAGEMENT
    • Y02W30/00Technologies for solid waste management
    • Y02W30/10Waste collection, transportation, transfer or storage, e.g. segregated refuse collecting, electric or hybrid propulsion
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02WCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO WASTEWATER TREATMENT OR WASTE MANAGEMENT
    • Y02W90/00Enabling technologies or technologies with a potential or indirect contribution to greenhouse gas [GHG] emissions mitigation

Abstract

The application discloses a garbage recycling method, device and equipment based on a block chain and a storage medium, and belongs to the technical field of block chains. According to the garbage collection method, the user identification of the target user is obtained based on the garbage throwing instruction of the target user, the throwing type of the garbage bag is obtained, the first throwing record of the garbage bag is generated on the blockchain of the blockchain system based on the throwing type and the user identification of the target user, the garbage collection result generated by the target garbage treatment mechanism is obtained, the garbage collection result is generated based on the first throwing record and the type of each article in the garbage bag, the garbage collection result is sent to the target user, and in the garbage collection process, the garbage collection result can be accurately fed back to the target user throwing garbage, so that the target user can learn the garbage classification throwing condition, the garbage classification quality is gradually improved, and the garbage collection effect is ensured.

Description

Garbage collection method, device, equipment and storage medium based on block chain
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method, an apparatus, a device, and a storage medium for garbage collection based on blockchains.
Background
In recent years, the problem of garbage disposal becomes a hot topic of society, and an important link in the garbage disposal process is garbage recycling, so that the garbage can be reasonably classified and recycled, and the resource waste and the environmental pollution can be reduced. At present, in the garbage recycling process, users are required to classify and pack garbage, and garbage bags of different categories are put into different areas.
However, since the quality of garbage classification of part of users is not high, the situation of disordered garbage classification can occur, under the situation, the user who puts in the garbage bag is difficult to trace the source of the garbage bag, and the user cannot be fed back with the wrong garbage classification information, so that the quality of garbage classification is difficult to improve, and the garbage recovery effect can be influenced.
Disclosure of Invention
The embodiment of the application provides a garbage collection method, device, equipment and storage medium based on a blockchain, which can solve the problem that a user throwing garbage bags cannot be traced in the related technology, and the garbage throwing result is fed back to the user. The technical scheme is as follows:
in one aspect, a garbage collection method based on a blockchain is provided, the method comprising:
acquiring a user identification of a target user based on a garbage throwing instruction of the target user;
Acquiring a delivery category of the garbage bag, and generating a first delivery record of the garbage bag on a block chain of the block chain system based on the delivery category and a user identification of the target user;
obtaining a garbage recycling result generated by a target garbage disposal mechanism, wherein the garbage recycling result is generated based on the first throwing record and the category of each article in the garbage bag;
and sending the garbage collection result to the target user.
In one aspect, there is provided a blockchain-based garbage collection device, the device comprising:
the identification acquisition module is used for acquiring the user identification of the target user based on the garbage throwing instruction of the target user;
the first record generation module is used for acquiring the delivery type of the garbage bag and generating a first delivery record of the garbage bag on a blockchain of the blockchain system based on the delivery type and the user identification of the target user;
the result acquisition module is used for acquiring a garbage recycling result generated by the target garbage disposal mechanism, and the garbage recycling result is generated based on the first put record and the category of each article in the garbage bag;
and the sending module is used for sending the garbage collection result to the target user.
In one possible implementation, the apparatus further includes:
and the sorting module is used for acquiring the total garbage collection integral of at least one user and sorting the total garbage collection integral of the at least one user.
In one possible implementation, the apparatus further includes:
and the identification generation module is used for generating the user identification of the target user on the blockchain of the blockchain system based on the registration behavior of the target user.
In one possible implementation, the identifier acquisition module is configured to:
when a garbage throwing instruction of the target user is received, acquiring a user image of the target user;
and identifying the user image, and determining the user identification of the target user based on the identification result.
In one aspect, a computer device is provided that includes one or more processors and one or more memories having stored therein at least one piece of program code that is loaded and executed by the one or more processors to implement operations performed by the blockchain-based garbage collection method.
In one aspect, a computer readable storage medium having at least one program code stored therein is provided, the at least one program code loaded and executed by a processor to implement operations performed by the blockchain-based garbage collection method.
According to the technical scheme provided by the embodiment of the application, the user identification of the target user is obtained through the garbage throwing instruction based on the target user, the throwing type of the garbage bag is obtained, the first throwing record of the garbage bag is generated on the blockchain of the blockchain system based on the throwing type and the user identification of the target user, the garbage recycling result generated by the target garbage treatment mechanism is obtained, the garbage recycling result is generated based on the first throwing record and the belonging type of each article in the garbage bag, the garbage recycling result is sent to the target user, and in the garbage recycling process, the garbage recycling result can be accurately fed back to the target user throwing garbage, so that the target user can learn the garbage classification throwing condition, the garbage classification quality is gradually improved, and the garbage recycling effect is ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an implementation environment of a garbage collection method based on a blockchain according to an embodiment of the present application;
FIG. 2 is a flow chart of a garbage collection method based on blockchain according to an embodiment of the present application;
FIG. 3 is a block chain structure diagram according to an embodiment of the present application;
FIG. 4 is a diagram illustrating a user data structure on a blockchain in accordance with an embodiment of the present application;
FIG. 5 is a schematic diagram of a mechanism data structure on a blockchain in accordance with an embodiment of the present application;
FIG. 6 is a schematic diagram of a block chain drop-in record data structure according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a garbage collection system according to an embodiment of the present application;
FIG. 8 is a schematic diagram of data interaction of a garbage collection system according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a garbage collection device based on a blockchain according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
It should be noted that, the information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, presented data, etc.), and signals (including but not limited to signals transmitted between the user terminal and other devices, etc.) related to the present application are fully authorized by the user or related aspects, and the collection, use, and processing of the related data is required to comply with the relevant laws and regulations and standards of the relevant country and region.
Fig. 1 is a schematic diagram of an implementation environment of a garbage collection method based on a blockchain according to an embodiment of the present application, and referring to fig. 1, the implementation environment may include a plurality of computer devices, where the plurality of computer devices may be a plurality of node devices in a blockchain system, and any node device in the blockchain system may perform one or more steps in the garbage collection method based on a blockchain according to the embodiment of the present application. The plurality of computer devices may be a plurality of node devices belonging to the same organization, or may be a plurality of node devices belonging to different organizations. For example, the plurality of computer devices may each belong to a garbage disposal facility, each department in the garbage disposal facility corresponds to at least one computer device in the garbage disposal facility, or at least one computer device in the plurality of computer devices is a user device, at least one computer device belongs to a garbage disposal facility, at least one computer device belongs to an environmental protection regulatory agency, and of course, there may be at least one computer device belonging to other facilities, such as other social regulatory agencies, and the like.
The plurality of computer devices may be servers or terminals, which is not particularly limited in the embodiment of the present application.
In order to facilitate understanding of the technical process of the embodiments of the present application, some terms related to the embodiments of the present application are explained below:
blockchain (Block chain): is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The blockchain is essentially a de-centralized database, which is a series of data blocks generated by cryptographic association, each data block containing information of a network transaction for verifying the validity (anti-counterfeiting) of the information and generating a next block, each block containing a time stamp and a link to the previous block. In a narrow sense, a blockchain is a chain data structure that combines blocks of data in a sequential manner in time order, and cryptographically guaranteed, non-tamperable and non-counterfeitable, distributed ledgers, i.e., the data in the blockchain will be irreversible once recorded.
Consensus mechanism (Consensus mechanism): is a mathematical algorithm for realizing trust establishment and rights acquisition among different nodes in a block chain system. In a blockchain system, the verification and confirmation of a transaction can be completed in a short time through voting of special nodes, and if a plurality of nodes with irrelevant interests can reach consensus for one transaction, all the nodes in the system can be considered to reach consensus for the same.
Smart contract: is a computer protocol that aims to propagate, verify or execute contracts in an informative manner. Each node in the blockchain system can operate the data stored on the chain according to the contract program automatically executed by the specific condition, and is an important way for users to interact with the blockchain and realize business logic by using the blockchain. The purpose of smart contracts is to provide a secure method over traditional contracts and reduce other transaction costs associated with the contracts, which allows trusted transactions to be conducted without third parties, which transactions are traceable and irreversible.
Public Key (Public Key) and Private Key (Private Key): is a key pair (i.e., a public key and a private key) obtained by an algorithm, the public key being the public part of the key pair and the private key being the non-public part. Public keys are commonly used to encrypt data, verify digital signatures, and the like. By means of this algorithm it is ensured that the resulting key pair is unique, and when using this key pair, if one of the keys is used to encrypt a piece of data, it must be decrypted with the other key, e.g. the public key is used to encrypt the data, and if the private key is used, it must be decrypted with the public key, otherwise the decryption will not succeed.
Fig. 2 is a flowchart of a garbage collection method based on a blockchain, which is provided in an embodiment of the present application, and the garbage collection method based on the blockchain may be applied to any node device in the blockchain system, referring to fig. 2, and the embodiment may specifically include the following steps:
201. the first node device generates a user identification of a target user on a blockchain of the blockchain system based on a registration behavior of the target user.
The first node device may be a client device used by the target user, or may be a server corresponding to the client device, where the client device used by the target user may be installed and run with a target application program, where the target application program may provide a real name registration function.
Taking the first node device as the server corresponding to the client device as an example, in the embodiment of the present application, the client device may display a registration page of the target application program, where the registration page may include an information input area and a first confirmation control, when the client device detects a triggering operation of the target user on the first confirmation control, input information in the information input area may be acquired, the input information and a registration request are sent to the first node device, the first node device may generate, based on the registration request and the input information, a user identifier of the target user and a public key and a private key of the target user corresponding to the user identifier, where the user identifier may be used to uniquely identify a user, and the first node device may store the user identifier of the target user and the public key onto a blockchain of the blockchain system, and the private key may be stored by the target user. The triggering operation may be a clicking operation, a long-press operation, or the like, which is not specifically limited in the embodiment of the present application.
In one possible implementation, the first node device will store the public key and user identification of the target user on the blockchain based on a consensus mechanism. Specifically, for each node in the blockchain system, the node identifier corresponding to the node is provided, and each node device in the blockchain system can store the node identifiers of other node devices in the blockchain system, so that the generated block is broadcast to other node devices in the blockchain system according to the node identifiers of the other node devices, and the other node devices can realize consensus on the block. Each node device may maintain a node identifier list as shown in the following table, and store the node name and the node identifier in the node identifier list correspondingly. The node identifier may be an IP (Internet Protocol, protocol of interconnection between networks) address, and any other information that can be used to identify the node, and the IP address is only illustrated in table 1.
TABLE 1
Node name Node identification
Node 1 117.114.151.174
Node 2 117.116.189.145
Node N 119.123.789.258
Each node device in a blockchain system may store one and the same blockchain. Fig. 3 is a schematic block chain structure diagram provided in an embodiment of the present application, referring to fig. 3, the block chain is composed of a plurality of blocks, an initiation block 301 includes a block header and a block body, the block header stores an input information feature value, a version number, a timestamp and a difficulty value, and the block body stores input information; the next block 302 of the starting block takes the starting block 301 as a father block, the next block 302 also comprises a block header and a block main body, the block header stores the input information characteristic value of the current block 303, the block header characteristic value of the father block, the version number, the timestamp and the difficulty value, and the like, so that the block data stored in each block in the block chain is associated with the block data stored in the father block, and the safety of the input information in the block is ensured.
When each block in the blockchain is generated, the node equipment where the blockchain is located checks the input information when receiving the input information, in the embodiment of the application, the input information can be the user identifier and the public key of the target user, after the node equipment checks the input information, the input information is stored in the memory pool, the hash tree used for recording the input information is updated, then the update timestamp is updated to the time of receiving the input information, different random numbers are tried, and characteristic value calculation is carried out for a plurality of times, so that the calculated characteristic value can meet the following formula:
SHA256(SHA256(version+prev_merkle_rool+ntime+nbits+x))<TARGET
wherein SHA256 is a eigenvalue algorithm used to calculate eigenvalues; version (version number) is version information of the related block protocol in the block chain; the prev_hash is the block header characteristic value of the parent block of the current block; the merkle_root is a characteristic value of input information; ntime is the update time of the update timestamp; the nbits is the current difficulty, is a fixed value in a period of time, and is determined again after exceeding a fixed period of time; x is a random number; TARGET is a eigenvalue threshold that can be determined from nbits.
Thus, when the random number meeting the formula is calculated, the information can be correspondingly stored to generate the block head and the block main body, and the current block is obtained. And then, the node where the blockchain is located sends the newly generated current block to other nodes in the blockchain system where the node is located according to the node identification of other nodes in the blockchain system, the other nodes carry out consensus on the newly generated current block, and the current block can be added into the blockchain after the current block passes the consensus, if the current block does not pass the consensus, the block uplink operation can be omitted. Referring to fig. 4, fig. 4 is a schematic diagram of a user data structure on a blockchain provided by an embodiment of the present application, where the user identification and public key of the target user may be stored in the manner shown in area 401.
It should be noted that, the foregoing description of storing the user identifier and the public key of the target user in the blockchain is merely an exemplary description of a storage manner, and the embodiment of the present application does not limit what storage manner is specifically adopted.
202. The second node equipment acquires the user identification of the target user based on the garbage throwing instruction of the target user.
The second node device may be a node device corresponding to an intelligent dustbin, where the intelligent dustbin may receive a garbage throwing instruction, identify a target user triggering the instruction, and execute a subsequent garbage recycling step based on the instruction.
In the embodiment of the present application, the process of obtaining the user identifier by the second node device may include any one of the following implementation manners:
in a first implementation manner, the second node device collects a user image of the target user, and determines a user identifier of the target user based on an image recognition technology. In one possible implementation, the process may specifically include the steps of:
step one, when a garbage throwing instruction of the target user is received, the second node equipment can acquire a user image of the target user.
In the embodiment of the present application, the triggering manner of the garbage throwing instruction may include any one of the following possible implementation manners:
(1) The garbage launch instruction may be triggered by a click operation on a target control on the intelligent garbage can. In one possible implementation manner, the intelligent dustbin may be provided with a target control, and the target control may provide a function of starting a garbage throwing process, and of course, the intelligent dustbin may also be provided with an image acquisition function. The target user can trigger the garbage throwing instruction by clicking the target control, so that the target garbage can executes the subsequent image acquisition step.
(2) The garbage can release instruction may be triggered by a cover opening operation of the intelligent dustbin. The intelligent dustbin can detect the operation of a target user, and when the opening operation of the target user is detected, the garbage throwing instruction can be triggered.
After the intelligent dustbin receives the garbage throwing instruction, a user image of the target user can be collected, wherein the user image can be a face image of the target user. The smart dustbin may send the user image to the second node device.
And step two, the second node equipment identifies the user image, and determines the user identification of the target user based on the identification result.
In one possible implementation, the second node device may apply face recognition techniques to identify the user image to determine the user identification of the target user. Specifically, first, the second node device may perform face detection on the user image based on structural distribution characteristics of the face, determine whether the face of the target user exists in the user image, and if the face exists, further give key information of the face, such as a position, a size, and position information of each main facial organ of the face; then, the second node device can calculate a plurality of geometric feature quantities according to the information of the five sense organs in the key information of the face, and construct feature data capable of describing the facial features of the target user based on the geometric feature quantities; and finally, searching and matching the feature data with a feature template stored in the data, obtaining a feature template with highest similarity with the feature data, and outputting a user identifier corresponding to the feature template as the user identifier of the target user. It should be noted that the above description of the face recognition method is merely an exemplary description of one face recognition method, and the embodiment of the present application does not limit what face recognition method is specifically adopted.
In a second implementation manner, the second node device obtains the user identifier input by the target user.
In one possible implementation, the smart trash can may be configured with an information input area that may be provided by a user with user identification input functionality. The intelligent dustbin can detect information input operation of a target user in the information input area, and when the information input operation is finished, input information of the target user is obtained and used as a user identification of the target user.
In the process, the user identification of the garbage throwing user is obtained, so that the garbage throwing condition of each user can be accurately recorded, and garbage tracing can be conveniently carried out in the subsequent garbage recycling process. Of course, the description of the method for obtaining the user identifier in the above process is only an exemplary description, the second node device may also obtain the user identifier of the target user based on the biometric identification technologies such as fingerprint identification and iris identification, and may also obtain the user identifier of the target user by scanning a two-dimensional code, which user identifier obtaining method is specifically adopted in the embodiment of the present application is not limited.
203. And the second node equipment acquires the throwing type of the garbage bag and generates a first throwing record of the garbage bag based on the throwing type and the user identification of the target user.
In one possible implementation manner, the intelligent dustbin may include a plurality of throwing areas, different throwing areas may correspond to different garbage categories, the intelligent dustbin may detect throwing positions of the garbage bags, and when the throwing positions are in any throwing area, the garbage category corresponding to any throwing area is the throwing category of the garbage bags.
In one possible implementation, different intelligent dustbin may correspond to different garbage categories, and when the target user puts in a garbage can to any intelligent dustbin, the garbage category corresponding to any intelligent dustbin is the put-in category of the garbage can.
In the embodiment of the application, the second node device corresponding to the intelligent dustbin acquires the throwing type of the dustbin, and after confirming that the throwing of the dustbin is completed, the first throwing record can be generated based on the throwing type and the user identification of the target user. The first delivery record may include a delivery type of the garbage bag and a user identifier of the target user, and of course, may also include information such as a weight, a delivery time, and the like of the garbage bag, which is not specifically limited in the embodiment of the present application.
204. The second node device stores the first drop record on a blockchain of the blockchain system.
In the embodiment of the present application, the target user may confirm the information in the first delivery record, and the second node device may store the confirmed first delivery record on the blockchain, and the process may include the following steps:
step one, the second node equipment sends the first delivery record to the target user.
In one possible implementation manner, the second node device may generate a two-dimensional code, send the two-dimensional code to the target user based on the user identifier of the target user, and the target user scans the two-dimensional code through the target application program and views the first delivery record on a target page of the target application program.
And step two, the second node equipment can store the first release record carrying the private key signature of the target user on the blockchain based on the confirmation instruction of the target user on the first release record.
In one possible implementation, the target page may include a second validation control, where the second validation control may be used to provide a form validation function, the target user may trigger a validation instruction through the second validation control, the first node device may add a private key signature of the target user to the first delivery record based on the validation instruction, and send the validation instruction and the first delivery record carrying the private key signature to the second node device, where the second node device may perform a uplink operation on the first delivery record.
In one possible implementation manner, the second node device may complete the step of uplink of the first delivery record based on the intelligent contract, specifically, when the second node device initiates a data uplink request, the second node device may trigger the intelligent contract, so that other node devices in the blockchain system acquire the public key of the target user from the blockchain based on the user identifier of the target user in the first delivery record, verify the private key signature in the first delivery record through the public key of the target user, execute the step of storing the first delivery record onto the blockchain after the verification is passed, and if the verification is not passed, not execute the storing step. The above step of storing the first delivery record on the blockchain is similar to the step of storing the user identifier and the public key of the target user on the blockchain in step 201, and will not be described herein.
After the second node device confirms that the first delivery record is correct, the first delivery record can be associated with the garbage bag, in one possible implementation manner, a label can be generated based on the first delivery record package, the label is attached to the garbage bag, and any node device can acquire the first delivery record of the garbage bag by identifying the label. It should be noted that the above description of the association manner of the first delivery record and the garbage bag is merely an exemplary description of an association manner, and the embodiment of the present application does not limit what association manner is specifically adopted.
It should be noted that, the steps 203 and 204 are steps of obtaining a delivery category of the garbage, and generating a first delivery record of the garbage on a blockchain of the blockchain system based on the delivery category and a user identifier of the target user.
In the process, the identity information of the target user is determined through face recognition, and the target user is confirmed manually to ensure that the first delivery record is accurate, so that the target user can be associated with the delivered garbage can, and further, the garbage tracing can be realized.
205. And the third node equipment acquires the category of each article in the garbage bag.
The third node device may be a server corresponding to the target garbage disposal mechanism, and in one possible implementation manner, the garbage disposal mechanism may include a garbage identification system and a garbage classification scoring system, where the garbage identification system may have an image capturing function to identify a category to which each article in the garbage bag belongs, and the garbage classification scoring system may score based on the category to which each article in the garbage bag belongs.
In the embodiment of the application, a garbage disposal mechanism can correspond to a mechanism identifier, the garbage disposal mechanism can complete enterprise real-name registration through the service provided by the environmental protection supervision mechanism, and node equipment corresponding to the environmental protection supervision mechanism can generate the mechanism identifier of the target garbage disposal mechanism and also can generate the public key and the private key of the target garbage disposal mechanism. The mechanism identification and public key of the target garbage disposal mechanism may be stored on the blockchain, the private key may be stored by the target garbage disposal mechanism itself, see fig. 5, fig. 5 is a schematic diagram of a mechanism data structure on the blockchain provided by an embodiment of the present application, and the mechanism identification and public key of the target garbage disposal mechanism may be stored in the manner shown in the area 501.
In one possible implementation manner, the object image of each object in the garbage can is identified by the garbage identification system of the target garbage disposal mechanism, and the object image is obtained based on the image identification result. Specifically, the garbage identification system of the target garbage disposal mechanism can unpack the garbage bag, collect the object images of all objects in the garbage bag, respectively perform image identification on all object images, determine the objects indicated by all object images, and further determine the category of all objects. It should be noted that the above description of the manner of acquiring the category to which each article belongs is merely an exemplary description of a manner of acquiring the category, and the embodiment of the present application is not limited to what kind of association is specifically adopted.
206. And the third node equipment acquires a garbage recycling result generated by the target garbage disposal mechanism, wherein the garbage recycling result is generated based on the first put record and the category of each article in the garbage bag.
In the embodiment of the application, after the target garbage disposal mechanism acquires the garbage can, the label on the garbage can be identified, the first delivery record carried by the label is acquired, the delivery type in the first delivery record is read, and the target garbage disposal mechanism can generate a garbage recycling result based on the delivery type and the type of each article in the garbage can. In one possible implementation, the garbage collection result may be expressed in the form of a score, the score may be used to indicate a matching degree of each article in the garbage bag with the delivery type, the garbage classification scoring system of the garbage disposal mechanism may calculate the matching degree based on a scoring rule, and further calculate the score based on the matching degree, for example, when the type of an article is the same as the delivery type, the matching degree may increase the target value, and when the type of an article is different from the delivery type, the matching degree may decrease the target value, and when the matching degree of each article in the garbage bag with the delivery type is higher, the score is higher. Wherein, the scoring rule and the target value can be set by a developer, and the embodiment of the application is not particularly limited.
In the embodiment of the application, the third node device may acquire the object image of each object in the garbage bag, the garbage collection result, the user identifier of the target user, and the mechanism identifier of the target garbage disposal mechanism, and generate a second release record, where the second release record may also include information such as when the record is generated, and the third node device may store the second release record carrying the private key signature of the target garbage disposal mechanism onto the blockchain based on the confirmation instruction of the target garbage disposal mechanism on the second release record. The process of storing the second release record on the blockchain is the same as the process of storing the user identifier and the public key of the target user on the blockchain in step 201, and will not be described herein. Referring to fig. 6, fig. 6 is a schematic diagram of a data structure of a drop record on a blockchain according to an embodiment of the present application, where the first drop record may be stored in a manner shown in an area 601, and the second drop record may be stored in a manner shown in an area 602.
207. The first node device sends the garbage collection result to the target user.
In one possible implementation manner, a client device used by the target user may display an information query page, where the information query page may include an information display area and a query control, when the client device detects that the target user triggers the query control, a query instruction may be sent to the first node device, where the query instruction may carry a user identifier of the target user, and after the first node device receives the query instruction, the client device may obtain, based on the user identifier, at least one second delivery record carrying the user identifier from the blockchain, read a record generation time in the second delivery record, obtain a second delivery record with a record generation time closest to a current time, send a garbage collection result in the second delivery record to the client device, and may display the garbage collection result in the target area of the information query page.
Of course, the first node device may also push the garbage collection result to the target user according to the target period. Specifically, the first node device may obtain a second delivery record from the blockchain according to a target period based on the user identifier of the target user, and send the garbage collection result in the second delivery record to the target user, where the target period may be set by a developer.
In the embodiment of the application, the first node device may further obtain a total point of garbage collection of the target user. Specifically, the first node device may obtain, from the blockchain, at least one second delivery record carrying the user identifier based on the user identifier of the user, and generate, based on a garbage collection result in the at least one second delivery record, a total garbage collection score of the user on the blockchain. In one possible implementation manner, the first node device may further obtain a total point of garbage collection of at least one user, and rank the total point of garbage collection of the at least one user to obtain the current rank of the target user. When the first node device receives the query instruction of the target user, the garbage collection result, the total garbage collection points and the current ranking of the target user can be sent to the client of the target user.
According to the technical scheme provided by the embodiment of the application, the user identification of the target user is obtained through the garbage throwing instruction based on the target user, the throwing type of the garbage bag is obtained, the first throwing record of the garbage bag is generated on the blockchain of the blockchain system based on the throwing type and the user identification of the target user, the garbage recycling result generated by the target garbage treatment mechanism is obtained, the garbage recycling result is generated based on the first throwing record and the belonging type of each article in the garbage bag, the garbage recycling result is sent to the target user, and in the garbage recycling process, the garbage recycling result can be accurately fed back to the target user throwing garbage, so that the target user can learn the garbage classification throwing condition, the garbage classification quality is gradually improved, and the garbage recycling effect is ensured.
In the garbage collection process, a garbage collection system may be formed based on entities such as an intelligent garbage can, an environmental protection supervisory mechanism, a garbage disposal plant, and the like, referring to fig. 7, fig. 7 is a schematic diagram of a garbage collection system provided in an embodiment of the present application, where the garbage collection system may include a client portion, a blockchain node portion, and a blockchain, where the blockchain may include a plurality of blocks, the client portion may include a user client and an intelligent garbage can, the blockchain node portion may include an environmental protection supervisory mechanism, a garbage disposal mechanism, a social supervisory mechanism, and the like, and each mechanism in the garbage collection system may perform data interaction to maintain each link in the garbage collection process to be able to normally operate. Referring to fig. 8, fig. 8 is a schematic diagram of data interaction of a garbage recycling system according to an embodiment of the present application, first, when a user puts garbage, an intelligent garbage can perform face recognition on the user, perform user identity authentication, regenerate a first put record, send the first put record to the user for confirmation, then send the first put record to a garbage recognition system of a garbage disposal mechanism for garbage recognition, send a recognition result to a garbage classification scoring system for calculating an integral, and finally return the integral to the user. Through the data interaction of each mechanism in the garbage collection system, garbage tracing based on the blockchain can be realized, and users with high points can be given a certain reward based on the points of each user, so that a relatively fair excitation environment is created, and the environmental awareness of the users is improved.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein.
Fig. 9 is a schematic structural diagram of a garbage recycling device based on a blockchain according to an embodiment of the present application, referring to fig. 9, the device includes:
the identifier obtaining module 901 is configured to obtain a user identifier of a target user based on a garbage throwing instruction of the target user;
the first record generating module 902 is configured to obtain a delivery category of a garbage bag, and generate a first delivery record of the garbage bag on a blockchain of the blockchain system based on the delivery category and a user identifier of the target user;
the result obtaining module 903 is configured to obtain a garbage recycling result generated by the target garbage disposal mechanism, where the garbage recycling result is generated based on the first delivery record and a category to which each article in the garbage bag belongs;
and the sending module 904 is configured to send the garbage collection result to the target user.
In one possible implementation, the first record generation module 902 is configured to:
generating a first delivery record based on the delivery category and the user identification of the target user;
transmitting the first delivery record to the target user;
And storing the first delivery record carrying the private key signature of the target user on the blockchain based on a confirmation instruction of the target user on the first delivery record.
In one possible implementation manner, the object image of each object in the garbage can is identified by the garbage identification system of the target garbage disposal mechanism, and the object image is obtained based on the image identification result.
In one possible implementation, the apparatus further includes:
the second record generation module is used for acquiring the object images of all objects in the garbage bag, the garbage collection result, the user identification of the target user and the mechanism identification of the target garbage disposal mechanism to generate a second put record;
and the storage module is used for storing the second release record carrying the private key signature of the target processing mechanism onto the blockchain based on a confirmation instruction of the target garbage processing mechanism on the second release record.
In one possible implementation, the apparatus further includes:
the record acquisition module is used for acquiring at least one second delivery record carrying the user identifier from the blockchain based on the user identifier of the user;
And the integral generation module is used for generating a total integral of garbage collection of the user on the blockchain based on the garbage collection result in the at least one second put record.
In one possible implementation, the apparatus further includes:
and the sorting module is used for acquiring the total garbage collection integral of at least one user and sorting the total garbage collection integral of the at least one user.
In one possible implementation, the apparatus further includes:
and the identification generation module is used for generating the user identification of the target user on the blockchain of the blockchain system based on the registration behavior of the target user.
In one possible implementation, the identifier obtaining module 901 is configured to:
when a garbage throwing instruction of the target user is received, acquiring a user image of the target user;
and identifying the user image, and determining the user identification of the target user based on the identification result.
According to the device provided by the embodiment of the application, the user identification of the target user is obtained through the garbage throwing instruction based on the target user, the throwing type of the garbage bag is obtained, the first throwing record of the garbage bag is generated on the blockchain of the blockchain system based on the throwing type and the user identification of the target user, the garbage recycling result generated by the target garbage treatment mechanism is obtained, the garbage recycling result is generated based on the first throwing record and the belonging type of each article in the garbage bag, and the garbage recycling result is sent to the target user.
It should be noted that: in the garbage collection device based on blockchain provided in the above embodiment, when garbage is collected, only the division of the above functional modules is used for illustration, in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the garbage collection device based on the blockchain provided in the above embodiment and the garbage collection method embodiment based on the blockchain belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment and will not be described herein.
Fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal 1000 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. Terminal 1000 can also be referred to by other names of user equipment, portable terminal, laptop terminal, desktop terminal, etc.
In general, terminal 1000 can include: one or more processors 1001 and one or more memories 1002.
The processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 1001 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 1001 may also include a main processor, which is a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1001 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 1001 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
Memory 1002 may include one or more computer-readable storage media, which may be non-transitory. Memory 1002 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1002 is used to store at least one instruction for execution by processor 1001 to implement the blockchain-based garbage collection method provided by the method embodiment of the present application.
In some embodiments, terminal 1000 can optionally further include: a peripheral interface 1003, and at least one peripheral. The processor 1001, the memory 1002, and the peripheral interface 1003 may be connected by a bus or signal line. The various peripheral devices may be connected to the peripheral device interface 1003 via a bus, signal wire, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1004, a display 1005, a camera assembly 1006, audio circuitry 1007, a positioning assembly 1008, and a power supply 1009.
Peripheral interface 1003 may be used to connect I/O (Input/Output) related at least one peripheral to processor 1001 and memory 1002. In some embodiments, processor 1001, memory 1002, and peripheral interface 1003 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 1001, memory 1002, and peripheral interface 1003 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
Radio Frequency circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. Radio frequency circuitry 1004 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 1004 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. Radio frequency circuitry 1004 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuitry 1004 may also include NFC (Near Field Communication ) related circuitry, which is not limiting of the application.
The display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 1005 is a touch screen, the display 1005 also has the ability to capture touch signals at or above the surface of the display 1005. The touch signal may be input to the processor 1001 as a control signal for processing. At this time, the display 1005 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, display 1005 may be one, providing a front panel of terminal 1000; in other embodiments, display 1005 may be provided in at least two, separately provided on different surfaces of terminal 1000 or in a folded configuration; in some embodiments, display 1005 may be a flexible display disposed on a curved surface or a folded surface of terminal 1000. Even more, the display 1005 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The display 1005 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 1006 is used to capture images or video. Optionally, camera assembly 1006 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, camera assembly 1006 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuit 1007 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and environments, converting the sound waves into electric signals, and inputting the electric signals to the processor 1001 for processing, or inputting the electric signals to the radio frequency circuit 1004 for voice communication. For purposes of stereo acquisition or noise reduction, the microphone may be multiple, each located at a different portion of terminal 1000. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 1001 or the radio frequency circuit 1004 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, audio circuit 1007 may also include a headphone jack.
The location component 1008 is used to locate the current geographic location of terminal 1000 to enable navigation or LBS (Location Based Service, location-based services).
Power supply 1009 is used to power the various components in terminal 1000. The power source 1009 may be alternating current, direct current, disposable battery or rechargeable battery. When the power source 1009 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1000 can further include one or more sensors 1010. The one or more sensors 1010 include, but are not limited to: acceleration sensor 1011, gyroscope sensor 1012, pressure sensor 1013, fingerprint sensor 1014, optical sensor 1015, and proximity sensor 1016.
The acceleration sensor 1011 can detect the magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 1000. For example, the acceleration sensor 1011 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 1001 may control the display screen 1005 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal acquired by the acceleration sensor 1011. The acceleration sensor 1011 may also be used for the acquisition of motion data of a game or a user.
The gyro sensor 1012 may detect the body direction and the rotation angle of the terminal 1000, and the gyro sensor 1012 may collect the 3D motion of the user to the terminal 1000 in cooperation with the acceleration sensor 1011. The processor 1001 may implement the following functions according to the data collected by the gyro sensor 1012: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
Pressure sensor 1013 may be disposed on a side frame of terminal 1000 and/or on an underlying layer of display 1005. When the pressure sensor 1013 is provided at a side frame of the terminal 1000, a grip signal of the terminal 1000 by a user can be detected, and the processor 1001 performs right-and-left hand recognition or quick operation according to the grip signal collected by the pressure sensor 1013. When the pressure sensor 1013 is provided at the lower layer of the display screen 1005, the processor 1001 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 1005. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The fingerprint sensor 1014 is used to collect a fingerprint of the user, and the processor 1001 identifies the identity of the user based on the fingerprint collected by the fingerprint sensor 1014, or the fingerprint sensor 1014 identifies the identity of the user based on the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 1001 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. Fingerprint sensor 1014 may be provided on the front, back or side of terminal 1000. When a physical key or vendor Logo is provided on terminal 1000, fingerprint sensor 1014 may be integrated with the physical key or vendor Logo.
The optical sensor 1015 is used to collect ambient light intensity. In one embodiment, the processor 1001 may control the display brightness of the display screen 1005 based on the ambient light intensity collected by the optical sensor 1015. Specifically, when the intensity of the ambient light is high, the display brightness of the display screen 1005 is turned up; when the ambient light intensity is low, the display brightness of the display screen 1005 is turned down. In another embodiment, the processor 1001 may dynamically adjust the shooting parameters of the camera module 1006 according to the ambient light intensity collected by the optical sensor 1015.
Proximity sensor 1016, also referred to as a distance sensor, is typically located on the front panel of terminal 1000. Proximity sensor 1016 is used to collect the distance between the user and the front of terminal 1000. In one embodiment, when proximity sensor 1016 detects a gradual decrease in the distance between the user and the front face of terminal 1000, processor 1001 controls display 1005 to switch from the bright screen state to the off screen state; when proximity sensor 1016 detects a gradual increase in the distance between the user and the front of terminal 1000, processor 1001 controls display 1005 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 10 is not limiting and that terminal 1000 can include more or fewer components than shown, or certain components can be combined, or a different arrangement of components can be employed.
Fig. 11 is a schematic structural diagram of a server according to an embodiment of the present application, where the server 1100 may have a relatively large difference due to configuration or performance, and may include one or more processors (central processing units, CPU) 1101 and one or more memories 1102, where the one or more memories 1102 store at least one program code, and the at least one program code is loaded and executed by the one or more processors 1101 to implement the methods provided in the foregoing method embodiments. Of course, the server 1100 may also have a wired or wireless network interface, a keyboard, an input/output interface, etc. for performing input/output, and the server 1100 may also include other components for implementing device functions, which are not described herein.
In an exemplary embodiment, a computer readable storage medium, such as a memory, comprising instructions executable by a processor to perform the blockchain-based garbage collection method of the above embodiments is also provided. For example, the computer readable storage medium may be Read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), compact disc Read-Only Memory (CD-ROM), magnetic tape, floppy disk, optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the above storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments of the application is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements that fall within the spirit and scope of the application.

Claims (12)

1. A blockchain-based garbage collection method, the method comprising:
a second node device in the block chain system acquires a user identifier of a target user based on a garbage throwing instruction of the target user, wherein the second node device is a node device corresponding to an intelligent dustbin, the intelligent dustbin comprises a plurality of throwing areas, and different throwing areas correspond to different garbage categories;
the intelligent dustbin detects the throwing position of the garbage bag, and when the throwing position is in any throwing area, the garbage category corresponding to the any throwing area is determined to be the throwing category of the garbage bag;
The second node equipment acquires the throwing type of the garbage bag, and generates a first throwing record of the garbage bag based on the throwing type and the user identification of the target user, wherein the first throwing record comprises the throwing type and the user identification of the target user;
the second node equipment sends the first delivery record to the target user;
a first node device in the blockchain system sends a first delivery record carrying a private key signature of a target user and a confirmation instruction to a second node device based on the confirmation instruction of the target user to the first delivery record, wherein the first node device is a node device corresponding to the target user;
the second node equipment stores the first put record carrying the private key signature of the target user on a blockchain, generates a label based on the first put record, and pastes the label on the garbage bag;
the target garbage disposal mechanism utilizes a garbage identification system included in the target garbage disposal mechanism to respectively carry out image identification on object images of all objects in the garbage bag, determines the category of each object in the garbage bag based on an image identification result, and sends the category of each object in the garbage bag to a garbage classification scoring system included in the target garbage disposal mechanism; after the target garbage disposal mechanism acquires the garbage bag, identifying a label on the garbage bag, acquiring a first delivery record carried by the label, and reading a delivery category in the first delivery record;
The target garbage disposal mechanism generates garbage recycling results based on the throwing type and the type of each article in the garbage bag by utilizing the garbage classification scoring system, wherein the garbage recycling results are used for indicating the matching degree of each article in the garbage bag and the throwing type;
a third node device in the blockchain system acquires a garbage recycling result generated by the target garbage disposal mechanism, an article image of each article in the garbage bag, a user identifier of the target user and a mechanism identifier of the target garbage disposal mechanism, and generates a second delivery record;
the third node device stores the second delivery record carrying the private key signature of the target garbage disposal mechanism on the blockchain based on a confirmation instruction of the target garbage disposal mechanism to the second delivery record, and the third node device is a server corresponding to the target garbage disposal mechanism;
and the first node equipment acquires the second put record from the blockchain based on the user identification of the target user, and sends the garbage collection result in the second put record to the target user.
2. The method of claim 1, wherein after storing the second impression record carrying the private key signature of the target garbage disposal onto the blockchain, the method further comprises:
the first node equipment acquires at least one second release record carrying the user identifier from the blockchain based on the user identifier of the target user;
the first node device generates a total point of garbage collection for the target user on the blockchain based on the garbage collection results in the at least one second impression record.
3. The method of claim 2, wherein after the generating the total points of garbage collection for the target user on the blockchain, the method further comprises:
and the first node equipment acquires the total garbage collection integral of at least one user and sorts the total garbage collection integral of the at least one user.
4. The method of claim 1, wherein the second node device in the blockchain system is further configured to, prior to obtaining the user identification of the target user based on the garbage placement instruction of the target user:
The first node device generates a user identification of the target user on a blockchain of the blockchain system based on a registration behavior of the target user.
5. The method of claim 1, wherein the second node device in the blockchain system obtains the user identification of the target user based on the garbage placement instruction of the target user, comprising:
the second node equipment acquires a user image of the target user when receiving a garbage throwing instruction of the target user;
and the second node equipment identifies the user image and determines the user identification of the target user based on an identification result.
6. A blockchain-based garbage collection device, the device comprising:
the system comprises an identification acquisition module, a target user identification module and a control module, wherein the identification acquisition module is used for acquiring a user identification of the target user based on a garbage throwing instruction of the target user in second node equipment in a blockchain system, the second node equipment is node equipment corresponding to an intelligent dustbin, the intelligent dustbin comprises a plurality of throwing areas, and different throwing areas correspond to different garbage categories;
a module for performing the steps of: detecting a throwing position of a garbage bag in the intelligent garbage can, and determining a garbage category corresponding to any throwing area as the throwing category of the garbage bag when the throwing position is in any throwing area;
The first record generation module is used for acquiring the delivery category of the garbage bag from the second node equipment, and generating a first delivery record of the garbage bag based on the delivery category and the user identification of the target user, wherein the first delivery record comprises the delivery category and the user identification of the target user; transmitting the first delivery record to the target user in the second node device; based on a confirmation instruction of the target user to the first delivery record, the first delivery record carrying a private key signature of the target user and the confirmation instruction are sent to the second node device in first node device in the blockchain system, wherein the first node device is node device corresponding to the target user; storing, in the second node device, the first delivery record carrying the private key signature of the target user onto a blockchain;
a module for performing the steps of: generating a label in the second node device based on the first delivery record, and attaching the label to the garbage bag;
a module for performing the steps of: in a target garbage disposal mechanism, respectively carrying out image recognition on object images of all objects in the garbage bag by utilizing a garbage recognition system included in the target garbage disposal mechanism, determining the category of each object in the garbage bag based on an image recognition result, and sending the category of each object in the garbage bag to a garbage classification scoring system included in the target garbage disposal mechanism;
A module for performing the steps of: after the target garbage disposal mechanism acquires the garbage bag, identifying a label on the garbage bag in the target garbage disposal mechanism, acquiring a first delivery record carried by the label, and reading a delivery category in the first delivery record;
a module for performing the steps of: generating a garbage recycling result in the target garbage disposal mechanism by utilizing the garbage classification scoring system based on the throwing type and the type of each article in the garbage bag, wherein the garbage recycling result is used for indicating the matching degree of each article in the garbage bag and the throwing type;
the second record generation module is used for acquiring a garbage recycling result generated by the target garbage disposal mechanism, an article image of each article in the garbage bag, a user identifier of the target user and a mechanism identifier of the target garbage disposal mechanism from third node equipment in the blockchain system to generate a second put record;
the storage module is used for storing the second delivery record carrying the private key signature of the target garbage disposal mechanism to the blockchain based on a confirmation instruction of the target garbage disposal mechanism to the second delivery record in the third node device, and the third node device is a server corresponding to the target garbage disposal mechanism;
The sending module is used for obtaining the second release record from the blockchain based on the user identification of the target user in the first node device, and sending the garbage collection result in the second release record to the target user.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the record acquisition module is used for acquiring at least one second release record carrying the user identifier from the blockchain based on the user identifier of the target user in the first node equipment;
and the integral generation module is used for generating a total integral of garbage collection of the target user on the blockchain based on the garbage collection result in the at least one second delivery record in the first node device.
8. The apparatus of claim 7, wherein the apparatus further comprises:
and the sorting module is used for acquiring the total garbage collection integral of at least one user in the first node equipment and sorting the total garbage collection integral of the at least one user.
9. The apparatus of claim 6, wherein the apparatus further comprises:
And the identification generation module is used for generating the user identification of the target user on a blockchain of the blockchain system based on the registration behavior of the target user in the first node device.
10. The apparatus of claim 6, wherein the identifier obtaining module is configured to obtain, when receiving, in the second node device, a garbage placement instruction of the target user, a user image of the target user; and identifying the user image in the second node equipment, and determining the user identification of the target user based on an identification result.
11. A computer device comprising one or more processors and one or more memories having stored therein at least one piece of program code that is loaded and executed by the one or more processors to implement the operations performed by the blockchain-based garbage collection method of any of claims 1-5.
12. A computer readable storage medium having stored therein at least one program code that is loaded and executed by a processor to implement operations performed by a blockchain-based garbage collection method of any of claims 1-5.
CN201910862699.5A 2019-09-12 2019-09-12 Garbage collection method, device, equipment and storage medium based on block chain Active CN110598879B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911301708.XA CN111079958A (en) 2019-09-12 2019-09-12 Garbage recycling method, system, equipment and storage medium
CN201910862699.5A CN110598879B (en) 2019-09-12 2019-09-12 Garbage collection method, device, equipment and storage medium based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910862699.5A CN110598879B (en) 2019-09-12 2019-09-12 Garbage collection method, device, equipment and storage medium based on block chain

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201911301708.XA Division CN111079958A (en) 2019-09-12 2019-09-12 Garbage recycling method, system, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110598879A CN110598879A (en) 2019-12-20
CN110598879B true CN110598879B (en) 2023-09-15

Family

ID=68859065

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201911301708.XA Pending CN111079958A (en) 2019-09-12 2019-09-12 Garbage recycling method, system, equipment and storage medium
CN201910862699.5A Active CN110598879B (en) 2019-09-12 2019-09-12 Garbage collection method, device, equipment and storage medium based on block chain

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201911301708.XA Pending CN111079958A (en) 2019-09-12 2019-09-12 Garbage recycling method, system, equipment and storage medium

Country Status (1)

Country Link
CN (2) CN111079958A (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111680645B (en) * 2020-06-11 2024-02-09 王艳琼 Garbage classification treatment method and device
CN112116750A (en) * 2020-08-21 2020-12-22 中冶集团武汉勘察研究院有限公司 Block chain-based credit reward and punishment method applied to field of garbage classification and recovery
CN113753427B (en) * 2020-09-14 2023-05-02 北京京东振世信息技术有限公司 Garbage classification method and device
CN112200328B (en) * 2020-10-15 2023-06-23 广东绿润环境科技有限公司 Garbage recycling method, device and system
CN113486363A (en) * 2020-10-16 2021-10-08 昆明理工大学 Industrial harmful garbage treatment process system and method based on block chain
CN112380582A (en) * 2020-12-22 2021-02-19 平安国际智慧城市科技股份有限公司 Garbage throwing recording method and device based on block chain and computer equipment
CN113408752A (en) * 2021-05-27 2021-09-17 复旦大学 Garbage recovery supervision system and method based on block chain
CN113344757A (en) * 2021-06-29 2021-09-03 重庆广播电视大学重庆工商职业学院 Data traceability verification method and system based on Internet of things and block chain

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003026336A (en) * 2001-07-12 2003-01-29 Mitsubishi Heavy Ind Ltd General waste sorting and collection system and its method
CN1687944A (en) * 2005-04-27 2005-10-26 合肥工业大学 Automatic controlling method for garbage classifying putting-in and induction type automatic putting-in system
JP2009104491A (en) * 2007-10-25 2009-05-14 Hitachi Software Eng Co Ltd Refuse separate collection support system
CN104044842A (en) * 2014-06-23 2014-09-17 陈斌 Garbage sorting platform and method based on two-dimensional code recognition technology
CN108839977A (en) * 2018-06-08 2018-11-20 湖南万容普联再生资源有限公司 A kind of system of Waste sorting recycle, method and device
CN109299793A (en) * 2018-08-21 2019-02-01 杭州复杂美科技有限公司 Garbage classification motivational techniques and device, equipment and storage medium
CN109703943A (en) * 2019-03-06 2019-05-03 北京鼎恒泰科技有限公司 Rubbish recovering method, client and garbage recycling bin
CN110021109A (en) * 2019-02-12 2019-07-16 广东沫益清环保科技有限公司 A kind of Intelligent refuse classification take-back model

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103466242B (en) * 2012-06-07 2015-10-28 深圳商联商用科技有限公司 A kind of method and system of refuse classification management
US11373148B2 (en) * 2015-12-18 2022-06-28 Telefonaktiebolaget Lm Ericsson (Publ) Trash collection systems and methods
KR102512727B1 (en) * 2017-12-22 2023-03-22 삼성전자주식회사 Storage device performing garbage collection, and garbage collection method of a storage device
CN107983755A (en) * 2017-12-28 2018-05-04 朱子昕 Refuse classification method and retrospective printing bar code system of the bar code for core

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003026336A (en) * 2001-07-12 2003-01-29 Mitsubishi Heavy Ind Ltd General waste sorting and collection system and its method
CN1687944A (en) * 2005-04-27 2005-10-26 合肥工业大学 Automatic controlling method for garbage classifying putting-in and induction type automatic putting-in system
JP2009104491A (en) * 2007-10-25 2009-05-14 Hitachi Software Eng Co Ltd Refuse separate collection support system
CN104044842A (en) * 2014-06-23 2014-09-17 陈斌 Garbage sorting platform and method based on two-dimensional code recognition technology
CN108839977A (en) * 2018-06-08 2018-11-20 湖南万容普联再生资源有限公司 A kind of system of Waste sorting recycle, method and device
CN109299793A (en) * 2018-08-21 2019-02-01 杭州复杂美科技有限公司 Garbage classification motivational techniques and device, equipment and storage medium
CN110021109A (en) * 2019-02-12 2019-07-16 广东沫益清环保科技有限公司 A kind of Intelligent refuse classification take-back model
CN109703943A (en) * 2019-03-06 2019-05-03 北京鼎恒泰科技有限公司 Rubbish recovering method, client and garbage recycling bin

Also Published As

Publication number Publication date
CN111079958A (en) 2020-04-28
CN110598879A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
CN110598879B (en) Garbage collection method, device, equipment and storage medium based on block chain
CN110209952B (en) Information recommendation method, device, equipment and storage medium
CN110689460B (en) Traffic accident data processing method, device, equipment and medium based on block chain
CN110401715B (en) Resource collection task management method, device, storage medium and system
CN111339086B (en) Block processing method, and data query method and device based on block chain
CN111080443B (en) Block chain-based service processing method, device, equipment and storage medium
CN110555780B (en) Insurance data processing method, device and equipment based on block chain and storage medium
CN111159153B (en) Service data verification method, device, computer equipment and storage medium
CN111104980B (en) Method, device, equipment and storage medium for determining classification result
CN111275122A (en) Label labeling method, device, equipment and readable storage medium
CN110598386B (en) Block chain-based data processing method, device, equipment and storage medium
CN110581891A (en) Game data processing method, device, equipment and storage medium based on block chain
CN110543502A (en) Credit data processing method, device and equipment based on block chain and storage medium
CN110597906B (en) Entrance integral generation method, device and equipment based on blockchain and storage medium
CN111241115A (en) Data synchronization method, device, equipment and storage medium
CN111339181A (en) Block storage method, block storage device, node equipment and storage medium
CN111212074B (en) Blockchain-based qualification identification method, device, equipment and storage medium
CN110599328B (en) Block chain based risk user determination method, device, equipment and storage medium
CN112231768B (en) Data processing method and device, computer equipment and storage medium
CN111901283A (en) Resource transfer method, device, terminal and storage medium
CN110659975B (en) Resource transfer method, device, equipment and storage medium based on block chain
CN111694892B (en) Resource transfer method, device, terminal, server and storage medium
CN110597840B (en) Partner relationship establishment method, device, equipment and storage medium based on blockchain
CN110597868B (en) Information query method, device, terminal and storage medium based on block chain
CN110532324B (en) Block chain-based bulletin information display method, device, equipment and storage medium

Legal Events

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