[go: up one dir, main page]

CN113498512B - Optimization method, device, computer equipment and storage medium for vehicle-mounted image display - Google Patents

Optimization method, device, computer equipment and storage medium for vehicle-mounted image display Download PDF

Info

Publication number
CN113498512B
CN113498512B CN202080003152.0A CN202080003152A CN113498512B CN 113498512 B CN113498512 B CN 113498512B CN 202080003152 A CN202080003152 A CN 202080003152A CN 113498512 B CN113498512 B CN 113498512B
Authority
CN
China
Prior art keywords
browser
application
data
vehicle
visual
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.)
Active
Application number
CN202080003152.0A
Other languages
Chinese (zh)
Other versions
CN113498512A (en
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.)
DeepRoute AI Ltd
Original Assignee
DeepRoute AI 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 DeepRoute AI Ltd filed Critical DeepRoute AI Ltd
Publication of CN113498512A publication Critical patent/CN113498512A/en
Application granted granted Critical
Publication of CN113498512B publication Critical patent/CN113498512B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A vehicle-mounted image display optimization method comprises the steps of obtaining a data display request of a browser, wherein the data display request carries a data identifier (202), jumping from a current page of the browser to a corresponding target webpage according to the data display request, enabling the target webpage to comprise a visual application (204), running the visual application through the browser, transmitting the data identifier to the visual application (206), generating a data acquisition request according to the data identifier through the visual application, sending the data acquisition request to a server (208), receiving vehicle-mounted data (210) corresponding to the data acquisition request returned by the server through the visual application, rendering the vehicle-mounted data through the browser, and displaying the rendered vehicle-mounted image on the visual application (212).

Description

