CN117742798A - Method for shortening cold start time of panoramic image system by optimizing call time sequence - Google Patents

Method for shortening cold start time of panoramic image system by optimizing call time sequence Download PDF

Info

Publication number
CN117742798A
CN117742798A CN202310738472.6A CN202310738472A CN117742798A CN 117742798 A CN117742798 A CN 117742798A CN 202310738472 A CN202310738472 A CN 202310738472A CN 117742798 A CN117742798 A CN 117742798A
Authority
CN
China
Prior art keywords
cold start
start time
panoramic image
optimizing
image system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310738472.6A
Other languages
Chinese (zh)
Inventor
王瑞琳
马文峰
王子军
王亮
李文煜
李雨龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FAW Bestune Car Co Ltd
Original Assignee
FAW Bestune Car Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FAW Bestune Car Co Ltd filed Critical FAW Bestune Car Co Ltd
Priority to CN202310738472.6A priority Critical patent/CN117742798A/en
Publication of CN117742798A publication Critical patent/CN117742798A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention relates to a method for shortening the cold start time of a panoramic image system by optimizing a call time sequence, which comprises the steps of starting a host; starting a panoramic process; the system runs the signal interaction library and the life cycle until an initialization signal is received; simultaneously rendering a main thread starting process and an auxiliary thread starting process in parallel; after the rendering main thread is started, loading a drawing window in sequence, initializing a panoramic algorithm library, and sending a standby state to wait for drawing; after the auxiliary thread is started, initializing a camera, acquiring a version number of the camera and returning; and receiving an activation command and making a picture. According to the method for optimizing the invoking time sequence to shorten the cold start time of the panoramic image system, the invoking time sequence of the necessary dependency library of the panoramic image system is optimized and the parallel invoking flow is increased on the premise that the output image quality is met, so that the cold start time of the panoramic image system is shortened, the user experience is improved, and the driving safety of a vehicle is improved.

Description

