Auxiliary driving method and device based on Android system

Through the Android system's assisted driving method, background differential computing is used to monitor driving status and issue warnings, solving the problem of frequent car accidents during high-speed driving and improving driving safety.

CN119037133APending Publication Date: 2024-11-29THINKCAR TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310610138.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-29
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

Car accidents occur frequently during high-speed driving due to fatigue driving and other reasons, and it is difficult for the existing technology to effectively monitor and avoid scratches, collisions and other accidents.

Method used

The assisted driving method based on the Android system uses a camera to capture the original image data of the driving, perform background differential calculations, determine the driving status of the main vehicle and the front vehicle, and issue a warning when the vehicle speed is higher than the preset threshold, so as to assist the driver to drive safely.

Benefits of technology

By monitoring the distance and driving status of the vehicle in front in real time, it can effectively assist the driver in avoiding potential accidents during high-speed driving and improving travel safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119037133A_ABST
    Figure CN119037133A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of automobiles, and discloses an auxiliary driving method and device based on an Android system, and the method comprises the steps: shooting the original image data of driving according to an Android system camera; acquiring the original image data, and performing background difference operation on the original image data to judge the driving state of the vehicle and the driving state of the front vehicle; and the speed of the vehicle is calculated according to the driving states of the vehicle and the front vehicle, and when the speed of the vehicle is higher than a preset threshold value, an alarm is given out. The distance between the automobile and the front automobile is monitored, so that a driver is assisted to safely drive the automobile.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automobile technology, and in particular to an assisted driving method and device based on an Android system. Background Art

[0002] There is a question worth thinking about: the issue of travel safety after there are too many cars. When driving, we must always avoid scratches, collisions and other car accidents.

[0003] Especially on highways, many people have car accidents due to fatigue driving. Summary of the invention

[0004] The main purpose of this application is to provide an Android-based assisted driving method and device, aiming to solve the above-mentioned technical problems in the prior art.

[0005] This application proposes an assisted driving method based on an Android system, the improvements of which include:

[0006] Based on the original image data of the vehicle captured by the Android system camera;

[0007] Acquiring the original image data, and performing background difference operation on the original image data to determine the driving status of the vehicle and the preceding vehicle;

[0008] The speed of the vehicle is calculated according to the driving status of the vehicle and the preceding vehicle, and a warning is issued when the speed of the vehicle is higher than a preset threshold.

[0009] As an improvement of the above technical solution, the original image data includes the original image data of the vehicle, and the method for performing background difference operation on the original image data of the vehicle comprises the following specific steps:

[0010] Splitting the original image data of the vehicle to obtain a plurality of groups of original images of the vehicle;

[0011] Identify the original image of the vehicle to obtain a sequence of N frames of each original image of the vehicle;

[0012] Arrange the grayscale values ​​of the pixels at the corresponding positions of the N-frame image sequence from small to large, and take the middle value as the grayscale value of the corresponding pixel in the vehicle background image;

[0013] According to the original image of the vehicle corresponding to the intermediate value, the background image of the vehicle is obtained.

[0014] As a further improvement of the above technical solution, the method further includes:

[0015] After obtaining the vehicle background image, continuously obtaining the vehicle original image;

[0016] Whenever an original image of the vehicle is obtained, a difference operation is performed between the currently obtained original image of the vehicle and the background image of the vehicle to obtain the number of pixels of the vehicle.

[0017] As a further improvement of the above technical solution, the original image also includes the original image data of the preceding vehicle, and the method for performing background difference operation on the original image data of the preceding vehicle comprises the following specific steps:

[0018] Splitting the original image data of the preceding vehicle to obtain a plurality of groups of original images of the preceding vehicle;

[0019] Identify the original image of the preceding vehicle to obtain a sequence of N frames of images of each original image of the preceding vehicle;

[0020] Arrange the grayscale values ​​of the pixels at the corresponding positions of the N-frame image sequence from small to large, and take the middle value as the grayscale value of the corresponding pixel in the background image of the front vehicle;

[0021] According to the original image of the front vehicle corresponding to the intermediate value, the background image of the front vehicle is obtained.

[0022] As a further improvement of the above technical solution, the method further includes:

[0023] After obtaining the front vehicle background image, continuously obtaining the front vehicle original image;

[0024] Whenever the original image of the front vehicle is acquired, a difference operation is performed between the currently acquired original image of the front vehicle and the background image of the front vehicle to obtain the number of pixels of the front vehicle.

[0025] As a further improvement of the above technical solution, determining the driving state of the vehicle and the preceding vehicle includes the following steps:

[0026] Performing a difference operation on the number of pixels of the vehicle and the number of pixels of the preceding vehicle to obtain a pixel number difference factor;

[0027] Determining the current driving state of the vehicle according to the pixel number difference factor and the preset pixel number difference factor;

[0028] If the pixel number difference factor is greater than the preset pixel number difference factor, it indicates that the current driving state of the vehicle is an accelerating state relative to the current driving state of the preceding vehicle;

[0029] If the pixel number difference factor is less than the preset pixel number difference factor, it indicates that the current driving state of the vehicle is a deceleration state relative to the current driving state of the preceding vehicle;

[0030] If the pixel number difference factor is equal to the preset pixel number difference factor, it indicates that the current driving state of the vehicle is in a uniform speed state relative to the current driving state of the preceding vehicle.

[0031] As a further improvement of the above technical solution, the determining the driving status of the vehicle and the preceding vehicle specifically further includes:

[0032] At the same time point, performing a difference operation on the original image of the vehicle and the original image of the preceding vehicle to obtain an image difference;

[0033] Determine the current state of the vehicle according to the image difference and the preset image difference;

[0034] If the image difference is greater than the preset image difference, it indicates that the current driving state of the vehicle is an accelerating state relative to the current driving state of the preceding vehicle;

[0035] If the image difference is less than the preset image difference, it indicates that the current driving state of the vehicle is a deceleration state relative to the current driving state of the preceding vehicle;

[0036] If the image difference is equal to the preset image difference, it indicates that the current driving state of the vehicle is in a uniform speed state relative to the current driving state of the preceding vehicle.

[0037] The present application also provides an assisted driving device based on an Android system, the improvement of which includes:

[0038] A collection unit, the collection unit is used to capture raw image data of the vehicle according to the Android system camera;

[0039] A calculation unit, the calculation unit is used to obtain the original image data, perform background difference operation on the original image data, so as to determine the driving status of the vehicle and the preceding vehicle;

[0040] The warning unit is used to calculate the speed of the vehicle according to the driving status of the vehicle and the preceding vehicle, and to issue a warning when the speed of the vehicle is higher than a preset threshold.

[0041] The present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned Android system-based assisted driving method when executing the computer program.

[0042] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned Android system-based assisted driving method are implemented.

[0043] The beneficial effect of the present application is that the present application assists the driver in driving the car safely by monitoring the distance between the vehicle and the vehicle in front. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 This is a flowchart of an Android-based assisted driving method according to an embodiment of the present application.

[0045] Figure 2 A schematic diagram of the structural framework of an Android-based driving assistance device according to an embodiment of the present application.

[0046] Figure 3 A schematic diagram of the internal structure of a computer device according to an embodiment of the present application.

[0047] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings.

[0048] 100. Collection unit, 200. Calculation unit, 300. Warning unit. DETAILED DESCRIPTION

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

[0050] Example 1

[0051] refer to Figure 1 , this application discloses an assisted driving method based on an Android system, comprising:

[0052] S1: original image data of the vehicle captured by the Android system camera;

[0053] S2: acquiring the original image data, and performing background difference operation on the original image data to determine the driving status of the vehicle and the preceding vehicle;

[0054] S3: Calculate the speed of the vehicle according to the driving status of the vehicle and the preceding vehicle, and issue a warning when the speed of the vehicle is higher than a preset threshold.

[0055] This application is mainly an invention to deal with traffic jams in bad weather or during peak travel periods. The speed of the vehicle and the preceding vehicle is monitored. Since both vehicles are traveling at high speed, the original image data is obtained for analysis and calculation.

[0056] In the above embodiments, when the car is driving, the camera is turned on to capture the driving scene, or the sensor is used to sense the driving speed. For steps S1-S3, the present application collects the original image data of the driving through the camera. After collecting the original image data of the driving and judging it, the driving status of the vehicle and the preceding vehicle can be determined to assist the driver in driving safely.

[0057] The present application specifically obtains the original image data of the preceding vehicle and the original image data of the vehicle itself, and analyzes and calculates the two:

[0058] The method for performing background difference operation on the original image data of the vehicle comprises the following specific steps:

[0059] S4: splitting the original image data of the vehicle to obtain a plurality of groups of original images of the vehicle;

[0060] S5: Identify the original image of the vehicle to obtain a sequence of N frames of each original image of the vehicle;

[0061] S6: Arrange the grayscale values ​​of the pixels at the corresponding positions of the N frame image sequence from small to large, and take the middle value as the grayscale value of the corresponding pixel in the vehicle background image;

[0062] S7: Obtain the vehicle background image according to the original image of the vehicle corresponding to the intermediate value;

[0063] S8: After obtaining the vehicle background image, continuously obtaining the vehicle original image;

[0064] S9: Whenever an original image of the vehicle is obtained, a difference operation is performed between the currently obtained original image of the vehicle and the background image of the vehicle to obtain the number of pixels of the vehicle.

[0065] The method for performing background difference operation on the original image data of the preceding vehicle comprises the following specific steps:

[0066] S10: splitting the original image data of the preceding vehicle to obtain a plurality of groups of original images of the preceding vehicle;

[0067] S11: Identify the original image of the preceding vehicle to obtain a sequence of N frames of each original image of the preceding vehicle;

[0068] S12: Arrange the grayscale values ​​of the pixels at the corresponding positions of the N frame image sequence from small to large, and take the middle value as the grayscale value of the corresponding pixel in the background image of the front vehicle;

[0069] S13: Obtaining a background image of the front vehicle according to the original image of the front vehicle corresponding to the intermediate value;

[0070] S14: After obtaining the front vehicle background image, continuously obtaining the front vehicle original image;

[0071] S15: Whenever the original image of the front vehicle is acquired, a difference operation is performed between the currently acquired original image of the front vehicle and the background image of the front vehicle to obtain the number of pixels of the front vehicle.

[0072] In the above embodiment, since the vehicles are driving at high speed, it is necessary to obtain the original image data of the two vehicles in real time, and calculate the number of pixels of each vehicle through the obtained original image data: the number of pixels of the front vehicle and the number of pixels of the vehicle itself. The capture time is recorded while capturing the driving photo. For the above steps S4-S15, the original image data of the vehicle itself is first split to obtain several groups of original images of the vehicle itself; the original image of the vehicle itself is identified to obtain an N-frame image sequence of each original image of the vehicle itself; the grayscale values ​​of the pixels at the corresponding positions of the N-frame image sequence are arranged from small to large, and the middle value is taken as the grayscale value of the corresponding pixel in the background image of the vehicle itself; the background image of the vehicle itself is obtained according to the original image of the vehicle corresponding to the middle value; after the background image of the vehicle itself is obtained, the original image of the vehicle itself is continuously obtained; whenever the original image of the vehicle itself is obtained, the currently obtained original image of the vehicle is differentially calculated with the background image of the vehicle itself to obtain the number of pixels of the vehicle itself. The number of pixels of the front vehicle is obtained in the same way.

[0073] In addition to protecting the number of pixels of the vehicle in front and the vehicle itself, this application should also include:

[0074] SA1: Capture the number of pixels of the preceding vehicle and the vehicle at several time points.

[0075] Determining the driving status of the vehicle and the preceding vehicle includes the following steps:

[0076] S16: performing a difference operation on the number of pixels of the vehicle and the number of pixels of the preceding vehicle to obtain a pixel number difference factor;

[0077] S17: judging the current driving state of the vehicle according to the pixel number difference factor and the preset pixel number difference factor;

[0078] S18: If the pixel number difference factor is greater than the preset pixel number difference factor, it indicates that the current driving state of the vehicle is an accelerating state relative to the current driving state of the preceding vehicle;

[0079] S19: If the pixel number difference factor is less than the preset pixel number difference factor, it indicates that the current driving state of the vehicle is a deceleration state relative to the current driving state of the preceding vehicle;

[0080] S20: If the pixel number difference factor is equal to the preset pixel number difference factor, it indicates that the current driving state of the vehicle is in a uniform speed state relative to the current driving state of the preceding vehicle.

[0081] In the above embodiment, for the above steps S16-S20, the pixel number of the vehicle and the pixel number of the preceding vehicle are subtracted to obtain a pixel number difference factor; the current driving state of the vehicle is judged according to the size of the pixel number difference factor and the preset pixel number difference factor; if the pixel number difference factor is greater than the preset pixel number difference factor, it indicates that the current driving state of the vehicle is an accelerating state relative to the current driving state of the preceding vehicle; if the pixel number difference factor is less than the preset pixel number difference factor, it indicates that the current driving state of the vehicle is a decelerating state relative to the current driving state of the preceding vehicle; if the pixel number difference factor is equal to the preset pixel number difference factor, it indicates that the current driving state of the vehicle is a uniform speed state relative to the current driving state of the preceding vehicle.

[0082] In addition, in addition to protecting the acquisition of the number of pixels of the preceding vehicle and the vehicle itself, this application should also include:

[0083] SA2: Find at least one set of pixel counts of the vehicle and the preceding vehicle at the same time node;

[0084] SA3: Compare the number of pixels of the vehicle and the number of pixels of the preceding vehicle at the same time node, and make a comparative judgment to determine the driving status of the vehicle and the preceding vehicle;

[0085] SA4: Obtain multiple comparison results and perform comparison judgment to determine the driving status of the vehicle and the preceding vehicle.

[0086] Due to the uncertainty of the driving process, in order to obtain an accurate judgment method, it is necessary to limit it to the same time node and compare several groups of pixel numbers at the same time node to obtain accurate data in order to make a correct judgment. By comparing the number of pixels of the vehicle and the number of pixels of the preceding vehicle at the same time node, and by collecting the number of pixels of the vehicle and the number of pixels of the preceding vehicle at multiple same time nodes, more accurate values ​​can be further obtained in order to make a more accurate judgment.

[0087] Example 2

[0088] The present application also discloses another implementation method for determining the driving status of the vehicle and the preceding vehicle, which specifically includes:

[0089] S21: performing a difference operation on the original image of the vehicle and the original image of the preceding vehicle at the same time point to obtain an image difference;

[0090] S22: judging the current state of the vehicle according to the image difference and the preset image difference;

[0091] S23: If the image difference is greater than a preset image difference, it indicates that the current driving state of the vehicle is an accelerating state relative to the current driving state of the preceding vehicle;

[0092] S24: If the image difference is less than a preset image difference, it indicates that the current driving state of the vehicle is a deceleration state relative to the current driving state of the preceding vehicle;

[0093] S25: If the image difference is equal to the preset image difference, it indicates that the current driving state of the vehicle is in a uniform speed state relative to the current driving state of the preceding vehicle.

[0094] In the above embodiment, for steps S21-S25, the present application only judges the size of the image difference at the same time and the preset image difference. The present application also includes judging the size of the image difference of the preceding vehicle and the vehicle at multiple time nodes and the preset image difference. For example, in the same day, the image difference of the preceding vehicle and the vehicle at 3:01:55 pm, 3:01:56 pm, 3:01:57 pm, etc. is recorded. By comparing multiple groups of image differences with the preset image differences at the same time, a more accurate comparison value can be obtained to make a more accurate judgment.

[0095] Example 3

[0096] The present application discloses an assisted driving method based on an Android system, which only represents the method of judging the driving status of the vehicle and a preceding vehicle in the above-mentioned embodiments 1-2. The present embodiment is not limited to the method of judging the driving status of the vehicle and a preceding vehicle, especially in bad weather when the line of sight is obstructed or when a car accident is unavoidable in accident-prone areas, which may cause the vehicle and multiple vehicles to be too close to each other. The method of judging the assisted driving status of the vehicle when the vehicle and multiple vehicles are too close to each other is also applicable to the above-mentioned embodiments 1-2.

[0097] Example 4

[0098] The present application discloses an assisted driving method based on an Android system. In the above embodiments 1-3, it only represents the method of judging the driving status of the vehicle and at least one preceding vehicle. Since the owner of the vehicle mainly observes the rear driving conditions of the vehicle through the rearview mirror with the naked eye and lacks a certain reaction speed, the present embodiment is not limited to the method of judging the driving status of the vehicle and a preceding vehicle, but also includes the vehicle and the vehicle changing lanes from the rear or side. When the vehicle is too close to multiple vehicles, the method of judging its assisted driving status is also applicable to the above embodiments.

[0099] Example 5

[0100] The present application discloses an assisted driving method based on an Android system. Based on the above-mentioned embodiment 1, the speed of the vehicle is calculated according to the driving status of the vehicle and the preceding vehicle. In addition to issuing a warning when the speed of the vehicle is higher than a preset threshold, another implementation method is also included. Its application scenario is on a highway. Since there is a minimum value limit for the driving speed on a highway, when the speed of the vehicle is lower than the preset speed value, a warning will also be issued to assist the driver in complying with traffic rules. Unless necessary, the driving speed cannot be lower than the preset speed value to avoid a dangerous situation in which the owner of the vehicle behind reacts untimely due to the low speed of the vehicle.

[0101] Example 6

[0102] refer to Figure 2 , the present application also discloses an assisted driving device based on the Android system, comprising:

[0103] A collection unit 100, the collection unit 100 is used to capture raw image data of a vehicle according to an Android system camera;

[0104] A calculation unit 200, the calculation unit 200 is used to obtain the original image data, perform background difference operation on the original image data, so as to determine the driving status of the vehicle and the preceding vehicle;

[0105] The warning unit 300 is used to calculate the speed of the vehicle according to the driving status of the vehicle and the preceding vehicle, and to issue a warning when the speed of the vehicle is higher than a preset threshold.

[0106] In the above embodiments, when the car is driving, the camera will be turned on to capture the driving scene, or the sensor will be used to sense the driving speed. In this application, the acquisition unit 100 is used to collect the original image data of the driving according to the driving camera, and the calculation unit 200 collects the original image data of the driving and judges it, and then the driving status of the vehicle and the preceding vehicle can be determined, and then the warning unit 300 calculates the speed of the vehicle according to the driving status of the vehicle and the preceding vehicle. When the speed of the vehicle is higher than the preset threshold, a warning is issued to assist the driver in driving safely.

[0107] The present application discloses an assisted driving device based on an Android system, and its implementation method can refer to the steps of the above-mentioned assisted driving method based on an Android system, which will not be repeated here.

[0108] Example 7

[0109] like Figure 3 As shown, the present application also provides a computer device, which may be a server, and its internal structure may be as shown in Figure 3As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store all data required for a process of a data encryption method. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data encryption method is implemented.

[0110] Those skilled in the art will understand that Figure 3 The structure shown in is merely a block diagram of a portion of the structure related to the present application solution and does not constitute a limitation on the computer device to which the present application solution is applied.

[0111] An embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, any one of the above-mentioned data encryption methods is implemented.

[0112] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer 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 provided in this application and used in the embodiments may 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. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), 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), etc.

[0113] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0114] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. An assisted driving method based on an Android system, characterized in that: include: Based on the original image data of the vehicle captured by the Android system camera; Acquiring the original image data, and performing background difference operation on the original image data to determine the driving status of the vehicle and the preceding vehicle; The speed of the vehicle is calculated according to the driving status of the vehicle and the preceding vehicle, and a warning is issued when the speed of the vehicle is higher than a preset threshold.

2. The Android-based assisted driving method according to claim 1, characterized in that: The original image data includes the original image data of the vehicle, and the method for performing background difference operation on the original image data of the vehicle comprises the following specific steps: Splitting the original image data of the vehicle to obtain a plurality of groups of original images of the vehicle; Identify the original image of the vehicle to obtain a sequence of N frames of each original image of the vehicle; Arrange the grayscale values ​​of the pixels at the corresponding positions of the N-frame image sequence from small to large, and take the middle value as the grayscale value of the corresponding pixel in the vehicle background image; According to the original image of the vehicle corresponding to the intermediate value, the background image of the vehicle is obtained.

3. The Android-based assisted driving method according to claim 2, characterized in that: The method further comprises: After obtaining the vehicle background image, continuously obtaining the vehicle original image; Whenever an original image of the vehicle is obtained, a difference operation is performed between the currently obtained original image of the vehicle and the background image of the vehicle to obtain the number of pixels of the vehicle.

4. The Android-based assisted driving method according to claim 1, characterized in that: The original image also includes the original image data of the preceding vehicle. The method for performing background difference operation on the original image data of the preceding vehicle comprises the following specific steps: Splitting the original image data of the preceding vehicle to obtain a plurality of groups of original images of the preceding vehicle; Identify the original image of the preceding vehicle to obtain a sequence of N frames of images of each original image of the preceding vehicle; Arrange the grayscale values ​​of the pixels at the corresponding positions of the N-frame image sequence from small to large, and take the middle value as the grayscale value of the corresponding pixel in the background image of the front vehicle; According to the original image of the front vehicle corresponding to the intermediate value, the background image of the front vehicle is obtained.

5. The Android system-based assisted driving method according to claim 4, characterized in that: The method further comprises: After obtaining the front vehicle background image, continuously obtaining the front vehicle original image; Whenever the original image of the front vehicle is acquired, a difference operation is performed between the currently acquired original image of the front vehicle and the background image of the front vehicle to obtain the number of pixels of the front vehicle.

6. The Android system-based assisted driving method according to any one of claims 2 to 5, characterized in that: Determining the driving status of the vehicle and the preceding vehicle includes the following steps: Performing a difference operation on the number of pixels of the vehicle and the number of pixels of the preceding vehicle to obtain a pixel number difference factor; Determining the current driving state of the vehicle according to the pixel number difference factor and the preset pixel number difference factor; If the pixel number difference factor is greater than the preset pixel number difference factor, it indicates that the current driving state of the vehicle is an accelerating state relative to the current driving state of the preceding vehicle; If the pixel number difference factor is less than the preset pixel number difference factor, it indicates that the current driving state of the vehicle is a deceleration state relative to the current driving state of the preceding vehicle; If the pixel number difference factor is equal to the preset pixel number difference factor, it indicates that the current driving state of the vehicle is in a uniform speed state relative to the current driving state of the preceding vehicle.

7. The Android system-based assisted driving method according to any one of claims 2-3, characterized in that: The determining of the driving status of the vehicle and the preceding vehicle specifically includes: At the same time point, performing a difference operation on the original image of the vehicle and the original image of the preceding vehicle to obtain an image difference; Determine the current state of the vehicle according to the image difference and the preset image difference; If the image difference is greater than the preset image difference, it indicates that the current driving state of the vehicle is an accelerating state relative to the current driving state of the preceding vehicle; If the image difference is less than the preset image difference, it indicates that the current driving state of the vehicle is a deceleration state relative to the current driving state of the preceding vehicle; If the image difference is equal to the preset image difference, it indicates that the current driving state of the vehicle is in a uniform speed state relative to the current driving state of the preceding vehicle.

8. An assisted driving device based on an Android system, characterized in that: include: A collection unit, the collection unit is used to capture raw image data of the vehicle according to the Android system camera; A calculation unit, the calculation unit is used to obtain the original image data, perform background difference operation on the original image data, so as to determine the driving status of the vehicle and the preceding vehicle; The warning unit is used to calculate the speed of the vehicle according to the driving status of the vehicle and the preceding vehicle, and to issue a warning when the speed of the vehicle is higher than a preset threshold.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of an Android system-based assisted driving method according to claims 1-7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, the steps of the Android system-based assisted driving method described in claims 1-7 are implemented.