A blockchain-based bicycle management method, system, server and medium

By using blockchain technology to store and manage task and result information in the shared bicycle management system, the problem of insufficient transparency in management tasks has been solved, thereby improving both the transparency and efficiency of tasks.

CN116612372BActive Publication Date: 2026-01-20HANGZHOU BYTE ARK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310360474.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-06
Publication Date
2026-01-20
Estimated Expiration
2043-04-06

AI Technical Summary

Technical Problem

The existing shared bicycle management system lacks transparency in management tasks, making it difficult for staff to understand each other's tasks, resulting in low management efficiency.

Method used

By acquiring image information from parking areas and using blockchain technology to store management tasks and results, the integrity, authenticity, and transparency of tasks are ensured, allowing staff to view and complete management tasks.

Benefits of technology

It improved the transparency and efficiency of management tasks, ensured the integrity, authenticity, and security of tasks, and reduced the workload of staff.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116612372B_ABST
    Figure CN116612372B_ABST
Patent Text Reader

Abstract

The application provides a kind of based on blockchain's bicycle management method, system, server and medium, method includes: obtaining the image information of the bicycle placement condition of each parking frame, wherein each image information includes actual image, and the parking frame number corresponding to actual image one by one;According to each actual image in turn, judge whether the management task corresponding to actual image needs to be generated, if needed, according to actual image to generate management task, and image information and management task are sent to block chain and are stored, wherein management task and image information have association;Management task is sent to corresponding staff, the result information obtained by each staff according to management task is obtained, according to result information to end management task, and result information is sent to block chain and is stored;Management task and corresponding result information are obtained from block chain to be publicized.The present application can improve the transparency of management task issued to staff.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of blockchains, in particular to a bicycle management method and system based on a blockchain, a server and a medium. BACKGROUND

[0002] With the popularity of the sharing economy and the increasing deterioration of the environment, in order to meet the needs of users in the last mile, more green travel methods of shared bicycles have appeared on the market to alleviate urban traffic pollution and promote the development of urban green transportation and slow traffic. With the investment of capital and the increase of users, some problems of shared bicycles have gradually emerged. Due to the lack of corresponding fixed piles, the phenomenon of random parking of shared bicycles is particularly serious, which occupies a large amount of public space roads in the city. Therefore, it is necessary for humans to complete the management of shared bicycles to reduce the phenomenon of random parking of shared bicycles.

[0003] At present, in order to improve the efficiency of staff in completing the management of shared bicycles, the entire area where shared bicycles can move is generally divided to obtain a plurality of sub-areas, each sub-area is non-overlapping, and all sub-areas constitute the entire area, and a staff is arranged in each sub-area to be responsible for the management of shared bicycles in the sub-area. The management work includes dispatching operation and management operation. The dispatching operation specifically refers to dispatching the shared bicycles placed in different parking frames to meet the number of shared bicycles placed in all parking frames within a preset range; the arrangement operation specifically refers to arranging the shared bicycles placed in the parking frame to make all the shared bicycles placed in a certain parking frame in an orderly and unified manner.

[0004] The existing management platform only obtains the position information of each shared bicycle and the number of shared bicycles placed in the parking frame according to the positioning function carried by the shared bicycle, and generates and issues a corresponding management task according to the number of shared bicycles to make the staff perform the corresponding management work according to the management task. However, other staff do not know the management tasks completed by each other, so that the management tasks issued to the staff do not have transparency. SUMMARY

[0005] In order to improve the transparency of the management task issued to the staff, the embodiments of the present application provide a bicycle management method and system based on a blockchain, a server and a medium.

[0006] In a first aspect, the embodiments of the present application provide a bicycle management method based on a blockchain, which comprises:

[0007] obtaining image information representing the placement of bicycles in each parking frame, wherein each image information comprises an actual image and a parking frame number corresponding to the actual image;

[0008] determining whether a management task corresponding to each actual image needs to be generated according to each actual image in sequence, if so, generating a management task according to the actual image, and sending the image information and the management task to a block chain for storage, wherein the management task has an association relationship with the image information;

[0009] sending the management task to a corresponding management personnel, obtaining result information obtained by each worker according to the management task, ending the management task according to the result information, and sending the result information to the block chain for storage;

[0010] obtaining the management task and the corresponding result information from the block chain for publicity.

[0011] In some embodiments thereof, the determining whether a management task corresponding to each actual image needs to be generated according to each actual image in sequence comprises:

[0012] performing image processing on each actual image to obtain a bicycle quantity corresponding to each actual image, the bicycle quantity representing a quantity of bicycles, and a tidying quantity corresponding to each actual image, the tidying quantity representing a quantity of bicycles that need to be tidied, wherein each bicycle quantity corresponds to a unique parking frame number, and each tidying quantity corresponds to a unique parking frame number;

[0013] determining whether each bicycle quantity falls into a preset bicycle quantity range corresponding to the parking frame number in sequence, if not, the image information corresponding to the bicycle quantity needs to generate a management task;

[0014] if so, determining whether the tidying quantity corresponding to the parking frame number is zero, if so, the image information corresponding to the bicycle quantity does not need to generate a management task;

[0015] if not, obtaining a first parking frame number corresponding to the bicycle quantity, obtaining a second parking frame number belonging to a same sub-region as the first parking frame number, determining a to-be-completed quantity of management tasks corresponding to all second parking frame numbers according to the second parking frame number, determining whether the to-be-completed quantity is less than a regular task quantity, if so, the image information corresponding to the bicycle quantity needs to generate a management task;

[0016] if not, the image information corresponding to the bicycle quantity does not need to generate a management task.

[0017] In some embodiments thereof, each management task at least includes one of a dispatch task and a tidying task, and the generating a management task according to the actual image comprises:

[0018] If the number of bicycles does not fall within the preset number of bicycle range, a number of bicycles to be removed from the current parking frame is generated based on the number of bicycles and the preset number of bicycle range, and a corresponding dispatch task is generated according to the number of bicycles to be removed;

[0019] If the number of bicycles does not fall within the preset number of bicycle range, a number of bicycles to be removed from the current parking frame is generated based on the number of bicycles and the preset number of bicycle range, and a corresponding dispatch task is generated according to the number of bicycles to be removed;

[0020] If the number of bicycles falls within the preset number of bicycle range, a corresponding second arrangement task is generated according to the number of bicycles corresponding to the arrangement.

[0021] In some embodiments, generating a number of bicycles to be removed from the current parking frame based on the number of bicycles and the preset number of bicycle range includes:

[0022] Obtaining the number of bicycles corresponding to the dispatch parking frame number of the current parking frame, and the backup parking frame number whose distance from the dispatch parking frame number does not exceed the preset distance;

[0023] Obtaining the number of backup bicycles placed in each backup parking frame number corresponding parking frame, and judging whether all the number of backup bicycles falls within the preset number of bicycle range corresponding to each backup parking frame number, if not, the number of bicycles is subtracted from the minimum value of the preset number of bicycle range to obtain the number of bicycles to be removed;

[0024] If at least one falls, the middle value of the preset number of bicycle range corresponding to the current parking frame is obtained, and the number of bicycles corresponding to the current parking frame is subtracted from the middle value to obtain the number of bicycles to be removed.

[0025] In some embodiments, the result information includes a result image and a parking frame number corresponding to the result image one by one, and ending the management task according to the result information includes:

[0026] Feature extraction is performed on the result image in each result information to obtain the placement angle of all bicycles in each result image, and whether the placement angle of all bicycles in each result image satisfies the preset reference angle is judged in turn, if all satisfy, the result information is marked as qualified result information, and a qualified end instruction is generated according to the qualified result information to end the management task;

[0027] If at least one does not satisfy, the result information is marked as defective result information, and a defective end instruction is generated according to the defective result information to end the management task.

[0028] In some embodiments, the obtaining of the management task and the corresponding result information from the blockchain for publicizing comprises:

[0029] obtaining a current time and a historical time of the last publicizing, subtracting the historical time from the current time to obtain a time difference, determining whether the time difference falls within a preset time range, and if so, generating a reading instruction to obtain the management task and the corresponding result information stored in the time difference from the blockchain and send to all the corresponding terminals of the staff for publicizing;

[0030] If not, continue to obtain the current time and determine whether the time difference falls within the preset time range.

[0031] In some embodiments, the sending to all the staff for publicizing further comprises marking the management task and the corresponding result information that have been publicized.

[0032] In a second aspect, the present embodiment provides a bicycle management system based on a blockchain, which comprises an information obtaining module, a management task module, a task ending module and a publicizing module, wherein

[0033] The information obtaining module is configured to obtain image information representing the placement of bicycles at each parking frame, wherein each image information comprises an actual image and a parking frame number corresponding to the actual image;

[0034] The management task module is configured to determine whether a management task corresponding to each actual image needs to be generated according to each actual image, and if so, generate a management task according to the actual image and send the image information and the management task to the blockchain for storage, wherein the management task and the image information have an association relationship;

[0035] The task ending module is configured to send the management task to the corresponding staff, obtain result information obtained by each staff according to the management task, end the management task according to the result information, and send the result information to the blockchain for storage;

[0036] The publicizing module is configured to obtain the management task and the corresponding result information from the blockchain for publicizing.

[0037] In a third aspect, the present embodiment provides a server, which comprises a processor and a memory, and a computer program capable of running on the processor is stored on the server, and the computer program is executed by the processor to implement the bicycle management method based on a blockchain according to the first aspect.

[0038] In a fourth aspect, an embodiment of the present application provides a storage medium having stored thereon a computer program capable of running on a processor, and the computer program, when executed by the processor, implements the single-bicycle management method based on a block chain according to the first aspect.

[0039] By using the above method, the actual image of the single-bicycle placement at each parking frame and the parking frame number corresponding to the actual image are obtained by the camera originally arranged in the road, and whether the management task corresponding to the actual image needs to be generated is determined by image processing on the actual image. If so, the management task is generated according to the actual image in the image information. After the management task is generated, the single-bicycle management system sends the management task and the image information corresponding to the management task to the block chain for storage, so that the single-bicycle management system and each staff can check all the management tasks and the image information corresponding to the management tasks, and the integrity, authenticity, security and transparency of the storage of the management tasks and the image information corresponding to the management tasks can be ensured. BRIEF DESCRIPTION OF DRAWINGS

[0040] Figure 1 is a block diagram of the single-bicycle management method based on a block chain provided by the embodiment.

[0041] Figure 2 is a position relationship diagram of the camera and the parking frame in a certain sub-region provided by the present application.

[0042] Figure 3 is a block diagram of sequentially determining whether the management task corresponding to each actual image needs to be generated provided by the embodiment.

[0043] Figure 4 is a block diagram of generating the management task according to the actual image provided by the embodiment.

[0044] Figure 5 is a block diagram of ending the management task according to the result information provided by the embodiment. DETAILED DESCRIPTION

[0045] To make the objectives, technical solutions and advantages of the present application clearer, the present application is described and explained below in connection with the drawings and embodiments. However, it should be understood by those of ordinary skill in the art that the present application can be implemented without these details. It is obvious for those of ordinary skill in the art that various changes can be made to the embodiments disclosed in the present application, and the universal principles defined in the present application can be applied to other embodiments and application scenarios without deviating from the principles and scope of the present application. Therefore, the present application is not limited to the embodiments shown, but conforms to the broadest scope claimed by the present application.