Method for shortening cold start time of panoramic image system by optimizing call time sequence
Technical Field
The invention belongs to the technical field of safe driving assistance, and particularly relates to a method for shortening cold start time of a panoramic image system by optimizing a call time sequence.
Background
Panoramic image monitoring systems are now increasingly being installed in various vehicle models as an important tool for assisting drivers in parking and low-speed driving to observe the surrounding environment and objects of the vehicle. In order to give the driver a better experience and a higher safety, the system is required to respond immediately when there is a need and display the image on the large screen of the host. Typical scenarios are: the driver can unlock the automobile and then quickly put the automobile into reverse gear, the system is required to be started immediately, but because the system is in cold start under the scene, a certain time is required for starting, the system is required to be loaded as quickly as possible under cold start, the problem-free image is displayed, and the cold start time of the system is required to be as short as possible.
Disclosure of Invention
The invention aims to provide a method for shortening the cold start time of a panoramic image system by optimizing a call time sequence, so as to solve the problem of shortening the cold start time of the panoramic image system.
The invention aims at realizing the following technical scheme:
a method for optimizing call time sequence to shorten cold start time of panoramic image system comprises the following steps:
A. starting a host;
B. starting a panoramic process;
C. the system runs the signal interaction library and the life cycle until an initialization signal is received; simultaneously rendering a main thread starting process and an auxiliary thread starting process in parallel;
D. after the rendering main thread is started, loading a drawing window in sequence, initializing a panoramic algorithm library, and sending a standby state to wait for drawing; after the auxiliary thread is started, initializing a camera, acquiring a version number of the camera and returning;
E. and receiving an activation command and making a picture.
Further, the step A specifically comprises the following steps: the vehicle was started for 0ms.
Further, step D, the loading of the graph window includes:
d1, initializing windows;
d2, egl initialization.
Further, in step D, the initialization of the panoramic algorithm library is specifically: complete initialization of all-round ontology SDK algorithm library
Further, in step D, the obtaining of the version number of the camera is specifically: looking around to obtain the version number.
Further, step E, specifically, is: and receiving an activation command and making a picture.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements a method for optimizing call timing to reduce cold start time of a panoramic imaging system when executing the program.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs a method of optimizing call timing to reduce cold start time of a panoramic image system as described in any of the above.
Compared with the prior art, the invention has the beneficial effects that:
according to the method for optimizing the invoking time sequence to shorten the cold start time of the panoramic image system, the invoking time sequence of the necessary dependency library of the panoramic image system is optimized and the parallel invoking flow is increased on the premise that the output image quality is met, so that the cold start time of the panoramic image system is shortened, the user experience is improved, and the driving safety of a vehicle is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 illustrates a panoramic image monitoring system start-up procedure prior to optimization;
FIG. 2 is a startup flow of the panoramic image monitoring system after optimization;
fig. 3 is a schematic structural diagram of a computer device in embodiment 2 of the present invention.
Detailed Description
The invention is further illustrated by the following examples:
currently, the panoramic image monitoring system is started up by the following steps:
1. starting a host;
2. starting a panoramic process;
3. loading a drawing window;
4. initializing a camera;
5. acquiring a camera version number;
6. loading a panoramic algorithm library;
7. receiving an activation instruction;
8. and (5) drawing.
The optimization of the invention comprises the following two parts:
1. the acquisition and the transmission of the version number of the camera are not used as a starting necessary flow, and parallel processing is carried out: in order to shorten the drawing time of the cold start system, the version number acquisition is not used as a necessary starting flow, parallel processing is carried out, and the acquisition time point is after the initialization of the camera is completed.
2. Adding parallel flow, and carrying out parallel processing on camera initialization and rendering after drawing: because the time length of the map rendering process is longer than the time length of the initialization of the camera, a start sub-process is added to process the initialization of the camera and the map rendering process in parallel.
Example 1
Taking the improvement of the cold start time of the D511 model panoramic image system as an example, the specific implementation manner is described:
the original starting flow is as follows:
1. the vehicle is started for 0ms;
2. starting a panoramic image monitoring system process;
3. the system runs the signal interaction library and the life cycle until an initialization signal is received; simultaneously, the rendering main thread is started;
4. windows initialization;
5. egl initialization;
7. initializing a camera;
8. acquiring and returning a camera version number;
9. completing initialization of the looking-around ontology SDK algorithm library;
10. sending a standby state to wait for drawing, and realizing output by looking around the rendering;
11. and (5) drawing.
The optimized starting flow is as follows:
1. the vehicle is started for 0ms;
2. starting a panoramic image monitoring system process;
3. the system runs the signal interaction library and the life cycle until an initialization signal is received; simultaneously rendering a main thread starting process and an auxiliary thread starting process in parallel;
4. after the rendering main thread is started, windows initialization and egl initialization are sequentially carried out, the SDK algorithm library of the looking-around ontology is initialized, the standby state is sent to wait for drawing, and the looking-around rendering is realized to output.
5. After the auxiliary thread is started, initializing a camera, acquiring a version number of the camera and returning;
6. and (5) drawing.
The method for optimizing the calling time sequence to shorten the cold start time of the panoramic image system can greatly shorten the cold start time of the panoramic image system. The image can be output after the cold start time is 10s before optimization, and the image display time for the cold start of the system is 7.3s after optimization, so that the system start time requirement is met, and the perception of a user is improved.
Example 2
Fig. 3 is a schematic structural diagram of a computer device in embodiment 2 of the present invention. FIG. 3 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in fig. 3 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in FIG. 3, computer device 12 is in the form of a general purpose computing device. Components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 3, commonly referred to as a "hard disk drive"). Although not shown in fig. 3, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and/or any devices (e.g., network card, modem, etc.) that enable the computer device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. In addition, in the computer device 12 of the present embodiment, the display 24 is not present as a separate body but is embedded in the mirror surface, and the display surface of the display 24 and the mirror surface are visually integrated when the display surface of the display 24 is not displayed. Moreover, computer device 12 may also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 20. As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with computer device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes programs stored in the system memory 28 to perform various functional applications and data processing, for example, to implement a method for optimizing call timing to shorten the cold start time of the panoramic image system according to the embodiment of the present invention.
Example 3
Embodiment 3 of the present invention provides a computer readable storage medium having a computer program stored thereon, which when executed by a processor, implements a method for optimizing a call timing to shorten a cold start time of a panoramic image system as provided in all embodiments of the present invention.
Any combination of one or more computer readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (8)

