CN110727435A - Rendering method, rendering device, electronic equipment and storage medium - Google Patents

Rendering method, rendering device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110727435A
CN110727435A CN201911002632.0A CN201911002632A CN110727435A CN 110727435 A CN110727435 A CN 110727435A CN 201911002632 A CN201911002632 A CN 201911002632A CN 110727435 A CN110727435 A CN 110727435A
Authority
CN
China
Prior art keywords
rendering
rendering template
content
information
template
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.)
Granted
Application number
CN201911002632.0A
Other languages
Chinese (zh)
Other versions
CN110727435B (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.)
Baidu Online Network Technology Beijing Co Ltd
Shanghai Xiaodu Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201911002632.0A priority Critical patent/CN110727435B/en
Publication of CN110727435A publication Critical patent/CN110727435A/en
Application granted granted Critical
Publication of CN110727435B publication Critical patent/CN110727435B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a rendering method, a rendering device, electronic equipment and a storage medium, and relates to the field of artificial intelligence. The specific implementation scheme is as follows: a rendering method, comprising: acquiring content to be rendered, the category of the content to be rendered, equipment side information and server information for providing the content to be rendered; deleting the part which cannot be displayed by the equipment end in the content to be rendered according to the acquired content, and determining a rendering template; and rendering and deleting the processed content to be rendered by adopting the rendering template. The embodiment of the application can realize flexible and efficient rendering.

Description

Rendering method, rendering device, electronic equipment and storage medium
Technical Field
The application relates to the field of computers, in particular to the field of artificial intelligence.
Background
When rendering the display content of the intelligent interactive equipment with the screen, the prior art generally adopts a uniform rendering template to render the same content to be rendered, and does not consider the information such as the display capability of the intelligent interactive equipment with the screen, the characteristics of the server and the like, so that the flexible and efficient rendering cannot be realized.
Disclosure of Invention
The embodiment of the application provides a rendering method, a rendering device, electronic equipment and a storage medium.
In a first aspect, an embodiment of the present application provides a rendering method, including:
acquiring content to be rendered, the category of the content to be rendered, equipment side information and server information for providing the content to be rendered;
deleting the part which cannot be displayed by the equipment end in the content to be rendered according to the acquired content, and determining a rendering template;
and rendering and deleting the processed content to be rendered by adopting the rendering template.
According to the method and the device for rendering the content, the content to be rendered can be processed and the appropriate rendering template can be selected according to the category of the content to be rendered, the equipment side information and the server information for providing the content to be rendered, so that the rendering is in accordance with the display capacity of the equipment side and the characteristics of the server, and the flexible and efficient rendering is achieved.
In one embodiment, deleting a portion of the content to be rendered that cannot be displayed on the device side according to the acquired content includes:
deleting the part which cannot be displayed by the equipment side in the content to be rendered according to the equipment side information; wherein the device side information comprises at least one of a screen size and a support pixel of the device side.
In the embodiment of the application, the deletion of the content to be rendered meets the requirements of the equipment end such as screen size and support pixels.
In one embodiment, determining a rendering template from the obtained content includes:
determining relevant information of a rendering template according to the server information and the category of the content to be rendered;
determining information of a first rendering template according to the equipment side information, the server information and the related information of the rendering template;
and searching a corresponding first rendering template according to the information of the first rendering template, and taking the searched first rendering template as the determined rendering template.
According to the method and the device, the matched first rendering template is determined according to the equipment side information, the server information, the category of the content to be rendered and other information, and therefore the adaptation of the rendering process to different types of equipment sides can be guaranteed.
In one embodiment, determining a rendering template according to the obtained content further comprises:
determining information of a second rendering template according to the equipment side information and the server information under the condition that the first rendering template cannot be found;
and searching a corresponding second rendering template according to the information of the second rendering template, and taking the searched second rendering template as the determined rendering template.
In one embodiment, determining a rendering template according to the obtained content further comprises:
and under the condition that the second rendering template cannot be found, acquiring a third rendering template, and taking the third rendering template as the determined rendering template.
According to the method and the device, under the condition that the matched first rendering template cannot be found, the elegant degradation of the whole rendering process is realized by gradually relaxing the matching conditions of the rendering templates.
In a second aspect, an embodiment of the present application provides a rendering apparatus, including:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring content to be rendered, the category of the content to be rendered, equipment side information and server information for providing the content to be rendered;
the processing module is used for deleting the part which cannot be displayed by the equipment end in the content to be rendered according to the acquired content and determining a rendering template;
and the rendering module is used for rendering the deleted contents to be rendered by adopting the rendering template.
In one embodiment, a processing module comprises:
the deleting submodule is used for deleting the part which cannot be displayed by the equipment terminal in the content to be rendered according to the equipment terminal information; wherein the device side information comprises at least one of a screen size and a support pixel of the device side.
In one embodiment, a processing module comprises:
the first determining submodule is used for determining the information of the first rendering template according to the equipment side information, the server information and the related information of the rendering template; and searching a corresponding first rendering template according to the information of the first rendering template, and taking the searched first rendering template as the determined rendering template.
In one embodiment, the processing module further comprises:
the second determining submodule is used for determining the information of a second rendering template according to the equipment side information and the server information under the condition that the first rendering template cannot be found; and searching a corresponding second rendering template according to the information of the second rendering template, and taking the searched second rendering template as the determined rendering template.
In one embodiment, the processing module further comprises:
and the third determining submodule is used for acquiring a third rendering template under the condition that the second rendering template cannot be found, and taking the third rendering template as the determined rendering template.
In a third aspect, an embodiment of the present application provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the first aspects.
In a fourth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are configured to cause a computer to perform the method of any one of the first aspects.
One embodiment in the above application has the following advantages or benefits: according to the method and the device for rendering the content, the content to be rendered is processed according to the category of the content to be rendered, the equipment side information and the server information providing the content to be rendered, and the appropriate rendering template is selected, so that the rendering meets the display capacity of the equipment side and the characteristics of the server, and the flexible and efficient rendering is achieved.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a first flowchart illustrating an implementation of a rendering method according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of an implementation flow of determining a rendering template according to the obtained content in step S102 in the rendering method according to the embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a structure and a flow of information of a system in which an independent rendering server is located according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram illustrating a second implementation flow of a rendering method according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a rendering apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a processing module 502 in a rendering apparatus according to an embodiment of the present application;
fig. 7 is a block diagram of an electronic device for implementing a rendering method according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
An embodiment of the present application provides a rendering method, and fig. 1 is a schematic view illustrating a first implementation flow of the rendering method according to the embodiment of the present application, including:
step S101: acquiring content to be rendered, the category of the content to be rendered, equipment side information and server information for providing the content to be rendered;
step S102: deleting the part which cannot be displayed by the equipment end in the content to be rendered according to the acquired content, and determining a rendering template;
step S103: and rendering and deleting the processed content to be rendered by adopting the rendering template.
In a possible implementation manner, the deleting, in step S102, a portion of the content to be rendered, which cannot be displayed by the device side, according to the obtained content may include: deleting the part which cannot be displayed by the equipment side in the content to be rendered according to the equipment side information; wherein the device side information comprises at least one of a screen size and a support pixel of the device side.
For example, for the same content to be rendered, the content displayed by different device sides is different due to the difference in display capability of the device sides. Therefore, the content to be rendered can be combed before rendering, and unnecessary fields in the content to be rendered can be deleted, so that the volume of the target code obtained after rendering can be reduced.
Fig. 2 is a schematic view of an implementation flow of determining a rendering template according to the obtained content in step S102 in the rendering method according to the embodiment of the present application, including:
step S201: determining relevant information of a rendering template according to the server information and the category of the content to be rendered;
step S202: determining information of a first rendering template according to the equipment side information, the server information and the related information of the rendering template;
step S203: and searching a corresponding first rendering template according to the information of the first rendering template, and taking the searched first rendering template as the determined rendering template.
In a possible implementation manner, the determining of the related information of the rendering template in step S201 may refer to determining a category of at least one rendering template required by the content to be rendered according to the server information and the category of the content to be rendered, and obtaining a category path of the required rendering template according to the category. The category path of the required rendering template may be the specific content of the related information of the rendering template.
Each rendering template may correspond to each portion of the content to be rendered, such as pictures, text, audio, video, and so forth.
In a possible implementation manner, the information of the first rendering template is a search path of the first rendering template, and the first rendering template may be considered as a rendering template matching conditions of the server, the device side, and the content category to be rendered.
As shown in fig. 2, the process of determining a rendering template according to the acquired content in step S102 may further include:
step S204: determining information of a second rendering template according to the equipment side information and the server information under the condition that the first rendering template cannot be found;
step S205: and searching a corresponding second rendering template according to the information of the second rendering template, and taking the searched second rendering template as the determined rendering template.
In a possible embodiment, the information of the second rendering template is a search path of the second rendering template, and the second rendering template may be regarded as a default rendering template set in advance. In the case that the rendering template with the matched condition (i.e. the first rendering template) cannot be found, the embodiment of the present application renders the content to be rendered by using the default rendering template.
The first rendering template or the second rendering template may refer to a set of rendering templates, each set including at least one rendering template.
As shown in fig. 2, the process of determining the rendering template may further include:
step S206: and under the condition that the second rendering template cannot be found, acquiring a third rendering template, and taking the third rendering template as the determined rendering template.
In one possible embodiment, the information of the third rendering template is a search path of the third rendering template, and the third rendering template may be considered as a pocket rendering template. When the default rendering template (i.e., the second rendering template) cannot be found, the embodiment of the application uses the pocket bottom rendering template for rendering, and an interface representing an error can be displayed in the display interface.
The searching condition is from accurate to inaccurate; and matching the searched rendering template from the condition to the default, and then matching from the default to the unmatched rendering template. This selection process of gradually relaxing the conditions represents a graceful degradation of the overall rendering process.
The rendering method provided by the embodiment of the application can be executed by an independent rendering server. Fig. 3 is a schematic view of a structure and an information flow direction of a system where an independent rendering server is located according to an embodiment of the present application, where the system may be a visual rendering system facing an intelligent voice device. The rendering system may include a skill service, a conversational AI system, an independent rendering service, a Content Delivery Network (CDN) service, an intelligent voice device, and so on. In the system shown in fig. 3, an overall business process is as follows:
1) the user asks the intelligent voice device through voice, and the intelligent voice device transmits the inquiry of the user to the conversational AI system. The intelligent voice device is the device side in the above embodiment. The device side may have a screen.
2) The conversational AI system passes the intent to the skills service after being processed by Automatic Speech Recognition (ASR) and Natural Language Understanding (NLU). The skill service is the server providing the content to be rendered in the above embodiment.
3) The skills service returns content to be rendered, which may include content and resources, to the conversational AI system.
4) And the conversational AI system transmits the content to be rendered, the information of the intelligent voice equipment and the information of the skill service to the independent rendering server.
5) The independent rendering service transmits the static data in the content to be rendered to the CDN service.
6) The independent rendering service selects a rendering template adaptive to the intelligent voice equipment according to the content received in the step 4), renders the content to be rendered by adopting the selected rendering template, generates an object code convenient for the intelligent voice equipment to execute, and returns the object code to the conversational AI system.
7) And returning the received target code, the related context information and other data to the intelligent voice device to the conversational AI system.
8) And the rendering execution engine in the intelligent voice equipment runs the object code and displays the object code on a screen. For static resources in the content to be rendered, the intelligent voice device may be directly pulled from the CDN.
The rendering method provided by the embodiment of the application can be used for solving the steps 4) and 6) in the above flow.
Fig. 4 is a schematic flowchart illustrating a second implementation flow of a rendering method according to an embodiment of the present application, including:
step S401: and acquiring various parameters for rendering, and verifying the parameters. For example, the various parameters include:
response: for representing content to be rendered;
moduleName: a category for representing content to be rendered, such as teletext, plain text, audio or video, etc.;
deviceInfo: used for representing the device side information;
clientName: for representing server information such as the name of the skills service, the identity of the request in the skills service, etc.
The content to be rendered, the device side information, and the server information may be received from the interactive AI system in fig. 3, and the category of the content to be rendered may be received from the interactive AI system, or may be obtained by analyzing the received content to be rendered by an independent rendering server.
Step S402: and combing the content to be rendered according to the equipment side information, and deleting the part which cannot be displayed by the equipment side in the content to be rendered. Wherein, the device side information may include at least one of a screen size and a support pixel of the device side. The content to be rendered after the deletion process can be represented by response'.
Step S403: determining the category of at least one rendering template required by the content to be rendered according to the server information and the category of the content to be rendered, and acquiring the category path of the required rendering template according to the category. Wherein, the category path can be represented by a moduleName'. In addition, the clientName can be transformed by adopting a fixed mapping relation to obtain the clientName'; the clientName' still carries the information of the presentation server.
The step S402 and the step S403 realize the combing of the content to be rendered; and the intervention on the product line and the template information is realized, namely the template range suitable for the equipment end and the category of the content to be rendered is defined. Thereafter, within the range of the defined templates, an appropriate rendering template may be further selected, i.e., the following steps S404 to S408 are performed.
In addition, the embodiment of the application can correspond to one rendering template under various conditions, the difference of the same rendering template among different protocols is smoothed, and the reuse rate of the rendering template is improved.
Step S404: judging the template type to be selected according to the equipment type in the equipment side information; and determining the template version needing to be selected from the template types needing to be selected according to the equipment-side rendering engine version in the equipment-side information.
Step S405: and generating a product line searching path according to the server information, the template type and the template version. The product line search path may be represented by clientPaths, and is used to represent a search path of a rendering template matched with the device side information and the server information.
Step S406: and searching the rendering template with the matched condition according to the product line searching path and the category path. If the corresponding rendering template is found, the clientName 'is transformed by adopting a fixed mapping relation to obtain the clientName'; continuing to execute step S409 by utilizing the clientName' and the category path; otherwise, step S407 is executed.
Step S407: and searching the corresponding default rendering template according to the product line searching path (clientPaths) and the searching path of the default rendering template. If the corresponding default rendering template is found, carrying the searching path of the default rendering template in the moduleName parameter; and transforming the clientName 'by adopting a fixed mapping relation to obtain the clientName'. Continuing to execute step S409 by utilizing the clientName 'and moduleName' parameters; otherwise, step S408 is performed. Wherein, the search path of the default rendering template can be represented by default.
Step S408: and finding the corresponding pocket bottom rendering template according to the clientName' and the finding path of the pocket bottom rendering template, and continuously executing the step S409. The search path of the bottom-pocket rendering template may be carried in the moduleName ' parameter, and step S409 may be continuously executed by using the clientName ' and the moduleName ' parameters. Wherein, the search path of the bottom-pocket rendering template can be represented by idle.
Step S409: and rendering the content to be rendered by adopting the searched rendering template to obtain the corresponding target code.
After that, the embodiment of the present application may return the object code to the conversational AI system. In the above process, the rendering template found in step S406 may refer to the first rendering template in the embodiment shown in fig. 2, the default rendering template found in step S407 may refer to the second rendering template in the embodiment shown in fig. 2, and the pocket bottom rendering template found in step S408 may refer to the third rendering template in the embodiment shown in fig. 2.
The embodiment of the application can decouple the business service and the rendering service, and the independent rendering service provides the display service. The independent rendering service is a decoupled system, and one set can be applied to all the presentation services. The decoupling mode is convenient for deployment, management and upgrading, and can effectively realize the presentation of the same content on different terminals. The terminal can be a screen intelligent voice device.
In a typical application scenario, after a user's voice request reaches a skill service through the conversational AI system, the skill service returns relevant presentation content to the conversational AI system in addition to an effective voice broadcast. And the conversational AI system calls the independent rendering service of the server side and displays the display content returned by the skill service on a screen of the user.
In a possible implementation manner, after receiving a request from the conversational AI system, the independent rendering service firstly verifies parameters included in the request, then performs dynamic matching and assembly according to the parameters and preset templates with different granularities, achieves graceful degradation for an abnormal situation, and finally generates a target code.
An embodiment of the present application further provides a rendering apparatus, and fig. 5 is a schematic structural diagram of the rendering apparatus according to the embodiment of the present application, including:
an obtaining module 501, configured to obtain content to be rendered, a category of the content to be rendered, device side information, and server information providing the content to be rendered;
the processing module 502 is configured to delete, according to the obtained content, a portion that cannot be displayed by the device side in the content to be rendered, and determine a rendering template;
and a rendering module 503, configured to render the deleted content to be rendered by using a rendering template.
Fig. 6 is a schematic structural diagram of a processing module 502 in a rendering apparatus according to an embodiment of the present application, including:
the deletion submodule 601 is configured to delete, according to the device side information, a portion, which cannot be displayed by the device side, of the content to be rendered; wherein the device side information comprises at least one of a screen size and a support pixel of the device side.
As shown in fig. 6, the processing module 502 may further include:
a first determining submodule 602, configured to determine information of a first rendering template according to the device side information, the server information, and the related information of the rendering template; and searching a corresponding first rendering template according to the information of the first rendering template, and taking the searched first rendering template as the determined rendering template.
A second determining submodule 603, configured to determine, according to the device side information and the server information, information of a second rendering template when the first rendering template cannot be found; and searching a corresponding second rendering template according to the information of the second rendering template, and taking the searched second rendering template as the determined rendering template.
And a third determining sub-module 604, configured to obtain a third rendering template when the second rendering template cannot be found, and use the third rendering template as the determined rendering template.
The functions of each module in each apparatus in the embodiments of the present invention may refer to the corresponding description in the above method, and are not described herein again.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 7 is a block diagram of an electronic device according to a rendering method of an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 7, the electronic apparatus includes: one or more processors 701, a memory 702, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display Graphical information for a Graphical User Interface (GUI) on an external input/output device, such as a display device coupled to the Interface. In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 7, one processor 701 is taken as an example.
The memory 702 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by the at least one processor to cause the at least one processor to perform the rendering method provided herein. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to perform the rendering method provided herein.
The memory 702, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the obtaining module 501, the processing module 502, and the rendering module 503 shown in fig. 5) corresponding to the rendering method in the embodiments of the present application. The processor 701 executes various functional applications of the server and data processing, i.e., implements the rendering method in the above-described method embodiments, by executing non-transitory software programs, instructions, and modules stored in the memory 702.
The memory 702 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the rendered electronic device, and the like. Further, the memory 702 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 702 may optionally include memory located remotely from the processor 701, which may be connected to the rendering electronics over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the rendering method may further include: an input device 703 and an output device 704. The processor 701, the memory 702, the input device 703 and the output device 704 may be connected by a bus or other means, and fig. 7 illustrates an example of a connection by a bus.
The input device 703 may receive entered numeric or character information and generate key signal inputs related to user settings and function controls of the XXX electronic device, such as a touch screen, keypad, mouse, track pad, touch pad, pointer stick, one or more mouse buttons, track ball, joystick, or other input device. The output devices 704 may include a display device, auxiliary lighting devices (e.g., LEDs), and tactile feedback devices (e.g., vibrating motors), among others. The Display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) Display, and a plasma Display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, Integrated circuitry, Application Specific Integrated Circuits (ASICs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (Cathode Ray Tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, the content to be rendered can be processed according to the category of the content to be rendered, the equipment side information and the server information, the matched first rendering template is searched, and the content to be rendered after the first rendering template is used for rendering under the condition that the first rendering template is searched, so that the rendering matched with the display capacity of the equipment side is achieved. Under the condition that the first rendering template cannot be found, the finding condition of the rendering template can be gradually relaxed, and the elegant degradation of the whole rendering process is realized.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (12)

1. A rendering method, comprising:
acquiring content to be rendered, the category of the content to be rendered, equipment side information and server information for providing the content to be rendered;
deleting the part which cannot be displayed by the equipment end in the content to be rendered according to the acquired content, and determining a rendering template;
and rendering and deleting the processed content to be rendered by adopting the rendering template.
2. The method according to claim 1, wherein deleting, according to the obtained content, a portion of the content to be rendered that cannot be displayed by a device side comprises:
deleting the part which cannot be displayed by the equipment side in the content to be rendered according to the equipment side information; wherein the device side information comprises at least one of a screen size and a support pixel of the device side.
3. The method of claim 1 or 2, wherein determining a rendering template from the obtained content comprises:
determining relevant information of a rendering template according to the server information and the category of the content to be rendered;
determining information of a first rendering template according to the equipment side information, the server information and the related information of the rendering template;
and searching a corresponding first rendering template according to the information of the first rendering template, and taking the searched first rendering template as the determined rendering template.
4. The method of claim 3, wherein determining a rendering template from the obtained content further comprises:
determining information of a second rendering template according to the equipment side information and the server information under the condition that the first rendering template cannot be found;
and searching a corresponding second rendering template according to the information of the second rendering template, and taking the searched second rendering template as the determined rendering template.
5. The method of claim 4, wherein determining a rendering template from the obtained content further comprises:
and under the condition that the second rendering template cannot be found, acquiring a third rendering template, and taking the third rendering template as the determined rendering template.
6. A rendering apparatus, characterized by comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring content to be rendered, the category of the content to be rendered, equipment side information and server information for providing the content to be rendered;
the processing module is used for deleting the part which cannot be displayed by the equipment end in the content to be rendered according to the acquired content and determining a rendering template;
and the rendering module is used for rendering the deleted contents to be rendered by adopting the rendering template.
7. The apparatus of claim 6, wherein the processing module comprises:
the deleting submodule is used for deleting the part which cannot be displayed by the equipment terminal in the content to be rendered according to the equipment terminal information; wherein the device side information comprises at least one of a screen size and a support pixel of the device side.
8. The apparatus of claim 6 or 7, wherein the processing module comprises:
the first determining submodule is used for determining the information of a first rendering template according to the equipment side information, the server information and the related information of the rendering template; and searching a corresponding first rendering template according to the information of the first rendering template, and taking the searched first rendering template as the determined rendering template.
9. The apparatus of claim 8, wherein the processing module further comprises:
the second determining submodule is used for determining information of a second rendering template according to the equipment side information and the server information under the condition that the first rendering template cannot be found; and searching a corresponding second rendering template according to the information of the second rendering template, and taking the searched second rendering template as the determined rendering template.
10. The apparatus of claim 9, wherein the processing module further comprises:
and the third determining submodule is used for acquiring a third rendering template under the condition that the second rendering template cannot be found, and taking the third rendering template as the determined rendering template.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
12. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-5.
CN201911002632.0A 2019-10-21 2019-10-21 Rendering method, rendering device, electronic equipment and storage medium Active CN110727435B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911002632.0A CN110727435B (en) 2019-10-21 2019-10-21 Rendering method, rendering device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911002632.0A CN110727435B (en) 2019-10-21 2019-10-21 Rendering method, rendering device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110727435A true CN110727435A (en) 2020-01-24
CN110727435B CN110727435B (en) 2023-09-05

Family

ID=69220571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911002632.0A Active CN110727435B (en) 2019-10-21 2019-10-21 Rendering method, rendering device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110727435B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114237795A (en) * 2021-12-16 2022-03-25 海宁奕斯伟集成电路设计有限公司 Terminal interface display method and device, electronic equipment and readable storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100269093A1 (en) * 2009-04-17 2010-10-21 iBiz Framework, Inc. Content Management System and Method for Generating Dynamic Applications
CN102622219A (en) * 2011-01-31 2012-08-01 富士通株式会社 Method, device and system for rendering execution result of dynamic transfer service
CN102740142A (en) * 2012-06-13 2012-10-17 百视通网络电视技术发展有限责任公司 Method for providing IPTV (Internet Protocol Television) service to different terminals and IPTV service system
US20130144847A1 (en) * 2011-12-05 2013-06-06 Google Inc. De-Duplication of Featured Content
CN103475773A (en) * 2012-06-06 2013-12-25 三星电子株式会社 Mobile communication terminal for providing augmented reality service and method of changing into augmented reality service screen
CN104267921A (en) * 2014-09-29 2015-01-07 广州华多网络科技有限公司 Page display control method and server
CN106202096A (en) * 2015-05-05 2016-12-07 阿里巴巴集团控股有限公司 Customer terminal webpage rendering intent and device
CN108306814A (en) * 2017-08-11 2018-07-20 腾讯科技(深圳)有限公司 Information-pushing method, device, terminal based on instant messaging and storage medium
US10032365B1 (en) * 2017-10-16 2018-07-24 Universal Electronics Inc. Apparatus, system and method for using a universal controlling device for displaying a graphical user element in a display device
CN109036397A (en) * 2018-06-29 2018-12-18 百度在线网络技术(北京)有限公司 The method and apparatus of content for rendering
CN109992248A (en) * 2019-02-25 2019-07-09 百度在线网络技术(北京)有限公司 Implementation method, device, equipment and the computer readable storage medium of voice application
US20190271940A1 (en) * 2018-03-05 2019-09-05 Samsung Electronics Co., Ltd. Electronic device, external device capable of being combined with the electronic device, and a display method thereof
CN110263287A (en) * 2019-06-24 2019-09-20 北京字节跳动网络技术有限公司 Page rendering method and apparatus

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100269093A1 (en) * 2009-04-17 2010-10-21 iBiz Framework, Inc. Content Management System and Method for Generating Dynamic Applications
CN102622219A (en) * 2011-01-31 2012-08-01 富士通株式会社 Method, device and system for rendering execution result of dynamic transfer service
US20130144847A1 (en) * 2011-12-05 2013-06-06 Google Inc. De-Duplication of Featured Content
CN103475773A (en) * 2012-06-06 2013-12-25 三星电子株式会社 Mobile communication terminal for providing augmented reality service and method of changing into augmented reality service screen
CN102740142A (en) * 2012-06-13 2012-10-17 百视通网络电视技术发展有限责任公司 Method for providing IPTV (Internet Protocol Television) service to different terminals and IPTV service system
CN104267921A (en) * 2014-09-29 2015-01-07 广州华多网络科技有限公司 Page display control method and server
CN106202096A (en) * 2015-05-05 2016-12-07 阿里巴巴集团控股有限公司 Customer terminal webpage rendering intent and device
CN108306814A (en) * 2017-08-11 2018-07-20 腾讯科技(深圳)有限公司 Information-pushing method, device, terminal based on instant messaging and storage medium
US10032365B1 (en) * 2017-10-16 2018-07-24 Universal Electronics Inc. Apparatus, system and method for using a universal controlling device for displaying a graphical user element in a display device
US20190271940A1 (en) * 2018-03-05 2019-09-05 Samsung Electronics Co., Ltd. Electronic device, external device capable of being combined with the electronic device, and a display method thereof
CN109036397A (en) * 2018-06-29 2018-12-18 百度在线网络技术(北京)有限公司 The method and apparatus of content for rendering
CN109992248A (en) * 2019-02-25 2019-07-09 百度在线网络技术(北京)有限公司 Implementation method, device, equipment and the computer readable storage medium of voice application
CN110263287A (en) * 2019-06-24 2019-09-20 北京字节跳动网络技术有限公司 Page rendering method and apparatus

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JUNWEN YANG等: "View-Centric Performance Optimization for Database-Backed Web Applications", 2019 IEEE/ACM 41ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), pages 994 - 1004 *
刘毓炜: "基于智能终端的语音交互系统设计", 中国优秀硕士学位论文全文数据库 信息科技辑, no. 11, pages 140 - 133 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114237795A (en) * 2021-12-16 2022-03-25 海宁奕斯伟集成电路设计有限公司 Terminal interface display method and device, electronic equipment and readable storage medium
CN114237795B (en) * 2021-12-16 2024-01-30 海宁奕斯伟集成电路设计有限公司 Terminal interface display method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN110727435B (en) 2023-09-05

Similar Documents

Publication Publication Date Title
CN110727434B (en) Rendering method, rendering device, electronic equipment and storage medium
CN110865855B (en) Applet processing method and related equipment
CN111835856B (en) File downloading method, device, equipment and storage medium
US11706172B2 (en) Method and device for sending information
CN110704162B (en) Method, device and equipment for sharing container mirror image by physical machine and storage medium
CN111367635A (en) Method, apparatus, device and medium for implementing application interface in host platform layer
CN112015468B (en) Interface document processing method and device, electronic equipment and storage medium
CN111125176B (en) Service data searching method and device, electronic equipment and storage medium
US11294651B2 (en) Code execution method, device, and rendering apparatus
CN111782229B (en) Method and device for starting small program and electronic equipment
CN110765251B (en) Rendering method, server, electronic device, and storage medium
CN114428907A (en) Information searching method and device, electronic equipment and storage medium
CN110727435B (en) Rendering method, rendering device, electronic equipment and storage medium
WO2015003605A1 (en) Systems and methods for content transmission for instant messaging
WO2023169193A1 (en) Method and device for generating smart contract
CN111177479A (en) Method and device for acquiring feature vectors of nodes in relational network graph
CN112685481A (en) Data processing method and device
CN112559867B (en) Business content output method, device, equipment, storage medium and program product
CN112068914B (en) Material content processing method and device, electronic equipment and storage medium
US11570306B2 (en) Call processing method, electronic device and storage medium
CN115840604B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN114268558B (en) Method, device, equipment and medium for generating monitoring graph
CN112507100B (en) Update processing method and device of question-answering system
CN111506786B (en) Method, device, electronic equipment and computer readable storage medium for web page update
CN115712744A (en) Picture data processing method and device, electronic equipment and storage medium

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
TA01 Transfer of patent application right

Effective date of registration: 20210508

Address after: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing

Applicant after: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) Co.,Ltd.

Applicant after: Shanghai Xiaodu Technology Co.,Ltd.

Address before: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing

Applicant before: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant