Shared bicycle management method based on visual recognition and wireless control
By combining visual recognition and wireless control methods, we collect and analyze images of the shared bicycle storage area, and combine wireless detection to correct the placement status, which solves the problem of insufficient visual recognition accuracy in the existing technology and improves the placement status of shared bicycles. identification accuracy and reliability.
Patent Information
- Application Number
- CN202211684580.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-27
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-12-27
AI Technical Summary
The existing technology relies on visual photography to fully and accurately identify the placement status of shared bicycles, which can easily lead to misjudgments and reduce the accuracy and reliability of identification.
Using a method based on visual recognition and wireless control, by collecting and analyzing images of the shared bicycle storage area, combined with wireless detection, a storage status record is constructed, and the placement status is corrected through appearance adjustment operations, and the dual method of image shooting and wireless detection is used for identification. Bicycle placement status.
It effectively reduces the probability of misjudgment, improves the accuracy and reliability of bicycle identification, and ensures accurate identification of placement status.
Smart Images

Figure CN117014811B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of visual monitoring, and in particular to a shared bicycle management method based on visual recognition and wireless control. Background Art
[0002] Shared bicycles provide convenience for people's travel, but in many cases, when shared bicycles are used, they are not correctly placed in the storage area, resulting in shared bicycles being placed irregularly and occupying the road. The existing technology can set up a camera to capture images of the shared bicycle storage area, so as to analyze and determine whether there are shared bicycles placed irregularly, and then notify the staff to go to the corresponding area to sort them out. However, the above method only relies on visual shooting, and cannot fully and accurately identify the placement status of each bicycle. It is easy to make misjudgments, which reduces the accuracy and reliability of shared bicycle identification. Summary of the invention
[0003] In view of the defects of the prior art, the present invention provides a shared bicycle management method based on visual recognition and wireless control, which collects and analyzes a first image of a shared bicycle storage area to obtain storage status information of each bicycle and an identification result of a normal placement state, thereby constructing a storage status record of all bicycles; according to the wireless detection results of all bicycles that are not currently placed in a normal state, instruct all bicycles that are not in a normal placement state to perform an appearance adjustment operation; collects and analyzes a second image of the shared bicycle storage area after the appearance adjustment operation to obtain position information of all bicycles that are not in a normal placement state, thereby correcting the storage status information, and broadcasting the corrected storage status record, which uses image shooting and wireless detection to identify the placement state of the bicycle, can correct the identification result of the bicycle placement state, effectively reduce the probability of misjudgment, and improve the accuracy and reliability of bicycle identification.
[0004] The present invention provides a shared bicycle management method based on visual recognition and wireless control, comprising the following steps:
[0005] Step S1, collecting a first image of a shared bicycle storage area, analyzing and processing the first image to obtain storage status information of each bicycle; identifying whether each bicycle is in a normal placement state according to the storage status information; and constructing a storage status record of all bicycles according to the storage status information and the identification result of the normal placement state;
[0006] Step S2, according to the wireless detection results of all bicycles that are not in a normal state, instructing all bicycles that are not in a normal state to perform appearance adjustment operations;
[0007] Step S3, collecting a second image of the shared bicycle storage area after the appearance adjustment operation, analyzing and processing the second image to obtain location information of all bicycles that are not in a normal state;
[0008] Step S4, modifying the storage status record according to the location information; and broadcasting the modified storage status record.
[0009] Furthermore, in step S1, a first image of the shared bicycle storage area is collected, and the first image is analyzed and processed to obtain storage status information of each bicycle, including:
[0010] A shared bicycle storage area is photographed by binocular to obtain a binocular image of the shared bicycle storage area; a first image of the shared bicycle storage area in three-dimensional form is obtained based on the binocular parallax of the binocular image; the first image is analyzed and processed to obtain storage position information of each bicycle, placement posture information of each bicycle and ground identification information of a single bicycle placement space pre-set in the shared bicycle storage area, which is used as the storage status information.
[0011] Further, in the step S1, according to the storage status information, identifying whether each bicycle is in a normal storage state includes:
[0012] Compare the storage location information of each bicycle with the ground mark information of a single bicycle placement space to determine whether the storage location of the bicycle is out of bounds relative to the ground mark of the bicycle placement space. If so, determine that the corresponding bicycle is not in a normal placement state; if not, determine that the corresponding bicycle is in a normal placement state;
[0013] The placement posture information of each bicycle is compared with the preset standard placement posture information to obtain a corresponding placement posture deviation. If the placement posture deviation is greater than the preset deviation threshold, it is determined that the corresponding bicycle is not in a normal placement state; otherwise, it is determined that the corresponding bicycle is in a normal placement state.
[0014] Furthermore, in the step S1, according to the storage status information and the recognition result of the normal placement state, a storage status record of all bicycles is constructed, including:
[0015] According to the storage location information of each bicycle and the identification result of whether each bicycle is in a normal placement state, a storage status record corresponding to the storage location of each bicycle in the shared bicycle storage area and whether it is placed normally is constructed.
[0016] Further, in step S2, according to the wireless detection results of all bicycles that are not in a normal state, all bicycles that are not in a normal state are instructed to perform appearance adjustment operations, including:
[0017] Each bicycle in the shared bicycle storage area is provided with a movable red flag pole device, and the movable red flag pole device has a Bluetooth control function. When the movable red flag pole device receives a Bluetooth control signal, it will switch to an upright state. When the movable red flag pole device does not receive a Bluetooth control signal, it will be in a dumping and recovery state. When it is determined that the bicycle is not in a normal state, the Bluetooth signals of bicycles around the bicycle that is not in a normal state are searched, and the Bluetooth signals obtained by the search are connected one by one in sequence, and a Bluetooth control signal is sent while connecting, so that the movable red flag pole device of the corresponding bicycle is switched to an upright state, and combined with the storage state record, it is determined whether the bicycle with the movable red flag pole device in an upright state is in a normal state. If it is in a normal state, the Bluetooth control signal is stopped from being sent to the current bicycle, and the Bluetooth signal of the next bicycle is connected and the Bluetooth control signal is sent in the original order; if it is not in a normal state, the name of the Bluetooth signal of the current bicycle is recorded, so as to continuously send Bluetooth control signals to the current bicycle, thereby instructing all bicycles that are not in a normal state to perform appearance adjustment operations, and the process is as follows:
[0018] Step S201: When it is determined that the bicycle is not in a normal state, the following formula (1) is used to identify the Bluetooth signal names of the bicycles around the bicycle that is not in a normal state, and the Bluetooth signal of the corresponding target bicycle is selected.
[0019]
[0020] In the above formula (1), X(a) represents the selection value of the surrounding a-th Bluetooth signal; D 16 (a) indicates the hexadecimal form corresponding to the name of the a-th Bluetooth signal in the surrounding area; len() indicates the number of bits of the hexadecimal data in the brackets; [ ] 10 Indicates converting the data in brackets into decimal form; % means remainder; {} 16 Indicates converting the data in brackets into hexadecimal form; D 16 [len(D 16 )] represents the len(D 16 ) The hexadecimal form corresponding to the name of the Bluetooth signal;
[0021] If X(a)=1, it means that the ath Bluetooth signal in the surrounding is the Bluetooth signal of the target bicycle;
[0022] If X(a)=0, it means that the ath Bluetooth signal in the surrounding is not the Bluetooth signal of the target bicycle;
[0023] All the Bluetooth signals of the selected target bicycles are screened out and recorded as i, which represents the Bluetooth signal of the i-th target bicycle;
[0024] Step S202, after connecting to the Bluetooth signals of the selected surrounding target bicycles and sending the Bluetooth control signal, the following formula (2) is used to selectively store and mark the corresponding connected Bluetooth signals according to whether each bicycle in the storage status record is in a normal state.
[0025] B(i)={[K(i)=1]|P[G(i),G0]} (2)
[0026] In the above formula (2), B(i) represents the selective storage and marking value of the Bluetooth signal of the i-th target bicycle; K(i) represents the detection value of the movable red flag pole device after the Bluetooth control signal is sent to the connected i-th target bicycle. If K(i)=1, it means that the movable red flag pole device is in an upright state; if K(i)=0, it means that the movable red flag pole device is in a dumped recovery state; G(i) represents the image data captured after connecting to the Bluetooth signal of the i-th target bicycle and sending the Bluetooth control signal; G0 represents the image data of the bicycle that is not in a normal state; P[G(i), G0] represents whether the bicycle with the movable red flag pole device in the upright state in the comparison image data G(i) and the bicycle that is not in a normal state in the image data G0 are the same bicycle. The judgment value is, if the bicycle with the movable red flag pole device in the image data G(i) in an upright state and the bicycle not in a normal state in the image data G0 are the same bicycle, then P[G(i), G0]=1; if the bicycle with the movable red flag pole device in the image data G(i) in an upright state and the bicycle not in a normal state in the image data G0 are not the same bicycle, then P[G(i), G0]=0; {[K(i)=1]|P[G(i), G0]} represents a conditional function, if the condition K(i)=1 is satisfied and P[G(i), G0]=1, the function value of the conditional function is 2, if the condition K(i)=1 is satisfied and P[G(i), G0]=0, the function value of the conditional function is 0, if the condition K(i)=1 is not satisfied, the function value of the conditional function is 1;
[0027] If B(i) = 2, the Bluetooth signal of the i-th target bicycle is stored, but no marking is required;
[0028] If B(i)=1, the Bluetooth signal of the i-th target bicycle is stored and marked once;
[0029] If B(i)=0, the Bluetooth signal of the i-th target bicycle is not stored and not marked;
[0030] Step S203, using the following formula (3), the marked Bluetooth signal is connected again for 5 times, and a Bluetooth control signal is sent after each connection. The marked Bluetooth signal is marked again according to whether the movable red flag pole device is erected or not identified in each connection.
[0031]
[0032] In the above formula (3), H j [B(i)=1] represents the control value for secondary marking the Bluetooth signal of the j-th target bicycle corresponding to B(i)=1 selected in step S202; j[B(i)=1] represents the Bluetooth signal of the j-th target bicycle corresponding to B(i)=1 selected in step S202; Q e {j[B(i)=1]} represents the number of times the movable red flag pole device is in an upright state after connecting the Bluetooth signal of the j-th target bicycle corresponding to B(i)=1 selected in step S202 for 5 times;
[0033] If H j [B(i)=1]=1, the control performs secondary marking on the Bluetooth signal of the j-th target bicycle corresponding to B(i)=1 selected in step S202, so that the bicycle corresponding to the Bluetooth signal is a faulty bicycle;
[0034] If H j [B(i)=1]=0, then the Bluetooth signal of the j-th target bicycle corresponding to B(i)=1 selected in step S202 is not marked again.
[0035] Furthermore, in step S3, collecting a second image of the shared bicycle storage area after the appearance adjustment operation includes:
[0036] The shared bicycle storage area after the appearance adjustment operation is scanned and photographed to obtain a second image of the entire range of the shared bicycle storage area.
[0037] Furthermore, in step S3, the second image is analyzed and processed to obtain the position information of all bicycles that are not in a normal state, including:
[0038] The outer contour information of each bicycle is extracted from the second image, and the position information of all bicycles that are not in a normal state in the shared bicycle storage area is obtained based on the outer contour information.
[0039] Further, in the step S4, the storage status record is modified according to the location information; and the modified storage status record is broadcasted, including:
[0040] According to the position information, the storage position of the bicycle that is not in a normal state in the storage state record is corrected; and the corrected storage state record is sent to the mobile terminal held by the staff in the form of a broadcast message.
[0041] Compared with the prior art, the shared bicycle management method based on visual recognition and wireless control collects and analyzes the first image of the shared bicycle storage area, obtains the storage status information of each bicycle and the recognition result of the normal placement state, thereby constructing a storage status record of all bicycles; according to the wireless detection results of all bicycles that are not in the normal placement state, instructs all bicycles that are not in the normal placement state to perform appearance adjustment operations; collects and analyzes the second image of the shared bicycle storage area after the appearance adjustment operation, obtains the position information of all bicycles that are not in the normal placement state, thereby correcting the storage status information, and broadcasting the corrected storage status record. It uses image shooting and wireless detection to identify the placement state of the bicycle, can correct the recognition result of the bicycle placement state, effectively reduce the probability of misjudgment, and improve the accuracy and reliability of bicycle recognition.
[0042] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.
[0043] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 A schematic flow chart of the shared bicycle management method based on visual recognition and wireless control provided by the present invention. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] See also Figure 1 , is a flow chart of a shared bicycle management method based on visual recognition and wireless control provided by an embodiment of the present invention. The shared bicycle management method based on visual recognition and wireless control comprises the following steps:
[0048] Step S1, collecting a first image of a shared bicycle storage area, analyzing and processing the first image to obtain storage status information of each bicycle; identifying whether each bicycle is in a normal placement state based on the storage status information; and constructing a storage status record of all bicycles based on the storage status information and the identification result of the normal placement state;
[0049] Step S2, according to the wireless detection results of all bicycles that are not in a normal state, instructing all bicycles that are not in a normal state to perform appearance adjustment operations;
[0050] Step S3, collecting a second image of the shared bicycle storage area after the appearance adjustment operation, analyzing and processing the second image to obtain position information of all bicycles that are not in a normal state;
[0051] Step S4, modifying the storage status record according to the location information; and broadcasting the modified storage status record.
[0052] The beneficial effects of the above technical solution are as follows: the shared bicycle management method based on visual recognition and wireless control collects and analyzes the first image of the shared bicycle storage area, obtains the storage status information of each bicycle and the recognition result of the normal placement state, thereby constructing a storage status record for all bicycles; according to the wireless detection results of all bicycles that are not in the normal placement state, instructs all bicycles that are not in the normal placement state to perform appearance adjustment operations; collects and analyzes the second image of the shared bicycle storage area after the appearance adjustment operation, obtains the position information of all bicycles that are not in the normal placement state, thereby correcting the storage status information, and broadcasting the corrected storage status record. It uses image shooting and wireless detection to identify the placement state of the bicycle, and can correct the recognition result of the bicycle placement state, effectively reducing the probability of misjudgment and improving the accuracy and reliability of bicycle recognition.
[0053] Preferably, in step S1, a first image of the shared bicycle storage area is collected, and the first image is analyzed and processed to obtain storage status information of each bicycle, including:
[0054] A binocular photograph is performed on the shared bicycle storage area to obtain a binocular image of the shared bicycle storage area; a first image of the shared bicycle storage area in three-dimensional form is obtained based on the binocular parallax of the binocular image; the first image is analyzed and processed to obtain storage position information of each bicycle, placement posture information of each bicycle and ground identification information of a single bicycle placement space pre-set in the shared bicycle storage area, which is used as the storage status information.
[0055] The beneficial effects of the above technical solution are: through the above method, binocular photography is performed on the shared bicycle storage area, the position and placement posture of each bicycle in the shared bicycle storage area can be identified and analyzed one by one, and the ground signs (such as ground marking lines) of the single bicycle placement space pre-set in the shared bicycle storage area can be located, so as to comprehensively identify and calibrate the storage status of each bicycle.
[0056] Preferably, in step S1, identifying whether each bicycle is in a normal state according to the storage state information includes:
[0057] Compare the storage location information of each bicycle with the ground mark information of a single bicycle placement space to determine whether the storage location of the bicycle is out of bounds relative to the ground mark of the bicycle placement space. If so, determine that the corresponding bicycle is not in a normal placement state; if not, determine that the corresponding bicycle is in a normal placement state;
[0058] The placement posture information of each bicycle is compared with the preset standard placement posture information to obtain a corresponding placement posture deviation. If the placement posture deviation is greater than the preset deviation threshold, it is determined that the corresponding bicycle is not in a normal placement state; otherwise, it is determined that the corresponding bicycle is in a normal placement state.
[0059] The beneficial effect of the above technical solution is: through the above method, it is possible to conduct a quantitative analysis on whether each bicycle is placed beyond the boundary and the placement posture deviation is too large, so as to ensure accurate identification of whether each bicycle is placed normally.
[0060] Preferably, in step S1, according to the storage status information and the recognition result of the normal placement state, a storage status record of all bicycles is constructed, including:
[0061] According to the storage location information of each bicycle and the identification result of whether each bicycle is in a normal placement state, a storage status record corresponding to the storage location of each bicycle in the shared bicycle storage area and whether it is placed normally is constructed.
[0062] The beneficial effect of the above technical solution is: through the above method, a storage status record corresponding to the storage position of each bicycle in the shared bicycle storage area and whether it is placed normally can be constructed, which is convenient for one-to-one storage status calibration of each bicycle.
[0063] Preferably, in step S2, according to the wireless detection results of all bicycles that are not in a normal state, instructing all bicycles that are not in a normal state to perform appearance adjustment operations, including:
[0064] Each bicycle in the shared bicycle storage area is provided with a movable red flag pole device, which has a Bluetooth control function. When the movable red flag pole device receives a Bluetooth control signal, it will switch to an upright state. When the movable red flag pole device does not receive a Bluetooth control signal, it will be in a dumping and recycling state. When it is determined that the bicycle is not in a normal state, the Bluetooth signals of bicycles around the bicycle that is not in a normal state are searched, and the Bluetooth signals obtained by the search are connected one by one in sequence, and a Bluetooth control signal is sent while connecting, so that the movable red flag pole device of the corresponding bicycle is switched to an upright state, and combined with the storage state record, it is determined whether the bicycle with the movable red flag pole device in an upright state is in a normal state. If it is in a normal state, the Bluetooth control signal is stopped from being sent to the current bicycle, and the Bluetooth signal of the next bicycle is connected and the Bluetooth control signal is sent in the original order; if it is not in a normal state, the name of the Bluetooth signal of the current bicycle is recorded, so as to continuously send Bluetooth control signals to the current bicycle, thereby instructing all bicycles that are not in a normal state to perform appearance adjustment operations, and the process is as follows:
[0065] Step S201: When it is determined that the bicycle is not in a normal state, the following formula (1) is used to identify the Bluetooth signal names of the bicycles around the bicycle that is not in a normal state, and the Bluetooth signal of the corresponding target bicycle is selected.
[0066]
[0067] In the above formula (1), X(a) represents the selection value of the surrounding a-th Bluetooth signal; D 16 (a) indicates the hexadecimal form corresponding to the name of the a-th Bluetooth signal in the surrounding area; len() indicates the number of bits of the hexadecimal data in the brackets; [ ] 10Indicates converting the data in brackets into decimal form; % means remainder; {} 16 Indicates converting the data in brackets into hexadecimal form; D 16 [len(D 16 )] represents the len(D 16 ) The hexadecimal form corresponding to the name of the Bluetooth signal;
[0068] If X(a)=1, it means that the ath Bluetooth signal in the surrounding is the Bluetooth signal of the target bicycle;
[0069] If X(a)=0, it means that the ath Bluetooth signal in the surrounding is not the Bluetooth signal of the target bicycle;
[0070] All the Bluetooth signals of the selected target bicycles are screened out and recorded as i, which represents the Bluetooth signal of the i-th target bicycle;
[0071] Step S202, after connecting to the Bluetooth signals of the selected surrounding target bicycles and sending the Bluetooth control signal, the following formula (2) is used to selectively store and mark the corresponding connected Bluetooth signals according to whether each bicycle in the storage status record is in a normal state.
[0072] B(i)={[K(i)=1]|P[G(i),G0]} (2)
[0073] In the above formula (2), B(i) represents the selective storage and marking value of the Bluetooth signal of the i-th target bicycle; K(i) represents the detection value of the movable red flag pole device after the Bluetooth control signal is sent to the connected i-th target bicycle. If K(i)=1, it means that the movable red flag pole device is in an upright state; if K(i)=0, it means that the movable red flag pole device is in a dumped recovery state; G(i) represents the image data captured after connecting to the Bluetooth signal of the i-th target bicycle and sending the Bluetooth control signal; G0 represents the image data of the bicycle that is not in a normal state; P[G(i), G0] represents whether the bicycle with the movable red flag pole device in the upright state in the comparison image data G(i) and the bicycle that is not in a normal state in the image data G0 are the same bicycle. The judgment value is, if the bicycle with the movable red flag pole device in the image data G(i) in an upright state and the bicycle not in a normal state in the image data G0 are the same bicycle, then P[G(i), G0]=1; if the bicycle with the movable red flag pole device in the image data G(i) in an upright state and the bicycle not in a normal state in the image data G0 are not the same bicycle, then P[G(i), G0]=0; {[K(i)=1]|P[G(i), G0]} represents a conditional function, if the condition K(i)=1 is satisfied and P[G(i), G0]=1, the function value of the conditional function is 2, if the condition K(i)=1 is satisfied and P[G(i), G0]=0, the function value of the conditional function is 0, if the condition K(i)=1 is not satisfied, the function value of the conditional function is 1;
[0074] If B(i) = 2, the Bluetooth signal of the i-th target bicycle is stored, but no marking is required;
[0075] If B(i)=1, the Bluetooth signal of the i-th target bicycle is stored and marked once;
[0076] If B(i)=0, the Bluetooth signal of the i-th target bicycle is not stored and not marked;
[0077] Step S203, using the following formula (3), the marked Bluetooth signal is connected again for 5 times, and a Bluetooth control signal is sent after each connection. The marked Bluetooth signal is marked again according to whether the movable red flag pole device is erected or not identified in each connection.
[0078]
[0079] In the above formula (3), H j[B(i)=1] represents the control value for secondary marking the Bluetooth signal of the j-th target bicycle corresponding to B(i)=1 selected in step S202; j[B(i)=1] represents the Bluetooth signal of the j-th target bicycle corresponding to B(i)=1 selected in step S202; Q e {j[B(i)=1]} represents the number of times the movable red flag pole device is in an upright state after connecting the Bluetooth signal of the j-th target bicycle corresponding to B(i)=1 selected in step S202 for 5 times;
[0080] If H j [B(i)=1]=1, the control performs secondary marking on the Bluetooth signal of the j-th target bicycle corresponding to B(i)=1 selected in step S202, so that the bicycle corresponding to the Bluetooth signal is a faulty bicycle;
[0081] If H j [B(i)=1]=0, then the Bluetooth signal of the j-th target bicycle corresponding to B(i)=1 selected in step S202 is not marked again.
[0082] The beneficial effects of the above technical solution are as follows: using the above formula (1), the Bluetooth signal names of bicycles around the bicycle that is not in a normal state are identified, and the Bluetooth signal of the corresponding target bicycle is selected, thereby ensuring the accuracy and reliability of the bicycle Bluetooth calibration; then using the above formula (2), according to whether each bicycle in the storage status record is in a normal state, the corresponding connected Bluetooth signal is selectively stored and marked, so as to facilitate the subsequent calibration of the faulty and unreasonable bicycles; finally, using the above formula (3), the marked Bluetooth signal is connected again for 5 times, and a Bluetooth control signal is sent after each connection. According to whether the movable red flag pole device identified in each connection is erected or not, the marked Bluetooth signal is marked again, thereby distinguishing the fault type to facilitate subsequent maintenance by the staff.
[0083] Preferably, in step S3, collecting the second image of the shared bicycle storage area after the appearance adjustment operation includes:
[0084] The shared bicycle storage area after the appearance adjustment operation is scanned and photographed to obtain a second image of the entire range of the shared bicycle storage area.
[0085] The beneficial effect of the above technical solution is: through the above method, the shared bicycle storage area after the appearance adjustment operation is scanned and photographed, and the shared bicycle storage area can be re-identified and determined.
[0086] Preferably, in step S3, the second image is analyzed and processed to obtain the position information of all bicycles that are not in a normal state, including:
[0087] The shape outline information of each bicycle is extracted from the second image, and the position information of all bicycles that are not in a normal state in the shared bicycle storage area is obtained based on the shape outline information.
[0088] The beneficial effect of the above technical solution is: through the above method, the shape contour information of each bicycle is extracted from the second image, and all position information that is not in a normal state can be re-calibrated, which is convenient for subsequent accurate correction of the storage status record.
[0089] Preferably, in step S4, the storage status record is modified according to the location information; and the modified storage status record is broadcasted, including:
[0090] According to the location information, the storage location of the bicycle that is not in a normal state in the storage status record is corrected; and the corrected storage status record is sent to the mobile terminal held by the staff in the form of a broadcast message.
[0091] The beneficial effect of the above technical solution is: through the above method, the storage position of the bicycle that is not in a normal state in the storage status record is corrected according to the position information, which can further improve the information accuracy of the storage status record and ensure that the staff can accurately repair and correct the corresponding bicycle after receiving the storage status record.
[0092] It can be seen from the contents of the above embodiments that the shared bicycle management method based on visual recognition and wireless control collects and analyzes the first image of the shared bicycle storage area to obtain the storage status information of each bicycle and the recognition result of the normal placement state, thereby constructing a storage status record for all bicycles; according to the wireless detection results of all bicycles that are not in the normal placement state, all bicycles that are not in the normal placement state are instructed to perform appearance adjustment operations; the second image of the shared bicycle storage area after the appearance adjustment operation is collected and analyzed to obtain the position information of all bicycles that are not in the normal placement state, thereby correcting the storage status information, and broadcasting the corrected storage status record. It uses image shooting and wireless detection to identify the placement state of the bicycle, and can correct the recognition result of the bicycle placement state, effectively reduce the probability of misjudgment, and improve the accuracy and reliability of bicycle recognition.
[0093] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A shared bicycle management method based on visual recognition and wireless control, characterized in that: The steps include: Step S1, collecting a first image of a shared bicycle storage area, analyzing and processing the first image to obtain storage status information of each bicycle; and identifying whether each bicycle is in a normal state according to the storage status information; Constructing a storage status record of all bicycles according to the storage status information and the recognition result of the normal placement status; Step S2, according to the wireless detection results of all bicycles that are not in a normal state, instructing all bicycles that are not in a normal state to perform appearance adjustment operations, which includes: Each bicycle in the shared bicycle storage area is provided with a movable red flag pole device, and the movable red flag pole device has a Bluetooth control function. When the movable red flag pole device receives a Bluetooth control signal, it will switch to an upright state. When the movable red flag pole device does not receive a Bluetooth control signal, it will be in a dumping and recovery state. When it is determined that the bicycle is not in a normal state, the Bluetooth signals of bicycles around the bicycle that is not in a normal state are searched, and the Bluetooth signals obtained by the search are connected one by one in sequence, and a Bluetooth control signal is sent while connecting, so that the movable red flag pole device of the corresponding bicycle is switched to an upright state, and combined with the storage state record, it is determined whether the bicycle with the movable red flag pole device in an upright state is in a normal state. If it is in a normal state, the Bluetooth control signal is stopped from being sent to the current bicycle, and the Bluetooth signal of the next bicycle is connected and the Bluetooth control signal is sent in the original order; if it is not in a normal state, the name of the Bluetooth signal of the current bicycle is recorded, so as to continuously send Bluetooth control signals to the current bicycle, thereby instructing all bicycles that are not in a normal state to perform appearance adjustment operations, and the process is as follows: Step S201: When it is determined that the bicycle is not in a normal state, the following formula (1) is used to identify the Bluetooth signal names of the bicycles around the bicycle that is not in a normal state, and the Bluetooth signal of the corresponding target bicycle is selected. (1) In the above formula (1), Indicates the surrounding The selection value of a Bluetooth signal; Indicates the surrounding The hexadecimal form corresponding to the name of the Bluetooth signal; Indicates the number of digits of the hexadecimal data in brackets; [ ] 10 Indicates converting the data in brackets into decimal form; Indicates remainder; {} 16 Indicates converting the data in brackets into hexadecimal form; Indicates the surrounding The hexadecimal form corresponding to the name of the Bluetooth signal; like , indicating the surrounding The Bluetooth signal is the Bluetooth signal of the target bicycle; like , indicating the surrounding The Bluetooth signal is not the Bluetooth signal of the target bicycle; Filter out all the Bluetooth signals of the target bicycle and record them as , indicating the The Bluetooth signal of the target bicycle; Step S202, after connecting to the Bluetooth signals of the selected surrounding target bicycles and sending the Bluetooth control signal, the following formula (2) is used to selectively store and mark the corresponding connected Bluetooth signals according to whether each bicycle in the storage status record is in a normal state. (2) In the above formula (2), Indicates Selective storage and tagging of Bluetooth signals of target bicycles; Indicates the first After the Bluetooth of the target bicycle sends a control signal, the detection value of the movable red flag benchmark device, if , indicating that the movable red flag pole equipment is in an erected state. , indicating that the movable red flag pole equipment is in the dumping and recycling state; Indicates that the connection The image data captured after the Bluetooth signal of the target bicycle is detected and the Bluetooth control signal is sent; Indicates image data of a bicycle that is not placed normally; Represents the comparison image data The movable red flag pole device is in an upright position and the image data The judgment value of whether the bicycles that are not placed normally are the same bicycle. Bicycle and image data of movable red flag pole device in an upright state If the bicycles that are not in the normal state are the same bicycle, then , if the image data The movable red flag pole device is in an upright position and the image data The bicycles that are not in the normal state are not the same bicycles. ; Represents a conditional function, if it satisfies Condition and When , the function value of the conditional function is 2, if it satisfies Condition and When the conditional function is 0, if it does not meet When the condition is, the function value of the condition function is 1; like , then for The Bluetooth signal of each target bicycle is stored, but no tagging is required; like , then for The Bluetooth signal of each target bicycle is stored and marked once; like , then it is not correct The Bluetooth signal of each target bicycle is stored and not marked; Step S203, using the following formula (3), the marked Bluetooth signal is connected again for 5 times, and a Bluetooth control signal is sent after each connection. The marked Bluetooth signal is marked again according to whether the movable red flag pole device is erected or not identified in each connection. (3) In the above formula (3), Indicates the selection of step S202 The corresponding The control value of secondary tagging of the Bluetooth signal of the target bicycle; Indicates the selected step S202 The corresponding The Bluetooth signal of the target bicycle; Indicates the selected step S202 The corresponding The number of times the movable red flag pole device is identified to be in an upright state after the Bluetooth signal of the target bicycle is connected five times; like , then the control is performed on the selected The corresponding The Bluetooth signal of a target bicycle is secondary marked, so that the bicycle corresponding to the Bluetooth signal is a faulty bicycle; like , then the selected in step S202 is not The corresponding The Bluetooth signal of each target bicycle is marked twice; Step S3, collecting a second image of the shared bicycle storage area after the appearance adjustment operation, analyzing and processing the second image to obtain location information of all bicycles that are not in a normal state; Step S4, modifying the storage status record according to the location information; and broadcasting the modified storage status record.
2. The shared bicycle management method based on visual recognition and wireless control as claimed in claim 1, characterized in that: In the step S1, a first image of the shared bicycle storage area is collected, and the first image is analyzed and processed to obtain storage status information of each bicycle, including: A shared bicycle storage area is photographed by binocular to obtain a binocular image of the shared bicycle storage area; a first image of the shared bicycle storage area in three-dimensional form is obtained based on the binocular parallax of the binocular image; the first image is analyzed and processed to obtain storage position information of each bicycle, placement posture information of each bicycle and ground identification information of a single bicycle placement space pre-set in the shared bicycle storage area, which is used as the storage status information.
3. The shared bicycle management method based on visual recognition and wireless control as claimed in claim 2, characterized in that: In the step S1, according to the storage status information, identifying whether each bicycle is in a normal storage state includes: Compare the storage location information of each bicycle with the ground mark information of a single bicycle placement space to determine whether the storage location of the bicycle is out of bounds relative to the ground mark of the bicycle placement space. If so, determine that the corresponding bicycle is not in a normal placement state; if not, determine that the corresponding bicycle is in a normal placement state; The placement posture information of each bicycle is compared with the preset standard placement posture information to obtain a corresponding placement posture deviation. If the placement posture deviation is greater than the preset deviation threshold, it is determined that the corresponding bicycle is not in a normal placement state; otherwise, it is determined that the corresponding bicycle is in a normal placement state.
4. The shared bicycle management method based on visual recognition and wireless control as claimed in claim 3 is characterized by: In the step S1, according to the storage status information and the recognition result of the normal placement state, a storage status record of all bicycles is constructed, including: According to the storage location information of each bicycle and the identification result of whether each bicycle is in a normal placement state, a storage status record corresponding to the storage location of each bicycle in the shared bicycle storage area and whether it is placed normally is constructed.
5. The shared bicycle management method based on visual recognition and wireless control as claimed in claim 4, characterized in that: In step S3, collecting a second image of the shared bicycle storage area after the appearance adjustment operation includes: The shared bicycle storage area after the appearance adjustment operation is scanned and photographed to obtain a second image of the entire range of the shared bicycle storage area.
6. The shared bicycle management method based on visual recognition and wireless control as claimed in claim 5, characterized in that: In step S3, the second image is analyzed and processed to obtain the position information of all bicycles that are not in a normal state, including: The outer contour information of each bicycle is extracted from the second image, and the position information of all bicycles that are not in a normal state in the shared bicycle storage area is obtained based on the outer contour information.
7. The shared bicycle management method based on visual recognition and wireless control as claimed in claim 6, characterized in that: In the step S4, the storage status record is modified according to the location information; The corrected storage status record is broadcast and sent, including: According to the position information, the storage position of the bicycle that is not in a normal state in the storage state record is corrected; The corrected storage status record is sent to the mobile terminal held by the staff in the form of a broadcast message.
