Garbage collection method, system, device and storage medium
By using blockchain technology to obtain user identifiers and waste bag categories during the waste recycling process, and then performing image recognition and record generation, the problem of chaotic waste sorting has been solved, and the accuracy of waste recycling and users' environmental awareness have been improved.
Patent Information
- Application Number
- CN201911301708.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-12
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2039-09-12
AI Technical Summary
In the waste recycling process, users' waste sorting quality is not high, resulting in confusion and making it difficult to trace the source to the specific user and provide feedback on errors, thus affecting the waste recycling effect.
By using blockchain technology, the system uses waste bin node devices to obtain user identifiers and waste bag disposal categories, generates disposal records, and waste disposal agencies perform image recognition to determine the item categories, generate and report waste recycling results.
It enables accurate feedback of waste recycling results to users, improves the quality of waste sorting, and ensures the effectiveness of waste recycling.
Smart Images

Figure CN111079958B_ABST
Abstract
Description
[0001] This application is a divisional application of application number 201910862699.5, filed on September 12, 2019, entitled "Blockchain-based garbage recycling method, apparatus, equipment and storage medium". Technical Field
[0002] This application relates to the field of blockchain technology, and in particular to a waste recycling method, system, device and storage medium. Background Technology
[0003] In recent years, waste management has become a hot topic in society. A crucial aspect of waste management is waste recycling; proper sorting and recycling can reduce resource waste and environmental pollution. Currently, the recycling process requires users to sort and package their waste, placing different types of waste into designated areas.
[0004] However, due to the low quality of some users' garbage sorting, garbage sorting will be chaotic. In this case, it is difficult to trace the garbage bag and find the user who put it in the garbage bag. It is also impossible to give feedback to the user on the garbage sorting error, which makes it difficult to improve the quality of garbage sorting and thus affects the garbage recycling effect. Summary of the Invention
[0005] This application provides a waste recycling method, system, device, and storage medium that can trace the waste back to the user who disposed of the waste bag and provide feedback on the waste disposal result to the user. The technical solution is as follows:
[0006] On the one hand, a waste recycling method is provided, which includes:
[0007] The node device corresponding to the trash can obtains the user's identifier based on the target user's trash disposal instruction;
[0008] The node device corresponding to the trash can obtains the disposal category of the trash bag, and generates the first disposal record of the trash bag based on the disposal category and the user identifier of the target user;
[0009] The node equipment corresponding to the target waste disposal facility performs image recognition on each item in the waste bag to determine the category of each item;
[0010] The node equipment corresponding to the target waste disposal facility generates waste recycling results based on the first disposal record and the category of each item in the waste bag;
[0011] The node equipment corresponding to the target waste treatment facility will feed back the waste recycling results to the target user.
[0012] On the one hand, a waste recycling system is provided, which includes node equipment corresponding to waste bins and node equipment corresponding to target waste treatment facilities;
[0013] The node device corresponding to the trash can is used to obtain the user identifier of the target user based on the trash disposal instruction of the target user; obtain the disposal category of the trash bag; and generate the first disposal record of the trash bag based on the disposal category and the user identifier of the target user.
[0014] The node equipment corresponding to the target waste disposal facility is used to perform image recognition on each item in the waste bag to determine the category of each item; based on the first disposal record and the category of each item in the waste bag, a waste recycling result is generated; and the waste recycling result is fed back to the target user.
[0015] In one possible implementation, the user node device is used for:
[0016] Based on the registration behavior of the target user, a user identifier for the target user is generated on the blockchain of the blockchain system.
[0017] In one possible implementation, the node device corresponding to the trash can is used for:
[0018] In response to the target user's garbage disposal instruction, obtain the target user's user image;
[0019] The user's image is identified, and the user identifier of the target user is determined based on the identification results.
[0020] In one possible implementation, the waste recycling result is expressed as a score, which indicates the degree to which each item in the waste bag matches the disposal category.
[0021] The technical solution provided in this application embodiment involves a node device corresponding to a trash can obtaining the user's identifier and the trash bag's disposal category based on the target user's trash disposal instruction. Based on the disposal category and the target user's identifier, a first disposal record for the trash bag is generated. The node device corresponding to the target waste disposal facility then performs image recognition on each item in the trash bag to determine its category. Based on the first disposal record and the categories of each item in the trash bag, a waste recycling result is generated and fed back to the target user. In this waste recycling process, the waste recycling result can be accurately fed back to the target user who disposed of the trash, allowing the target user to know the status of their waste sorting and disposal, thereby gradually improving the quality of waste sorting and ensuring the effectiveness of waste recycling. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is a schematic diagram illustrating the implementation environment of a blockchain-based garbage collection method provided in this application embodiment;
[0024] Figure 2 This is a flowchart illustrating a blockchain-based garbage collection method provided in an embodiment of this application;
[0025] Figure 3 This is a schematic diagram of a blockchain structure provided in an embodiment of this application;
[0026] Figure 4 This is a schematic diagram of a user data structure on a blockchain provided in an embodiment of this application;
[0027] Figure 5 This is a schematic diagram of an institutional data structure on a blockchain provided in an embodiment of this application;
[0028] Figure 6 This is a schematic diagram of a data structure for recording data delivery on a blockchain, provided in an embodiment of this application.
[0029] Figure 7 This is a schematic diagram of a waste recycling system provided in an embodiment of this application;
[0030] Figure 8 This is a data interaction diagram of a waste recycling system provided in an embodiment of this application;
[0031] Figure 9 This is a schematic diagram of the structure of a blockchain-based waste recycling device provided in an embodiment of this application;
[0032] Figure 10 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application;
[0033] Figure 11 This is a schematic diagram of the structure of a server provided in an embodiment of this application. Detailed Implementation
[0034] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0035] Figure 1 This is a schematic diagram illustrating the implementation environment of a blockchain-based garbage collection method provided in this application embodiment. See also... Figure 1 The implementation environment may include multiple computer devices, which can be multiple node devices in a blockchain system. Any node device in the blockchain system can execute one or more steps in the blockchain-based waste recycling method provided in this application embodiment. These multiple computer devices can belong to the same organization or to different organizations. For example, all the computer devices may belong to a waste management organization, with each department of the organization corresponding to at least one of the computer devices; or at least one of the computer devices may be a user device belonging to a waste management organization, and at least one computer device may belong to an environmental regulatory agency. Of course, at least one computer device may also belong to other organizations, such as other social regulatory agencies.
[0036] The aforementioned computer devices can be servers or terminals, and this application does not specifically limit them in this way.
[0037] To facilitate understanding of the technical processes involved in the embodiments of this application, some terms used in the embodiments of this application are explained below:
[0038] Blockchain is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and cryptographic algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked together using cryptographic methods. Each block contains information about a network transaction, used to verify the validity of the information (anti-counterfeiting) and generate the next block. Each block contains a timestamp and a link to the previous block. In a narrower sense, blockchain is a chain-like data structure that combines data blocks sequentially according to time, and is a distributed ledger that is cryptographically guaranteed to be immutable and unforgeable; that is, data in a blockchain is irreversible once recorded.
[0039] A consensus mechanism is a mathematical algorithm used in blockchain systems to establish trust and assign rights among different nodes. In a blockchain system, transactions can be verified and confirmed in a very short time through voting by specific nodes. If several nodes with unrelated interests can reach a consensus on a transaction, it can be assumed that all nodes in the system can also reach a consensus on it.
[0040] A smart contract is a computer protocol designed to disseminate, verify, or execute contracts in an informational manner. In a blockchain system, each node automatically executes a contract program based on specific conditions. This program can manipulate data stored on the chain and serves as a crucial means for users to interact with the blockchain and leverage it to implement business logic. The purpose of smart contracts is to provide a more secure method than traditional contracts and reduce other transaction costs associated with contracts. They allow for trusted transactions without a third party, and these transactions are traceable and irreversible.
[0041] Public key and private key: These are key pairs (a public key and a private key) obtained through an algorithm. The public key is the publicly known part of the key pair, while the private key is the private key. Public keys are commonly used for encrypting data, verifying digital signatures, etc. This algorithm ensures that the resulting key pair is unique. When using this key pair, if data is encrypted with one key, it must be decrypted with the other key. For example, data encrypted with the public key must be decrypted with the private key, and vice versa; otherwise, decryption will fail.
[0042] Figure 2 This is a flowchart illustrating a blockchain-based garbage collection method provided in an embodiment of this application. This blockchain-based garbage collection method can be applied to any node device in the blockchain system. (See also...) Figure 2 This embodiment may specifically include the following steps:
[0043] 201. Based on the registration behavior of the target user, the first node device generates the user identifier of the target user on the blockchain of the blockchain system.
[0044] The first node device can be a client device used by the target user or a server corresponding to the client device. The target application can be installed and run on the client device used by the target user, and the target application can provide real-name registration function.
[0045] Taking the first node device as the server corresponding to the client device as an example, in this embodiment, the client device can display the registration page of the target application. The registration page can include an information input area and a first confirmation control. When the client device detects that the target user has triggered an operation on the first confirmation control, it can obtain the input information in the information input area and send the input information and registration request to the first node device. The first node device can generate a user identifier for the target user and the public and private keys corresponding to the user identifier based on the registration request and the input information. The user identifier can be used to uniquely identify a user. The first node device can store the user identifier and the public key of the target user on the blockchain of the blockchain system. The private key can be stored by the target user. The triggering operation can be a click operation, a long press operation, etc., and this embodiment does not specifically limit it.
[0046] In one possible implementation, the first node device can store the target user's user identifier and public key on the blockchain based on a consensus mechanism. Specifically, each node in the blockchain system has a corresponding node identifier, and each node device in the blockchain system can store the node identifiers of other node devices in the blockchain system. This allows the generated block to be broadcast to other node devices in the blockchain system based on the node identifiers of other node devices, enabling other node devices to reach a consensus on the block. Each node device can maintain a node identifier list as shown in the table below, storing the node name and node identifier in this list. The node identifier can be an IP (Internet Protocol) address or any other information that can be used to identify the node. Table 1 only uses IP addresses as an example.
[0047] Table 1
[0048] Node Name Node identifier Node 1 117.114.151.174 Node 2 117.116.189.145 … … Node N 119.123.789.258
[0049] Each node in a blockchain system can store an identical copy of the blockchain. A blockchain consists of multiple blocks. Figure 3 This is a schematic diagram of a blockchain structure provided in an embodiment of this application. See also... Figure 3The blockchain consists of multiple blocks. The genesis block 301 includes a block header and a block body. The block header stores the input information feature value, version number, timestamp, and difficulty value, while the block body stores the input information. The next block 302 is the parent block of the genesis block 301. The next block 302 also includes a block header and a block body. The block header stores the input information feature value of the current block 303, the block header feature value of the parent block, the version number, the timestamp, and the difficulty value, and so on. This ensures that the block data stored in each block of the blockchain is related to the block data stored in the parent block, guaranteeing the security of the input information in the blocks.
[0050] When generating blocks in the blockchain, the node device where the blockchain resides verifies the input information upon receiving it. In this embodiment, the input information can be the user identifier and public key of the target user. After verifying the input information, the node device stores it in a memory pool and updates its hash tree used to record the input information. Then, it updates the timestamp to the time the input information was received and tries different random numbers to calculate the feature value multiple times, so that the calculated feature value satisfies the following formula:
[0051] SHA256(SHA256(version+prev_merkle_rool+ntime+nbits+x)) <TARGET
[0052] Wherein, SHA256 is the feature value algorithm used to calculate the feature value; version (version number) is the version information of the relevant block protocol in the blockchain; prev_hash is the block header feature value of the parent block of the current block; merkle_root is the feature value of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, which is a fixed value for a period of time and is determined again after exceeding the fixed time period; x is a random number; TARGET is the feature value threshold, which can be determined based on nbits.
[0053] Thus, when a random number satisfying the above formula is calculated, the information can be stored accordingly, generating a block header and block body, resulting in the current block. Subsequently, the node hosting the blockchain sends the newly generated current block to other nodes in its blockchain system based on the node identifiers of other nodes. These other nodes then reach a consensus on the newly generated current block. Once consensus is reached, the current block can be added to the blockchain. Conversely, if the current block fails to reach consensus, the block addition process can be skipped. See also... Figure 4 , Figure 4This is a schematic diagram of a user data structure on a blockchain provided in an embodiment of this application. The user identifier and public key of the target user can be stored in the manner shown in area 401.
[0054] It should be noted that the above description of storing the target user's user identifier and public key in the blockchain is only an exemplary description of a storage method, and the embodiments of this application do not limit which storage method is specifically adopted.
[0055] 202. The second node device obtains the user identifier of the target user based on the target user's waste disposal instruction.
[0056] The second node device can be the node device corresponding to the smart trash can. The smart trash can can receive trash disposal instructions, identify the target user who triggered the instructions, and then execute subsequent trash recycling steps based on the instructions.
[0057] In this embodiment of the application, the process by which the second node device obtains the user identifier may include any of the following implementation methods:
[0058] In the first implementation, the second node device acquires a user image of the target user and determines the user's identifier based on image recognition technology. In one possible implementation, this process may specifically include the following steps:
[0059] Step 1: When the second node device receives the garbage disposal instruction from the target user, it can acquire the user image of the target user.
[0060] In this embodiment of the application, the triggering method of the garbage disposal instruction may include any of the following possible implementation methods:
[0061] (1) The waste disposal instruction can be triggered by clicking on a target control on the smart trash can. In one possible implementation, the smart trash can may be equipped with a target control that can provide the function of initiating the waste disposal process. Of course, the smart trash can may also have an image acquisition function. The target user can trigger the waste disposal instruction by clicking on the target control, causing the target trash can to perform subsequent image acquisition steps.
[0062] (2) The waste disposal instruction can be triggered by opening the lid of the smart trash can. The smart trash can can detect the target user's operation, and when the target user's opening operation is detected, the waste disposal instruction can be triggered.
[0063] After receiving the waste disposal instruction, the smart trash can can capture a user image of the target user, which may be a facial image of the target user. The smart trash can then send this user image to the second node device.
[0064] Step 2: The second node device identifies the user's image and determines the user identifier of the target user based on the identification result.
[0065] In one possible implementation, the second node device can apply facial recognition technology to identify the user image and determine the user identifier of the target user. Specifically, firstly, the second node device can perform face detection on the user image based on the structural distribution features of the face to determine whether the target user's face exists in the user image. If a face exists, it further provides key information about the face, such as the position, size, and position information of each major facial feature. Then, the second node device can calculate multiple geometric feature quantities based on the facial feature information in the key information of the face, and construct feature data that can describe the facial features of the target user based on these multiple geometric feature quantities. Finally, the feature data is searched and matched with feature templates stored in the database to obtain the feature template with the highest similarity to the feature data, and the user identifier corresponding to the feature template is output as the user identifier of the target user. It should be noted that the above description of the facial recognition method is only an exemplary description of one facial recognition method, and the embodiments of this application do not limit which facial recognition method is used.
[0066] In the second implementation method, the second node device obtains the user identifier input by the target user.
[0067] In one possible implementation, the smart trash can may be equipped with an information input area, which allows users to input their user identifier. The smart trash can can detect the information input operation of a target user in this information input area, and when the information input operation ends, it acquires the input information of the target user as the target user's user identifier.
[0068] In the above process, by obtaining the user identifier of the waste disposal user, the waste disposal situation of each user can be accurately recorded, which facilitates waste traceability in the subsequent waste 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 can also obtain the user identifier of the target user based on biometric identification technologies such as fingerprint recognition and iris recognition, or it can obtain the user identifier of the target user by scanning a QR code. This application embodiment does not limit which user identifier acquisition method is used.
[0069] 203. The second node device obtains the disposal category of the garbage bag, and generates the first disposal record of the garbage bag based on the disposal category and the user identifier of the target user.
[0070] In one possible implementation, the smart trash can may include multiple disposal areas, with different disposal areas corresponding to different types of waste. The smart trash can can detect the disposal location of the trash bag, and when the disposal location is within any disposal area, the waste category corresponding to that disposal area is the disposal category of the trash bag.
[0071] In one possible implementation, different smart trash cans can correspond to different waste categories. When the target user puts a trash bag into any smart trash can, the waste category corresponding to that smart trash can is the category of the trash bag.
[0072] In this embodiment, the second node device corresponding to the smart trash can obtains the disposal category of the trash bag. After confirming that the trash bag has been disposed of, it can generate a first disposal record based on the disposal category and the user identifier of the target user. The first disposal record may include the disposal category of the trash bag and the user identifier of the target user. Of course, it may also include information such as the weight of the trash bag and the disposal time. This embodiment does not specifically limit this information.
[0073] 204. The second node device stores the first delivery record on the blockchain of the blockchain system.
[0074] In this embodiment of the application, the target user can confirm the information in the first delivery record, and the second node device can store the confirmed first delivery record on the blockchain. This process may include the following steps:
[0075] Step 1: The second node device sends the first delivery record to the target user.
[0076] In one possible implementation, the second node device can generate a QR code, send the QR code to the target user based on the target user's user identifier, and the target user can scan the QR code through the target application to view the first delivery record on the target page of the target application.
[0077] Step 2: The second node device can store the first delivery record, which carries the private key signature of the target user, on the blockchain based on the target user's confirmation instruction for the first delivery record.
[0078] In one possible implementation, the target page may include a second confirmation control, which can be used to provide form confirmation functionality. The target user can trigger a confirmation instruction through the second confirmation control. The first node device can add the target user's private key signature to the first delivery record based on the confirmation instruction, and send the confirmation instruction and the first delivery record carrying the private key signature to the second node device. The second node device can then perform an on-chain operation on the first delivery record.
[0079] In one possible implementation, the second node device can complete the on-chain step of the first delivery record based on a smart contract. Specifically, when the second node device initiates a data on-chain request, it can trigger a smart contract, enabling other node devices in the blockchain system to obtain the target user's public key from the blockchain based on the target user's user identifier in the first delivery record. The target user's public key is then used to verify the private key signature in the first delivery record. If the verification is successful, the step of storing the first delivery record on the blockchain is executed; if the verification fails, the storage step is not executed. The above-described step of storing the first delivery record on the blockchain is similar to the process of storing the target user's user identifier and public key on the blockchain in step 201, and will not be elaborated further here.
[0080] After the second node device confirms that the first disposal record is correct, it can associate the first disposal record with the waste bag. In one possible implementation, a tag can be generated based on the first disposal record and affixed to the waste bag. Any node device can obtain the first disposal record of the waste bag by recognizing the tag. It should be noted that the above description of the association method between the first disposal record and the waste bag is only an exemplary description of one association method, and the embodiments of this application do not limit which association method is specifically adopted.
[0081] It should be noted that steps 203 and 204 above are steps to obtain the disposal category of the garbage packet, and based on the disposal category and the user identifier of the target user, to generate the first disposal record of the garbage packet on the blockchain of the blockchain system.
[0082] In the above process, facial recognition is used to determine the identity information of the target user, and the target user manually confirms the information to ensure the accuracy of the first disposal record. This allows the target user to be associated with the disposed waste bag, thereby enabling waste traceability.
[0083] 205. The third node device obtains the category of each item in the garbage bag.
[0084] The third node device can be a server corresponding to the target waste disposal facility. In one possible implementation, the waste disposal facility can include a waste identification system and a waste classification scoring system. The waste identification system can have image acquisition capabilities to identify the category of each item in the waste bag, and the waste classification scoring system can score based on the category of each item in the waste bag.
[0085] In this embodiment, a waste disposal facility can correspond to an institutional identifier. The facility can complete its real-name registration through services provided by an environmental regulatory agency. The node device corresponding to the environmental regulatory agency can generate the institutional identifier of the target waste disposal facility, as well as its public and private keys. The institutional identifier and public key of the target waste disposal facility can be stored on a blockchain, while the private key can be stored by the target waste disposal facility itself. See [link to relevant documentation]. Figure 5 , Figure 5 This is a schematic diagram of an institutional data structure on a blockchain provided in an embodiment of this application. The institutional identifier and public key of the target waste disposal institution can be stored in the manner shown in area 501.
[0086] In one possible implementation, the category of each item in the waste bag is determined by the waste identification system of the target waste disposal facility through image recognition of the images of each item within the waste bag, and the category is determined based on the image recognition results. Specifically, the waste identification system of the target waste disposal facility can unpack the waste bag, collect images of each item within the waste bag, perform image recognition on each item image, determine the item indicated by each item image, and thus determine the category of each item. It should be noted that the above description of the method for obtaining the category of each item is only an exemplary description of one category acquisition method, and this application embodiment does not limit the specific association method used.
[0087] 206. The third node device obtains the waste recycling results generated by the target waste disposal facility. The waste recycling results are generated based on the first disposal record and the category of each item in the waste bag.
[0088] In this embodiment, after obtaining the waste bag, the target waste disposal agency can identify the label on the waste bag, obtain the first disposal record carried by the label, and read the disposal category in the first disposal record. The target waste disposal agency can generate a waste recycling result based on the disposal category and the category to which each item in the waste bag belongs. In one possible implementation, the waste recycling result can be expressed as a score, which can be used to indicate the matching degree between each item in the waste bag and the disposal category. The waste disposal agency's waste sorting scoring system can calculate the matching degree based on scoring rules, and then calculate the score based on the matching degree. For example, when an item belongs to the same category as the disposal category, the matching degree can increase the target value; when an item belongs to a different category, the matching degree can decrease the target value. The higher the matching degree between each item in the waste bag and the disposal category, the higher the score. The scoring rules and the target value can both be set by the developers, and this embodiment does not impose specific limitations.
[0089] In this embodiment, the third node device can acquire images of each item within the waste bag, the waste recycling result, the user identifier of the target user, and the organization identifier of the target waste disposal organization, generating a second disposal record. This second disposal record may also include information such as the time of record generation. Based on the target waste disposal organization's confirmation instruction for the second disposal record, the third node device can store the second disposal record, signed with the target disposal organization's private key, on the blockchain. The process of storing the second disposal record on the blockchain is similar to the process of storing the target user's user identifier and public key on the blockchain in step 201, and will not be elaborated upon here. See also... Figure 6 , Figure 6 This is a schematic diagram of a blockchain delivery record data structure provided in an embodiment of this application. The first delivery record can be stored in the manner shown in area 601, and the second delivery record can be stored in the manner shown in area 602.
[0090] 207. The first node device sends the waste recycling result to the target user.
[0091] In one possible implementation, the client device used by the target user can display an information query page, which may include an information display area and a query control. When the client device detects that the target user has triggered an operation on the query control, it can send a query command to the first node device. The query command may carry the user identifier of the target user. After receiving the query command, the first node device can retrieve at least one second delivery record carrying the user identifier from the blockchain based on the user identifier, read the record generation time in the second delivery record, obtain the second delivery record whose record generation time is closest to the current time, and send the garbage collection result in the second delivery record to the client device. The client device can display the garbage collection result in the target area of the information query page.
[0092] Of course, the first node device can also push the garbage collection result to the target user according to the target period. Specifically, the first node device can obtain a second delivery record from the blockchain according to the target user's user identifier and send the garbage collection result in the second delivery record to the target user. The target period can be set by the developers.
[0093] In this embodiment, the first node device can also obtain the target user's total garbage collection points. Specifically, the first node device can obtain at least one second delivery record carrying the user's identifier from the blockchain, and generate the user's total garbage collection points on the blockchain based on the garbage collection results in the at least one second delivery record. In one possible implementation, the first node device can also obtain the total garbage collection points of at least one user, sort the total garbage collection points of the at least one user, and obtain the target user's current ranking. When the first node device receives a query instruction from the target user, it can send the target user's garbage collection results, total garbage collection points, and current ranking to the target user's client.
[0094] The technical solution provided in this application embodiment obtains the user identifier of the target user and the disposal category of the garbage bag based on the garbage disposal instruction of the target user. Based on the disposal category and the user identifier of the target user, a first disposal record of the garbage bag is generated on the blockchain of the blockchain system. The garbage recycling result generated by the target garbage disposal agency is obtained. The garbage recycling result is generated based on the first disposal record and the category of each item in the garbage bag. The garbage recycling result is sent to the target user. In the above garbage recycling process, the garbage recycling result can be accurately fed back to the target user who disposed of the garbage, so that the target user can know the status of this garbage sorting and disposal, thereby gradually improving the quality of garbage sorting and ensuring the effectiveness of garbage recycling.
[0095] In the aforementioned waste recycling process, a waste recycling system can be formed based on entities such as smart trash cans, environmental regulatory agencies, and waste treatment plants. (See [link to relevant documentation]). Figure 7 , Figure 7 This is a schematic diagram of a waste recycling system provided in an embodiment of this application. The waste recycling system may include a client component, a blockchain node component, and a blockchain. The blockchain may include multiple blocks. The client component may include a user client and smart trash cans. The blockchain node component may include environmental regulatory agencies, waste disposal agencies, and social regulatory agencies, etc. The various agencies in this waste recycling system can interact with each other to maintain the normal operation of each stage of the waste recycling process. See also... Figure 8 , Figure 8 This is a data interaction diagram of a waste recycling system provided in this application embodiment. First, when a user disposes of waste, the smart trash can performs facial recognition to authenticate the user's identity, generates a first disposal record, and sends this record to the user for confirmation. Then, the first disposal record is sent to the waste identification system of the waste disposal agency for waste identification. The identification result is sent to the waste sorting and scoring system to calculate points. Finally, the points are returned to the user. Through the data interaction between various agencies in this waste recycling system, blockchain-based waste traceability can be achieved. Furthermore, users with high scores can be rewarded based on their points, creating a fairer incentive environment and thereby improving users' environmental awareness.
[0096] All of the above-mentioned optional technical solutions can be combined in any way to form the optional embodiments of this application, and will not be described in detail here.
[0097] Figure 9 This is a schematic diagram of a blockchain-based waste recycling device provided in an embodiment of this application. See also... Figure 9 The device includes:
[0098] The identifier acquisition module 901 is used to acquire the user identifier of the target user based on the garbage disposal instruction of the target user;
[0099] The first record generation module 902 is used to obtain the disposal category of the garbage bag, and based on the disposal category and the user identifier of the target user, generate the first disposal record of the garbage bag on the blockchain of the blockchain system;
[0100] The result acquisition module 903 is used to acquire the waste recycling results generated by the target waste disposal facility. The waste recycling results are generated based on the first disposal record and the category of each item in the waste bag.
[0101] The sending module 904 is used to send the garbage collection result to the target user.
[0102] In one possible implementation, the first record generation module 902 is used for:
[0103] Based on the delivery category and the user identifier of the target user, a first delivery record is generated;
[0104] Send the first delivery record to the target user;
[0105] Based on the target user's confirmation instruction for the first delivery record, the first delivery record, signed with the target user's private key, is stored on the blockchain.
[0106] In one possible implementation, the category of each item in the waste bag is determined by the waste identification system of the target waste disposal facility through image recognition of the images of each item in the waste bag, and the category is determined based on the image recognition results.
[0107] In one possible implementation, the device further includes:
[0108] The second record generation module is used to obtain the item images of each item in the garbage bag, the garbage recycling result, the user identifier of the target user, and the organization identifier of the target garbage disposal organization, and generate a second disposal record.
[0109] The storage module is used to store the second disposal record, which carries the private key signature of the target waste disposal organization, on the blockchain based on the confirmation instruction of the target waste disposal organization for the second disposal record.
[0110] In one possible implementation, the device further includes:
[0111] The record acquisition module is used to acquire at least one second delivery record carrying the user identifier from the blockchain based on the user identifier of the user;
[0112] The points generation module is used to generate the user's total garbage collection points on the blockchain based on the garbage collection results in at least one second disposal record.
[0113] In one possible implementation, the device further includes:
[0114] The sorting module is used to obtain the total garbage collection points of at least one user and sort the total garbage collection points of the at least one user.
[0115] In one possible implementation, the device further includes:
[0116] The identifier generation module is used to generate a user identifier for the target user on the blockchain of the blockchain system based on the target user's registration behavior.
[0117] In one possible implementation, the identifier acquisition module 901 is used for:
[0118] When a garbage disposal instruction is received from the target user, the user image of the target user is obtained;
[0119] The user's image is identified, and the user identifier of the target user is determined based on the identification results.
[0120] The device provided in this application embodiment obtains the user identifier of the target user based on the target user's waste disposal instruction, obtains the disposal category of the waste bag, generates a first disposal record of the waste bag on the blockchain of the blockchain system based on the disposal category and the target user's user identifier, obtains the waste recycling result generated by the target waste treatment institution, the waste recycling result is generated based on the first disposal record and the category of each item in the waste bag, and sends the waste recycling result to the target user. By using this device, the waste recycling result can be accurately fed back to the target user who disposed of the waste, so that the target user can know the status of this waste sorting and disposal, thereby gradually improving the quality of waste sorting and ensuring the effectiveness of waste recycling.
[0121] It should be noted that the blockchain-based garbage collection device provided in the above embodiments is only illustrated by the division of the above functional modules during garbage collection. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the blockchain-based garbage collection device and the blockchain-based garbage collection method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0122] Figure 10 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. The terminal 1000 can be: a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. The terminal 1000 may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other names.
[0123] Typically, terminal 1000 includes one or more processors 1001 and one or more memories 1002.
[0124] Processor 1001 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1001 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1001 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1001 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1001 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0125] The memory 1002 may include one or more computer-readable storage media, which may be non-transitory. The memory 1002 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1002 are used to store at least one instruction, which is executed by the processor 1001 to implement the blockchain-based garbage collection method provided in the method embodiments of this application.
[0126] In some embodiments, the terminal 1000 may also optionally include a peripheral device interface 1003 and at least one peripheral device. The processor 1001, memory 1002, and peripheral device interface 1003 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1003 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 1004, a display screen 1005, a camera assembly 1006, an audio circuit 1007, a positioning assembly 1008, and a power supply 1009.
[0127] Peripheral device interface 1003 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 1001 and memory 1002. In some embodiments, processor 1001, memory 1002 and peripheral device interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1001, memory 1002 and peripheral device interface 1003 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0128] The radio frequency (RF) circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1004 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1004 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1004 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 1004 can communicate with other terminals via at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: metropolitan area networks (MANs), various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks (WLANs), and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 1004 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.
[0129] Display screen 1005 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 1005 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 1001 for processing. In this case, display screen 1005 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 1005, which serves as the front panel of terminal 1000; in other embodiments, there may be at least two display screens, respectively disposed on different surfaces of terminal 1000 or in a folded design; in some embodiments, display screen 1005 may be a flexible display screen, disposed on a curved or folded surface of terminal 1000. Furthermore, display screen 1005 may be configured as a non-rectangular irregular shape, i.e., a non-rectangular screen. Display screen 1005 may be made of materials such as LCD (Liquid Crystal Display) or OLED (Organic Light-Emitting Diode).
[0130] The camera assembly 1006 is used to acquire images or videos. Optionally, the camera assembly 1006 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 1006 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm-light flash and a cool-light flash, which can be used for light compensation at different color temperatures.
[0131] The audio circuit 1007 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting the sound waves into electrical signals that are input to the processor 1001 for processing, or input to the radio frequency circuit 1004 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each positioned at a different location on the terminal 1000. The microphone may also be an array microphone or an omnidirectional 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 diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 1007 may also include a headphone jack.
[0132] The positioning component 1008 is used to determine the current geographical location of the terminal 1000 in order to enable navigation or LBS (Location Based Service). The positioning component 1008 can be a positioning component based on the US GPS (Global Positioning System), China's BeiDou system, Russia's Granas system, or the EU's Galileo system.
[0133] The power supply 1009 is used to power the various components in the terminal 1000. The power supply 1009 can be AC power, DC power, a disposable battery, or a rechargeable battery. When the power supply 1009 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0134] In some embodiments, the terminal 1000 further includes one or more sensors 1010. The one or more sensors 1010 include, but are not limited to: an accelerometer 1011, a gyroscope 1012, a pressure sensor 1013, a fingerprint sensor 1014, an optical sensor 1015, and a proximity sensor 1016.
[0135] Accelerometer 1011 can detect the magnitude of acceleration along the three coordinate axes of a coordinate system established by terminal 1000. For example, accelerometer 1011 can be used to detect the components of gravitational acceleration along the three coordinate axes. Processor 1001 can control display screen 1005 to display the user interface in either a landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 1011. Accelerometer 1011 can also be used for games or for acquiring user motion data.
[0136] The gyroscope sensor 1012 can detect the orientation and rotation angle of the terminal 1000. The gyroscope sensor 1012, in conjunction with the accelerometer sensor 1011, can collect 3D motion data from the user on the terminal 1000. Based on the data collected by the gyroscope sensor 1012, the processor 1001 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.
[0137] The pressure sensor 1013 can be disposed on the side bezel of the terminal 1000 and / or on the lower layer of the display screen 1005. When the pressure sensor 1013 is disposed on the side bezel of the terminal 1000, it can detect the user's grip signal on the terminal 1000, and the processor 1001 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 1013. When the pressure sensor 1013 is disposed on the lower layer of the display screen 1005, the processor 1001 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 1005. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0138] The fingerprint sensor 1014 is used to collect a user's fingerprint. The processor 1001 identifies the user based on the fingerprint collected by the fingerprint sensor 1014, or vice versa. When the user's identity is identified as trusted, the processor 1001 authorizes the user to perform relevant sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings. The fingerprint sensor 1014 can be located on the front, back, or side of the terminal 1000. When the terminal 1000 has physical buttons or a manufacturer's logo, the fingerprint sensor 1014 can be integrated with the physical buttons or manufacturer's logo.
[0139] An optical sensor 1015 is used to collect ambient light intensity. In one embodiment, the processor 1001 can control the display brightness of the display screen 1005 based on the ambient light intensity collected by the optical sensor 1015. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the display screen 1005 is decreased. In another embodiment, the processor 1001 can also dynamically adjust the shooting parameters of the camera assembly 1006 based on the ambient light intensity collected by the optical sensor 1015.
[0140] The proximity sensor 1016, also known as a distance sensor, is typically mounted on the front panel of the terminal 1000. The proximity sensor 1016 is used to detect the distance between the user and the front of the terminal 1000. In one embodiment, when the proximity sensor 1016 detects that the distance between the user and the front of the terminal 1000 is gradually decreasing, the processor 1001 controls the display screen 1005 to switch from a screen-on state to a screen-off state; when the proximity sensor 1016 detects that the distance between the user and the front of the terminal 1000 is gradually increasing, the processor 1001 controls the display screen 1005 to switch from a screen-off state to a screen-on state.
[0141] Those skilled in the art will understand that Figure 10 The structure shown does not constitute a limitation on terminal 1000 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0142] Figure 11 This is a schematic diagram of a server structure provided in an embodiment of this application. The server 1100 can vary considerably due to different configurations or performance. It may include one or more central processing units (CPUs) 1101 and one or more memories 1102. The one or more memories 1102 store at least one line of program code, which is loaded and executed by the one or more processors 1101 to implement the methods provided in the various method embodiments described above. Of course, the server 1100 may also have wired or wireless network interfaces, a keyboard, and input / output interfaces for input and output. The server 1100 may also include other components for implementing device functions, which will not be elaborated here.
[0143] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including instructions that can be executed by a processor to perform the blockchain-based garbage collection method in the above embodiments. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0144] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0145] The above are merely optional embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A garbage collection method characterized by, The method comprises: The node device corresponding to the garbage can obtains the user identifier of the target user based on the garbage throwing instruction of the target user; the garbage can comprises a plurality of throwing areas, and different throwing areas correspond to different garbage categories; The garbage can 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 taken as the throwing category of the garbage bag; The node device corresponding to the garbage can obtains the throwing category of the garbage bag, generates a first throwing record of the garbage bag based on the throwing category and the user identifier of the target user, and the first throwing record comprises the throwing category of the garbage bag and the user identifier of the target user; The node device corresponding to the garbage can sends the first throwing record to the target user; The node device corresponding to the garbage can stores the first throwing 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 throwing record; The node device corresponding to the garbage can generates a label based on the first throwing record in response to the target user confirming that the first throwing record is correct, and pastes the label on the garbage bag, and the label is used to obtain the first throwing record of the garbage bag; The target garbage disposal institution uses the garbage recognition system included in the target garbage disposal institution to perform image recognition on each item in the garbage bag to determine the category to which each item belongs; The target garbage disposal institution uses the garbage classification scoring system included in the target garbage disposal institution to identify the label on the garbage bag, obtains the first throwing record carried by the label, and generates a garbage recycling result based on the first throwing record and the category to which each item in the garbage bag belongs, wherein the garbage recycling result is used to indicate the matching degree of each item in the garbage bag and the throwing category; The node device corresponding to the target garbage disposal institution obtains the item image of each item in the garbage bag, the garbage recycling result, the user identifier of the target user, and the institution identifier of the target garbage disposal institution, and generates a second throwing record; the node device corresponding to the target garbage disposal institution is a server corresponding to the target garbage disposal institution; The node device corresponding to the target garbage disposal institution stores the second throwing record carrying the private key signature of the target garbage disposal institution on the blockchain based on the confirmation instruction of the target garbage disposal institution on the second throwing record; The node device corresponding to the target user obtains the second throwing record from the blockchain based on the user identifier of the target user, and feeds back the garbage recycling result in the second throwing record to the target user.
2. The method of claim 1, wherein, After storing the second throwing record carrying the private key signature of the target garbage disposal institution on the blockchain, the method further comprises: The user node device obtains at least one second throwing record carrying the user identifier from the blockchain based on the user identifier of the user; The user node device generates total garbage recycling points of the user on the blockchain based on the garbage recycling result in the at least one second delivery record.
3. The method of claim 2, wherein, After the total garbage recycling points of the user are generated on the blockchain, the method further comprises: The user node device obtains total garbage recycling points of at least one user and sorts the total garbage recycling points of the at least one user.
4. The method of claim 1, wherein, Before the node device corresponding to the garbage can obtains the user identifier of the target user based on the garbage delivery instruction of the target user, the method further comprises: The user node device generates the user identifier of the target user on the blockchain of the blockchain system based on the registration behavior of the target user.
5. The method of claim 1, wherein, The node device corresponding to the garbage can obtains the user identifier of the target user based on the garbage delivery instruction of the target user, comprising: The node device corresponding to the garbage can obtains the user image of the target user in response to the garbage delivery instruction of the target user; The node device corresponding to the garbage can identifies the user image and determines the user identifier of the target user based on the identification result.
6. The method of claim 1, wherein, The garbage recycling result is in the form of points, and the points are used to indicate the matching degree of each item in the garbage bag and the delivery category.
7. A garbage collection system, characterized by, The system comprises a node device corresponding to a garbage can and a node device corresponding to a target garbage disposal mechanism. The node device corresponding to the garbage can is used to obtain the user identifier of the target user based on the garbage delivery instruction of the target user; the garbage can comprises a plurality of delivery areas, and different delivery areas correspond to different garbage categories. The garbage can detects the delivery position of the garbage bag, and when the delivery position is in any delivery area, the garbage category corresponding to the any delivery area is taken as the delivery category of the garbage bag. The node device corresponding to the garbage can is used to obtain the delivery category of the garbage bag, generate a first delivery record of the garbage bag based on the delivery category and the user identifier of the target user. The first delivery record is sent to the target user. Based on the confirmation instruction of the target user on the first delivery record, the first delivery record carrying the private key signature of the target user is stored on the blockchain; in response to the target user confirming that the first delivery record is correct, a label is generated based on the first delivery record, and the label is attached to the garbage bag, the label is used to obtain the first delivery record of the garbage bag, and the first delivery record comprises the delivery category of the garbage bag and the user identifier of the target user. The garbage recognition system included in the target garbage disposal mechanism is used to identify the images of each item in the garbage bag and determine the category to which the each item belongs. The garbage classification scoring system included in the target garbage disposal mechanism is configured to identify a label on the garbage bag, obtain a first deposit record carried by the label, and generate a garbage recycling result based on the first deposit record and a category of each item in the garbage bag. The garbage recycling result is used to indicate a matching degree of each item in the garbage bag and the deposit category. The node device corresponding to the target garbage disposal mechanism is configured to obtain an item image of each item in the garbage bag, the garbage recycling result, a user identifier of the target user, and a mechanism identifier of the target garbage disposal mechanism, and generate a second deposit record. Based on a confirmation instruction of the target garbage disposal mechanism on the second deposit record, the second deposit record signed by the private key of the target garbage disposal mechanism is stored on the blockchain. The node device corresponding to the target garbage disposal mechanism is a server corresponding to the target garbage disposal mechanism. The node device corresponding to the target user is configured to obtain the second deposit record from the blockchain based on the user identifier of the target user, and feed back the garbage recycling result in the second deposit record to the target user.
8. The system of claim 7, wherein, The system further includes a user node device configured to: obtain at least one second deposit record carrying the user identifier from the blockchain based on the user identifier of the user; generate a garbage recycling total score of the user on the blockchain based on a garbage recycling result in the at least one second deposit record.
9. The system of claim 8, wherein, The user node device is configured to: obtain a garbage recycling total score of at least one user, and sort the garbage recycling total scores of the at least one user.
10. A computer device, comprising: The computer device includes one or more processors and one or more memories, and at least one program code is stored in the one or more memories. The instructions are loaded and executed by the one or more processors to implement the operations performed by the garbage recycling method according to any one of claims 1 to 6.
11. A computer readable storage medium, characterized in that, The computer-readable storage medium stores at least one program code, and the instructions are loaded and executed by the processor to implement the operations performed by the garbage recycling method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Garbage sort management method and system
CN103466242A
Garbage sorting platform and method based on two-dimensional code recognition technology
CN104044842A
Garbage classifying method taking bar codes as core and traceable bar code printing system
CN107983755A
System, method and device for garbage classification collection
CN108839977A
Garbage sorting incentive method and device, apparatus and storage medium
CN109299793A