Method and system for returning shared electric bicycle
By taking images of car barcodes and parking lines, visual recognition technology is used to judge the relationship between car barcodes and parking lines, the problems of low positioning accuracy and position drift of shared electric motorcycles are solved, efficient return management is achieved, and user experience is improved and parking efficiency.
Patent Information
- Application Number
- CN202410983633.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-11-12
AI Technical Summary
The positioning accuracy of existing shared electric motorcycle return management technology is not high, and position drifting is prone to decline, resulting in a decline in user experience and it is difficult to meet parking requirements. The existing auxiliary equipment cannot effectively solve the problem of random parking.
By taking images of the on-board barcode and parking line, visual recognition technology is used to judge the distance and angle between the on-board barcode and the parking line, and combining the matching information of the on-board barcode and shared electric motorcycle, we can determine whether the return conditions are met, and efficient return management is achieved.
It improves the positioning accuracy of shared electric motorcycles, reduces positioning errors, improves the efficiency of return management and user experience, and ensures the compliant parking of shared electric motorcycles.
Smart Images

Figure CN118940778A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of shared electric motorcycle management, and in particular to a method and system for returning a shared electric motorcycle. Background Art
[0002] Shared electric bikes have entered cities of all sizes, bringing convenience to travelers and solving the last mile problem. Shared electric bikes have become an important means of transportation for short-distance travel in cities.
[0003] But while it brings convenience, it also brings some troubles, such as users not parking their bikes within the designated electronic fence. The random parking of shared electric bikes has become a key target for rectification.
[0004] Vehicle return management has become an important management method for parking regulation. At present, the position between the vehicle and the parking area is located through the client or vehicle-mounted positioning technology, such as GPS positioning, to determine whether the user's vehicle return behavior and results comply with relevant regulations. However, the existing positioning technology, on the one hand, has insufficient positioning accuracy or precision, and on the other hand, position drift occurs during the positioning process, making it difficult to meet the actual requirements of parking and causing a decline in user experience. Equipment for assisting parking has gradually appeared on the market: Bluetooth ground nails, smart foot supports, RFID landmarks and cameras, etc., but they still cannot meet management needs.
[0005] At present, legal parking mainly relies on the active cooperation of riders and manual secondary parking of shared electric motorcycles after they are returned. Therefore, it is necessary to design a method to effectively manage the return behavior and the return location. Summary of the invention
[0006] In view of the above-mentioned technical problems existing in the prior art, the present invention provides a method and system for returning a shared electric motorcycle to effectively manage the return behavior of a shared electric motorcycle.
[0007] The present invention discloses a method for returning a shared electric motorcycle, comprising the following steps: obtaining an image having both an on-board barcode and a parking line; judging whether the following first condition is met: the distance between the on-board barcode and the parking line is less than a first threshold, and the angle between the on-board barcode and the parking line is less than a second threshold; if the conditions are met and the on-board barcode matches the shared electric motorcycle, the shared electric motorcycle is returned successfully.
[0008] Preferably, the method for obtaining the distance between the vehicle-mounted barcode and the parking line includes:
[0009] Obtaining a first outline of the vehicle-mounted barcode and a second outline of the stop line in the image;
[0010] Determining whether the first outline and the second outline are clear;
[0011] If clear, obtain a plurality of second parallel long sides of the second contour;
[0012] Calculate the distance from the first point of the first contour to the second parallel long side;
[0013] The distance between the vehicle-mounted barcode and the parking line is obtained according to the distance.
[0014] Preferably, the first point is the center point of the first contour;
[0015] The distance between the vehicle-mounted barcode and the parking line is calculated by the average value of the distance between the first point and the second parallel long side.
[0016] Preferably, the method for obtaining the angle between the vehicle-mounted barcode and the parking line includes: obtaining the first parallel side of the first contour; calculating the first angle between the first parallel side and the second parallel long side, and using the first angle as the angle between the vehicle-mounted barcode and the parking line.
[0017] Preferably, the first condition also includes that the shared motorcycle is facing the road,
[0018] Methods for determining whether a shared electric motorcycle is facing the road include:
[0019] Obtaining a second parallel side of the first contour, wherein the second parallel side is perpendicular to the first parallel side;
[0020] Get the direction of the road;
[0021] Determining whether the posting direction of the second parallel edge is toward the road;
[0022] If the shared electric motorcycle is facing the road.
[0023] Preferably, the method for obtaining the road direction includes:
[0024] The parking line is provided with a second contour and a third contour, and the distance between the two third parallel long sides of the third contour is greater than or less than the distance between the two second parallel long sides of the second contour;
[0025] Obtaining a perpendicular line from the third parallel long side to the second parallel long side;
[0026] According to the vertical line, obtain the direction of the road;
[0027] Or the direction of the road can be obtained by positioning the shared electric motorcycle or the client and the road.
[0028] Preferably, the method for obtaining the posting direction includes:
[0029] Respectively obtain at least two inner frames of the vehicle-mounted barcode, wherein the two inner frames include: a barcode inner frame and a digital inner frame, or a first color frame and a second color frame;
[0030] Get the posting direction based on the two inner borders.
[0031] Preferably, the image is captured by a user's client, and the client is provided with a first positioning frame for capturing a vehicle-mounted barcode and a second positioning frame for capturing a parking line;
[0032] The on-board barcode is posted on the front pedal of the shared electric motorcycle.
[0033] The present invention also provides a system for implementing the above-mentioned shared electric motorcycle returning method, comprising an acquisition module, a detection module, an identification module and a return module, wherein the acquisition module is used to obtain an image having both a vehicle-mounted barcode and a parking line; the detection module is used to detect the distance between the vehicle-mounted barcode and the parking line, as well as the angle between the vehicle-mounted barcode and the parking line, and to determine whether a first condition is met; if the first condition is met, the vehicle-mounted barcode is identified by the identification module; if the vehicle-mounted barcode matches the shared electric motorcycle, the shared electric motorcycle is returned by the return module.
[0034] Preferably, the system further comprises a notification module, a client and a server.
[0035] The acquisition module is deployed on the client;
[0036] The notification module, detection module, identification module and vehicle return module are deployed on the server side;
[0037] The acquisition module also provides a first positioning frame for photographing the vehicle-mounted barcode and a second positioning frame for photographing the parking line;
[0038] The notification module is used to send notification information to the client after the car is returned successfully; and send error information and error instructions to the client after the car is returned unsuccessfully.
[0039] Compared with the prior art, the beneficial effects of the present invention are: by taking images of the on-board barcode and the parking line, the positional relationship between the on-board barcode and the parking line is determined, and the positional relationship between the shared electric motorcycle and the parking line is calculated, thereby achieving efficient positioning of the shared electric motorcycle, improving the management efficiency of the return and parking of the shared electric motorcycle, and improving the user experience of returning the motorcycle. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 is a flow chart of the method for returning a shared electric motorcycle of the present invention;
[0041] Figure 2 is a distribution diagram of the first contour and the second contour;
[0042] Figure 3 It is a system logic block diagram of the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0044] The present invention is further described in detail below in conjunction with the accompanying drawings:
[0045] A first aspect of the present invention provides a method for returning a shared electric motorcycle. Figure 1 As shown, the following steps are included:
[0046] Step 101: Obtain an image having both the vehicle barcode and the parking line.
[0047] The image can be captured by a camera, for example, by a user's mobile phone or a vehicle-mounted camera, etc. The image should have clear vehicle barcodes and parking lines.
[0048] Step 102: Determine whether the following first condition is met: the distance between the vehicle barcode and the stop line is less than a first threshold, the angle between the vehicle barcode and the stop line is less than a second threshold, or the vehicle barcode is parallel to the stop line.
[0049] If the conditions are met, execute step 103: identify the vehicle-mounted barcode.
[0050] If not satisfied, execute step 106.
[0051] Step 104: Determine whether the on-board barcode matches the shared electric motorcycle.
[0052] The specific code of the shared electric motorcycle rented by the user can be obtained through the client. When the specific code matches the on-board barcode, the shared electric motorcycle is considered correct and no other expired or erroneous images are used.
[0053] If there is a match, execute step 105: the shared electric motorcycle is returned successfully.
[0054] If the return is successful, the message of successful return is sent to the user's camera, the status of the shared motorcycle is updated on the server, and the shared motorcycle is locked.
[0055] If there is no match, go to step 106: return of the shared electric motorcycle fails.
[0056] If the vehicle return fails, a failure message is pushed to the user, and a failure prompt is pushed to instruct the user to take the correct photo and then execute steps 101-106 again until the vehicle return is successful.
[0057] By taking images of the vehicle barcode and parking lines, the positional relationship between the vehicle barcode and the parking lines can be determined, and the positional relationship between the shared motorcycle and the parking lines can be inferred, achieving efficient positioning of the shared motorcycle, with a positioning error of 10-30cm, improving the management efficiency of shared motorcycle return and parking, and improving the user experience of returning the motorcycle. Since the posting location of the vehicle barcode is known, the positional relationship between the shared motorcycle and the parking lines can be inferred by calculation or testing.
[0058] In step 102: the method for obtaining the distance between the shared electric motorcycle and the parking line includes:
[0059] Step 201: Obtain features of the image based on visual recognition technology, the features including a first outline of the vehicle barcode and a second outline of the parking line. Visual recognition technology is a prior art and can be recognized using existing tools on the market, which will not be described in detail in the present invention.
[0060] Step 202: Obtain a first outline of the vehicle-mounted barcode and a second outline of the stop line in the image.
[0061] Step 203: Determine whether the first outline and the second outline are clear.
[0062] If it is clear, execute step 204: obtain a plurality of second parallel long sides of the second contour.
[0063] If the first contour can have two second parallel long sides, it can also have four second parallel long sides.
[0064] Step 205: Calculate the distance from the first point of the first contour to the second parallel long sides, wherein the first point may be a marking point on the first contour, or a center point of the first contour.
[0065] Step 206: Obtain the distance between the shared electric motorcycle and the parking line based on the distance.
[0066] The distance between the shared electric motorcycle and the parking line can be calculated by the average value of the distance between the first point and the second parallel long side, but is not limited to this.
[0067] In step 102, the method for obtaining the angle between the shared electric motorcycle and the parking line includes:
[0068] Step 211: Obtain the first parallel sides of the first contour.
[0069] Step 212: Calculate a first angle between the first parallel side or its extension and the second parallel long side.
[0070] Step 213: Use the first angle as the angle between the shared electric motorcycle and the parking line.
[0071] In step 102, the first condition may further include that the shared electric motorcycle is facing the road, and the method for determining that the shared electric motorcycle is facing the road includes:
[0072] Step 221: Obtain a second parallel side of the first contour, wherein the second parallel side is perpendicular to the first parallel side, that is, the first contour is a rectangle, but not limited thereto.
[0073] Step 222: Get the direction of the road.
[0074] Step 223: Determine whether the posting direction of the second parallel edge is toward the road.
[0075] Among them, the posting direction reflects the direction of the shared electric motorcycle or the front of the vehicle. When the angle between the posting direction of the second parallel edge and the direction of the road is less than the third threshold, it is judged to be facing the road.
[0076] If yes, execute step 224: the shared electric motorcycle faces the road.
[0077] If not, execute step 224: the shared electric motorcycle faces away from the road.
[0078] A method for obtaining a road direction includes:
[0079] Step 231: The parking line is provided with a second contour and a third contour, and the spacing between two third parallel long sides of the third contour is greater than or less than the spacing between two second parallel long sides of the second contour.
[0080] Step 232: Obtain a perpendicular line from the third parallel long side to the second parallel long side.
[0081] Step 233: Obtain the direction of the road according to the vertical line.
[0082] The second method of obtaining the road direction is to obtain the road direction through the positioning of the shared motorcycle or the client and the road. The more specific steps are:
[0083] Step 241: Obtain the positioning of the shared electric motorcycle or the client and the road.
[0084] Step 242: Obtain the direction of the road through the second parallel long side and the positioning.
[0085] For example, a vertical line is drawn on the second parallel long side, and the side of the vertical line facing the road is the direction of the road. That is, the direction of the road is identified by the positioning of the parking line and the road.
[0086] In step 223, the method for obtaining the posting direction includes:
[0087] Step 251: Obtain at least two inner frames of the vehicle-mounted barcode.
[0088] Step 252: Determine the posting direction according to the two inner frames.
[0089] The first specific vehicle-mounted barcode includes a barcode and a number, and the first outline has two inner frames: a barcode frame and a number frame. It can be determined that the direction of the preset number frame toward the barcode frame is the posting direction, that is, the direction of the front of the vehicle. Or the direction of the barcode frame toward the number frame is the posting direction. The barcode of the shared electric motorcycle can be identified by the number.
[0090] Figure 2 The diagram generally shows a first outline 21 of the vehicle-mounted barcode posted on the pedal 1 , and a second outline 31 and a third outline 32 of the parking line, wherein the first outline 21 includes at least two inner frames 22 , the second outline 31 has a second parallel long side 33 , and the third outline 32 has a third parallel long side 34 . Figure 2 Also shown is a first positioning frame 41 for photographing the vehicle-mounted barcode and a second positioning frame 42 for photographing the parking line. However, in actual use, the first positioning frame and the second positioning frame are closer to the first contour and the second contour.
[0091] The second specific vehicle barcode includes at least two color frames, and the posting direction can be obtained according to the orientation between the two color frames. More specifically, if there are four sequentially connected frames of red, green, blue, and yellow, the orientation of the shared electric motorcycle can be determined by the orientation of the red frame and the green frame. Shared electric motorcycles can be identified and matched according to the color code composed of each color frame. Compared with digital barcodes, visual technology can more conveniently identify color codes.
[0092] When returning the bike, the user parks the shared motorcycle at the parking line / indicator line on the ground (green or blue). The parking line is usually designed with a wide line and a narrow line at intervals. The four-color barcode at the pedal of the bike must overlap with the parking line on the ground. The user uses the mobile phone client to take a photo of the four-color barcode area and upload it to the server. The server will analyze whether the captured image meets the requirements. If the four-color barcode and the yellow line on the ground do not overlap, are blurred, the angle is too large, the direction of the front of the vehicle is incorrect, or the vehicle is not returned at a 90-degree angle, the system will prompt the user that the vehicle return has failed. If it is determined that the user took a photo of another parked shared motorcycle, the server will also prompt the user that the vehicle return has failed.
[0093] In a more specific embodiment, the image is captured by a user's client, and the client is provided with a first positioning frame for capturing the vehicle barcode and a second positioning frame for capturing the parking line. The vehicle barcode can be posted on the front pedal of the shared electric motorcycle, which is arranged between the front of the motorcycle and the seat, closer to the ground, and easy to capture, and the angle deviation of the capture is small, but not limited to this.
[0094] The present invention can obtain the orientation of the shared motorcycle and the road through the relationship between the on-board barcode and the parking line. It is usually required that the shared motorcycle is parked facing the road. However, it is not limited to this, and it can also be adjusted to park the shared motorcycle with its back to the road according to the needs of the parking area.
[0095] The present invention also provides a system for implementing the above-mentioned shared electric motorcycle return method, such as Figure 3 As shown, it includes: a collection module 11, a detection module 12, a recognition module 13 and a vehicle return module 14,
[0096] The acquisition module 11 is used to obtain an image having both the vehicle barcode and the parking line;
[0097] The detection module 12 is used to detect the distance between the vehicle barcode and the stop line, as well as the angle between the vehicle barcode and the stop line, and determine whether the first condition is met;
[0098] If the first condition is met, the vehicle-mounted barcode is identified by the identification module;
[0099] If the on-board barcode matches the shared electric motorcycle, the shared electric motorcycle is returned through the return module 14 .
[0100] The system of the present invention further comprises a notification module 15, a client 17 and a server 18.
[0101] The acquisition module 11 is deployed on the client 17;
[0102] The notification module 15, the detection module 12, the identification module 13 and the vehicle return module 14 are deployed on the server 18;
[0103] The acquisition module 11 also provides a first positioning frame for photographing the vehicle-mounted barcode and a second positioning frame for photographing the parking line;
[0104] The notification module 15 is used to send notification information to the client after the car is returned successfully; and send error information and error instructions to the client after the car is returned unsuccessfully. After the car is returned successfully, the user payment interface can also be entered; for users who have not paid, the information of successful return of the car or itinerary information is pushed.
[0105] The present invention locates the vehicle and the parking area through the images of the parking line and the vehicle barcode. The parking angle, distance and direction of the shared electric motorcycle relative to the parking line can be effectively calculated. The problem of random parking of shared electric motorcycles caused by positioning drift and positioning interference can be effectively avoided.
[0106] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for returning a shared electric motorcycle, characterized in that: The following steps are involved: Obtain an image with both the vehicle barcode and the parking line; Determine whether the following first condition is met: the distance between the vehicle barcode and the stop line is less than a first threshold, and the angle between the vehicle barcode and the stop line is less than a second threshold; If the conditions are met and the onboard barcode matches the shared electric motorcycle, the shared electric motorcycle is returned successfully.
2. The method according to claim 1, characterized in that Methods for obtaining the distance between the vehicle barcode and the parking line include: Obtaining a first outline of the vehicle-mounted barcode and a second outline of the stop line in the image; Determining whether the first outline and the second outline are clear; If clear, obtain a plurality of second parallel long sides of the second contour; Calculate the distance from the first point of the first contour to the second parallel long side; The distance between the vehicle-mounted barcode and the parking line is obtained according to the distance.
3. The method according to claim 2, characterized in that The first point is the center point of the first contour; The distance between the vehicle-mounted barcode and the parking line is calculated by the average value of the distance between the first point and the second parallel long side.
4. The method according to claim 2, characterized in that: Methods for obtaining the angle between the vehicle-mounted barcode and the parking line include: Obtaining first parallel sides of the first contour; Calculate the first angle between the first parallel side and the second parallel long side, The first angle is used as the angle between the vehicle-mounted barcode and the parking line.
5. The method according to claim 4, characterized in that The first condition also includes that the shared motorcycle is facing the road. Methods for determining whether a shared electric motorcycle is facing the road include: Obtaining a second parallel side of the first contour, wherein the second parallel side is perpendicular to the first parallel side; Get the direction of the road; Determining whether the posting direction of the second parallel edge is toward the road; If the shared electric motorcycle is facing the road.
6. The method according to claim 5, characterized in that Methods for obtaining road direction include: The parking line is provided with a second contour and a third contour, and the distance between the two third parallel long sides of the third contour is greater than or less than the distance between the two second parallel long sides of the second contour; Obtaining a perpendicular line from the third parallel long side to the second parallel long side; According to the vertical line, obtain the direction of the road; Or the direction of the road can be obtained by positioning the shared electric motorcycle or the client and the road.
7. The method according to claim 5, characterized in that Ways to get posted directions include: respectively obtaining at least two inner frames of the vehicle-mounted barcode, The two inner frames include: a barcode inner frame and a digital inner frame, or a first color frame and a second color frame; Get the posting direction based on the two inner borders.
8. The method according to claim 1, characterized in that The image is captured by a user's client, and the client is provided with a first positioning frame for capturing a vehicle-mounted barcode and a second positioning frame for capturing a parking line; The on-board barcode is posted on the front pedal of the shared electric motorcycle.
9. A system for returning a shared electric motorcycle, characterized in that: For implementing the method according to any one of claims 1 to 8, the system comprises a collection module, a detection module, an identification module and a vehicle return module, The acquisition module is used to obtain an image having both the vehicle barcode and the parking line; The detection module is used to detect the distance between the vehicle-mounted barcode and the stop line, as well as the angle between the vehicle-mounted barcode and the stop line, and determine whether the first condition is met; If the first condition is met, the vehicle-mounted barcode is identified by the identification module; If the on-board barcode matches the shared electric motorcycle, the shared electric motorcycle is returned through the return module.
10. The system according to claim 9, characterized in that It also includes notification modules, clients and servers. The acquisition module is deployed on the client; The notification module, detection module, identification module and vehicle return module are deployed on the server side; The acquisition module also provides a first positioning frame for photographing the vehicle-mounted barcode and a second positioning frame for photographing the parking line; The notification module is used to send notification information to the client after the car is returned successfully; and send error information and error instructions to the client after the car is returned unsuccessfully.
