Motorcycle and method and storage medium for detecting the posture of adjacent vehicles

By installing an on-board camera on the motorcycle, the parking posture of the motorcycle is monitored in real time and notifying the backend control center for operation and maintenance, the problem of random parking of the motorcycle is solved, and the operation and maintenance efficiency and intelligence are improved.

CN113627370BActive Publication Date: 2025-02-07HUNAN XIBAODA INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110942222.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-17
Publication Date
2025-02-07
Estimated Expiration
2041-08-17

AI Technical Summary

Technical Problem

The problem of random parking of shared electric motorcycles leads to road traffic obstacles, urban appearance and low operation and maintenance efficiency and high cost.

Method used

By installing an on-board camera on the motorcycle, we obtain riding status and parking posture information, use preset startup conditions and angle calculations to determine whether the parking posture of the motorcycle is randomly parked, and promptly notify the backend control center for operation and maintenance.

Benefits of technology

Real-time monitoring and automated operation and maintenance of motorcycling parking postures has been realized, improving the intelligence, timeliness and efficiency of operation and maintenance, and reducing operation and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113627370B_ABST
    Figure CN113627370B_ABST
Patent Text Reader

Abstract

The present invention provides an electric motorcycle and a method and storage medium for detecting the parking posture of a vehicle next to it. By acquiring the current running state of the electric motorcycle, the first image captured by the on-board camera is acquired when the on-board camera meets the preset start-up conditions, and then the first body image information of the tested electric motorcycle parked on the roadside is extracted, so as to determine whether the parking posture of the tested electric motorcycle is a preset random parking posture. In addition, by calculating the difference θ4 between the angle θ3 of the body axis of the tested electric motorcycle relative to the axis center line of the on-board camera and the angle θ2 of the axis center line of the on-board camera relative to the edge of the road when the first image is captured, the current electric motorcycle is simulated in the process of riding. The front of the motorcycle is constantly swinging, adjusting, and turning. By using the difference θ4, the angle change caused by the swing of the body of the current motorcycle can be effectively avoided, thereby ensuring the accuracy and reliability of detection, thereby improving the intelligence of operation and maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electric motorcycles, and in particular to an electric motorcycle and a method and a storage medium thereof for detecting the placement posture of a vehicle next to it. Background Art

[0002] With the progress of society, people's awareness of green travel has gradually increased, and shared electric motorcycles have come into being. Electric motorcycle travel is light, convenient, fast and cheap, and has become an important part of people's travel.

[0003] With the popularity and rapid increase in the number of shared electric motorcycles, the phenomenon of shared electric motorcycles being parked randomly can be seen everywhere, such as randomly parking electric motorcycles on the side of the road or parking them in parking spots that do not meet the requirements of the regulations. This has hindered road traffic to a certain extent, affected the appearance of the city, and caused great trouble to urban governance. At present, the problem of random parking of electric motorcycles is generally solved by the operation and maintenance personnel performing patrol operations in an uninterrupted and non-fixed manner, which has problems such as poor pertinence, lag, low efficiency, and high operation and maintenance costs.

[0004] In view of this, it is necessary to propose an electric motorcycle and a method and storage medium for detecting the posture of a vehicle next to it to solve or at least alleviate the above-mentioned defects. Summary of the invention

[0005] The main purpose of the present invention is to provide an electric motorcycle and a method and storage medium for detecting the placement posture of the vehicle next to it, so as to solve the current problem of random parking of electric motorcycles, which is generally carried out by operation and maintenance personnel in an uninterrupted and non-fixed manner, and there are problems such as poor targeted operation and maintenance, lag, low efficiency, and high operation and maintenance costs.

[0006] To achieve the above object, the present invention provides a method for detecting the posture of a nearby vehicle by a motorcycle, comprising the steps of:

[0007] S1, obtaining the current running state of the motorcycle, and determining whether the current motorcycle is in a riding state;

[0008] S2, when the current motorcycle is in a riding state, determining whether the vehicle-mounted camera meets a preset first start condition; wherein the first start condition includes one or more of automatically starting at a first preset time interval, obtaining a Bluetooth signal of a motorcycle of the same brand or the same system platform sensed by the current motorcycle, and obtaining a parking point position signal; the vehicle-mounted camera is arranged on the right side of the body of the current motorcycle, and a preset angle θ1 is formed between the axis of the vehicle-mounted camera and the axis of the body of the current motorcycle;

[0009] S3, when the vehicle-mounted camera meets a preset start condition, obtaining a first image captured by the vehicle-mounted camera, and extracting first vehicle body image information of the tested motorcycle parked on the roadside from the first image;

[0010] S4, determining whether the parking posture of the tested motorcycle is a preset random parking posture according to the first vehicle body image information and the preset angle θ1.

[0011] Preferably, the step S4 comprises:

[0012] S41, determining, based on the first image, an angle θ2 between the axis line of the vehicle-mounted camera and the edge of the road when the first image is captured;

[0013] S42, calculating, based on the first vehicle body image information, an angle θ3 between the axial direction of the vehicle body of the tested motorcycle and the axis center line of the vehicle-mounted camera;

[0014] S43, calculating the difference θ4 of θ2-θ3;

[0015] S44, when the θ4 exceeds a first preset range, determining that the parking posture of the tested motorcycle is a preset random parking posture.

[0016] Preferably, after step S4, the method further comprises the following steps:

[0017] S5, extracting body feature information of the tested motorcycle according to the first body image information, and obtaining the brand of the tested motorcycle; wherein the body feature information includes one or more of body shape, body color, and body logo;

[0018] S61, when the parking posture of the tested motorcycle is a preset random parking posture, and when the tested motorcycle and the current motorcycle are motorcycles of the same brand, sending a first operation and maintenance instruction to a first background control center;

[0019] S62, when the parking posture of the tested motorcycle is a preset random parking posture, and when the tested motorcycle and the current motorcycle are motorcycles of different brands, sending a second operation and maintenance instruction to a second background control center;

[0020] S63, when the parking posture of the tested motorcycle is a preset random parking posture, and when the tested motorcycle and the current motorcycle are not motorcycles of the same brand, obtain the corresponding operator according to the brand of the tested motorcycle, and send the third operation and maintenance instruction to the third background control center corresponding to the operator.

[0021] Preferably, the step S1 further includes the following steps:

[0022] S11, when the current motorcycle is in a parked state, determining whether the vehicle-mounted camera meets a preset second start condition; wherein the second start condition includes one or more of automatically starting at a second preset time interval and obtaining a Bluetooth signal of a motorcycle of the same brand or the same system platform sensed by the current motorcycle;

[0023] S12, when the vehicle-mounted camera meets a preset second start condition, obtaining a second image captured by the vehicle-mounted camera within a preset time period, and extracting second vehicle body image information of the tested motorcycle parked on the roadside according to the second image;

[0024] S13, determining whether the parking posture of the tested motorcycle is a preset random parking posture according to the second vehicle body image information and the preset angle θ1;

[0025] S14, when the parking posture of the tested motorcycle is a preset random parking posture, proceed to step S5;

[0026] S15, when the parking posture of the tested motorcycle is a non-preset random parking posture, determining that the parking posture of the tested motorcycle is a normal parking posture.

[0027] Preferably, the step S4 further includes the following steps:

[0028] S301, determining whether the detected motorcycle is within a parking point range according to the first image;

[0029] S302, when the tested motorcycle is within the parking point range, determining that the tested motorcycle is in a compliant parking area, and proceeding to step S4;

[0030] S303, when the tested motorcycle is not within the parking spot range, it is determined that the tested motorcycle is in an illegal parking area and the process goes to step S5.