[0046] The embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0047] The blockchain is a chain composed of one block after another. Each block contains certain information, and they are connected in a chain according to the time sequence of their respective generation. These chains are saved in all servers, and as long as one server in the entire system can work, the entire blockchain is safe. These servers are called nodes in the blockchain system, and they provide storage space and computing power support for the entire blockchain system. If you want to modify the information in the blockchain, you must obtain the consent of more than half of the nodes and modify the information in all nodes, and these nodes are usually in the hands of different subjects, so it is extremely difficult to tamper with the information in the blockchain. Compared with traditional networks, the blockchain has two core features: one is that data is difficult to tamper with, and the other is that it is decentralized and transparent. Based on these three features, the information recorded by the blockchain is more real and reliable, and can help solve the problem of mutual distrust among people.

[0048] Figure 1 is a block diagram of a bicycle management method based on a blockchain provided by the present embodiment. As shown in Figure 1 , a bicycle management method based on a blockchain includes the following steps:

[0049] Step S100, acquiring image information representing the placement of bicycles at each parking frame, wherein each image information includes an actual image and a parking frame number corresponding to the actual image.

[0050] The entire area where the shared bicycles are movable includes a plurality of sub-areas, each sub-area is non-overlapping, and all sub-areas constitute the entire area. Each sub-area corresponds to a staff member, and each staff member is only responsible for the management of shared bicycles in the corresponding sub-area. A fixed number of parking frames are provided in each sub-area, which is an area for storing shared bicycles. The parking frame is generally provided in a place with a large flow of people, such as beside the entrance of a community, beside a subway station, beside a bus station, and beside the entrance of a shopping mall, etc. The place with a large flow of people originally has a camera device to record the actual situation in real time, so as to provide a reference for subsequent possible flow analysis, research or management, etc. The camera device can clearly record the actual situation around the position of the camera device in 360 degrees.

[0051] A parking frame number representing the identity of the parking frame is written inside each parking frame in the entire area. The parking frame number written inside each parking frame is different from each other and unique, and the specific parking frame number is an Arabic numeral. The process of gradually placing shared bicycles in the parking frame is also the process of gradually blocking the parking frame number written inside the parking frame by the shared bicycle.

[0052] The aforementioned actual images are obtained through the originally installed camera devices. The installation position of each camera device is fixed, as is the position of each parking bay. Each camera device has the same shooting program. In this embodiment, all camera devices have parking bays located next to them. Here, we will use one camera device as an example to illustrate how the aforementioned image information is obtained. This camera device has at least one parking bay next to it. The camera device rotates at fixed angles according to the shooting program to complete a 360-degree sequential shooting operation every fixed time interval. Several images are obtained in one shooting operation. Considering the ultra-wide viewing angle of the camera device, in this embodiment, the camera device obtains four images in one shooting operation: two images perpendicular to the road direction (shooting direction 180 degrees), and two images parallel to the road direction (shooting direction 180 degrees). At least one of these four images represents the actual placement of shared bicycles at the parking bay corresponding to the camera device.

[0053] Since the parking spaces next to the camera are fixed and the camera's installation position is also fixed, the camera only rotates horizontally during the shooting process and does not leave its installation position. Therefore, the actual image order in all images is fixed. Figure 2 This is a diagram showing the positional relationship between the camera device and the parking frame in a certain sub-region provided in this application. For example... Figure 2 As shown, a maximum of two parking frames will be placed next to the camera device. If two parking frames are placed, they will be located on either side of the camera device and parallel to the road. If only one parking frame is placed, it will be located on one side of the camera device and parallel to the road. Only one parking frame will be displayed in each actual image. The parking frame number corresponding to the parking frame next to the camera device is stored in the camera device. Thus, when the camera device sends the actual image to the bicycle management system, it also sends the corresponding parking frame number to the bicycle management system, enabling the bicycle management system to obtain image information about the bicycle placement at that parking frame.

[0054] In this embodiment, other camera devices also send the image information of the bicycle placement at the corresponding parking space to the bicycle management system according to the above steps. In this way, the image information of the bicycle placement at each parking space can be automatically obtained at fixed intervals, without the need for staff to manually input the image information of the bicycle placement at each parking space.

[0055] Step S200, whether the actual image corresponding to the management task needs to be generated according to each actual image in turn, if necessary, the management task is generated according to the actual image, and the image information and the management task are sent to the block chain, and the image information and the management task are chained through the content storage or hash storage method, so as to be stored in the block chain, wherein the management task has an associated relationship with the image information.

[0056] Figure 3 The block diagram provided by the present embodiment is used to judge whether the actual image corresponding to the management task needs to be generated according to each actual image in turn. As shown in Figure 3 The step of judging whether the actual image corresponding to the management task needs to be generated according to each actual image in turn includes the following steps:

[0057] Step S201, image processing is performed on the actual image in each image information to obtain a bicycle quantity corresponding to each actual image, which represents the number of bicycles placed, and a sorting quantity representing the number of bicycles to be sorted, wherein each bicycle quantity corresponds to a unique parking frame number, and each sorting quantity corresponds to a unique parking frame number.

[0058] Step S202, whether each bicycle quantity falls into the preset bicycle quantity range corresponding to the parking frame number is judged in turn, if not, the image information corresponding to the bicycle quantity needs to generate the management task.

[0059] Step S203, if it falls into, it is judged whether the management quantity corresponding to the parking frame number is zero, if it is zero, the image information corresponding to the bicycle quantity does not need to generate the management task.

[0060] Step S204, if it is not zero, the first parking frame number corresponding to the bicycle quantity is obtained, the second parking frame number belonging to the same sub-region as the first parking frame number is obtained, the to-be-completed quantity of the management task corresponding to all second parking frame numbers is determined according to the second parking frame number, whether the to-be-completed quantity is less than the regular task quantity is judged, if it is less than, the image information corresponding to the bicycle quantity needs to generate the management task.

[0061] Step S205, if it is not less than, the image information corresponding to the bicycle quantity does not need to generate the management task.

[0062] After receiving the image information, the single bicycle management system can preliminarily process the actual image in each image information by using OpenCV technology, that is, extract all information in the actual image to obtain the vehicle in the actual image, and then compare each vehicle with the shared bicycle of the designated operator in terms of features, so as to obtain the single bicycle quantity corresponding to each actual image, which represents the number of single bicycles. The single bicycle quantity refers to the number of single bicycles of a certain operator and the number of single bicycles placed in the set range of the parking frame area. The set range can be determined according to the actual situation, and generally the area formed by the parking frame area as the center and the distance from the parking frame area as a single bicycle length.

[0063] In addition, after completing the preliminary preprocessing operation and obtaining the single bicycle quantity corresponding to each actual image, each actual image is cropped according to the parking frame to obtain the corresponding sub-actual image, and then one of the LBP algorithm, the HOG feature extraction algorithm or the SIFT operator is used to obtain the actual feature information corresponding to each single bicycle in the sub-actual image. The actual feature information corresponding to each single bicycle is compared with the reference feature information in sequence. The reference feature information includes the first reference feature information representing the core components of the single bicycle and the second reference feature information representing the direction of the connection line between the front fork and the middle axis. The actual feature information corresponding to each single bicycle includes the first actual feature information representing the core components of the single bicycle and the second actual feature information representing the direction of the connection line between the front fork and the middle axis. If the first reference feature information corresponds to the first actual feature information and the second reference feature information corresponds to the second actual feature information, it indicates that the actual feature information corresponding to the single bicycle is consistent with the reference feature information, that is, the single bicycle is placed normally. If at least one of the first reference feature information does not correspond to the first actual feature information or the second reference feature information does not correspond to the second actual feature information, it indicates that the actual feature information corresponding to the single bicycle is inconsistent with the reference feature information, that is, the single bicycle is not placed normally, and the number of single bicycles not placed normally is the arrangement quantity representing the number of single bicycles that need to be arranged. The core components of the single bicycle include front wheel, rear wheel, seat, handlebar, pedal and chain.

[0064] The preset bicycle quantity range is a range of bicycle quantity allowed to be placed in the parking frame. The preset bicycle quantity range has a maximum value and a minimum value, and the minimum value is zero. The maximum value can be set according to the set length of the parking frame and the width of each shared bicycle. Each parking frame number corresponds to a preset bicycle quantity range. The core work of the staff is to complete the scheduling of shared bicycles, and the auxiliary work is to complete the arrangement of shared bicycles. Therefore, it is determined in sequence whether each bicycle quantity is greater than the maximum value of the preset bicycle quantity range corresponding to the parking frame number. If it is greater, it indicates that the bicycle quantity does not fall within the preset bicycle quantity range corresponding to the parking frame number, and there is the core work of scheduling the bicycles placed in the parking frame represented by the parking frame number corresponding to the bicycle quantity. Therefore, the image information corresponding to the bicycle quantity needs to generate a management task.

[0065] If it is not greater, it indicates that the bicycle quantity falls within the preset bicycle quantity range corresponding to the parking frame number, and there is no core work, and the bicycles placed in the parking frame represented by the parking frame number corresponding to the bicycle quantity do not need to be scheduled. However, considering the aesthetics of urban roads, when there is no core work, it is further determined whether there is the auxiliary work of arrangement, that is, under the premise that the bicycle quantity falls within the preset bicycle quantity range corresponding to the parking frame number, it is determined whether the management quantity corresponding to the parking frame number is zero. If it is zero, it indicates that there is neither the core work nor the auxiliary work, and the image information corresponding to the bicycle quantity does not need to generate a management task.

[0066] If it is not zero, the core work is primary and the auxiliary work is secondary. By obtaining the first parking frame number corresponding to the bicycle quantity, the second parking frame number belonging to the same sub-region as the first parking frame number, determining the to-be-completed quantity of management tasks corresponding to all second parking frame numbers according to the second parking frame number, the to-be-completed quantity represents the number of tasks that the staff needs to complete next, that is, the number of management tasks that the staff has not completed, which can be obtained by checking the terminal corresponding to the staff. Since the staff has limited energy, the number of tasks that can be completed in time is limited. The above-mentioned regular task quantity is the number of tasks that the staff can bear to complete within a specified time without work pressure. If the to-be-completed quantity is less than the regular task quantity, it indicates that the management task can be assigned to the staff, and the image information corresponding to the bicycle quantity needs to generate a management task. If the to-be-completed quantity is not less than the regular task quantity, since the arrangement work is not the core work, the image information corresponding to the bicycle quantity does not need to generate a management task. Among them, all parking frames in each sub-region correspond to different priorities. The management tasks corresponding to the parking frames with high priorities are processed first, and the management tasks corresponding to the parking frames with low priorities are processed second.

[0067] After obtaining the image information, the actual image in each image information is preliminarily processed to obtain the corresponding number of bicycles and the number of arrangements, and then according to the importance of the work, it is judged in priority whether the number of bicycles falls into the preset number of bicycles corresponding to the parking frame frame, if it falls into, it indicates that there is a scheduling work as the core work, and the subsequent does not need to judge whether there is an arrangement work as an auxiliary work, and the image information corresponding to the number of bicycles can be directly determined not to generate a management task, so as to reduce the judgment times and improve the speed. If it does not fall into, further according to the number of to-be-completed corresponding to the work staff, it is further determined whether the image information corresponding to the number of bicycles needs to generate a management task, so as to avoid blindly generating a management task to increase the pressure of the work staff.

[0068] Each management task at least includes one of the scheduling task and the arrangement task. Figure 4 is a block diagram provided by the embodiment for generating a management task according to an actual image. As shown in Figure 4 generating a management task according to an actual image includes the following steps:

[0069] Step S206, if the number of bicycles does not fall into the preset number of bicycles, the number of bicycles to be taken away from the current parking frame is generated based on the number of bicycles and the preset number of bicycles, and the corresponding scheduling task is generated according to the number of taking away.

[0070] Step S207, judging whether the number of taking away is greater than the arrangement number corresponding to the number of bicycles, if it is not greater than, the arrangement number corresponding to the number of bicycles is subtracted by the number of taking away to obtain the to-be-arranged number which still needs to be arranged, and the corresponding first arrangement task is generated according to the to-be-arranged number.

[0071] Step S208, if the number of bicycles falls into the preset number of bicycles, the corresponding second arrangement task is generated according to the arrangement number corresponding to the number of bicycles.

[0072] In the case that the image information needs to generate a management task has been determined according to the image information, by judging whether the number of bicycles corresponding to the image information falls into the preset number of bicycles, it can be obtained that the management task is generated due to the scheduling work or the arrangement work. When the number of bicycles corresponding to the image information does not fall into the preset number of bicycles, it indicates that the management task is generated due to the scheduling work, at this time, the number of taking away of bicycles at the parking frame corresponding to the parking frame number corresponding to the image information is obtained based on the number of bicycles and the preset number of bicycles, and the corresponding scheduling task is generated according to the number of taking away, which indicates that the number of taking away of bicycles from the parking frame.

[0073] If the scheduling task is generated, it means that the staff needs to arrive at the designated parking frame to complete the work. In the spirit of optimizing the city and reducing the time spent by the staff on the way, it is further compared whether the number of vehicles to be transported is greater than the corresponding number of vehicles to be arranged. If it is not greater than, it means that after the staff transports the number of vehicles to be transported, there are still vehicles to be arranged in the parking frame. At this time, the number of vehicles to be arranged is obtained by subtracting the number of vehicles to be transported from the corresponding number of vehicles to be arranged. According to the number of vehicles to be arranged, a corresponding first arrangement task is generated. The first arrangement task indicates that the number of vehicles to be arranged needs to be arranged from the parking frame. At this time, the management task includes the scheduling task and the first arrangement task.

[0074] If it is greater than, it means that after the staff transports the number of vehicles to be transported, there are no vehicles to be arranged in the parking frame. No corresponding arrangement task is generated at this time. At this time, the management task only includes the scheduling task.

[0075] When the number of vehicles corresponding to the image information falls within the preset number of vehicles, it means that the management task is generated due to the arrangement work. At this time, a corresponding second arrangement task is generated according to the number of vehicles corresponding to the arrangement number. The second arrangement task indicates that the number of vehicles needs to be arranged from the parking frame represented by the parking frame number corresponding to the number of vehicles. At this time, the management task only includes the second arrangement task.

[0076] Wherein, the step S206 of generating the number of vehicles to be transported from the current parking frame based on the number of vehicles and the preset number of vehicles includes the following steps:

[0077] Step S206-1, obtaining the number of vehicles corresponding to the scheduling parking frame number of the current parking frame, and the backup parking frame number whose distance from the scheduling parking frame number does not exceed the preset distance.

[0078] Step S206-2, obtaining the number of backup vehicles placed in each backup parking frame number corresponding to the parking frame, and judging whether all the number of backup vehicles falls within the preset number of vehicles corresponding to each backup parking frame number. If it does not fall within, the number of vehicles is subtracted by the minimum value of the preset number of vehicles to obtain the number of vehicles to be transported.

[0079] Step S206-3, if at least one falls within, obtaining the middle value of the preset number of vehicles corresponding to the current parking frame, and subtracting the middle value from the number of vehicles corresponding to the current parking frame to obtain the number of vehicles to be transported.

[0080] The preset distance can be set according to actual conditions, and there is a parking frame in the preset distance. The actual distance between the parking frame and the parking frame corresponding to the dispatch parking frame number is not greater than the preset distance. The parking frame number corresponding to the number of single vehicles corresponding to the management task is the dispatch parking frame number. The parking frame corresponding to the dispatch parking frame number is the parking frame that needs to be completed by the staff. The parking frame number corresponding to the dispatch parking frame number is the backup parking frame number. The staff prefer to dispatch the single vehicle in the parking frame corresponding to the dispatch parking frame number to the parking frame corresponding to the backup parking frame number. Through the positioning system carried by each single vehicle, the number of backup single vehicles placed in the parking frame corresponding to each backup parking frame number can be obtained. If all the number of backup single vehicles do not fall within the corresponding preset single vehicle number range, it indicates that the staff cannot dispatch the single vehicle in the parking frame corresponding to the dispatch parking frame number to the parking frame corresponding to the backup parking frame number. Moreover, there are many single vehicles near the parking frame corresponding to the dispatch parking frame number. In order to reduce the number of dispatches, the number of single vehicles minus the minimum value of the preset single vehicle number range, which is zero, that is, the number of single vehicles corresponding to the dispatch parking frame number is the number of vehicles to be transported at this time.

[0081] If all the number of backup single vehicles at least one falls within the corresponding preset single vehicle number range, it indicates that the staff can dispatch the single vehicle in the parking frame corresponding to the dispatch parking frame number to the parking frame corresponding to the backup parking frame number. The average value of the maximum value and the minimum value of the preset single vehicle number range corresponding to the dispatch parking frame number is obtained to obtain the intermediate value. The number of single vehicles corresponding to the dispatch parking frame number is reduced by the intermediate value to obtain the number of vehicles to be transported. For example, the maximum value of the preset single vehicle number range corresponding to the dispatch parking frame number is 20, and the minimum value is 0. Then the intermediate value is (20+0) / 2=10.