Optimization method and device for vehicle-mounted image display, computer equipment and storage medium
Technical Field
The application relates to an optimization method and device for vehicle-mounted image display, computer equipment and storage medium.
Background
In the development process of the automatic driving technology, the enterprise needs to display the vehicle-mounted image on the visual application, so that the visual application can feed back various modes such as a perception mode, a prediction mode, a planning mode, a control mode and the like adopted in the automatic driving process, and the various modes are optimized through feedback results. In the traditional mode, the same version of visual application can only run in a specific operating system, when the visual application needs to run on other operating systems, different visual application versions need to be packed according to the corresponding operating systems to display the vehicle-mounted image, so that unnecessary manpower and material resource consumption exists when the existing visual application runs across platforms. Therefore, how to effectively optimize the conventional vehicle-mounted image display mode is a technical problem to be solved at present.
Disclosure of Invention
According to various embodiments of the present disclosure, an optimization method, apparatus, computer device, and storage medium for vehicle-mounted image display are provided that can effectively optimize a conventional vehicle-mounted image display manner.
An optimization method for vehicle-mounted image display, comprising the following steps:
Acquiring a data display request of a browser, wherein the data display request carries a data identifier;
Jumping from the current page of the browser to a corresponding target webpage according to the data display request, wherein the target webpage comprises a visual application;
Running the visual application through the browser, and transmitting the data identifier to the visual application;
Generating a data acquisition request according to the data identifier through the visualization application, and sending the data acquisition request to a server;
Receiving vehicle-mounted data corresponding to the data acquisition request returned by the server through the visualization application, and
And rendering the vehicle-mounted data through the browser, and displaying the rendered vehicle-mounted image on the visual application.
An optimization apparatus for vehicle-mounted image display, comprising:
The acquisition module is used for acquiring a data display request of the browser, wherein the data display request carries a data identifier;
The jump module is used for jumping from the current page of the browser to a corresponding target webpage according to the data display request, and the target webpage comprises a visual application;
the running module is used for running the visual application through the browser and transmitting the data identifier to the visual application;
The generation module is used for generating a data acquisition request according to the data identifier through the visualization application and sending the data acquisition request to a server;
a receiving module for receiving vehicle-mounted data corresponding to the data acquisition request returned by the server through the visualization application, and
And the display module is used for rendering the vehicle-mounted data through the browser and displaying the vehicle-mounted image obtained by rendering on the visual application.
A computer device comprising a memory and one or more processors, the memory having stored therein computer-readable instructions that, when executed by the processor, cause the one or more processors to perform the steps of:
Acquiring a data display request of a browser, wherein the data display request carries a data identifier;
Jumping from the current page of the browser to a corresponding target webpage according to the data display request, wherein the target webpage comprises a visual application;
Running the visual application through the browser, and transmitting the data identifier to the visual application;
Generating a data acquisition request according to the data identifier through the visualization application, and sending the data acquisition request to a server;
Receiving vehicle-mounted data corresponding to the data acquisition request returned by the server through the visualization application, and
And rendering the vehicle-mounted data through the browser, and displaying the rendered vehicle-mounted image on the visual application.
One or more non-transitory computer-readable storage media storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of:
Acquiring a data display request of a browser, wherein the data display request carries a data identifier;
Jumping from the current page of the browser to a corresponding target webpage according to the data display request, wherein the target webpage comprises a visual application;
Running the visual application through the browser, and transmitting the data identifier to the visual application;
Generating a data acquisition request according to the data identifier through the visualization application, and sending the data acquisition request to a server;
Receiving vehicle-mounted data corresponding to the data acquisition request returned by the server through the visualization application, and
And rendering the vehicle-mounted data through the browser, and displaying the rendered vehicle-mounted image on the visual application.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below. Other features and advantages of the application will be apparent from the description and drawings, and from the claims.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a diagram of an application environment for a method of optimizing the display of an in-vehicle image in one or more embodiments.
Fig. 2 is a flow diagram of a method for optimizing the display of an in-vehicle image in one or more embodiments.
FIG. 3 is a flow diagram of the development steps for a visualization application in one or more embodiments.
FIG. 4 is a block diagram of an apparatus for optimizing the display of an in-vehicle image in one or more embodiments.
FIG. 5 is a block diagram of a computer device in one or more embodiments.
Detailed Description
In order to make the technical scheme and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The optimization method for vehicle-mounted image display provided by the application can be applied to an application environment shown in fig. 1. The terminal 102 communicates with the server 104 via a network. The terminal 102 is pre-installed with an operating system on which a browser is pre-deployed. The terminal 102 obtains a data display request of the browser, where the data display request carries a data identifier. And the terminal jumps to a corresponding target webpage from the current webpage of the browser according to the data display request, wherein the target webpage comprises a visual application. The visualization application may be used for data display. The terminal 102 runs the visualization application through the browser and transmits the data identification to the visualization application. The visualization application may run on different operating systems through a browser. The terminal 102 generates a data acquisition request according to the data identifier through the visualization application, and sends the data acquisition request to the server 104. The terminal 102 receives the vehicle-mounted data corresponding to the data acquisition request returned by the server 104 through the visualization application. The terminal 102 renders the vehicle-mounted data through a browser, and displays the rendered vehicle-mounted image on the visualization application. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, among others. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, there is provided a method for optimizing vehicle-mounted image display, which is described by taking the application of the method to the terminal in fig. 1 as an example, and includes the following steps:
step 202, a data display request of a browser is obtained, wherein the data display request carries a data identifier.
The terminal is pre-provided with an operating system, and the operating system is pre-deployed with a browser. The browser may be a browser that supports rendering web pages. The webpage is rendered through the browser, so that more complete data display can be performed in the webpage. The terminal can acquire a data display request of a user on the browser. The data display request may be a data display request generated by the terminal encapsulating the data selected by the user through an http protocol. The selected data may be vehicle-mounted data for a preset period of time in which playback is required. And the terminal analyzes the data display request to obtain a data identifier. The data identification may include data ID (Identity document).
Step 204, jumping from the current page of the browser to a corresponding target webpage according to the data display request, wherein the target webpage comprises a visualization application.
And 206, running the visualization application through the browser, and transmitting the data identification to the visualization application.
The data display request may include a link address of the target web page, which may be a URL (Uniform Resource Locator ), which may be used to identify a storage location of the resource of the target web page. And the terminal jumps to the corresponding target webpage from the current webpage of the browser according to the data display request. The target web page includes a visualization application therein. The visualization application is wasm files obtained by compiling preset application scripts, and wasm files are binary files which can be run on an operating system with a browser.
The terminal can identify whether the updated version exists in the visualization application in the target webpage according to the data display request. When the visual application has an updated version, the visual application of the updated version is run through the browser. And when the visual application does not have an updated version, running the visual application in the cache resource through the browser. When the visual application is operated through the browser, the browser can transmit the data identification to the visual application, and further obtain corresponding vehicle-mounted data in the server according to the data identification through the visual application, and display the vehicle-mounted data.
And step 208, generating a data acquisition request according to the data identifier through the visualization application, and sending the data acquisition request to the server.
And 210, receiving vehicle-mounted data corresponding to the data acquisition request returned by the server through the visualization application.
The terminal encapsulates the data identifier according to a preset protocol through the visual application, and generates a data acquisition request according to the encapsulated data, so that the data acquisition request is sent to the server according to the preset protocol. The encapsulated data may include a data identifier, a header file, an interface identifier, status data of the terminal, etc. After receiving the data acquisition request, the server analyzes the data acquisition request according to a preset protocol, and can obtain a data identifier, an interface identifier and the like. The server calls an interface corresponding to the interface identifier, and obtains vehicle-mounted data corresponding to the data identifier in the cloud through the interface. The in-vehicle data may be data within a preset period of time. The vehicle-mounted data may include a running speed, a running mileage, position information, map information, etc. of the vehicle during the automatic driving. Through the cloud storage data, the data can be guaranteed not to be lost, and the safety of the data is improved. And the terminal receives the vehicle-mounted data returned by the server through the visualization application.
And 212, rendering the vehicle-mounted data through a browser, and displaying the rendered vehicle-mounted image on a visual application.
The terminal converts the received vehicle-mounted data through the visual application to obtain corresponding index data. The index data may include travel speed, travel mileage, position coordinates, and the like. Because the vehicle-mounted data is data in a preset time, rendering the index data, namely page rendering, through the browser, so that a multi-frame vehicle-mounted image can be generated, and the multi-frame vehicle-mounted image is displayed through visual application. Page rendering refers to a process of parsing html (hyper text markup language ) through rules defined by CSS (CASCADING STYLE SHEETS, cascading style sheet) to achieve page drawing.
In the traditional mode, the same version of visual application can only run in a specific operating system, when the visual application needs to run on other operating systems, different visual application versions need to be packed according to the corresponding operating systems to display the vehicle-mounted image, so that unnecessary manpower and material resource consumption exists when the existing visual application runs across platforms. In this embodiment, the terminal obtains a data display request of the browser, where the data display request carries a data identifier. And jumping from the current page of the browser to a corresponding target webpage according to the data display request, wherein the target webpage comprises a visualization application. And the visual application is operated through the browser, and the data identification is transmitted to the visual application. And generating a data acquisition request according to the data identifier through the visualization application, sending the data acquisition request to the server, and receiving vehicle-mounted data corresponding to the data acquisition request returned by the server. And rendering the vehicle-mounted data through a browser, and displaying the rendered vehicle-mounted image on the visual application. Because the visual application is embedded in the target webpage, the visual application can be run on the browser, so that the same version of visual application is run on a plurality of operating systems provided with the browser, corresponding visual application versions do not need to be packed for each operating system, unnecessary manpower and material resource consumption in the vehicle-mounted image display process is avoided, vehicle-mounted data is rendered through the browser and displayed on the visual application, and the effective optimization of the traditional vehicle-mounted image display mode is realized.
In one embodiment, as shown in fig. 3, the method further includes a step of developing the visualization application, specifically including:
step 302, acquiring a preset application script, and converting the preset application script into a cpp file.
And 304, compiling the cpp file to obtain wasm files, a glue script and an html page, and taking the wasm files as the visual application, wherein the glue script and the html page are used for running the visual application through a browser.
Before acquiring the data display request of the browser, the terminal can develop a visual application capable of running on the browser in advance. The terminal acquires a preset application script, wherein the preset application script can be a visualization application script based on units, and the preset application script is written by C#. C# is an object oriented programming language. The visual application corresponding to the preset application script can only run in a specific operating system and cannot run in a browser. The terminal converts the preset application script into CPP file through IL2CPP (INTERMEDIATE LANGUAGE TO C ++, intermediate language). cpp files are source code file formats written in the C++ language (C plus plus, medium language).
The terminal then compiles the cpp file via emscripten compiler, resulting in wasm file, glue script, and html (hyper text markup language ) pages. wasm files can run in JavaScript. JavaScript is an transliteration scripting language that can be run on a browser, i.e. wasm files are run on the browser, enabling visual applications to be run on the browser. The glue script and html page are used to run the visualization application through the browser. The glue script is a JavaScript file, and is used for connecting incompatible software components, namely connecting JavaScript and wasm, so as to realize interaction between the JavaScript and wasm. The html page is used to run wasm files in the browser.
In this embodiment, the terminal converts the preset application script into the cpp file by acquiring the preset application script. Compiling the cpp file to obtain wasm file, glue script and html page, and using wasm file as visual application, wherein the glue script and html page are used for running visual application through browser. The cpp file is in a source code file format written in C++ language (C plus plus, medium-level language), and is compiled into wasm files which can be run in a browser, so that the same version of visual application can be run on a plurality of operating systems provided with the browser, corresponding visual application versions do not need to be packed for each operating system, and unnecessary consumption of manpower and material resources is avoided.
In one embodiment, the operation of the visual application through the browser comprises the steps of identifying the visual application through the browser according to the glue script, and operating the identified visual application on the html page through the browser.
Before acquiring a data display request of a browser, the terminal converts a preset application script into a cpp file and compiles the cpp file into wasm files. During compiling, a glue script and an html page are also obtained. The terminal takes wasm files as visual application. The JavaScript is operated in the browser, the browser can identify the visual application through the glue script, and the visual application is connected with the JavaScript to realize interaction. And the browser runs wasm the file through the html page.
In this embodiment, the visual application is identified by the browser according to the glue script, and the identified visual application is run on the html page by the browser. Because the visual application exists in wasm file format, the browser cannot directly identify wasm files, the visual application is favorably identified by the browser through the glue script, and the visual application is operated on an html page generated in the compiling process, so that wasm files can be stably operated on the browser.
In one embodiment, before the visual application is operated through the browser, the method further comprises the steps of sending a data display request to the server through the browser, receiving response information returned by the server, identifying whether the visual application has an updated version according to the response information through the browser, acquiring the visual application of the updated version from the server through the browser when the updated version exists, operating the visual application of the updated version, and operating the visual application in the cache resource through the browser when the updated version does not exist.
Before the terminal runs the visual application through the browser, the terminal can identify whether the visual application in the target webpage is updated. Specifically, when the browser acquires the data display request, the data display request is sent to the server so as to receive response information returned by the server. The data display request may be an http request generated according to an http protocol. Correspondingly, the response information returned by the server is http response information. And the browser analyzes the response information to obtain an http response head. The browser identifies whether the state of the visualization application has changed, i.e. whether the visualization application has an updated version, according to the ETag (ENTITY TAG ) field in the http response header. When the value of the ETag field in the http response header changes, it indicates that the visualization application has been updated, and an updated version exists. At this time, the browser may acquire the updated version of the visualization application from the server and run the updated version of the visualization application. When the value of the ETag field in the http response header is unchanged, the visualization application is not updated, and no updated version exists. At this time, the browser acquires the visualization application from the cache resource and runs the visualization application.
In this embodiment, the terminal receives the response information returned by the server through the browser, identifies whether the visual application has an updated version according to the response information, and decides whether to obtain the visual application of the updated version from the server or the visual application from the cache resource according to the response information, so that when the new version is released, the visual application of the new version can be automatically obtained without manually pulling the visual application of the new version, and automation of release of the new version application is realized.
In one embodiment, rendering the vehicle-mounted data through the browser and displaying the rendered vehicle-mounted image on the visual application comprises converting the vehicle-mounted data into corresponding index data through the visual application, rendering the index data through the browser and displaying the vehicle-mounted image on the visual application.
After the terminal obtains the vehicle-mounted data returned by the server through the visualization application, the vehicle-mounted data can be converted into corresponding index data through the visualization application. The vehicle-mounted data may be vehicle-mounted data within a preset period of time. The server returns the vehicle-mounted data to the visualization application in the form of character strings, and the visualization application converts the received character strings into index data, namely objects. The index data may include indices of travel speed, travel mileage, position coordinates, and the like. The browser renders the index data, namely pages are rendered, and a vehicle-mounted image is generated, wherein the vehicle-mounted image is a continuous multi-frame vehicle-mounted image with a time sequence. Each frame is a static picture, the terminal displays the multi-frame vehicle-mounted image through the visual application, and the multi-frame vehicle-mounted image is formed into an animation. Page rendering refers to a process of parsing html (hyper text markup language ) through rules defined by CSS (CASCADING STYLE SHEETS, cascading style sheet) to achieve page drawing.
In the embodiment, the terminal converts the vehicle-mounted data into the corresponding index data through the visual application, which is favorable for the browser to accurately and rapidly render the vehicle-mounted data, so that the index data is rendered through the browser to obtain the vehicle-mounted image. The vehicle-mounted image is obtained through browser rendering analysis, so that the obtained vehicle-mounted image is more complete, and the accuracy of vehicle-mounted image display is improved.
In one embodiment, the terminal may calculate and combine the index data through a scripting language engine in the browser, and render to obtain the vehicle-mounted image. Specifically, the corresponding position of the index data is calculated through a script language engine in the browser, so that the index data is combined to obtain a complete vehicle-mounted image, and the complete vehicle-mounted image is displayed on the visualization application. The scripting language engine may be a javascript engine. The vehicle-mounted image obtained by calculation and combination through the scripting language engine is more complete, and the accuracy of vehicle-mounted image display is effectively improved.
In one embodiment, generating the data acquisition request according to the data identifier by the visualization application comprises assembling the data identifier by the visualization application according to a preset protocol to obtain assembled data, packaging the assembled data by the visualization application to obtain packaged data, and generating the data acquisition request according to the packaged data by the visualization application.
When the visualization application acquires the data identifier sent by the browser, the terminal can load a preset protocol. The preset protocol may be an http protocol. And assembling the data identifier according to a preset protocol through a visual application to obtain assembled data. The assembled data may include data identification, header files, interface identification, status data of the terminal, etc. The header file may be a carrier file containing the function, the data interface declaration. And the terminal encapsulates the assembled data into the object through the visual application, so as to obtain the encapsulated data. An object may be a variable having a type of class. A class may be a blueprint for creating objects, and may be a software template for methods and variables in a particular type of object. The class may encapsulate the assembled data and operations on the assembled data.
The terminal generates a data acquisition request according to the packaged data, and can send the data acquisition request to the server according to a preset protocol. The server is preconfigured with a preset protocol. After the server receives the data acquisition request, a preset protocol is called to analyze the data acquisition request, so as to obtain a data identifier, a header file, an interface identifier, state data of the terminal and the like. And the server packages the analyzed data into a request object, calls an interface corresponding to the interface identifier according to the request object, and obtains vehicle-mounted data corresponding to the data identifier from the cloud through the interface. And the server sends the vehicle-mounted data to the visualization application by using the response object.
In this embodiment, the terminal assembles and encapsulates the data identifier according to the preset protocol through the visualization application, so as to generate the data acquisition request, so that the data identifier can be hidden, the data identifier and the corresponding code are prevented from being randomly accessed by the code defined by the external class, and the safety of vehicle-mounted data acquisition is improved.
In one embodiment, as shown in fig. 4, there is provided an optimizing apparatus for vehicle-mounted image display, including an acquisition module 402, a skip module 404, a running module 406, a generating module 408, a receiving module 410, and a display module 412, wherein:
The obtaining module 402 is configured to obtain a data display request of the browser, where the data display request carries a data identifier.
The skip module 404 is configured to skip from a current page of the browser to a corresponding target web page according to the data display request, where the target web page includes a visualization application.
And the operation module 406 is used for operating the visualization application through the browser and transmitting the data identification to the visualization application.
The generating module 408 is configured to generate, by using the visualization application, a data acquisition request according to the data identifier, and send the data acquisition request to the server.
And the receiving module 410 is configured to receive, through the visualization application, vehicle-mounted data corresponding to the data acquisition request returned by the server.
And the display module 412 is configured to render the vehicle-mounted data through a browser, and display the rendered vehicle-mounted image on a visualization application.
In one embodiment, the device further comprises a compiling module, wherein the compiling module is used for acquiring a preset application script, converting the preset application script into a cpp file, compiling the cpp file to obtain wasm files, a glue script and an html page, and taking the wasm files as visual applications, wherein the glue script and the html page are used for running the visual applications through a browser.
In one embodiment, the running module 406 is further configured to identify, by the browser, the visual application according to the glue script, and run, by the browser, the identified visual application on the html page.
In one embodiment, the device further comprises an identification module used for identifying whether the visual application has an updated version through the browser, acquiring the visual application of the updated version from the server through the browser when the updated version exists, running the visual application of the updated version, and running the visual application in the cache resource through the browser when the updated version does not exist.
In one embodiment, the display module 412 is further configured to convert the vehicle-mounted data into corresponding index data through the visualization application, render the index data through the browser to obtain a vehicle-mounted image, and display the vehicle-mounted image on the visualization application.
In one embodiment, the generating module 408 is further configured to assemble the data identifier according to a preset protocol by using a visualization application to obtain assembled data, encapsulate the assembled data by using the visualization application to obtain encapsulated data, and generate a data acquisition request according to the encapsulated data by using the visualization application.
For a specific definition of the optimization device for the vehicle-mounted image display, reference may be made to the definition of the optimization method for the vehicle-mounted image display hereinabove, and the description thereof will not be repeated here. The respective modules in the above-described optimization apparatus for vehicle-mounted image display may be realized in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured 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 and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method for optimizing the display of an on-board image. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
A computer device comprising a memory and one or more processors, the memory having stored thereon computer-readable instructions that, when executed by the one or more processors, cause the one or more processors to perform the steps of the various method embodiments described above.
One or more non-transitory computer-readable storage media storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps in the various method embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the processes of the methods of the embodiments described above may be accomplished by instructing the associated hardware by computer readable instructions stored on a non-transitory computer readable storage medium, which when executed may comprise processes of embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can 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 (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (20)

1. An optimization method for vehicle-mounted image display, comprising the following steps:
Acquiring a data display request of a browser, wherein the data display request carries a data identifier;
jumping from the current page of the browser to a corresponding target webpage according to the data display request, wherein the target webpage comprises a visual application, the visual application is wasm files obtained by compiling a preset application script, and the wasm files are binary files and can be run on an operating system with the browser;
Running the visual application through the browser, and transmitting the data identifier to the visual application;
Generating a data acquisition request according to the data identifier through the visualization application, and sending the data acquisition request to a server;
Receiving vehicle-mounted data corresponding to the data acquisition request returned by the server through the visualization application, and
And rendering the vehicle-mounted data through the browser, and displaying the rendered vehicle-mounted image on the visual application.
2. The method of claim 1, further comprising, prior to the obtaining the data display request of the browser:
acquiring the preset application script, converting the preset application script into a cpp file, and
Compiling the cpp file to obtain the wasm file, a glue script and an html page, and taking the wasm file as a visual application, wherein the glue script and the html page are used for running the visual application through a browser.
3. The method of claim 2, wherein the running the visualization application through the browser comprises:
Identifying the visual application according to the glue script by the browser, and
And running the identified visual application on the html page through the browser.
4. The method of claim 1, further comprising, prior to said running the visualization application through the browser:
the data display request is sent to a server through the browser, and response information returned by the server is received;
Identifying whether the visual application has an updated version or not according to the response information through the browser;
when an updated version exists, acquiring the visualized application of the updated version from the server through the browser, running the visualized application of the updated version, and
And when no updated version exists, running the visualized application in the cache resource through the browser.
5. The method of claim 1, wherein rendering the vehicle-mounted data by the browser and displaying the rendered vehicle-mounted image on the visualization application comprises:
converting the vehicle-mounted data into corresponding index data through the visual application, and
Rendering the index data through the browser to obtain a vehicle-mounted image, and displaying the vehicle-mounted image on the visual application.
6. The method according to any one of claims 1 to 5, wherein said generating, by the visualization application, a data acquisition request from the data identification comprises:
Assembling the data identifier according to a preset protocol through the visual application to obtain assembled data;
Encapsulating the assembled data by the visual application to obtain encapsulated data, and
And generating a data acquisition request according to the packaged data through the visualization application.
7. An optimization apparatus for vehicle-mounted image display, comprising:
The acquisition module is used for acquiring a data display request of the browser, wherein the data display request carries a data identifier;
The jump module is used for jumping from the current page of the browser to a corresponding target webpage according to the data display request, wherein the target webpage comprises a visual application, the visual application is a wasm file obtained by compiling a preset application script, and the wasm file is a binary file and can be run on an operating system with the browser;
the running module is used for running the visual application through the browser and transmitting the data identifier to the visual application;
The generation module is used for generating a data acquisition request according to the data identifier through the visualization application and sending the data acquisition request to a server;
a receiving module for receiving vehicle-mounted data corresponding to the data acquisition request returned by the server through the visualization application, and
And the display module is used for rendering the vehicle-mounted data through the browser and displaying the vehicle-mounted image obtained by rendering on the visual application.
8. The apparatus of claim 7, further comprising a compiling module configured to obtain a preset application script, convert the preset application script into a cpp file, and compile the cpp file to obtain wasm files, a glue script, and an html page, and use the wasm files as a visualization application, where the glue script and the html page are configured to run the visualization application through a browser.
9. The apparatus of claim 8, wherein the means for running is further configured to identify the visualization application by the browser according to the glue script, and run the identified visualization application on the html page by the browser.
10. The apparatus of claim 7, further comprising means for identifying, by the browser, whether an updated version of the visualization application exists, means for obtaining, by the browser, the updated version of the visualization application in a server, when the updated version exists, means for running the updated version of the visualization application, and means for running, by the browser, the visualization application in a cache resource, when the updated version does not exist.
11. A computer device comprising a memory and one or more processors, the memory having stored therein computer-readable instructions that, when executed by the one or more processors, cause the one or more processors to perform the steps of:
Acquiring a data display request of a browser, wherein the data display request carries a data identifier;
jumping from the current page of the browser to a corresponding target webpage according to the data display request, wherein the target webpage comprises a visual application, the visual application is wasm files obtained by compiling a preset application script, and the wasm files are binary files and can be run on an operating system with the browser;
Running the visual application through the browser, and transmitting the data identifier to the visual application;
Generating a data acquisition request according to the data identifier through the visualization application, and sending the data acquisition request to a server;
Receiving vehicle-mounted data corresponding to the data acquisition request returned by the server through the visualization application, and
And rendering the vehicle-mounted data through the browser, and displaying the rendered vehicle-mounted image on the visual application.
12. The computer device of claim 11, wherein the processor when executing the computer readable instructions further performs the steps of obtaining a preset application script, converting the preset application script to a cpp file, and compiling the cpp file to obtain wasm files, glue scripts and html pages, wherein the wasm files are used as visualization applications, and wherein the glue scripts and html pages are used for running the web visualization applications through a browser.
13. The computer device of claim 12, wherein the processor, when executing the computer readable instructions, further performs the steps of identifying the visualization application by the browser according to the glue script, and running the identified visualization application on the html page by the browser.
14. The computer device of claim 11, wherein the processor when executing the computer readable instructions further performs the steps of sending the data display request to a server via the browser, receiving response information returned by the server, identifying, via the browser, whether an updated version of the visual application exists based on the response information, obtaining, via the browser, the updated version of the visual application in the server when the updated version exists, running the updated version of the visual application, and running, via the browser, the visual application in the cache resource when the updated version does not exist.
15. The computer device of claim 11, wherein the processor, when executing the computer readable instructions, further performs the steps of converting the vehicle-mounted data into corresponding index data by the visualization application, and rendering the index data by the browser to obtain a vehicle-mounted image, and displaying the vehicle-mounted image on the visualization application.
16. One or more non-transitory computer-readable storage media storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of:
Acquiring a data display request of a browser, wherein the data display request carries a data identifier;
jumping from the current page of the browser to a corresponding target webpage according to the data display request, wherein the target webpage comprises a visual application, the visual application is wasm files obtained by compiling a preset application script, and the wasm files are binary files and can be run on an operating system with the browser;
Running the visual application through the browser, and transmitting the data identifier to the visual application;
Generating a data acquisition request according to the data identifier through the visualization application, and sending the data acquisition request to a server;
Receiving vehicle-mounted data corresponding to the data acquisition request returned by the server through the visualization application, and
And rendering the vehicle-mounted data through the browser, and displaying the rendered vehicle-mounted image on the visual application.
17. The storage medium of claim 16, wherein the computer readable instructions when executed by the processor further perform the steps of obtaining a preset application script, converting the preset application script to a cpp file, and compiling the cpp file to obtain wasm files, a glue script, and an html page, wherein the wasm files are used as visualization applications, and wherein the glue script and html page are used to run the web visualization applications through a browser.
18. The storage medium of claim 17, wherein the computer readable instructions, when executed by the processor, further perform the steps of identifying, by the browser, the visualization application according to the glue script, and running, by the browser, the identified visualization application on the html page.
19. The storage medium of claim 16, wherein the computer readable instructions when executed by the processor further perform the steps of sending the data display request to a server via the browser, receiving response information returned by the server, identifying, via the browser, whether an updated version of the visual application exists based on the response information, obtaining, via the browser, the updated version of the visual application in the server when the updated version exists, running the updated version of the visual application, and running, via the browser, the visual application in the cache resource when the updated version does not exist.
20. The storage medium of claim 16, wherein the computer readable instructions, when executed by the processor, further perform the steps of converting the vehicle-mounted data into corresponding index data by the visualization application, and rendering the index data by the browser to obtain a vehicle-mounted image, and displaying the vehicle-mounted image on the visualization application.
CN202080003152.0A 2020-01-21 2020-01-21 Optimization method, device, computer equipment and storage medium for vehicle-mounted image display Active CN113498512B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/073430 WO2021146895A1 (en) 2020-01-21 2020-01-21 Optimization method and apparatus for vehicle-mounted image display, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN113498512A CN113498512A (en) 2021-10-12
CN113498512B true CN113498512B (en) 2025-01-21

Family

ID=76992028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202080003152.0A Active CN113498512B (en) 2020-01-21 2020-01-21 Optimization method, device, computer equipment and storage medium for vehicle-mounted image display

Country Status (2)

Country Link
CN (1) CN113498512B (en)
WO (1) WO2021146895A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961124B (en) * 2021-09-27 2024-02-27 上海联影医疗科技股份有限公司 Medical image display method, medical image display device, computer equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1338403A (en) * 2000-08-17 2002-03-06 广东粤京安移动资讯有限公司 Public service system with GSM nevigation and location and network browse method

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7603341B2 (en) * 2002-11-05 2009-10-13 Claria Corporation Updating the content of a presentation vehicle in a computer network
CN102542425A (en) * 2010-12-22 2012-07-04 时艳春 Road cargo logistics information management system and method
CN102721421A (en) * 2012-06-29 2012-10-10 惠州华阳通用电子有限公司 Automatic navigation system and automatic navigation method for pushing information to vehicle-mounted navigation terminal based on portal website
JP2014085798A (en) * 2012-10-23 2014-05-12 Denso Corp Content provision system for vehicle
US9135346B2 (en) * 2013-06-07 2015-09-15 Google Inc. Index data for native applications
CN204155310U (en) * 2014-07-06 2015-02-11 山东天海科技股份有限公司 Big Dipper car networking logistics information service platform
CN105956152A (en) * 2016-05-13 2016-09-21 北京金山安全软件有限公司 Webpage loading method and device and electronic equipment
US10554722B2 (en) * 2016-05-19 2020-02-04 Panasonic Avionics Corporation Methods and systems for secured remote browsing from a transportation vehicle
CN107045730B (en) * 2017-03-06 2023-10-24 青岛鹏海软件有限公司 Multi-dimensional display system and method for digital cultural scene or image
CN107730206A (en) * 2017-10-18 2018-02-23 深圳航天信息有限公司 Vehicle management system
US10739151B2 (en) * 2017-11-02 2020-08-11 Mitac International Corp. Client-server navigation solution for low data bandwidth conditions
CN109144567B (en) * 2018-08-03 2021-09-14 苏州麦迪斯顿医疗科技股份有限公司 Cross-platform webpage rendering method and device, server and storage medium
CN110032614B (en) * 2019-04-18 2020-02-07 成都四方伟业软件股份有限公司 Map vector rendering method and device based on wasm

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1338403A (en) * 2000-08-17 2002-03-06 广东粤京安移动资讯有限公司 Public service system with GSM nevigation and location and network browse method

Also Published As

Publication number Publication date
WO2021146895A1 (en) 2021-07-29
CN113498512A (en) 2021-10-12

Similar Documents

Publication Publication Date Title
CN109901834B (en) Document page generation method, device, computer equipment and storage medium
CN109284454B (en) Page rendering method, device, computer equipment and storage medium
US20230036980A1 (en) Micro-frontend system, sub-application loading method, electronic device, computer program product, and computer-readable storage medium
CN112596714A (en) Webpage development method, device, terminal, server and storage medium
CN112114890B (en) Mini-program processing method, device, equipment and storage medium
CN108717435B (en) Webpage loading method, information processing method, computer equipment and storage medium
CN112632437A (en) Webpage generating method and device and computer readable storage medium
CN109840083B (en) Webpage component template construction method and device, computer equipment and storage medium
CN112114913B (en) Application program interface updating method and device, computer equipment and storage medium
CN106909361B (en) Web development method and device based on template engine
CN108595697B (en) Webpage integration method, device and system
CN113010827A (en) Page rendering method and device, electronic equipment and storage medium
US20150317405A1 (en) Web Page Variation
CN111880789A (en) Page rendering method, device, server and computer-readable storage medium
CN105989068A (en) Hypertext markup language (HTML) based mobile application generating method and device
CN104317570A (en) Device and method for dynamically analyzing web application
CN112433929B (en) Web page debugging method, device, computer equipment and storage medium
CN113377376A (en) Data packet generation method, data packet generation device, electronic device, and storage medium
JP5151696B2 (en) Program to rewrite uniform resource locator information
CN113498512B (en) Optimization method, device, computer equipment and storage medium for vehicle-mounted image display
CN112287255B (en) Page construction method and device, computing equipment and computer readable storage medium
CN119089064A (en) A processing method and device for improving Vue framework page loading speed
CN112416533A (en) Method and device for running application program on browser and electronic equipment
CN117111926A (en) Design draft data processing method and system, electronic equipment and storage medium
CN116225394A (en) Method, device, electronic equipment and storage medium for creating cloud development environment

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
GR01 Patent grant
GR01 Patent grant