[0031] Preferably, the first preset time interval is set to 0.1 s / time, the θ1 is set to 90 degrees, and the first preset range is set to 60 to 120 degrees.

[0032] Preferably, the second preset time interval is set to 1s / time, and the preset duration is 10s.

[0033] Preferably, the operating status includes one or more of vehicle speed, power supply current value, and GPS navigation data change value.

[0034] The present invention also provides an electric motorcycle, comprising a body, the on-board camera arranged on the body, and a control system arranged in the body; wherein the control system comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the method for an electric motorcycle to detect the posture of a vehicle next to it are implemented as described above.

[0035] The present invention also provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for detecting the posture of a vehicle next to the motorcycle as described above are implemented.

[0036] Compared with the prior art, the present invention has the following beneficial effects:

[0037] The present invention provides an electric motorcycle and a method and storage medium for detecting the parking posture of adjacent vehicles. By obtaining the current running status of the electric motorcycle and determining whether the current electric motorcycle is in a riding state, when the current electric motorcycle is in the riding state and when the on-board camera meets a preset starting condition, a first image captured by the on-board camera is obtained, and first body image information of the tested electric motorcycle parked on the roadside is extracted from the first image. According to the first body image information and the preset angle θ1, it is determined whether the parking posture of the tested electric motorcycle is a preset random parking posture, so as to promptly notify the background control center for targeted and timely operation and maintenance.

[0038] At the same time, by determining the angle θ2 of the axis of the on-board camera relative to the edge of the road when the first image is captured based on the first image, the angle θ3 of the body axis of the tested motorcycle relative to the axis of the on-board camera is calculated based on the first vehicle body image information, and the difference θ4 of θ2-θ3 is calculated. When θ4 exceeds the first preset range, it is determined that the parking posture of the tested motorcycle is the preset random parking posture. The above-mentioned process steps can simulate the situation in which the front of the current motorcycle is constantly swinging, adjusting, and turning during riding. By using the difference θ4, the angle change caused by the current motorcycle being in the above-mentioned state can be effectively avoided, thereby ensuring the accuracy and reliability of detection, and further improving the intelligence, timeliness, and efficiency of operation and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] 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 the structures shown in these drawings without paying creative work.

[0040] Figure 1 This is an application scenario diagram in one embodiment of the present invention;

[0041] Figure 2 A schematic diagram of a flow chart in one embodiment of the present invention;

[0042] Figure 3 A schematic diagram of the process included in step S4 in one embodiment of the present invention;

[0043] Figure 4 A schematic flow chart of the steps included after step S4 in one embodiment of the present invention;

[0044] Figure 5 A flowchart of steps including steps after step S1 in one embodiment of the present invention;

[0045] Figure 6 It is a schematic diagram of the architecture of a control system in one embodiment of the present invention.

[0046] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION

[0047] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0048] 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.

[0049] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0050] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0051] The electric motorcycle and the method and storage medium thereof for detecting the posture of the adjacent vehicle provided by the present invention can be applied to Figure 1 In the application environment shown. The application environment includes a terminal 11, a server 12, a motorcycle 13, and a vehicle-mounted camera (not shown); wherein the terminal 11 communicates with the server 12 via a network, and the server 12 communicates with the motorcycle 13 and the vehicle-mounted camera. The terminal 11 can be, but is not limited to, various smart phones, desktop computers, tablet computers, and portable wearable devices, and the server 12 can be implemented by a computer with data processing capabilities, an independent server, or a server cluster consisting of multiple servers.

[0052] Please refer to the attached Figure 2-6 In one embodiment of the present invention, a method for detecting the posture of a vehicle next to it by a motorcycle comprises the following steps:

[0053] S1, obtain the running status of the current electric motorcycle, and determine whether the current electric motorcycle is in a riding state. Those skilled in the art should understand that the present application uses an electric motorcycle in a riding state or a parked state to detect the parking posture of other electric motorcycles parked on the roadside, thereby using the current electric motorcycle to detect the parking posture of other electric motorcycles, and promptly notify the background control center for targeted and timely operation and maintenance. Therefore, to obtain the running status of the current electric motorcycle, first confirm the different running states of the current electric motorcycle, and make different judgments by obtaining the different running states of the current electric motorcycle, so as to realize the use of the different states of the current electric motorcycle to detect other electric motorcycles nearby.

[0054] S2, when the current motorcycle is in the riding state, determine whether the vehicle camera meets the preset first start condition. Those skilled in the art should understand that the first start condition includes but is not limited to one or more of automatic start at a first preset time interval, obtaining the Bluetooth signal of the current motorcycle sensing the motorcycle of the same brand or the same system platform, and obtaining the parking point location signal; for example, according to the actual road conditions, it can be set to automatically start the capture mode of the vehicle camera according to the preset time interval of the region for capture, and it can also automatically start the vehicle camera to enter the capture mode when the motorcycle senses the Bluetooth signal of multiple brands of motorcycles of the same brand or the same system platform, or start the vehicle camera to enter the capture mode when the motorcycle senses the parking point location, etc. Through a variety of different start conditions, the motorcycle parked on the roadside can be captured and detected to the greatest extent. The vehicle camera is set on the right side of the body of the current motorcycle, and there is a preset angle θ1 between the axis of the vehicle camera and the axis of the body of the current motorcycle.

[0055] S3, when the vehicle-mounted camera meets the preset start-up conditions, the first image captured by the vehicle-mounted camera is obtained, and the first body image information of the tested motorcycle parked on the roadside is extracted from the first image. In other words, when the vehicle-mounted camera meets one or more of the above-mentioned multiple start-up conditions, the vehicle-mounted camera is started to enter the capture mode and obtain the first image, and the first body image information of the tested motorcycle parked on the roadside is extracted from the first image. For example, the first body image information can be the analysis and calculation of the angle between the vehicle-mounted camera and the body of the vehicle, the body color, the body logo, etc. Further, for example, by calculating and analyzing the body axial fitting line formed by the front and rear of the tested motorcycle, it is convenient to calculate the angle formed between the body and the vehicle-mounted camera, and then determine whether the tested motorcycle is in a preset disorderly parking posture.

[0056] It should be noted that the present embodiment uses a vehicle-mounted camera to capture images of the tested motorcycle for detection and judgment. It is understandable that in other embodiments, the current motorcycle may also be detected and judged in combination with other methods, for example, it may also be detected and judged by methods such as thermal imaging.

[0057] In addition, the first preset time interval and the preset angle θ1 can be adaptively set according to actual conditions. For example, the first preset time interval can be appropriately increased when there are many parking spots, during peak hours, or on congested roads. Similarly, the vehicle-mounted camera can be set at the front of the vehicle, in the middle of the vehicle body, or at the rear of the vehicle, as long as the vehicle-mounted camera can capture the first image of the tested motorcycle parked on the roadside. The vehicle-mounted camera is set on the right side of the vehicle body, that is, the camera direction of the vehicle-mounted camera is facing the roadside on the right side, so as to capture and detect the parking posture of other motorcycles.

[0058] S4, determining whether the parking posture of the tested motorcycle is a preset random parking posture according to the first vehicle body image information and the preset angle θ1. Specifically, the angle between the axis of the vehicle body and the vehicle-mounted camera can be obtained according to the first vehicle body image. For example, as a preferred embodiment of the present invention, step S4 includes:

[0059] S41, determining the angle θ2 of the axis line of the vehicle-mounted camera relative to the edge of the road when the first image is captured based on the first image. It should be noted that, in order to facilitate the calculation of the angle, the angle may be processed into an angle vector for calculation in the actual calculation process. For example, the angle θ2 in this embodiment is the angle vector θ2 formed between the axis line of the vehicle-mounted camera along the shooting direction and the forward extension direction of the road edge line. It is understandable that in other embodiments, the specific definition direction of the angle vector θ2 can also be set according to actual needs, and the calculation principle behind it is the same, which will not be repeated here.

