GPS information optimization method, device, driving recorder and storage medium

Optimizing the GPS information by acquiring visual images and calculating pose information in the driving recorder solves the problem of reduced positioning accuracy when the GPS signal is poor, improves positioning accuracy and reduces safety risks.

CN114067458BActive Publication Date: 2024-10-01MUSHROOM CHELIAN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010776491.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-05
Publication Date
2024-10-01
Estimated Expiration
2040-08-05

AI Technical Summary

Technical Problem

In an environment with poor GPS signals, the optimization of GPS information by the inertial measurement unit (IMU) will lead to cumulative errors, leading to reduced positioning accuracy, route planning errors and vehicle return location errors, posing safety risks.

Method used

By acquiring visual images from the driving recorder, the pose information is calculated, and this information is used to optimize the GPS information to be optimized, correct its translation and rotation parameters, and output the optimized GPS information.

Benefits of technology

It improves the accuracy of GPS information, improves positioning accuracy when the GPS signal is poor, and reduces safety risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114067458B_ABST
    Figure CN114067458B_ABST
Patent Text Reader

Abstract

The present application is about a GPS information optimization method, device, driving recorder and storage medium. The method is applied to the driving recorder, and includes: when receiving a GPS information optimization instruction, obtaining the visual image collected by the driving recorder; calculating the posture information corresponding to the visual image; optimizing the GPS information to be optimized using the posture information; and outputting the optimized GPS information. It can be seen that since the technical solution of the present application can further optimize the GPS information using the visual image collected in the driving recorder, it can improve the accuracy of the GPS information when the GPS signal is poor, so as to improve the positioning accuracy and reduce safety hazards.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a GPS information optimization method, device, driving recorder and storage medium. Background Art

[0002] The Global Positioning System (GPS) has the characteristics of good performance, high accuracy and wide application. It is the most commonly used navigation and positioning system to date.

[0003] In some scenarios, such as under bridges, in culverts, tunnels, between densely populated buildings and other locations where GPS signals are poor, it is necessary to correct the GPS information to improve the accuracy of the GPS information.

[0004] In the related art, an inertial measurement unit (IMU) may be used to optimize GPS information.

[0005] However, this method has cumulative errors. As time goes by, the optimized GPS information will become less and less accurate, which will make the positioning accuracy worse and lead to safety hazards such as route planning errors and incorrect return location. Summary of the invention

[0006] In order to overcome the problems existing in the related art, the present application provides a GPS information optimization method, device, driving recorder and storage medium. The optimization method can improve the accuracy of GPS information when the GPS signal is poor, so as to improve positioning accuracy and reduce safety hazards.

[0007] The first aspect of the present application provides a GPS information optimization method, which is applied to a driving recorder, comprising:

[0008] When receiving the GPS information optimization instruction, obtaining the visual image collected by the driving recorder;

[0009] Calculating the position and posture information corresponding to the visual image;

[0010] Utilizing the position information to optimize the GPS information to be optimized;

[0011] Output optimized GPS information.

[0012] Optionally, the acquiring of the visual image captured by the driving recorder includes:

[0013] The GPS information optimization instruction is used as a trigger to control the image acquisition device in the driving recorder to acquire visual images at preset time intervals.

[0014] Optionally, the calculating the posture information corresponding to the visual image includes:

[0015] According to a preset model, a first visual image collected at a first moment and a second visual image collected at a second moment are used as input parameters to obtain camera extrinsics; the camera extrinsics include rotation parameters and translation parameters;

[0016] The camera extrinsic parameter is used as the pose information of the visual image.

[0017] Optionally, optimizing the GPS information to be optimized by using the position information includes:

[0018] Get GPS information to be optimized;

[0019] The translation parameters and rotation parameters in the GPS information to be optimized are corrected according to the camera external parameters to obtain optimized GPS information.

[0020] Optionally, the driving recorder includes an IMU device and a GPS device, and the obtaining of the GPS information to be optimized specifically includes:

[0021] Obtaining IMU correction information output by the IMU device;

[0022] Obtain GPS information output by the GPS device at the current moment;

[0023] The IMU correction information is used to correct the GPS information to obtain the GPS information to be optimized.

[0024] Optionally, the preset time interval is the duration for the GPS device to perform two GPS tests.

[0025] The second aspect of the present application provides a GPS information optimization device, which is applied to a driving recorder, comprising:

[0026] A trigger module, for acquiring the visual image collected by the driving recorder when receiving a GPS information optimization instruction;

[0027] A calculation module, used for calculating the position and posture information corresponding to the visual image;

[0028] An optimization module, used for optimizing the GPS information to be optimized by using the posture information;

[0029] The output module is used to output the optimized GPS information.

[0030] Preferably, the trigger module includes:

[0031] The trigger unit is used to control the image acquisition device in the driving recorder to acquire visual images at preset time intervals using the GPS information optimization instruction as a trigger.

[0032] A third aspect of the present application provides an electronic device, including:

[0033] Processor; and

[0034] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.

[0035] A fourth aspect of the present application provides a non-transitory machine-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described above.

[0036] The technical solution provided by this application may have the following beneficial effects:

[0037] The technical solution of the present application, when receiving a GPS information optimization instruction, obtains the visual image collected by the driving recorder; calculates the position information corresponding to the visual image; optimizes the GPS information to be optimized using the position information; and outputs the optimized GPS information. It can be seen that since the technical solution of the present application can further optimize the GPS information using the visual image collected by the driving recorder, it can improve the accuracy of the GPS information when the GPS signal is poor, thereby improving positioning accuracy and reducing safety hazards.

[0038] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The above and other objects, features and advantages of the present application will become more apparent through a more detailed description of exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.

[0040] Figure 1 It is a flowchart of a GPS information optimization method shown in an embodiment of the present application;

[0041] Figure 2 It is a structural schematic diagram of a GPS information optimization device shown in an embodiment of the present application;

[0042] Figure 3 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION

[0043] The preferred embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.

[0044] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0045] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0046] In the embodiment of the present application, it is mainly used to correct GPS information. In the related art, the GPS information can be optimized by using an inertial measurement unit (IMU). Among them, the IMU has a gyroscope, which mainly relies on acceleration to supplement the GPS information. However, as time goes by, the error will become larger and larger, making the final result inaccurate.

[0047] In view of the above problems, an embodiment of the present application provides a GPS information optimization method, which can improve the accuracy of GPS information when the GPS signal is poor, so as to improve positioning accuracy and reduce safety hazards.

[0048] The technical solution of the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0049] Figure 1 It is a flowchart of a GPS information optimization method shown in an embodiment of the present application.

[0050] See also Figure 1 A GPS information optimization method shown in an embodiment of the present application is applied to a driving recorder, and the method includes:

[0051] S100, when receiving a GPS information optimization instruction, obtaining a visual image collected by the driving recorder;

[0052] In the embodiment of the present application, it is applied to a driving recorder. The driving recorder in the embodiment of the present application preferably has a GPS device, an IMU device, an image acquisition device and a processing device. Among them, the image acquisition device can be a camera of the type such as CCD or CMOS.

[0053] In the embodiment of the present application, when the GPS information needs to be optimized, an optimization instruction is received. For example, when it is determined that the GPS signal does not meet the preset signal value, the optimization instruction is issued. Alternatively, the optimization instruction may be triggered when a certain program is started, or after the IMU device optimizes the GPS information.

[0054] When an optimization instruction is received, the visual image captured by the driving recorder is obtained.

[0055] Wherein, obtaining the visual image collected by the driving recorder includes:

[0056] The GPS information optimization instruction is used as a trigger to control the image acquisition device in the driving recorder to acquire visual images at preset time intervals.

[0057] It is understandable that the measurement time intervals of various sensors are not equal. Usually, the IMU is the most intensive, about 100Hz; the video acquisition device can be 30Hz; and the GPS device can be 1Hz.

[0058] In the embodiment of the present application, the image acquisition device can acquire visual images at a preset time interval. The preset time interval is preferably the duration of two GPS tests performed by the GPS device. That is, the duration of two positioning operations performed by the GPS device. Of course, the specific time can be set according to actual needs, as long as the two pictures contain the same object and have a certain similarity; in practical applications, it is usually two adjacent frames of a video, such as 1 / 30s.

[0059] In the embodiment of the present application, the obtained visual image is used to calculate the correction parameters, such as translation parameters, to correct the GPS information and improve the accuracy of positioning.

[0060] S200, calculating the posture information corresponding to the visual image;

[0061] In the embodiment of the present application, after the visual image is obtained, its posture information is calculated.

[0062] Among them, the position and posture information includes position and attitude. The position can be represented by t, which indicates its spatial position; the attitude can be represented by R, which indicates its orientation, pitch, etc.

[0063] The specific process of calculating the camera visual image pose information may include:

[0064] According to a preset model, a first visual image collected at a first moment and a second visual image collected at a second moment are used as input parameters to obtain camera extrinsics; the camera extrinsics include rotation parameters and translation parameters;

[0065] The camera extrinsic parameter is used as the pose information of the visual image.

[0066] In the embodiment of the present application, a preset model is preferably used, in which the camera extrinsic parameters can be calculated using the input first visual image and the second visual image. Multiple sets of corresponding points (Correspondence) are used for frame matching to obtain the essential matrix E. Then, the camera extrinsic parameters R and t, i.e., the pose information, are obtained by decomposing E. Among them, mature technologies such as feature point extraction, matching, epipolar geometry, solvepnp, etc. are involved, which will not be elaborated here.

[0067] It can be understood that due to the scale equivalence of the camera space, in the embodiment of the present application, t can also be multiplied by a constant of any size to satisfy the posture changes between photos. Therefore, t is usually normalized and can be recorded as R_image, t_image, which can represent the proportion of translation in the three directions of xyz.

[0068] S300, optimizing the GPS information to be optimized using the position information;

[0069] In the embodiment of the present application, the GPS information to be optimized may be the GPS information output by the GPS device, or may be the GPS information obtained by correcting the original GPS information using the IMU.

[0070] The optimization may be a process of correcting the coordinates and positions in the GPS information to be optimized.

[0071] In the embodiment of the present application, the driving recorder is mainly used to optimize the GPS information to be optimized in real time to improve the accuracy of the GPS information. The specific process of the optimization will be described in detail later.

[0072] It should be noted that the driving recorder in the embodiment of the present application can be connected to the cloud server data. When the driving recorder cannot meet the computing requirements or the CPU efficiency occupied by the optimization is high, it will be uploaded to the cloud server to instruct the cloud server to execute the optimization process.

[0073] Therefore, in an embodiment of the present application, it may also include that when the calculation efficiency of calculating the posture information and / or the optimization efficiency of optimizing the GPS information to be optimized using the posture information cannot meet the preset requirements, the GPS information to be optimized and / or the posture information are uploaded to a cloud server connected to the driving recorder, so that the cloud server executes the steps of calculating the posture information and / or optimizing the GPS information to be optimized using the posture information, and returns the corresponding results.

[0074] S400: Outputting optimized GPS information.

[0075] Finally, the optimized GPS information will be output.

[0076] Among them, the optimized GPS information can be used in applications, such as navigation, and can also be used as a basis for subsequent calculations, such as subsequent path calculations of driverless cars, etc., which will not be elaborated here.

[0077] It can be seen that the technical solution of the present application, when receiving the GPS information optimization instruction, obtains the visual image collected by the driving recorder; calculates the posture information corresponding to the visual image; optimizes the GPS information to be optimized using the posture information; and outputs the optimized GPS information. It can be seen that since the technical solution of the present application can use the visual image collected by the driving recorder to further optimize the GPS information, it can improve the accuracy of the GPS information when the GPS signal is poor, thereby improving positioning accuracy and reducing safety hazards.

[0078] The above-mentioned embodiment introduces the process of optimizing the GPS information to be optimized, which is described in detail below.

[0079] In the embodiment of the present application, the optimizing the GPS information to be optimized by using the posture information includes:

[0080] Get GPS information to be optimized;

[0081] The translation parameters and rotation parameters in the GPS information to be optimized are corrected according to the camera external parameters to obtain optimized GPS information.

[0082] Wherein, the driving recorder includes an IMU device and a GPS device, and the obtaining of the GPS information to be optimized specifically includes:

[0083] Obtaining IMU correction information output by the IMU device;

[0084] Obtain GPS information output by the GPS device at the current moment;

[0085] The IMU correction information is used to correct the GPS information to obtain the GPS information to be optimized.

[0086] In the embodiment of the present application, the GPS information to be optimized is optimized, that is, the rotation parameter (R_vio) and the translation parameter (t_vio) in the GPS information to be optimized are corrected.

[0087] The correction information that is ultimately required can be determined by using a preset function cost_function.

[0088] The first correction function error[0] and the second correction function error[1] may be included. The first correction function error[0] = norm(R_image.inv*R_vio-eye), where R_image is the rotation parameter calculated above. error[1] = norm(t_image-normalize(t_vio)), where t_image is the translation parameter calculated above.

[0089] In the embodiment of the present application, when error[0] and error[1] are the smallest, the corrected GPS information is determined, wherein error0=t_gps-R_vio, error1=t_gps-t_vio, and the GPS information is corrected using error0 and error1.

[0090] It is understandable that the error[0] and error[1] can be adjusted in proportion according to actual needs. For example, the weight ratio of error[0] can be adjusted to 40% and the weight ratio of error[1] can be adjusted to 60% to determine the minimum value.

[0091] It can be understood that the purpose of setting the preset function is to obtain a result of correcting the GPS information to be optimized using the image acquisition device that is closer to the actual position. When the GPS information to be optimized is the GPS information to be optimized obtained by correcting the GPS information using the IMU correction information, the GPS information to be optimized is the first GPS information to be optimized, and the second GPS information to be optimized is obtained after optimizing the real GPS information using the image acquisition device. The weighted average algorithm is used to calculate the first GPS information to be optimized and the second GPS information to be optimized to obtain the corrected GPS information, and the corrected GPS information is used as a step to output the optimized GPS information.

[0092] Of course, it is understandable that it is only necessary to optimize the GPS information and improve the accuracy of the GPS information by using the visual images collected by the image acquisition device in the driving recorder, and the specific algorithm can be further improved by those skilled in the art according to actual needs. However, the improvement is still within the scope disclosed in the embodiments of the present application.

[0093] It can be seen that the embodiment of the present application can utilize the driving recorder to optimize the GPS information in the vehicle computer and obtain a more accurate location.

[0094] Corresponding to the aforementioned application function implementation method embodiment, the present application also provides a GPS information optimization device, an electronic device and corresponding embodiments.

[0095] Figure 2 It is a structural schematic diagram of a GPS information optimization device shown in an embodiment of the present application.

[0096] See also Figure 2 A GPS information optimization device shown in an embodiment of the present application is applied to a driving recorder, and the device includes:

[0097] A trigger module 1 is used to obtain the visual image collected by the driving recorder when receiving a GPS information optimization instruction;

[0098] Calculation module 2, used to calculate the posture information corresponding to the visual image;

[0099] An optimization module 3 is used to optimize the GPS information to be optimized by using the posture information;

[0100] The output module 4 is used to output the optimized GPS information.

[0101] Optionally, the trigger module includes:

[0102] The trigger unit is used to control the image acquisition device in the driving recorder to acquire visual images at preset time intervals using the GPS information optimization instruction as a trigger.

[0103] Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and will not be elaborated again here.

[0104] Figure 3 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application.

[0105] See also Figure 3 , the electronic device 1000 includes a memory 1010 and a processor 1020 .

[0106] The processor 1020 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0107] The memory 1010 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 1020 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 1010 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 1010 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.

[0108] The memory 1010 stores executable codes, and when the executable codes are processed by the processor 1020 , the processor 1020 can execute part or all of the methods described above.

[0109] The scheme of the present application has been described in detail above with reference to the accompanying drawings. In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, refer to the relevant description of other embodiments. Those skilled in the art should also know that the actions and modules involved in the description are not necessarily required for the present application. In addition, it can be understood that the steps in the method of the embodiment of the present application can be adjusted in order, merged and deleted according to actual needs, and the modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.

[0110] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.

[0111] Alternatively, the present application can also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or electronic device, server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.

[0112] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the application herein may be implemented as electronic hardware, computer software, or combinations of both.

[0113] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system and method according to multiple embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a part of a module, a program segment or a code, and the part of the module, the program segment or the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or the flow chart, and the combination of the square boxes in the block diagram and / or the flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0114] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A GPS information optimization method, characterized in that: Applied to a driving recorder, the method comprises: When receiving a GPS information optimization instruction for optimizing the GPS information in the vehicle computer, obtaining the visual image collected by the driving recorder; Calculate the pose information corresponding to the visual image; specifically, according to a preset model, take the first visual image collected at the first moment and the second visual image collected at the second moment as input parameters to obtain camera extrinsics; the camera extrinsics include rotation parameters and translation parameters; and use the camera extrinsics as the pose information of the visual image; Optimizing the GPS information to be optimized using the posture information; specifically, obtaining the GPS information to be optimized; correcting the translation parameters and rotation parameters in the GPS information to be optimized according to the camera external parameters to obtain the optimized GPS information; Output optimized GPS information; Wherein, when the GPS information to be optimized is the GPS information to be optimized obtained by correcting the GPS information using the IMU correction information, the GPS information to be optimized is the first GPS information to be optimized, the real GPS information is optimized using the image acquisition device to obtain the second GPS information to be optimized, the first GPS information to be optimized and the second GPS information to be optimized are calculated using a weighted average algorithm to obtain the corrected GPS information, and the corrected GPS information is used as a step to output the optimized GPS information; wherein the corrected GPS information is determined by a preset function, by setting the first correction function and the second correction function, the first correction function involves the aforementioned calculated rotation parameters, the second correction function involves the aforementioned calculated translation parameters, and the weight ratio of the first correction function and the second correction function is adjusted according to actual needs; The step of acquiring the visual image collected by the driving recorder includes: The GPS information optimization instruction is used as a trigger to control the image acquisition device in the driving recorder to acquire visual images at preset time intervals.

2. The optimization method according to claim 1, characterized in that: The driving recorder includes an IMU device and a GPS device, and obtaining the GPS information to be optimized specifically includes: Obtaining IMU correction information output by the IMU device; Obtain GPS information output by the GPS device at the current moment; The IMU correction information is used to correct the GPS information to obtain the GPS information to be optimized.

3. The optimization method according to claim 2, characterized in that: The preset time interval is the duration for the GPS device to perform two GPS tests.

4. A GPS information optimization device, characterized in that: Applied to a driving recorder, the device comprises: A trigger module, for obtaining the visual image collected by the driving recorder when receiving a GPS information optimization instruction for optimizing the GPS information in the vehicle computer; A calculation module, used to calculate the posture information corresponding to the visual image; specifically, according to a preset model, a first visual image collected at a first moment and a second visual image collected at a second moment are used as input parameters to obtain camera extrinsics; the camera extrinsics include rotation parameters and translation parameters; the camera extrinsics are used as the posture information of the visual image; An optimization module is used to optimize the GPS information to be optimized by using the posture information; specifically, obtaining the GPS information to be optimized; and correcting the translation parameters and rotation parameters in the GPS information to be optimized according to the camera external parameters to obtain the optimized GPS information; Output module, used to output optimized GPS information; Wherein, when the GPS information to be optimized is the GPS information to be optimized obtained by correcting the GPS information using the IMU correction information, the GPS information to be optimized is the first GPS information to be optimized, the real GPS information is optimized using the image acquisition device to obtain the second GPS information to be optimized, the first GPS information to be optimized and the second GPS information to be optimized are calculated using a weighted average algorithm to obtain the corrected GPS information, and the corrected GPS information is used as a step to output the optimized GPS information; wherein the corrected GPS information is determined by a preset function, by setting the first correction function and the second correction function, the first correction function involves the aforementioned calculated rotation parameters, the second correction function involves the aforementioned calculated translation parameters, and the weight ratio of the first correction function and the second correction function is adjusted according to actual needs; The step of acquiring the visual image collected by the driving recorder includes: The GPS information optimization instruction is used as a trigger to control the image acquisition device in the driving recorder to acquire visual images at preset time intervals.

5. The optimization device according to claim 4, characterized in that: The trigger module comprises: The trigger unit is used to control the image acquisition device in the driving recorder to acquire visual images at preset time intervals using the GPS information optimization instruction as a trigger.

6. An electronic device, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 3.

7. A non-transitory machine-readable storage medium having executable code stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method as claimed in any one of claims 1 to 3.