1. The method for optimizing the call time sequence to shorten the cold start time of the panoramic image system is characterized by comprising the following steps of:
A. starting a host;
B. starting a panoramic process;
C. the system runs the signal interaction library and the life cycle until an initialization signal is received; simultaneously rendering a main thread starting process and an auxiliary thread starting process in parallel;
D. after the rendering main thread is started, loading a drawing window in sequence, initializing a panoramic algorithm library, and sending a standby state to wait for drawing; after the auxiliary thread is started, initializing a camera, acquiring a version number of the camera and returning;
E. and receiving an activation command and making a picture.
2. The method for shortening the cold start time of the panoramic image system by optimizing the call timing according to claim 1, wherein step a specifically comprises: the vehicle was started for 0ms.
3. The method for shortening the cold start time of the panoramic image system by optimizing the call timing according to claim 1, wherein step a specifically comprises: step D, loading the graphical window comprises the following steps:
d1, initializing windows;
d2, egl initialization.
4. The method for shortening the cold start time of the panoramic image system by optimizing the call timing according to claim 1, wherein the initializing of the panoramic algorithm library in step D is specifically: and finishing initialization of the looking-around ontology SDK algorithm library.
5. The method for shortening the cold start time of the panoramic image system by optimizing the call timing according to claim 1, wherein step D, the obtaining of the version number of the camera specifically comprises: looking around to obtain the version number.
6. The method for shortening the cold start time of the panoramic image system by optimizing the call timing according to claim 1, wherein step E specifically comprises: and receiving an activation command and making a picture.
7. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized by: the method for optimizing call timing to shorten cold start time of panoramic image system according to any one of claims 1-6 is realized when the processor executes the program.
8. A computer-readable storage medium having stored thereon a computer program, characterized by: the program when executed by a processor implements a method of optimizing call timing to reduce panoramic imaging system cold start time as defined in any one of claims 1-6.
CN202310738472.6A 2023-06-21 2023-06-21 Method for shortening cold start time of panoramic image system by optimizing call time sequence Pending CN117742798A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310738472.6A CN117742798A (en) 2023-06-21 2023-06-21 Method for shortening cold start time of panoramic image system by optimizing call time sequence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310738472.6A CN117742798A (en) 2023-06-21 2023-06-21 Method for shortening cold start time of panoramic image system by optimizing call time sequence

Publications (1)

Publication Number Publication Date
CN117742798A true CN117742798A (en) 2024-03-22

Family

ID=90280163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310738472.6A Pending CN117742798A (en) 2023-06-21 2023-06-21 Method for shortening cold start time of panoramic image system by optimizing call time sequence

Country Status (1)

Country Link
CN (1) CN117742798A (en)

Similar Documents

Publication Publication Date Title
EP3309676A1 (en) Method and apparatus for providing screenshot service on terminal device and storage medium and device
US11055154B2 (en) Screen-shooting method and device for guest operating system in computer apparatus
KR20210040304A (en) Image recognizing method, apparatus, electronic device, storage medium, and program
CN111240769A (en) Page starting method, device, equipment and storage medium
CN113377366A (en) Control editing method, device, equipment, readable storage medium and product
CN113784049A (en) Camera calling method of android system virtual machine, electronic device and storage medium
CN111241043A (en) Multimedia file sharing method, terminal and storage medium
CN112667335A (en) Method, device and equipment for loading image frames of backing car and storage medium
CN110134448A (en) A kind of method, system, equipment and the storage medium of display reversing monitored picture
CN117742798A (en) Method for shortening cold start time of panoramic image system by optimizing call time sequence
CN109189705B (en) USB extension method, device, equipment, storage medium and system
CN109522174B (en) Method, device, terminal and storage medium for controlling adb enabling
CN111054072A (en) Role model trailing method, device, equipment and storage medium
CN107341017B (en) UI design method, device, equipment and storage medium
CN114116034B (en) Distributed brushing method and device
CN114490265A (en) Data acquisition method, device, equipment and storage medium
CN114490266A (en) Data acquisition method, device, equipment and storage medium
CN110716753B (en) Cloud host initialization method and device, storage medium and electronic equipment
CN114228745A (en) Driving system module control method, device, equipment, medium, product and vehicle
CN114095648B (en) Method and device for controlling rotation of camera through gestures
CN113891284B (en) Vehicle control method and device, mobile terminal and storage medium
CN115826898B (en) Cross-screen display method, system, device, equipment and storage medium
CN112860241B (en) Interface development method, display method, device, electronic equipment and medium
CN117061832A (en) Reversing image display method, device, equipment and computer storage medium
US11663059B2 (en) Projector control

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination