A slope detection and control method for intelligent electric scooter

Through front camera, infrared depth of field camera and radar detection, the power output of the electric scooter is automatically adjusted, which solves the problem of insufficient power of the electric scooter when climbing hills, and improves the convenience and safety of use.

CN114005099BActive Publication Date: 2024-11-15ZHUHAI LEQI INTELLIGENT TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111283725.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-01
Publication Date
2024-11-15
Estimated Expiration
2041-11-01

AI Technical Summary

Technical Problem

Electric scooters lack power when climbing hills, and the prior art cannot automatically match power output, resulting in inconvenience in use and safety hazards.

Method used

The front camera, left and right infrared depth of field camera and rear radar are used for slope and obstacle detection, and the power output is automatically adjusted, which is suitable for uphill and downhill environments and reduce user operations.

Benefits of technology

It realizes automatic adjustment of power output during up and downhill, improves the climbing ability and convenience of use of electric scooters, reduces user operation burden, and enhances safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114005099B_ABST
    Figure CN114005099B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of Internet of Things technology, and in particular to a method for detecting and controlling the slope of an intelligent electric scooter, the method comprising the following steps: starting a front camera to shoot two frames of images, and determining the front slope from the two frames of images; starting left and right infrared depth-of-field cameras to obtain left and right images, and determining the left and right slopes from the left and right images; starting a rear radar to detect rear obstacles; and adjusting the power output according to the front slope, left and right slopes, rear obstacles, and the current power output value. The present invention obtains front and rear images of an electric scooter through a front camera to determine the front slope, obtains left and right images according to left and right infrared depth-of-field cameras to determine the left and right slopes, and determines whether there is an obstacle at the rear according to the rear radar, and automatically adjusts the power output according to the detection results of the three types of sensors. The method is suitable for going up and down slopes, and can realize automatic power adjustment during going up and down slopes, thereby reducing user operations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet of Things, and in particular to a slope detection and control method for an intelligent electric scooter. Background Art

[0002] Traditional scooters are recreational tools, mainly used by teenagers for recreational activities. Traditional scooters include single-row wheel structures and double-row wheel structures. The so-called single-row wheel structure has a wheel system similar to that of a bicycle, which cannot rely on its own structure to maintain balance and must rely on the user's operation; in contrast, the wheel system of a scooter with a double-row wheel structure is usually a balanced design, for example, it is equipped with four or three sets of pulleys.

[0003] Nowadays, electric scooters have emerged. They have broken away from the limitations of traditional scooters in terms of use, and have been transformed from entertainment products to convenient transportation, which is sought after by young people. Electric scooters are flexible and convenient, and generally use sidewalks, but there are fewer vehicles on sidewalks, and pedestrians are not very vigilant, which can easily cause danger.

[0004] In the prior art, an important problem in the use of electric scooters is climbing. Since electric scooters themselves are not designed for climbing, but climbing cannot be completely avoided in actual use, resulting in obvious lack of power when climbing. The problem of insufficient power can only be solved by the hardware itself. However, after the existing electric scooters can provide greater power, a new problem arises: the power cannot automatically match the output needs. Summary of the invention

[0005] Based on this, it is necessary to provide a smart electric scooter slope detection and control method to address the above problems.

[0006] The embodiment of the present invention is implemented as follows: the intelligent electric scooter slope detection control method comprises the following steps:

[0007] Start the front camera to shoot two frames, and determine the front slope based on the two frames;

[0008] Start the left and right infrared depth-of-field cameras to obtain left and right images, and determine the left and right slopes based on the left and right images;

[0009] Activate the rear radar to detect obstacles behind;

[0010] The power output is adjusted according to the front slope, the left and right slopes, the rear obstacle and the current power output value.

[0011] The present invention obtains front and rear images of the electric scooter through a front camera to determine the front slope, obtains left and right images according to left and right infrared depth-of-field cameras to determine the left and right slopes, and determines whether there is an obstacle at the rear according to the rear radar. The power output is automatically adjusted according to the detection results of the three types of sensors. The present invention is suitable for going uphill and downhill, and can realize automatic power adjustment during going uphill and downhill, reducing user operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 A logic diagram of an automatic control method for turn signals of an electric scooter based on the Internet of Things provided by an embodiment of the present invention;

[0013] Figure 2 FIG. 4 is a block diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0014] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0015] It is understood that the terms "first", "second", etc. used in the present invention may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script without departing from the scope of the present invention.

[0016] Figure 1 The logic block diagram of the method of the present invention is shown. In an embodiment of the present invention, a slope detection and control method for an intelligent electric scooter is proposed, which may specifically include steps S1-S4:

[0017] Step S1: Start the front camera to shoot two frames, and determine the front slope based on the two frames;

[0018] Step S2: Start the left and right infrared depth-of-field cameras to obtain left and right images, and determine the left and right slopes based on the left and right images;

[0019] Step S3: activating the rear radar to detect rear obstacles;

[0020] Step S4: adjusting the power output according to the front slope, left and right slopes, rear obstacles and the current power output value.

[0021] In an embodiment of the present invention, the front camera is arranged in front of the electric skateboard bracket, and its direction is consistent with the direction of the front of the electric scooter. When the electric scooter turns, the front camera rotates to the same angle. In an embodiment of the present invention, the front camera can adjust its height up and down along the bracket, and the size of its front field of view can be changed by adjusting the height, so that the calculation ratio of the collected image is different, that is, when the height of the front camera is different, for the same speed and the same time, the change of its front angle of view is different, specifically, the change amount of the height direction of the image is different, so that the sensitivity of the front camera to the front slope can be adjusted, and at the same time, the proportion of the processing result of the image collected by the front camera to the power output adjustment of the electric scooter is also adjusted.

[0022] In the embodiment of the present invention, the left and right slopes refer to the changes of the left and right enclosures as the electric scooter moves forward. For example, when the electric scooter goes up the slope, since the heights of the left and right enclosures do not change, the positions of the enclosures in the entire image area in the collected image are different. The changes are related to the driving speed and slope of the electric scooter. The height of the enclosures and other information can be inferred from the changes and the speed of the electric scooter.

[0023] In the embodiment of the present invention, the rear radar is used to detect rear obstacles. The rear obstacles in the present invention mainly refer to objects such as rear vehicles or pedestrians that may affect the backward movement of the electric scooter.

[0024] Through the comprehensive detection of the above three methods, it is possible to achieve 360-degree slope and obstacle detection centered on the electric scooter, so as to better automatically adjust the power output of the electric scooter. Different from the general prior art, when adjusting the power output of the electric scooter, the present invention not only considers the motion parameters of the electric scooter itself (such as maintaining the motion speed), but also considers the influence of the special environment where the scooter is located on the acceleration or deceleration. The speed of the electric scooter is adjusted comprehensively through these factors, so as to better realize the intelligent power output adjustment.

[0025] The present invention obtains front and rear images of the electric scooter through a front camera to determine the front slope, obtains left and right images according to left and right infrared depth-of-field cameras to determine the left and right slopes, and determines whether there is an obstacle at the rear according to the rear radar. The power output is automatically adjusted according to the detection results of the three types of sensors. The present invention is suitable for going uphill and downhill, and can realize automatic power adjustment during going uphill and downhill, reducing user operations.

[0026] In one embodiment of the present invention, the step of starting the front camera to capture two frames of images and determining the front slope based on the two captured frames of images includes the following steps:

[0027] Start the front camera, obtain the first frame image with a range of 0 to 180 degrees centered in front of the electric scooter, and obtain the second frame image with the same angle range after a unit time interval;

[0028] Extract the pixel values ​​of the two frames of images, and perform regional registration of the pixel values ​​to find the areas with the same pixel values ​​in the two frames of images;

[0029] Subtract the area with the same pixel value from the second frame image, and determine the front slope according to the height ratio of the non-blank area of ​​the obtained image, the unit time of shooting, and the current speed of the electric scooter;

[0030] If the front slope is greater than the set value, the front high slope mode is activated, otherwise the front low slope mode is activated.

[0031] In the embodiment of the present invention, the front of the electric scooter refers to the 90-degree direction, that is, the y-axis direction of the plane coordinate system. The activation of the front camera can be triggered by user control or by the speed change of the electric scooter, where the speed change includes speed reduction and speed increase. For uphill, the speed increase method is used to trigger the power adjustment operation when the electric scooter starts to climb and accelerate, so as to achieve pre-acceleration; for downhill, the speed reduction method is used to trigger the power adjustment operation before the electric scooter starts to accelerate downhill, so as to achieve pre-deceleration. For the switching of different triggering methods for uphill and downhill, it is preferred to use a gravity sensor to detect the pressure change of the user on the electric scooter. For uphill acceleration, the gravity component of the human body acts on the scooter, so that the electric scooter is in an overweight state, which can be judged as uphill or uphill pre-acceleration; otherwise, it can be judged as downhill.

[0032] In an embodiment of the present invention, the unit time can be determined in inverse proportion to the real-time speed of the current electric skateboard within a set range, that is, when the speed is maximum, the left endpoint of the selected interval is taken as the current unit time, otherwise the right endpoint is taken; of course, a trigger speed should be set to eliminate invalid detections when the speed is 0.

[0033] In an embodiment of the present invention, the purpose of setting the unit time is to make the same area exist in the two captured frames. When the same area does not exist in the two frames, since the unit time is fixed, the frame rate can be increased to obtain two frames with a smaller actual time interval. For two frames that meet the requirements, the area with the same pixel value is determined by calculating the value of the pixel point, and the areas with the same pixels of the two images are subtracted, and the size of the front slope is measured by the proportion of the height direction of the non-blank area of ​​the latter image after the subtraction. The front slope mode is determined according to the range to which the size of the slope belongs. It should be noted that in addition to the different degrees of adjustment of the power output of the electric scooter, different modes also include different warning methods of the electric scooter, not just the adjustment of power.

[0034] In one embodiment of the present invention, starting the left and right infrared depth-of-field cameras to acquire left and right images, and determining the left and right slopes from the left and right images specifically includes the following steps:

[0035] Start the left and right infrared depth-of-field cameras to obtain a first infrared image in the range of 90 to 270 degrees to the left and / or right of the electric scooter, and obtain a second infrared image in the same direction and the same angle range after a unit time interval;

[0036] Extract the pixel values ​​of the two frames of images, and perform regional registration of the pixel values ​​to find the areas with the same pixel values ​​in the two frames of images;

[0037] Subtract the area with the same pixel value from the second infrared image, and determine the left and right slopes from the angle between the diagonal of the blank area of ​​the obtained image and the horizontal direction;

[0038] If the left and right slopes are greater than the set value, the left and right high slope mode is activated, otherwise the left and right low slope mode is activated.

[0039] In an embodiment of the present invention, the front of the electric scooter refers to the 90-degree direction, that is, the y-axis direction of the plane coordinate system. The activation of the left and right infrared depth-of-field cameras can be triggered by user control or by the speed change of the electric scooter, where the speed change includes speed reduction and speed increase. For uphill, the speed increase method is used to trigger the power adjustment operation when the electric scooter starts to climb and accelerate, and pre-acceleration can be achieved; for downhill, the speed reduction method is used to trigger the power adjustment operation before the electric scooter starts to accelerate downhill, and pre-deceleration can be achieved. For the switching of different triggering methods for uphill and downhill, it is preferably realized by using a gravity sensor to detect the pressure change of the user on the electric scooter. For uphill acceleration, the gravity component of the human body acts on the scooter, making the electric scooter in an overweight state, which can be judged as uphill or uphill pre-acceleration; otherwise, it can be judged as downhill.

[0040] In an embodiment of the present invention, the unit time can be determined in inverse proportion to the real-time speed of the current electric skateboard within a set range, that is, when the speed is maximum, the left endpoint of the selected interval is taken as the current unit time, otherwise the right endpoint is taken; of course, a trigger speed should be set to eliminate invalid detections when the speed is 0.

[0041] In an embodiment of the present invention, the purpose of setting the unit time is to make the same area exist in the two captured frames. When the same area does not exist in the two frames, since the unit time is fixed, the frame rate can be increased to obtain two frames with a smaller actual time interval (not necessarily the first frame and the last frame of the unit time). For two frames that meet the requirements, the area with the same pixel value is determined by calculating the value of the pixel point, and the areas with the same pixels of the two images are subtracted, and the left and right slopes are determined by the angle between the diagonal of the blank area of ​​the latter image after the subtraction and the horizontal direction. The front slope mode is determined according to the range to which the slope size belongs. It should be noted that in addition to the different degrees of adjustment of the power output of the electric scooter, different modes also include different warning methods of the electric scooter, not just the adjustment of power.

[0042] In one embodiment of the present invention, the step of activating the rear radar to detect rear obstacles includes the following steps:

[0043] Start the rear scanning radar to obtain a first scanning image with a range of 180 to 360 degrees behind the electric scooter, and obtain a second scanning image with the same angle range after a unit time interval;

[0044] Extract the pixel values ​​of the two frames of images, and perform regional registration of the pixel values ​​to determine whether there are blocks with the same contour in the two frames of images. If so, determine whether the areas of the blocks are equal;

[0045] If the area of ​​the block increases, the rear obstacle mode is activated, otherwise the rear barrier-free mode is activated.

[0046] In the embodiment of the present invention, the front of the electric scooter refers to the 90-degree direction, that is, the y-axis direction of the plane coordinate system. The activation of the rear scanning radar can be triggered by user control or by the speed change of the electric scooter, where the speed change includes speed reduction and speed increase. For uphill, the speed increase method is used to trigger the power adjustment operation when the electric scooter starts to climb and accelerate, and pre-acceleration can be achieved; for downhill, the speed reduction method is used to trigger the power adjustment operation before the electric scooter starts to accelerate downhill, and pre-deceleration can be achieved. For the switching of different triggering methods for uphill and downhill, it is preferably realized by using a gravity sensor to detect the pressure change of the user on the electric scooter. For uphill acceleration, the gravity component of the human body acts on the scooter, making the electric scooter in an overweight state, which can be judged as uphill or uphill pre-acceleration; otherwise, it can be judged as downhill.

[0047] In an embodiment of the present invention, the unit time can be determined within a set range in inverse proportion to the real-time speed of the current electric skateboard, that is, when the speed is maximum, the left endpoint of the selected interval is taken as the current unit time, otherwise the right endpoint is taken; of course, a trigger speed should be set to eliminate invalid detections when the speed is 0.

[0048] In an embodiment of the present invention, the purpose of setting the unit time is to detect whether the distance between the rear obstacle and the electric scooter has changed, and to determine whether the distance may cause a rear-end collision during emergency braking. Since the unit time is fixed, it is also possible to obtain two frames of images with a smaller actual time interval by increasing the frame rate. For the two frames of images that meet the requirements, the areas with the same contours of the two images are determined by calculating the values ​​of the pixel points, and by comparing the sizes of the areas of the two areas, it is determined whether the distance between the rear obstacle and the electric scooter is reduced or increased. If the area increases, the rear obstacle mode is activated. It should be noted that in addition to the different degrees of adjustment of the power output of the electric scooter, different modes also include different warning methods of the electric scooter, not just the adjustment of the power.

[0049] The three detection methods of the present invention are all based on image analysis, and the algorithms are unified, which avoids the complex calculations of traditional radar detection and the problem that obstacles cannot be specifically identified. There is no need to pre-set what obstacles are. It is a broad detection method, but the efficiency is improved.

[0050] In one embodiment of the present invention, the power output is adjusted according to the front slope, the left and right slopes, the rear obstacle and the current power output value, which is specifically determined by the following formula:

[0051]

[0052]

[0053]

[0054]

[0055]

[0056] Where: is the adjusted power output; is the current power output; The maximum power output of the electric scooter; is the pixel row of the second frame image; is the highest pixel row of the first frame image; is the pixel coordinate of the second infrared image; is the pixel coordinate of a vertex of the first infrared image; is the area size of the second scanned image block; is the size of the first scanned image block.

[0057] In the embodiment of the present invention, the detection of the front camera, left and right infrared depth of field cameras and rear radar are assigned different influence weights according to the difficulty of their start-up conditions and the influence on the acceleration to improve the power output of the electric scooter. It can be understood that the present invention is explained by taking the uphill as an example. For the downhill, the above method is also applicable. The corresponding operation direction or vector conversion direction or reverse adjustment of the judgment condition can be used. The embodiment of the present invention will not be repeated in detail.

[0058] In one embodiment of the present invention, the intelligent electric scooter slope detection and control method further includes the following steps:

[0059] Start the gyroscope dual-axis prediction mode to determine the deflection angle of the power scooter;

[0060] Start the gyroscope single-axis prediction mode to determine the flip angle of the power scooter;

[0061] The power output of the electric scooter is reduced according to the deflection angle, the flip angle and the current power output value of the electric scooter in a preset method.

[0062] In the embodiment of the present invention, it can be understood that this process is for a climbing process, and the purpose is to prevent the electric scooter from deflecting or flipping when the power of the electric scooter changes.

[0063] In one embodiment of the present invention, starting the gyroscope dual-axis prediction mode to determine the deflection angle of the power scooter includes the following steps:

[0064] Get the deflection angles of the X-axis and Y-axis of the gyroscope;

[0065] If at least one of the deflection angles of the X-axis and the Y-axis is not 0, it is determined that the electric scooter has deflected left or right.

[0066] In one embodiment of the present invention, starting the gyroscope single-axis prediction mode to determine the flip angle of the powered scooter includes the following steps:

[0067] Get the deflection angles of the X-axis and Y-axis of the gyroscope;

[0068] If at least one of the deflection angles of the X-axis and the Y-axis is not 0 and the deflection angles of the X-axis and the Y-axis are equal, then the deflection angle of the Z-axis of the gyroscope is obtained;

[0069] If the Z-axis deflection angle is not 0, it is determined that the electric scooter has a center flip.

[0070] In one embodiment of the present invention, after determining that the electric scooter has a center flip, the method further includes:

[0071] Start the upward-shooting camera of the electric scooter to obtain the user's posture image;

[0072] Determining whether the user is in a standing or squatting position according to the user posture image;

[0073] According to the changing direction of the current power of the electric scooter, the user is prompted to change his posture to maintain balance.

[0074] In the embodiment of the present invention, more specifically, the deflection or flip angle limit is set to 90 degrees, that is, the deflection or flip angle is set to 90 degrees, and the power output of the electric scooter is reduced to 0; in the deceleration mode, the aforementioned method is suppressed and not executed, on this basis, the current power output value is detected, and the power output value is corresponded to the range of 0-90 degrees, and the power output is proportionally reduced according to the detected deflection or flip angle to prevent the deflection or flipping of the electric scooter. It can be understood that in this mode, the electric scooter can normally achieve a small angle deceleration turn; further, the above-mentioned method of suppressing power output through gyroscope detection is based on the above-mentioned method of going back to increase, that is, the above-mentioned power increase process must exist before the process of reducing power output can be started, and the algorithm can be limited to uphill or downhill movement without affecting normal flat road turning.

[0075] In one embodiment of the present invention, the intelligent electric scooter slope detection control method comprises the following steps:

[0076] According to the direction and amplitude of the power output change of the power scooter, selectively start any one of the light and sound emergency linkage display modes:

[0077] Dashboard sleep mode: Set the power supply countdown for the electric scooter dashboard, and the dashboard will enter sleep mode when the countdown ends;

[0078] Sound alarm mode: Get the value of the electric scooter's power output reduction, increase the volume and frequency of the horn in proportion to the reduced value, and set the horn alarm;

[0079] Light flashing alarm mode: Get the value of the electric scooter's power output reduction, increase the flashing frequency of the front and rear tail lights in proportion to the reduced value, and set a flashing reminder.

[0080] In an embodiment of the present invention, the above-mentioned light and sound emergency linkage display mode can timely remind pedestrians or other vehicles to pay attention to the speed change operation of the electric scooter to protect safety.

[0081] Figure 2 FIG. 2 shows an internal structure diagram of a computer device in one embodiment. Figure 2 As shown, the computer device includes a processor, a memory, a network interface, an input device and a display screen connected through a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor can implement the intelligent electric scooter slope detection control method provided in the embodiment of the present invention. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor can execute the intelligent electric scooter slope detection control method provided in the embodiment of the present invention. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a button, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0082] Those skilled in the art will understand that Figure 2 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0083] In one embodiment, a computer device is provided, the computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:

[0084] Start the front camera to shoot two frames, and determine the front slope based on the two frames;

[0085] Start the left and right infrared depth-of-field cameras to obtain left and right images, and determine the left and right slopes based on the left and right images;

[0086] Activate the rear radar to detect obstacles behind;

[0087] The power output is adjusted according to the front slope, the left and right slopes, the rear obstacle and the current power output value.

[0088] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the processor performs the following steps:

[0089] Start the front camera to shoot two frames, and determine the front slope based on the two frames;

[0090] Start the left and right infrared depth-of-field cameras to obtain left and right images, and determine the left and right slopes based on the left and right images;

[0091] Activate the rear radar to detect obstacles behind;

[0092] The power output is adjusted according to the front slope, the left and right slopes, the rear obstacle and the current power output value.

[0093] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have strict order restrictions, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.

[0094] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0095] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0096] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A method for detecting and controlling a slope of an intelligent electric scooter, characterized in that: The intelligent electric scooter slope detection control method comprises the following steps: Start the front camera to shoot two frames, and determine the front slope based on the two frames; Start the left and right infrared depth-of-field cameras to obtain left and right images, and determine the left and right slopes based on the left and right images; Activate the rear radar to detect obstacles behind; Adjust the power output according to the front slope, left and right slopes, rear obstacles and the current power output value; The method of starting the front camera to capture two frames of images and determining the front slope based on the two captured frames of images includes the following steps: Start the front camera, obtain the first frame image with a range of 0 to 180 degrees centered on the front of the electric scooter, and obtain the second frame image with the same angle range after a unit time interval; Extract the pixel values ​​of the two frames of images, and perform regional registration of the pixel values ​​to find the areas with the same pixel values ​​in the two frames of images; Subtract the area with the same pixel value from the second frame image, and determine the front slope according to the height ratio of the non-blank area of ​​the obtained image, the unit time of shooting, and the current speed of the electric scooter; If the front slope is greater than the set value, the front high slope mode is activated, otherwise the front low slope mode is activated; The method of starting the left and right infrared depth-of-field cameras to obtain left and right images and determining the left and right slopes from the left and right images specifically includes the following steps: Start the left and right infrared depth-of-field cameras to obtain a first infrared image in the range of 90 to 270 degrees to the left and / or right of the electric scooter, and obtain a second infrared image in the same direction and the same angle range after a unit time interval; Extract the pixel values ​​of the two frames of images, and perform regional registration of the pixel values ​​to find the areas with the same pixel values ​​in the two frames of images; Subtract the area with the same pixel value from the second infrared image, and determine the left and right slopes from the angle between the diagonal of the blank area of ​​the obtained image and the horizontal direction; If the left and right slopes are greater than the set value, the left and right high slope mode is activated, otherwise the left and right low slope mode is activated; The method of starting the rear radar to detect rear obstacles includes the following steps: Start the rear scanning radar to obtain a first scanning image with a range of 180 to 360 degrees behind the electric scooter, and obtain a second scanning image with the same angle range after a unit time interval; Extract the pixel values ​​of the two frames of images, and perform regional registration of the pixel values ​​to determine whether there are blocks with the same contour in the two frames of images. If so, determine whether the areas of the blocks are equal; If the area of ​​the block increases, the rear obstacle mode is activated, otherwise the rear barrier-free mode is activated; The power output is adjusted according to the front slope, left and right slopes, rear obstacles and current power output value, which is specifically determined by the following formula: Among them, 0≤i,j,k≤1, i satisfies frame2(i)-frame1(1)=0 j=xy, where 0≤x, y≤1 and frame4(x,y)-frame3(1,1)=0 Where: w is the adjusted power output; w 当前 is the current power output; w max is the maximum power output of the electric scooter; frame2(i) is the pixel row of the second frame image; frame1(1) is the highest pixel row of the first frame image; frame4(x,y) is the pixel coordinate of the second infrared image; frame3(1,1) is the pixel coordinate of a vertex of the first infrared image; S frame2 is the area size of the second scanned image block; S frame1 is the size of the first scanned image block.

2. The intelligent electric scooter slope detection and control method according to claim 1, characterized in that: The intelligent electric scooter slope detection and control method further comprises the following steps: Start the gyroscope dual-axis prediction mode to determine the deflection angle of the power scooter; Start the gyroscope single-axis prediction mode to determine the flip angle of the power scooter; The power output of the electric scooter is reduced according to the deflection angle, the flip angle and the current power output value of the electric scooter in a preset method.

3. The intelligent electric scooter slope detection and control method according to claim 2, characterized in that: The step of starting the gyroscope dual-axis prediction mode to determine the deflection angle of the power scooter includes the following steps: Get the deflection angles of the X-axis and Y-axis of the gyroscope; If at least one of the deflection angles of the X-axis and the Y-axis is not 0, it is determined that the electric scooter has deflected left or right.

4. The intelligent electric scooter slope detection and control method according to claim 2, characterized in that: The method of starting the gyroscope single-axis prediction mode to determine the flip angle of the powered scooter includes the following steps: Get the deflection angles of the X-axis and Y-axis of the gyroscope; If at least one of the deflection angles of the X-axis and the Y-axis is not 0 and the deflection angles of the X-axis and the Y-axis are equal, then the deflection angle of the Z-axis of the gyroscope is obtained; If the Z-axis deflection angle is not 0, it is determined that the electric scooter has a center flip.

5. The intelligent electric scooter slope detection and control method according to claim 4, characterized in that: After judging that the electric scooter has flipped over, the following steps are also required: Start the upward-shooting camera of the electric scooter to obtain the user's posture image; Determining whether the user is in a standing or squatting position according to the user posture image; According to the changing direction of the current power of the electric scooter, the user is prompted to change his posture to maintain balance.

6. The intelligent electric scooter slope detection and control method according to claim 1, characterized in that: The intelligent electric scooter slope detection control method comprises the following steps: According to the direction and amplitude of the power output change of the power scooter, selectively start any one of the light and sound emergency linkage display modes: Dashboard sleep mode: Set the power supply countdown for the electric scooter dashboard, and the dashboard will enter sleep mode when the countdown ends; Sound alarm mode: Get the value of the electric scooter's power output reduction, increase the volume and frequency of the horn in proportion to the reduced value, and set the horn alarm; Light flashing alarm mode: Get the value of the electric scooter's power output reduction, increase the flashing frequency of the front and rear tail lights in proportion to the reduced value, and set a flashing reminder.

Citation Information

Patent Citations

  • Pre-acceleration uphill automatic driving method and system

    CN111762160A

  • Device for adjusting a vehicle's driving strategy

    DE102019213533A1

  • Safety device having prevention for a collision and overturn of electromotive vehicle

    KR1020140113030A