[0060] S42, calculate the angle θ3 between the body axis of the tested motorcycle and the axis centerline of the vehicle-mounted camera according to the first vehicle body image information. Specifically, the body axis in this embodiment is the direction from the front to the rear of the vehicle, which direction can also reflect the parking posture of the tested motorcycle to the greatest extent. Similarly, to facilitate angle calculation, the angle θ3 in this embodiment is also calculated using an angle vector, wherein the angle θ3 is the angle vector θ3 formed between the axis centerline of the vehicle-mounted camera along the shooting direction and the body axis. It can be understood that in other embodiments, the specific definition direction of the angle vector θ3 can also be set according to actual needs, and the calculation principle behind it is the same, which will not be elaborated here.

[0061] S43, calculate the difference θ4 of θ2-θ3; by calculating the difference θ4 obtained by θ2-θ3, it can be understood that θ4 is also an angle vector, and then it can be determined based on θ4 whether the parking posture of the tested motorcycle is the preset random parking posture.

[0062] S44, when the angle θ4 exceeds the first preset range, the parking posture of the tested motorcycle is determined to be a preset random parking posture. Specifically, the first preset range can be set according to actual needs. For example, in a specific embodiment, the first preset range can be set to 60 to 120 degrees. That is, when the angle of θ4 is between 60 and 120 degrees, the tested motorcycle is determined to be in a normal parking posture. When the angle of θ4 is between 60 and 120 degrees, for example, when θ4 is 150 degrees, the tested motorcycle is determined to be in a preset random parking posture. The above-mentioned process steps can simulate the situation in which the front of the current motorcycle is constantly swinging, adjusting, and turning during riding. By using the difference θ4, the angle change caused by the current motorcycle being in the above-mentioned state can be effectively avoided, thereby ensuring the accuracy and reliability of detection, and thus improving the intelligence, timeliness and efficiency of operation and maintenance.

[0063] It can be understood that the method of determining whether the parking posture of the tested motorcycle is the preset random parking posture based on the first vehicle body image information and the preset angle θ1 is not limited to the above-mentioned calculation method. Those skilled in the art should know that other reference objects can also be used directly. For example, the angle between the tested motorcycle and a fixed reference object can be calculated. For example, the angle relationship between the tested motorcycle and the parking space pointing line and / or the parking space line can be obtained for judgment, or the relative position relationship between adjacent / or multiple tested motorcycles can be obtained for judgment, or the angle relationship between the front direction of the tested motorcycle and the vehicle-mounted camera can be calculated for judgment, etc. The specific calculation method can be set according to actual conditions.

[0064] As a preferred embodiment of the present invention, after step S4, the method further includes the following steps:

[0065] S5, extracting the body feature information of the tested motorcycle according to the first body image information, and obtaining the brand of the tested motorcycle. Since there are many brands of shared motorcycles at present, this embodiment will further provide analysis and judgment for motorcycles of different brands and types. Specifically, the body features of the tested motorcycle are obtained through the first body image information to determine whether they are consistent with the current motorcycle. For example, the judgment can be made by identifying the body size, body color, body LOGO, etc. in the first body image, which have obvious distinguishing features.

[0066] S61, when the parking posture of the tested motorcycle is a preset random parking posture, and when the tested motorcycle and the current motorcycle are of the same brand, send a first operation and maintenance instruction to the first background control center. In other words, when the tested motorcycle and the current motorcycle are of the same brand, and the parking posture is a preset random parking posture, a first operation and maintenance instruction will be sent to the first background control center, wherein the first background control center is usually the background control center of the operator of this brand. For example, when the number of tested motorcycles in random parking postures exceeds a certain preset value or the random parking postures of some motorcycles are too large, the operation and maintenance personnel can be notified in time to perform operation and maintenance management, so that the motorcycle operation and maintenance can be carried out in a timely and targeted manner, greatly improving the intelligence and efficiency of motorcycle operation and maintenance.

[0067] S62, when the parking posture of the tested motorcycle is a preset disorderly parking posture, and when the tested motorcycle and the current motorcycle are not of the same brand, send a second operation and maintenance instruction to the second background control center. Specifically, when the tested motorcycle and the current motorcycle are not of the same brand, the information can be sent to the second background control center. For example, the second background control center can be the same as the first background control center, or it can be a general, public background control center. For example, in this way, the excellence of the disorderly parking performance of different models and brands can be analyzed and judged, so as to provide the basis for management, rewards and punishments to the relevant associations and departments.

[0068] S63, when the parking posture of the tested motorcycle is a preset random parking posture, and when the tested motorcycle and the current motorcycle are motorcycles of different brands, the corresponding operator is obtained according to the brand of the tested motorcycle, and the third operation and maintenance instruction is sent to the third background control center corresponding to the operator. Specifically, the corresponding operator can be obtained by obtaining the brand of the tested motorcycle, and the random parking posture information of the tested motorcycle can be transmitted to the operator in a timely manner, so that corresponding operation and maintenance measures can be taken in a timely manner.

[0069] As a preferred embodiment of the present invention, the step S1 further includes the following steps:

[0070] S11, when the current electric motorcycle is in a parked state, determine whether the vehicle-mounted camera meets a preset second starting condition; technical personnel in this field should understand that the second starting condition includes but is not limited to one or more of automatically starting at a second preset time interval and obtaining the Bluetooth signal of the current electric motorcycle sensing an electric motorcycle of the same brand or the same system platform; for example, according to the actual parking position of the electric motorcycle, the capture mode of the vehicle-mounted camera can be set to start at a second preset time interval to capture, and the vehicle-mounted camera can also be automatically started to enter the capture mode by sensing the Bluetooth signal of an electric motorcycle of the same brand, etc. Through a variety of different starting conditions, the electric motorcycle parked next to the current electric motorcycle can be captured and detected to the greatest extent.

[0071] S12, when the vehicle-mounted camera meets the preset second start-up condition, obtain the second image captured by the vehicle-mounted camera within the preset time length, and extract the second body image information of the tested motorcycle parked on the roadside based on the second image. This implementation is to determine whether the tested motorcycle is in a preset random parking posture when the motorcycle is in a parked state. Specifically, when the vehicle-mounted camera meets one or more of the above-mentioned multiple start-up conditions, start the vehicle-mounted camera to enter the capture mode and obtain the second image, and extract the second body image information of the tested motorcycle parked on the roadside based on the second image. Among them, the second body image information includes but is not limited to one or more of the body axis, the angle of the body axis relative to the parking space pointing line, the body color, and the body LOGO.

[0072] S13, determining whether the parking posture of the tested motorcycle is a preset random parking posture according to the second vehicle body image information and the preset angle θ1. For example, it is possible to determine whether the parking posture of the tested motorcycle is a preset random parking posture by obtaining the angle formed between the vehicle body axis of the selected motorcycle and the parking space wireframe, or to determine whether the parking posture of the selected motorcycle is a preset random parking posture by obtaining the angle between the axis line of the vehicle-mounted camera of the current motorcycle and the vehicle body axis of the tested motorcycle.

[0073] S14, when the parking posture of the tested motorcycle is the preset random parking posture, enter step S4, that is, when the parking posture of the tested motorcycle is detected as the random parking posture, the brand type of the tested motorcycle can also be judged and analyzed, so as to send different operation and maintenance instructions to different background control centers.

[0074] S15, when the parking posture of the tested motorcycle is a non-preset random parking posture, determining that the parking posture of the tested motorcycle is a normal parking posture.

[0075] As a preferred embodiment of the present invention, the step S4 further includes the following steps:

[0076] S301, judging whether the tested motorcycle is within the parking spot according to the first image. This embodiment will further analyze and judge whether the tested motorcycle is within the parking spot. Specifically, the first image can be used to determine whether the tested motorcycle is within the parking space line of the parking spot, or outside an obvious parking spot, or in areas such as the edge of the road.

[0077] S302, when the tested motorcycle is within the parking spot range, determine that the tested motorcycle is in a compliant parking area and proceed to step S4.

[0078] S303, when the tested motorcycle is not within the parking spot range, it is determined that the tested motorcycle is in an illegal parking area, and the process goes to step S5. That is, when the tested motorcycle is within the parking spot range, the above analysis steps are continued. If the tested motorcycle is not within the parking spot range, it indicates that the motorcycle has been illegally parked, and the brand type of the tested motorcycle is further determined, and different operators are notified to carry out targeted operation and maintenance.

[0079] Further, the first preset time interval is set to 0.1s / time, the θ1 is set to 90 degrees, and the first preset range is set to 60-120 degrees. The second preset time interval is set to 1s / time, and the preset duration is 10s. In other embodiments, the first preset time interval, the θ1, the first preset range, the second preset time interval, and the preset duration can all be flexibly set according to actual needs.

[0080] Furthermore, the running state includes but is not limited to one or more of the vehicle speed, the power supply current value, and the GPS navigation data change value. For example, by obtaining the vehicle speed value and the power supply current value, for example, when the vehicle speed is zero and the power supply current value is zero, it can also be determined that the current motorcycle is in a parked state, and then the step S11 can be entered into a subsequent determination. For example, by obtaining the GPS navigation data change value, and by fitting and analyzing multiple GPS navigation data change values, it can be determined that the current running state of the motorcycle is riding or in a parked state.

[0081] The present invention also provides an electric motorcycle 13, comprising a body (not shown), the on-board camera arranged on the body, and a control system arranged in the body; wherein the control system comprises a memory 52, a processor 51, and a computer program 53 stored in the memory 52 and executable on the processor, wherein when the processor 51 executes the computer program 53, the steps of the method for an electric motorcycle to detect the posture of a vehicle next to it are implemented as described above.

[0082] The present invention further provides a storage medium, wherein the storage medium stores a computer program 53, wherein the computer program 53 implements the steps of the above-mentioned method for detecting the posture of a vehicle next to the motorcycle when the computer program 53 is executed by the processor 51. It can be understood that the above-mentioned method for detecting the posture of a vehicle next to the motorcycle is implemented when the computer program 53 is executed by the processor 51, and therefore all embodiments of the above-mentioned method are applicable to the storage medium and can achieve the same or similar beneficial effects.

[0083] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for detecting the posture of a nearby vehicle by a motorcycle, characterized in that: Includes steps: S1, obtaining the current running state of the motorcycle, and determining whether the current motorcycle is in a riding state; S2, when the current motorcycle is in a riding state, determining whether the vehicle-mounted camera meets a preset first start condition; wherein the first start condition includes one or more of automatically starting at a first preset time interval, obtaining a Bluetooth signal of a motorcycle of the same brand or the same system platform sensed by the current motorcycle, and obtaining a parking point position signal; the vehicle-mounted camera is arranged on the right side of the body of the current motorcycle, and a preset angle θ1 is formed between the axis of the vehicle-mounted camera and the axis of the body of the current motorcycle; S3, when the vehicle-mounted camera meets a preset start condition, obtaining a first image captured by the vehicle-mounted camera, and extracting first vehicle body image information of the tested motorcycle parked on the roadside from the first image; S4, determining whether the parking posture of the tested motorcycle is a preset random parking posture according to the first vehicle body image information and the preset angle θ1; The step S4 comprises: S41, determining, based on the first image, an angle θ2 between the axis line of the vehicle-mounted camera and the edge of the road when the first image is captured; S42, calculating, based on the first vehicle body image information, an angle θ3 between the axial direction of the vehicle body of the tested motorcycle and the axis center line of the vehicle-mounted camera; S43, calculating the difference θ4 of θ2-θ3; S44, when the θ4 exceeds a first preset range, determining that the parking posture of the tested motorcycle is a preset random parking posture; After step S4, the following steps are also included: S5, extracting body feature information of the tested motorcycle according to the first body image information, and obtaining the brand of the tested motorcycle; wherein the body feature information includes one or more of body shape, body color, and body logo; S61, when the parking posture of the tested motorcycle is a preset random parking posture, and when the tested motorcycle and the current motorcycle are motorcycles of the same brand, sending a first operation and maintenance instruction to a first background control center; S62, when the parking posture of the tested motorcycle is a preset random parking posture, and when the tested motorcycle and the current motorcycle are motorcycles of different brands, sending a second operation and maintenance instruction to a second background control center; S63, when the parking posture of the tested motorcycle is a preset random parking posture, and when the tested motorcycle and the current motorcycle are not motorcycles of the same brand, obtain the corresponding operator according to the brand of the tested motorcycle, and send the third operation and maintenance instruction to the third background control center corresponding to the operator.

2. The method for detecting the posture of a vehicle next to the motorcycle according to claim 1, characterized in that: The step S1 further includes the following steps: S11, when the current motorcycle is in a parked state, determining whether the vehicle-mounted camera meets a preset second start condition; wherein the second start condition includes one or more of automatically starting at a second preset time interval and obtaining a Bluetooth signal of a motorcycle of the same brand or the same system platform sensed by the current motorcycle; S12, when the vehicle-mounted camera meets a preset second start condition, obtaining a second image captured by the vehicle-mounted camera within a preset time period, and extracting second vehicle body image information of the tested motorcycle parked on the roadside according to the second image; S13, determining whether the parking posture of the tested motorcycle is a preset random parking posture according to the second vehicle body image information and the preset angle θ1; S14, when the parking posture of the tested motorcycle is a preset random parking posture, proceed to step S5; S15, when the parking posture of the tested motorcycle is a non-preset random parking posture, determining that the parking posture of the tested motorcycle is a normal parking posture.

3. The method for detecting the posture of a vehicle next to the motorcycle according to claim 1, characterized in that: The step S4 also includes the following steps: S301, determining whether the detected motorcycle is within a parking point range according to the first image; S302, when the tested motorcycle is within the parking point range, determining that the tested motorcycle is in a compliant parking area, and proceeding to step S4; S303, when the tested motorcycle is not within the parking spot range, it is determined that the tested motorcycle is in an illegal parking area and the process goes to step S5.

4. The method for detecting the posture of a vehicle next to the motorcycle according to claim 1, characterized in that: The first preset time interval is set to 0.1 s / time, the θ1 is set to 90 degrees, and the first preset range is set to 60-120 degrees.

5. The method for detecting the posture of a vehicle next to the motorcycle according to claim 2, characterized in that: The second preset time interval is set to 1s / time, and the preset duration is 10s.

6. The method for detecting the posture of a vehicle next to the vehicle by a motorcycle according to any one of claims 1 to 5, characterized in that: The operating status includes one or more of vehicle speed, power supply current value, and GPS navigation data change value.

7. An electric motorcycle, comprising a vehicle body, a vehicle-mounted camera disposed on the vehicle body, and a control system disposed in the vehicle body; wherein: The control system includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for detecting the posture of a vehicle next to it by an electric motorcycle when executing the computer program as described in any one of claims 1 to 6.

8. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for detecting the posture of a vehicle next to it by a motorcycle are implemented as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Automatic parking system and automatic parking method

    CN108266033A

  • Vehicle parking control method and device, vehicle and storage medium

    CN111832377A