[0082] If the absolute value of the difference between the number of bicycles in the backup and the maximum value of the preset bicycle quantity range corresponding to the number of bicycles in the backup is greater than the number of bicycles to be transported, then the bicycles corresponding to the number of bicycles to be transported are placed in the parking frame corresponding to the preset bicycle quantity range. If the absolute value of the difference between the number of bicycles in the backup and the maximum value of the preset bicycle quantity range corresponding to the number of bicycles in the backup is not greater than the number of bicycles to be transported, then part of the bicycles corresponding to the number of bicycles to be transported are placed in the parking frame corresponding to the preset bicycle quantity range. The total storage capacity of the parking frame corresponding to the backup parking frame number in the corresponding preset bicycle quantity range is obtained. If the number of bicycles to be transported is not greater than the total storage capacity, then the bicycles corresponding to the number of bicycles to be transported are placed in the parking frame corresponding to the backup parking frame number, wherein the number of bicycles in each parking frame corresponding to the backup parking frame number does not exceed the preset bicycle quantity range. If the number of bicycles to be transported is greater than the total storage capacity, then the number of bicycles to be transported is reduced by the total storage capacity to obtain a number of bicycles to be transported, and the total storage capacity of bicycles is placed in the parking frame corresponding to the backup parking frame number, wherein the number of bicycles in each parking frame corresponding to the backup parking frame number does not exceed the preset bicycle quantity range, and the number of bicycles to be transported is placed in other parking frames, so that the number of bicycles placed in all parking frames in the sub-area does not exceed the preset bicycle quantity range.

[0083] After the management task is generated, the bicycle management system sends the management task and the image information corresponding to the management task to the blockchain, and stores the management task and the image information corresponding to the management task in the blockchain by content storage or hash storage, so that the bicycle management system and each worker can view all management tasks and image information corresponding to the management tasks, and the integrity, authenticity, security and transparency of the management tasks and image information corresponding to the management tasks can be ensured. On the other hand, only after the management task is generated, the image information corresponding to the management task can be retained for subsequent disputes. Therefore, if the image information needs to generate a management task, the image information and the management task are sent to the blockchain, and the image information and the management task are stored in the blockchain by content storage or hash storage. If the image information does not need to generate a management task, the image information is not sent to the blockchain for storage, which can reduce the workload of the blockchain. The management task and the image information have an association relationship.

[0084] In step S300, the management task is sent to the corresponding worker, the result information obtained by each worker according to the management task is obtained, the management task is ended according to the result information, and the result information is sent to the blockchain for storage.

[0085] Each worker obtains all management tasks sent by the bicycle management system to the blockchain through the blockchain, and receives the corresponding management task according to the parking frame number corresponding to the worker, so as to complete the management task. After each worker completes a management task, the worker takes a photo by using a related device to obtain result information including a result image and a parking frame number corresponding to the result image, and sends the result information to the blockchain, and makes the result information be chained by using a content notarization or a hash notarization method, so as to be stored in the blockchain. Due to the openness, decentralization and difficulty to tamper of the blockchain, the bicycle management system and each worker can view all the result information, and the integrity, authenticity, security and transparency of the result information storage can be ensured.

[0086] In addition, the bicycle management system can obtain the result information obtained by each worker according to the management task through the blockchain, and end the management task according to the result information. Figure 5 is a block diagram provided by the embodiment for ending the management task according to the result information. As shown in Figure 5 , ending the management task according to the result information includes the following steps:

[0087] Step S301, pre-processing the result image in each result information to obtain the placement pose of all bicycles in each result image, and sequentially judging whether each placement pose meets a preset reference pose. If yes, marking the result information as qualified result information, and generating a qualified end instruction according to the qualified result information to end the management task.

[0088] Step S302, if not, marking the result information as a defect result information, and generating a defect end instruction according to the defect result information to end the management task.

[0089] Each result image is cropped according to the parking frame to obtain a corresponding sub-result image, and then one of an LBP algorithm, a HOG feature extraction algorithm or a SIFT operator is used to obtain result feature information corresponding to each bicycle in the sub-result image. Each result feature information includes a plurality of sub-result feature points, and the front fork result feature point corresponding to the front fork and the middle shaft result feature point corresponding to the middle shaft are obtained from the plurality of sub-result feature points. The placement angle of the connecting line of the two feature points is obtained according to the front fork result feature point and the middle shaft result feature point. The above operation is performed on each result feature information to obtain the placement angle of all bicycles in each result image.

[0090] The preset reference angle is an angle at which a bicycle is placed in a parking frame. If the difference between the placement angle of all bicycles in a result image and the reference angle is within the allowable error range, it indicates that the placement angle of all bicycles in the result image meets the preset reference angle, i.e., all bicycles at the parking frame are normally parked in the parking frame, the staff completes the management task, the result information sent to the blockchain is qualified, the bicycle management system marks the result information as qualified result information through keyword technology, and generates a qualified end instruction according to the qualified result information, fills in the keyword in the management task according to the qualified end instruction, and ends the management task. Finally, the ended management task is sent to the blockchain for complete, true, safe and transparent recording.

[0091] Similarly, if the difference between the placement angle of at least one bicycle in a result image and the reference angle is not within the allowable error range, it indicates that the placement angle of not all bicycles in the result image meets the preset reference angle, i.e., not all bicycles at the parking frame are normally parked in the parking frame, the staff does not complete the management task, the result information sent to the blockchain has defects, the bicycle management system marks the result information as defective result information through keyword technology, and generates a defective end instruction according to the defective result information, fills in the keyword in the management task according to the defective end instruction, and ends the management task. Finally, the ended management task is sent to the blockchain for complete, true, safe and transparent recording.

[0092] After the staff completes the management task, the corresponding result information is sent to the blockchain, which can ensure that the result information is recorded completely, truly, safely and transparently, and also allows the bicycle management system to obtain the result information through the blockchain and determine whether the result information submitted by the staff is qualified by auditing the result information, thereby supervising the work of the staff.

[0093] Step S400, obtaining the management task and the corresponding result information from the blockchain for public display.

[0094] The step of obtaining the management task and the corresponding result information from the blockchain for public display includes the following steps:

[0095] Step S401, obtaining the current time and the historical time of the last public display, subtracting the historical time from the current time to obtain a time difference, determining whether the time difference falls within a preset time range, if it falls within, generating a reading instruction to obtain the management task and the corresponding result information stored within the time difference from the blockchain, and sending them to all terminal devices corresponding to the staff for public display.

[0096] Step S402, if not, continue to obtain the current time, and judge whether the time difference falls within the preset time range.

[0097] Even if the staff and bicycle management system can obtain the management task and the corresponding result information in real time through the blockchain, but due to the busy work of the staff, the staff can not check the management task and the corresponding result information in time. The management system sends the management task and the corresponding result information obtained in this period of time to all staff from the blockchain every fixed time interval, which not only ensures that all staff can receive the management task and the corresponding result information in time, but also reduces the workload of the staff in obtaining the management task and the corresponding result information through the blockchain.

[0098] In addition, the management task and the corresponding result information that have been publicized are marked after being sent to all staff for publicity. Among them, the management task corresponding to the result information marked in different batches is different, which facilitates marking only the management task and the corresponding result information without marking during the next publicity. In this way, even if the corresponding error operation of the management task and the result information occurs, the corresponding batch of management task and result information can be accurately found according to different marks, which is more convenient and faster than searching for information from all management tasks and result information.

[0099] A bicycle management system framework based on a blockchain includes an information acquisition module, a management task module, a task end module, and a publicity module.

[0100] The information acquisition module is configured to acquire image information representing the placement of bicycles at each parking frame, wherein each image information includes an actual image and a parking frame number corresponding to the actual image. The management task module is configured to determine whether a management task corresponding to each actual image needs to be generated according to each actual image, and if so, generate the management task according to the actual image, and send the image information and the management task to the blockchain for storage, wherein the management task and the image information have an association relationship. The task end module is configured to send the management task to the corresponding staff, acquire result information obtained by each staff according to the management task, end the management task according to the result information, and send the result information to the blockchain for storage. The publicity module is configured to acquire the management task and the corresponding result information from the blockchain for publicity.

[0101] The server includes a processor and a memory, wherein the memory stores a computer program capable of running on the processor, and the computer program is executed by the processor to implement a bicycle management method based on a blockchain provided by the present application.

[0102] The memory can be a ROM, or other type of static storage that can store static information and instructions; a random access memory, or other type of dynamic storage that can store information and instructions; an electrically erasable programmable read only memory, a read-only optical disc or other optical disc storage, a hard disc storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but not limited to. The memory can be an internal storage unit in some embodiments.

[0103] The processor can be a central processing unit, a general purpose processor, a data signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, transistor logic, a hardware component, or any combination thereof. The processor is configured to run program code stored in the memory or process data.

[0104] The processor and the memory are connected through a bus. The bus can include a path for transmitting information between the above components. The bus can be a peripheral component interconnect standard bus or an extended industry standard architecture bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc.

[0105] It can be understood in the art that the structure of the server does not constitute a limitation on the server, which can be a bus type structure or a star type structure. The server can include more or less components than shown, or combine certain components, or deploy different components. How other existing or future electronic devices are used should also be included in the protection scope and included herein by reference.

[0106] The embodiments of the present application provide a computer readable storage medium, which stores a computer program. When the computer program is run on a computer, the computer can execute the related content in the foregoing method embodiments.

[0107] It should be understood that although each step in the flowchart of the drawings is shown in sequence according to the direction of the arrow, these steps are not necessarily executed in sequence according to the direction of the arrow. Unless otherwise stated herein, the execution of these steps is not strictly limited in sequence, and can be executed in other order.

[0108] The above only describes some embodiments of the present application. It should be pointed out that for those skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, which should also be considered as the protection scope of the present application.

Claims

1. A blockchain-based bicycle management method, characterized in that, The method includes: Acquire image information representing the single-vehicle placement at each parking bay, wherein each image information includes an actual image and a parking bay number corresponding to the actual image; For each actual image, it is determined whether a management task corresponding to the actual image needs to be generated. If so, a management task is generated based on the actual image, and the image information and the management task are sent to the blockchain for storage. The management task and the image information are related. The management task is sent to the corresponding staff, the result information obtained by each staff member based on the management task is obtained, the management task is ended based on the result information, and the result information is sent to the blockchain for storage. Retrieve management tasks and corresponding results from the blockchain for public disclosure; The step of determining whether a management task corresponding to each actual image needs to be generated sequentially includes: Image processing is performed on each actual image to obtain the number of bicycles corresponding to each actual image, representing the number of bicycles placed, and the number of bicycles to be sorted, representing the number of bicycles to be sorted. Each number of bicycles corresponds to a unique parking frame number, and each number of bicycles to be sorted corresponds to a unique parking frame number. Sequentially determine whether the number of each bicycle falls within the preset bicycle number range corresponding to the parking frame number. If it does not fall within the range, the image information corresponding to the bicycle number needs to generate a management task. If the parking box number is zero, determine whether the number of sorting items corresponding to the parking box number is zero. If it is zero, the image information corresponding to the number of single vehicles does not need to generate a management task. If it is not zero, obtain the first parking frame number corresponding to the number of vehicles, obtain the second parking frame number belonging to the same sub-region as the first parking frame number, determine the number of management tasks to be completed corresponding to all second parking frame numbers based on the second parking frame number, and determine whether the number of tasks to be completed is less than the number of regular tasks. If it is less, the image information corresponding to the number of vehicles needs to generate management tasks. If the number is not less than the number of vehicles, then the image information corresponding to the number of vehicles does not need to generate a management task. The number of regular tasks refers to the number of tasks that staff can complete within a specified time when they are not under work pressure.

2. The method according to claim 1, characterized in that, Each management task includes at least one of a scheduling task and a sorting task. Generating management tasks based on the actual image includes: If the number of bicycles does not fall within the preset bicycle number range, the number of bicycles that need to be removed from the current parking frame is generated based on the number of bicycles and the preset bicycle number range, and a corresponding scheduling task is generated based on the number of bicycles removed. Determine whether the number of vehicles transported is greater than the number of vehicles to be sorted. If it is not greater, subtract the number of vehicles transported from the number of vehicles to be sorted to obtain the number of vehicles to be sorted. Generate a corresponding first sorting task based on the number of vehicles to be sorted. If the number of bicycles falls within the preset bicycle number range, a corresponding second sorting task is generated based on the sorting quantity corresponding to the bicycle number.

3. The method according to claim 2, characterized in that, The number of bicycles to be removed from the current parking space is generated based on the number of bicycles and the preset bicycle number range, including: Obtain the dispatch parking frame number corresponding to the number of vehicles in the current parking frame, and the backup parking frame number whose distance from the dispatch parking frame number does not exceed a preset distance; Obtain the number of support bicycles placed in the parking box corresponding to each support parking box number, and determine whether the number of all support bicycles does not fall within the preset bicycle number range corresponding to each support parking box number. If they do not fall within the preset bicycle number range, subtract the minimum value of the preset bicycle number range from the number of bicycles to obtain the number of bicycles transported away. If at least one vehicle falls into the parking space, obtain the median value of the preset range of bicycle numbers corresponding to the current parking space, and subtract the median value from the number of bicycles corresponding to the current parking space to obtain the number of vehicles removed.

4. The method according to claim 1, characterized in that, The result information includes a result image and a parking frame number corresponding to each result image. Ending the management task based on the result information includes: Feature extraction is performed on the result image in each result information to obtain the placement angle of all bicycles in each result image. It is then determined whether the placement angle of all bicycles in each result image meets the preset reference angle. If they do, the result information is marked as qualified result information, and a qualified end command is generated based on the qualified result information to end the management task. If at least one condition is not met, the result information is marked as defective result information, and a defect termination instruction is generated based on the defective result information to end the management task.

5. The method according to claim 4, characterized in that, Retrieving management tasks and corresponding results from the blockchain for public disclosure includes: Obtain the current time and the historical time of the last public announcement, subtract the historical time from the current time to obtain the time difference, determine whether the time difference falls within a preset time range, if it does, generate a read instruction to retrieve the management tasks and corresponding result information stored in the time difference from the blockchain, and send them to the terminals of all staff members for public announcement; If it does not fall within the time range, the current time is continuously obtained, and it is determined whether the time difference falls within the preset time range.

6. The method according to claim 5, characterized in that, After sending the information to all staff for public announcement, it also includes marking the management tasks that have been announced and the corresponding results.

7. A blockchain-based bicycle management system, characterized in that, The system includes: an information acquisition module, a task management module, a task completion module, and a public announcement module; wherein... The information acquisition module is used to acquire image information representing the placement of a single vehicle at each parking frame, wherein each image information includes an actual image and a parking frame number that corresponds one-to-one with the actual image; The management task module is used to determine whether a management task corresponding to each actual image needs to be generated in turn. If so, the management task is generated based on the actual image, and the image information and the management task are sent to the blockchain for storage. The management task and the image information are related. The step of determining whether a management task corresponding to each actual image needs to be generated sequentially includes: Image processing is performed on each actual image to obtain the number of bicycles corresponding to each actual image, representing the number of bicycles placed, and the number of bicycles to be sorted, representing the number of bicycles to be sorted. Each number of bicycles corresponds to a unique parking frame number, and each number of bicycles to be sorted corresponds to a unique parking frame number. Sequentially determine whether the number of each bicycle falls within the preset bicycle number range corresponding to the parking frame number. If it does not fall within the range, the image information corresponding to the bicycle number needs to generate a management task. If the parking box number is zero, determine whether the number of sorting items corresponding to the parking box number is zero. If it is zero, the image information corresponding to the number of single vehicles does not need to generate a management task. If it is not zero, obtain the first parking frame number corresponding to the number of vehicles, obtain the second parking frame number belonging to the same sub-region as the first parking frame number, determine the number of management tasks to be completed corresponding to all second parking frame numbers based on the second parking frame number, and determine whether the number of tasks to be completed is less than the number of regular tasks. If it is less, the image information corresponding to the number of vehicles needs to generate management tasks. If the number is not less than the number of vehicles, then the image information corresponding to the number of vehicles does not need to generate a management task. The number of regular tasks refers to the number of tasks that staff can complete within a specified time when they are not under work pressure. The task completion module is used to send the management task to the corresponding staff, obtain the result information obtained by each staff member according to the management task, end the management task according to the result information, and send the result information to the blockchain for storage. The public disclosure module is used to obtain management tasks and corresponding result information from the blockchain for public disclosure.

8. A server, characterized in that, The server includes a processor and a memory, wherein the memory stores a computer program that can run on the processor, and the computer program, when executed by the processor, implements a blockchain-based bicycle management method as described in any one of claims 1 to 6.

9. A computer-readable medium having a computer program stored thereon that can run on a processor, characterized in that, When the computer program is executed by the processor, it implements a blockchain-based bicycle management method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Shared bicycle management method and system

    CN111784444A

  • Scheduling management system for operating bikes and scheduling method

    CN113516869A