CN113613043A - Screen display and image processing method, embedded device and cloud server - Google Patents

Screen display and image processing method, embedded device and cloud server Download PDF

Info

Publication number
CN113613043A
CN113613043A CN202110878353.1A CN202110878353A CN113613043A CN 113613043 A CN113613043 A CN 113613043A CN 202110878353 A CN202110878353 A CN 202110878353A CN 113613043 A CN113613043 A CN 113613043A
Authority
CN
China
Prior art keywords
image
screen display
display
displayed
target image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110878353.1A
Other languages
Chinese (zh)
Inventor
刘智宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and 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 CN202110878353.1A priority Critical patent/CN113613043A/en
Publication of CN113613043A publication Critical patent/CN113613043A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • H04N21/25825Management of client data involving client display capabilities, e.g. screen resolution of a mobile phone
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234363Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the spatial resolution, e.g. for clients with a lower screen resolution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

A screen display and image processing method, an embedded device and a cloud server are provided. The utility model discloses a screen display method, which relates to the technical field of computers, in particular to the field of cloud computing and computer vision, and can be used in application scenes such as vertical screen display and multi-language display of low-end embedded equipment. The specific implementation scheme is as follows: sending a request carrying a direction parameter of a display and a parameter representing the content to be displayed to a server, so that the server obtains a corresponding target image based on the direction parameter and the parameter representing the content to be displayed, wherein the target image comprises an image suitable for horizontal screen display or vertical screen display; acquiring a target image returned by the server in response to the request; and transmitting the target image to a display for horizontal screen display or vertical screen display.

Description

Screen display and image processing method, embedded device and cloud server
Technical Field
The disclosure relates to the technical field of computers, in particular to the field of cloud computing and computer vision, and can be used for application scenes such as vertical screen display and multi-language display of low-end embedded equipment. In particular, to a screen display method and apparatus, an image processing method and apparatus, an electronic device, a storage medium and a computer program product, an embedded device and a cloud server.
Background
Currently, in many application scenarios, a display is required to support both landscape display and portrait display. In order to meet the diversified market demands, it is also desirable that the display simultaneously supports multiple languages (such as chinese language display).
Disclosure of Invention
The present disclosure provides a screen display method and apparatus, an image processing method and apparatus, an electronic device, a storage medium and a computer program product, an embedded device and a cloud server.
According to an aspect of the present disclosure, there is provided a screen display method including: sending a request carrying a direction parameter of a display and a parameter representing content to be displayed to a server, so that the server obtains a corresponding target image based on the direction parameter and the parameter representing the content to be displayed, wherein the target image comprises an image suitable for horizontal screen display or vertical screen display; acquiring the target image returned by the server in response to the request; and transmitting the target image to the display for horizontal screen display or vertical screen display.
According to another aspect of the present disclosure, there is provided an image processing method including: responding to a received request which is sent by an embedded device and carries a direction parameter of a display and a parameter representing content to be displayed, and obtaining a corresponding target image based on the direction parameter and the parameter representing the content to be displayed, wherein the target image comprises an image suitable for horizontal screen display or vertical screen display; and returning the target image to the embedded equipment so that the embedded equipment can transmit the target image to the display for horizontal screen display or vertical screen display.
According to another aspect of the present disclosure, there is provided a screen display device including: the system comprises a sending module, a receiving module and a display module, wherein the sending module is used for sending a request carrying a direction parameter of a display and a parameter representing content to be displayed to a server so that the server obtains a corresponding target image based on the direction parameter and the parameter representing the content to be displayed, and the target image comprises an image suitable for horizontal screen display or vertical screen display; the first acquisition module is used for acquiring the target image returned by the server end in response to the request; and the display module is used for transmitting the target image to the display to perform horizontal screen display or vertical screen display.
According to another aspect of the present disclosure, there is provided an image processing apparatus including: a third obtaining module, configured to obtain, in response to receiving a request that is sent by an embedded device and carries a direction parameter of a display and a parameter representing a content to be displayed, a corresponding target image based on the direction parameter and the parameter representing the content to be displayed, where the target image includes an image suitable for horizontal screen display or vertical screen display; and the sending module is used for returning the target image to the embedded equipment so that the embedded equipment can transmit the target image to the display for horizontal screen display or vertical screen display.
According to another aspect of the present disclosure, there is provided an embedded device including: the screen display device of the embodiment of the disclosure.
According to another aspect of the present disclosure, there is provided a cloud server including: the image processing device of the embodiment of the disclosure.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method according to the embodiments of the present disclosure.
According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements a method according to embodiments of the present disclosure.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1A illustrates a system architecture suitable for embodiments of the present disclosure;
FIGS. 1B and 1C illustrate scene diagrams in which embodiments of the disclosure may be implemented;
FIG. 2 illustrates a flow chart of a screen display method according to an embodiment of the present disclosure;
FIG. 3A illustrates a schematic diagram of an original image according to an embodiment of the present disclosure;
FIG. 3B is a diagram illustrating a horizontal screen display effect based on the diagram of FIG. 3A;
FIG. 3C is a schematic diagram of a landscape screen image suitable for portrait screen display based on FIG. 3A;
FIG. 3D is a diagram illustrating a landscape display effect based on FIG. 3C;
FIG. 4 illustrates a flow chart of an image processing method according to an embodiment of the present disclosure;
fig. 5 illustrates a block diagram of a screen display apparatus according to an embodiment of the present disclosure;
fig. 6 illustrates a block diagram of an image processing apparatus according to an embodiment of the present disclosure; and
FIG. 7 illustrates a block diagram of an electronic device used to implement embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. 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 disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It can be seen that many low-end and cheap embedded devices in the market currently do not support vertical screen display, but support Chinese display, only horizontal screen display, and only English display. The existing embedded equipment supporting vertical screen display is often high-end and expensive android equipment, and the equipment needs to have a picture rotation function.
It should be appreciated that low-end embedded devices are limited by poor processor functionality and insufficient memory storage space, and thus do not support portrait displays, nor do they support multi-language displays, such as chinese displays.
Therefore, in some schemes, the low-end embedded device is required to support both the landscape display and the portrait display, and a great change in software is required, for example, an embedded software package for realizing the portrait display needs to be developed in a customized manner. This solution results in higher software development costs.
In addition, in other schemes, the embedded device at the low end is required to support horizontal screen display and vertical screen display at the same time, and the method can be realized by an android system. This solution again results in higher hardware costs.
Moreover, in some schemes, the low-end embedded device is required to support both english display and chinese display, and a chinese library is also required to be installed. This approach can increase flash costs due to the large size of the chinese library. In addition, the scheme also needs to upgrade the CPU and the GPU, so that the hardware cost is also increased sharply.
In view of the above, the embodiment of the present disclosure provides a scheme for realizing that an embedded device, especially a low-end embedded device, supports both horizontal screen display and vertical screen display, and supports chinese display through a cloud technology.
The present disclosure will be described in detail below with reference to the drawings and specific embodiments.
A system architecture suitable for the screen display, image processing method and apparatus of the embodiments of the present disclosure is introduced as follows.
FIG. 1A illustrates a system architecture suitable for embodiments of the present disclosure. It should be noted that fig. 1A is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be used in other environments or scenarios.
As shown in fig. 1A, the system architecture 100 may include: an embedded device 101, a cloud server 102, a display 103, and a screen projection device 104.
In the embodiment of the present disclosure, the embedded device 101 may be a high-end device or a low-end device, which is not limited in the present disclosure.
In the disclosed embodiment, the cloud server 102 may implement an image rotation function. In addition, a word stock supporting multiple language display, such as a chinese word stock supporting chinese language display, may also be installed on the cloud server 102.
In the disclosed embodiment, the display 103 may be used for a landscape display. After pose adjustment, the display 103 can also be used for vertical screen display.
In the embodiment of the present disclosure, the screen-casting device 104 may display content (such as text, images, videos, and the like) to be displayed on the display 103 through the embedded device 101 and the cloud server 102.
For example, in some embodiments, when the embedded device 101 needs to display an image based on the content that is projected by the screen projecting device 104, a corresponding request may be generated based on the orientation parameter of the current display 103 and the content that needs to be displayed, and the generated request may be sent to the cloud server 102. The cloud server 102 may obtain the direction parameter of the display 103 and the parameter representing the content to be displayed, which are included in the request, in response to the request, and obtain a corresponding target image based on the direction parameter and the parameter representing the content to be displayed, and return the target image to the embedded device 101. Wherein the target image may comprise an image suitable for landscape display or portrait rendering. After acquiring the target image returned by the cloud server, the embedded device 101 transmits the target image to the display 103 for horizontal screen display or vertical screen display.
Since the image rotation technology is implemented on the cloud server in the embodiment of the present disclosure, it is not necessary to develop an embedded software package for implementing vertical screen display in a customized manner for the embedded device 101. And thus the software development cost is relatively low. In addition, according to the scheme, hardware improvement on the embedded device 101 is not needed, so that the hardware cost is not increased.
It should be understood that the number of cloud servers 102 in FIG. 1A is merely illustrative. There may be any number of cloud servers 102, as desired for implementation.
Application scenarios suitable for the screen display and image processing methods and apparatuses of the embodiments of the present disclosure are described below.
Currently, the orientation of the display screen of many displays is adjustable. As shown in fig. 1B, the display can be adjusted to a landscape display mode. As shown in FIG. 1C, the display can also be adjusted to a vertical screen display mode.
In the above scenario, the technical solution provided by the embodiment of the present disclosure may be applied, and a manner of implementing image rotation at the cloud end is adopted, so that the image is finally suitable for horizontal screen display in the scenario shown in fig. 1B, and is suitable for vertical screen display in the scenario shown in fig. 1C.
According to an embodiment of the present disclosure, there is provided a screen display method.
It should be understood that the present solution may be applied to an embedded device side, and particularly, may be applied to a low-end embedded device, where the embedded device serves as an execution main body, and performs the relevant operations in the embodiments of the present disclosure, so as to implement horizontal screen display and vertical screen display of an image according to actual situations.
Fig. 2 illustrates a flowchart of a screen display method according to an embodiment of the present disclosure.
As shown in fig. 2, the screen display method 200 may include: operations S210 to S230.
In operation S210, a request carrying a direction parameter of the display and a parameter representing a content to be displayed is sent to the server, so that the server obtains a corresponding target image based on the direction parameter and the parameter representing the content to be displayed, where the target image includes an image suitable for horizontal screen display or vertical screen display.
In operation S220, a target image returned by the server in response to the request is acquired.
In operation S230, the target image is transmitted to a display for landscape display or portrait display.
In the embodiment of the disclosure, when the embedded device needs to display an image, corresponding parameters may be generated for the image to be displayed. Meanwhile, the embedded device can also acquire the direction parameter of the display connected with the embedded device at the current moment. Then, the embedded device may generate a request carrying the corresponding parameter and the direction parameter, and send the request to a server (e.g., a cloud server), so that the server processes the corresponding original image into a target image suitable for horizontal screen display or vertical screen display based on the parameter carried in the request. The embedded device can acquire a target image obtained and returned by the server in response to the request of the server, and then transmit the target image to a display connected with the embedded device to perform corresponding horizontal screen display or vertical screen display.
In one embodiment of the present disclosure, in operation S210, if only image display is performed, the parameter characterizing the content required to be displayed may include only encoding information of the corresponding original image, or may include only a URL of the corresponding original image.
Alternatively, in another embodiment of the present disclosure, if a corresponding chinese language needs to be printed on an image in addition to the image display, the parameter representing the content to be displayed may include encoding information of the corresponding original image, chinese language information to be printed, and position coordinates of the chinese language printed on the image in operation S210. Or, in this case, the parameters characterizing the content to be displayed may include the URL of the corresponding original image, the chinese information to be printed, and the position coordinates of the chinese printed on the image.
In addition, in operation S210, if only image display is performed and the direction parameter carried in the request indicates that the display is currently in the landscape display state, a corresponding original image may be obtained based on the encoded information or URL carried in the request, and then the original image may be processed into a landscape image suitable for landscape display.
Or, in operation S210, if, in addition to displaying the image, a corresponding chinese character, such as a "landscape good" character, needs to be printed at the bottom position of the image, and the direction parameter carried in the request indicates that the display is currently in the landscape display state, the corresponding original image may be obtained first based on the encoding information or URL carried in the request, then the four "landscape good" characters are printed at the bottom position of the original image, and finally the image printed with the "landscape good" character is processed into a landscape image suitable for landscape display.
Or, in operation S210, if only image display is performed, and the direction parameter carried in the request indicates that the display is currently in the portrait display state, a corresponding original image may be obtained based on the encoding information or the URL carried in the request, and then the original image is processed into a landscape image suitable for the portrait display through an image rotation technique (this is called a landscape image because the processed image is actually still in the landscape display in the bottom display).
Or, in operation S210, if, in addition to displaying the image, a corresponding chinese character, such as a "landscape good" character, needs to be printed at the bottom position of the image, and the direction parameter carried in the request indicates that the display is currently in the portrait display state, the corresponding original image may be obtained first based on the encoding information or URL carried in the request, then the "landscape good" four chinese characters are printed at the bottom position of the original image, and finally the image printed with the "landscape good" character is processed into a landscape screen image suitable for the portrait display (this is called a landscape screen image because the processed image is actually still in the bottom display).
Through the embodiment of the disclosure, no matter the high-end embedded device or the low-end embedded device, the image rotation and multi-language character printing functions can be realized at the cloud server, so that both horizontal screen display and vertical screen display can be simultaneously supported, and even multi-language character display can be supported in some scenes.
Moreover, according to the embodiment of the disclosure, in a low-end embedded device scene, even if the software of the low-end embedded device does not support the horizontal and vertical screen switching function, the corresponding horizontal and vertical screen switching function can be realized on the low-end embedded device through the cloud technology. In addition, in the embodiment of the disclosure, the embedded software of the low-end embedded device does not need to be upgraded and changed, and the CPU and the GPU for the bottom-layer display do not need to upgrade hardware, so that the software cost and the hardware cost of the low-end embedded device are not increased additionally.
In other words, the embodiment of the present disclosure provides a simple and low-cost method, which enables the low-end embedded device to simultaneously support the functions of horizontal screen display and vertical screen display, and support the functions of chinese display, etc. The scheme can reduce the software development cost and the hardware investment cost.
As an alternative embodiment, the method may further comprise: the orientation parameters of the display are obtained based on a selected or calibrated screen display mode for the display to generate the request.
In some embodiments of the present disclosure, the screen display mode of the display may be selected by operating a key provided on the embedded device.
Illustratively, if a 0 ° landscape display mode is selected, the orientation parameter of the display may be noted as 0 °. Alternatively, for example, if a 180 ° landscape display mode is selected, the orientation parameter of the display may be noted as 180 °. If the 90 vertical screen display mode is selected, the orientation parameter of the display may be noted as 90. Alternatively, for example, if a 270 ° portrait display mode is selected, the orientation parameter of the display may be noted as 270 °.
In other embodiments of the present disclosure, the screen display mode of the display may also be calibrated by calibration software on the mobile terminal (e.g., a smart phone).
Illustratively, if a 0 ° landscape display mode is calibrated, the orientation parameter of the display may be noted as 0 °. Alternatively, for example, if a 180 ° landscape display mode is calibrated, the orientation parameter of the display may be noted as 180 °. If the 90 ° portrait display mode is calibrated, the orientation parameter of the display may be noted as 90 °. Or, for example, if the 270 ° vertical screen display mode is calibrated, the orientation parameter of the display may be recorded as 270 °.
By the embodiment of the disclosure, the direction parameter of the display can be determined in a plurality of modes flexibly selected so as to provide a corresponding data basis for the generation of the request.
As an alternative embodiment, the parameters characterizing the content to be displayed in the request may include: and coding information or storage addresses corresponding to the images needing to be displayed.
In some embodiments of the present disclosure, the content that the embedded device needs to display may include only images. In this case, the parameter characterizing the content to be displayed in the request may include only the encoded information or the storage address corresponding to the image to be displayed. It should be understood that the encoding information may be obtained by encoding the corresponding original image.
It should be understood that the encoding information or the storage address is used in the request instead of the corresponding original image, so that the data transmission amount can be reduced, the data transmission speed can be increased, and the response efficiency of the request can be improved.
As an alternative embodiment, the parameter characterizing the content to be displayed in the request may further include: non-english information to be displayed on an image to be displayed and position information (e.g., position coordinates) describing a display position of the non-english information are required.
In other embodiments of the present disclosure, the content that the embedded device needs to display may include images and characters (e.g., non-english information) printed on the images. In this case, the parameter for representing the content to be displayed in the request may include, in addition to the encoded information or the storage address corresponding to the image to be displayed, text (such as non-english information) to be printed on the image, and the like, and position information (such as coordinate information and the like) of the text on the image.
It should be understood that the encoding information or the storage address is used in the request instead of the corresponding original image, so that the data transmission amount can be reduced, the data transmission speed can be increased, and the response efficiency of the request can be improved.
As an alternative embodiment, the image may include a projected image (i.e. an image projected individually) or an image frame in a projected video stream, and the disclosure is not limited herein.
The present disclosure is described in detail below with reference to fig. 3A to 3D as an embodiment.
In one embodiment, for the original image as shown in fig. 3A, if the embedded device needs to display the image across the screen, the orientation parameter of the display in the request sent may be 0 °, and the parameter of the image to be displayed may be the encoding information or URL of the original image as shown in fig. 3A. The cloud end responds to the request, and can calculate and generate a transverse screen image which is suitable for transverse screen display and matched with the size of the current display screen based on the parameters in the request, the generated transverse screen image is sent to the embedded equipment, and the image is transmitted to the display by the embedded equipment to be displayed on the transverse screen. Specifically, the landscape display effect of the original image as shown in fig. 3A is as shown in fig. 3B.
In another embodiment, for the original image shown in fig. 3A, if the embedded device needs to display the image in a portrait screen and the "apple" word needs to be printed on the lower right of the image when the image is displayed in the portrait screen, the orientation parameter of the display in the request sent may be 90 °, and the parameter of the image to be displayed may be the encoded information or URL of the original image shown in fig. 3A, and the text information corresponding to the two chinese characters of "apple" and the coordinate information corresponding to the area where the two chinese characters of "apple" are printed on the image. The cloud end responds to the request, and can calculate and generate a horizontal screen image which is suitable for vertical screen display and matched with the size of the current display screen and has the character of 'apple' based on the parameters in the request, and send the generated horizontal screen image shown in fig. 3C to the embedded device, and the horizontal screen image is transmitted to the display by the embedded device to be displayed in a vertical screen mode. Specifically, the vertical screen display effect of the landscape image with the "apple" character as shown in fig. 3C is as shown in fig. 3D.
It should be understood that in the embodiments of the present disclosure, the images processed by the cloud are images adapted to the horizontal screen display or the vertical screen display.
By the embodiment of the disclosure, the vertical screen display effect and the Chinese display effect are realized without changing the software of the embedded equipment and adding the Chinese character library at the embedded equipment end.
According to an embodiment of the present disclosure, there is provided an image processing method.
Fig. 4 illustrates a flowchart of an image processing method according to an embodiment of the present disclosure.
As shown in fig. 4, the image processing method 400 may include: operations S410 to S430.
In operation S410, in response to receiving a request, which is sent by an embedded device and carries a direction parameter of a display and a parameter representing content to be displayed, a corresponding target image is obtained based on the direction parameter and the parameter representing the content to be displayed, where the target image includes an image suitable for horizontal screen display or vertical screen display.
In operation S420, the target image is returned to the embedded device so that the embedded device transmits the target image to the display for landscape display or portrait display.
It should be understood that, in the embodiment of the present disclosure, in the request sent by the embedded device, the obtaining manner of the related parameter and the specific parameter information included in the related parameter are the same as or similar to the related description in the foregoing embodiment, and details of the present disclosure are not repeated herein.
In addition, the technical problems solved and the technical effects achieved by the embodiments of the present disclosure are also the same as or similar to those described in the foregoing embodiments, and the details of the present disclosure are not repeated herein.
As an alternative embodiment, the parameters characterizing the content to be displayed in the request may include: and coding information or storage addresses corresponding to the images needing to be displayed. That is, the content parameter includes encoding information of the original image or a storage address thereof.
Based on this, obtaining the corresponding target image based on the direction parameter included in the request and the parameter characterizing the content to be displayed included in the request may include the following operations.
Based on the coding information or the storage address contained in the request, the corresponding original image is acquired.
In case the orientation parameter contained in the request is 0 °, the corresponding target image is obtained by rotating the original image by 0 °. I.e. the original image is rotated by 0 deg., and the rotated image is scaled in size to obtain a target image that fits the size of the cross-screen display. Or, the original image is not executed with image rotation operation, and the original image is directly scaled in size to obtain a target image which is suitable for the size of the horizontal screen display.
In case the orientation parameter contained in the request is 180 °, the corresponding target image is obtained by rotating the original image by 180 °. I.e. the original image is rotated by 180 deg., and the rotated image is scaled in size to obtain a target image that fits the size of the cross-screen display.
Further, in other embodiments, obtaining the corresponding target image based on the direction parameter carried in the request and the parameter representing the content to be displayed may further include: in the case that the orientation parameter is 90 ° or 270 °, the original image is rotated by 90 ° or 270 °, and then the rotated image is subjected to size scaling and black edge addition processing to obtain a target image suitable for portrait display.
Illustratively, in the case that the direction parameter is 90 ° in the request, the original image is rotated by 90 °, and then the rotated image is subjected to the size scaling and black edge adding processes to obtain the target image suitable for the portrait screen display.
Illustratively, in the case that the direction parameter is 270 ° in the request, the original image is rotated 270 °, and then the rotated image is subjected to the size scaling and black edge adding processes to obtain the target image suitable for the portrait screen display.
It should be understood that, in this embodiment, the image size may be scaled to fit the size of the vertical screen display, and then the remaining space is filled with black edges, thereby generating the horizontal screen image that fits the vertical screen display.
Further, in the embodiment of the present disclosure, if a corresponding chinese typeface needs to be printed on an image, the chinese typeface may be printed on an original image first, and then operations such as image rotation and image size scaling, black margin filling, etc. are performed. Therefore, a horizontal screen image with Chinese characters and suitable for vertical screen display can be obtained.
It should be understood that, in the embodiment of the present disclosure, the non-english word stock such as the chinese word stock is installed at the cloud end, not at the embedded device end, nor at the display end, so that neither the CPU/GPU, the memory, etc. at the embedded device end and the display end need to be upgraded or modified in software/hardware, and thus, the corresponding software/hardware cost is not increased.
According to an embodiment of the present disclosure, the present disclosure also provides a screen display device.
Fig. 5 illustrates a block diagram of a screen display apparatus according to an embodiment of the present disclosure.
As shown in fig. 5, the screen display device 500 may include: a sending module 510, a first obtaining module 520, and a display module 530.
A sending module 510, configured to send a request carrying a direction parameter of a display and a parameter representing a content to be displayed to a server, so that the server obtains a corresponding target image based on the direction parameter and the parameter representing the content to be displayed, where the target image includes an image suitable for horizontal screen display or vertical screen display.
A first obtaining module 520, configured to obtain the target image returned by the server in response to the request.
And a display module 530, configured to transmit the target image to the display for horizontal screen display or vertical screen display.
As an alternative embodiment, the apparatus further comprises: a second obtaining module, configured to obtain the direction parameter based on a selected or calibrated screen display mode for the display to generate the request.
As an alternative embodiment, the parameters characterizing the content to be displayed include: and coding information or storage addresses corresponding to the images needing to be displayed.
As an alternative embodiment, the parameter for characterizing the content to be displayed further includes: non-english information to be displayed on the image and position information describing a display position of the non-english information are required.
As an alternative embodiment, the image comprises a projected image or an image frame in a projected video stream.
It should be understood that the embodiments of the screen display apparatus portion of the present disclosure are the same as or similar to the embodiments of the screen display method portion of the present disclosure, and the technical problems to be solved and the technical effects to be achieved are also the same as or similar to each other, and the detailed description of the present disclosure is omitted.
According to an embodiment of the present disclosure, the present disclosure also provides an image processing apparatus.
Fig. 6 illustrates a block diagram of an image processing apparatus according to an embodiment of the present disclosure.
As shown in fig. 6, the image processing apparatus 600 may include: a third obtaining module 610 and a sending module 620.
A third obtaining module 610, configured to, in response to receiving a request that is sent by an embedded device and carries a direction parameter of a display and a parameter representing content that needs to be displayed, obtain a corresponding target image based on the direction parameter and the parameter representing the content that needs to be displayed, where the target image includes an image suitable for horizontal screen display or vertical screen display.
And a sending module 620, configured to return the target image to the embedded device, so that the embedded device transmits the target image to the display for horizontal screen display or vertical screen display.
As an alternative embodiment, the parameters characterizing the content to be displayed include: and coding information or storage addresses corresponding to the images needing to be displayed. The third obtaining module includes: a first obtaining unit, configured to obtain a corresponding original image based on the encoding information or the storage address; and a first image rotation unit for obtaining a corresponding target image by rotating the original image by 0 ° or 180 ° in a case where the orientation parameter is 0 ° or 180 °.
As an optional embodiment, the third obtaining module further includes: and the second image rotating unit is used for rotating the original image by 90 degrees or 270 degrees under the condition that the direction parameter is 90 degrees or 270 degrees, and then carrying out size scaling and black edge adding processing on the rotated image to obtain a target image suitable for vertical screen display.
It should be understood that the embodiments of the image processing apparatus portion of the present disclosure are the same as or similar to the embodiments of the image processing method portion of the present disclosure, and the technical problems to be solved and the technical effects to be achieved are also the same as or similar to each other, and the detailed description of the present disclosure is omitted here.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 7 illustrates a schematic block diagram of an example electronic device 700 that can be used to implement embodiments of the present disclosure. 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 disclosure described and/or claimed herein.
As shown in fig. 7, the electronic device 700 includes a computing unit 701, which may perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
A number of components in the electronic device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Computing unit 701 may be a variety of general purpose and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 701 executes the respective methods and processes described above, such as a screen display method (image processing method). For example, in some embodiments, the screen display method (image processing method) may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto device 700 via ROM 702 and/or communications unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the screen display method (image processing method) described above may be executed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the screen display method (image processing method) in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), 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.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
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. The Server may be a cloud Server, which is also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service extensibility in a traditional physical host and a VPS service ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server incorporating a blockchain.
In the technical scheme of the disclosure, the related user data recording, storage, application and the like all accord with the regulations of related laws and regulations, and do not violate the good customs of the public order.
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 disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. 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 disclosure should be included in the scope of protection of the present disclosure.

Claims (21)

1. A screen display method, comprising:
sending a request carrying a direction parameter of a display and a parameter representing content to be displayed to a server, so that the server obtains a corresponding target image based on the direction parameter and the parameter representing the content to be displayed, wherein the target image comprises an image suitable for horizontal screen display or vertical screen display;
acquiring the target image returned by the server in response to the request; and
and transmitting the target image to the display for horizontal screen display or vertical screen display.
2. The method of claim 1, further comprising:
the orientation parameter is retrieved based on a selected or calibrated screen display mode for the display to generate the request.
3. The method of claim 1 or 2, wherein the parameters characterizing the content to be displayed comprise: and coding information or storage addresses corresponding to the images needing to be displayed.
4. The method of claim 3, wherein the parameters characterizing the content to be displayed further comprise: non-English information required to be displayed on the image, and position information describing a display position of the non-English information.
5. The method of claim 3 or 4, wherein the image comprises a projected image or an image frame in a projected video stream.
6. An image processing method comprising:
responding to a received request which is sent by an embedded device and carries a direction parameter of a display and a parameter representing content to be displayed, and obtaining a corresponding target image based on the direction parameter and the parameter representing the content to be displayed, wherein the target image comprises an image suitable for horizontal screen display or vertical screen display; and
and returning the target image to the embedded equipment so that the embedded equipment can transmit the target image to the display for horizontal screen display or vertical screen display.
7. The method of claim 6, wherein:
the parameters for representing the contents to be displayed comprise: coding information or a storage address corresponding to the image to be displayed;
obtaining a corresponding target image based on the direction parameter and the parameter representing the content to be displayed, including:
acquiring a corresponding original image based on the coding information or the storage address; and
in case the orientation parameter is 0 ° or 180 °, the corresponding target image is obtained by rotating the original image by 0 ° or 180 °.
8. The method of claim 7, wherein obtaining a corresponding target image based on the orientation parameter and the parameter characterizing the content to be displayed further comprises:
and under the condition that the direction parameter is 90 degrees or 270 degrees, rotating the original image by 90 degrees or 270 degrees, and then carrying out size scaling and black edge adding processing on the rotated image to obtain a target image suitable for vertical screen display.
9. A screen display device comprising:
the system comprises a sending module, a receiving module and a display module, wherein the sending module is used for sending a request carrying a direction parameter of a display and a parameter representing content to be displayed to a server so that the server obtains a corresponding target image based on the direction parameter and the parameter representing the content to be displayed, and the target image comprises an image suitable for horizontal screen display or vertical screen display;
the first acquisition module is used for acquiring the target image returned by the server end in response to the request; and
and the display module is used for transmitting the target image to the display to perform horizontal screen display or vertical screen display.
10. The apparatus of claim 9, further comprising:
a second obtaining module, configured to obtain the direction parameter based on a selected or calibrated screen display mode for the display to generate the request.
11. The apparatus of claim 9 or 10, wherein the parameters characterizing the content to be displayed comprise: and coding information or storage addresses corresponding to the images needing to be displayed.
12. The apparatus of claim 11, wherein the parameters characterizing the content to be displayed further comprise: non-English information required to be displayed on the image, and position information describing a display position of the non-English information.
13. The apparatus of claim 11 or 12, wherein the image comprises a projected image or an image frame in a projected video stream.
14. An image processing apparatus comprising:
a third obtaining module, configured to obtain, in response to receiving a request that is sent by an embedded device and carries a direction parameter of a display and a parameter representing a content to be displayed, a corresponding target image based on the direction parameter and the parameter representing the content to be displayed, where the target image includes an image suitable for horizontal screen display or vertical screen display; and
and the sending module is used for returning the target image to the embedded equipment so that the embedded equipment can transmit the target image to the display for horizontal screen display or vertical screen display.
15. The apparatus of claim 14, wherein:
the parameters for representing the contents to be displayed comprise: coding information or a storage address corresponding to the image to be displayed;
the third obtaining module includes:
a first obtaining unit, configured to obtain a corresponding original image based on the encoding information or the storage address; and
a first image rotation unit for obtaining a corresponding target image by rotating the original image by 0 ° or 180 ° in case the orientation parameter is 0 ° or 180 °.
16. The apparatus of claim 15, wherein the third obtaining means further comprises:
and the second image rotating unit is used for rotating the original image by 90 degrees or 270 degrees under the condition that the direction parameter is 90 degrees or 270 degrees, and then carrying out size scaling and black edge adding processing on the rotated image to obtain a target image suitable for vertical screen display.
17. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
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-8.
18. 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-8.
19. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-8.
20. An embedded device, comprising: the screen display device of any one of claims 9-13.
21. A cloud server, comprising: the image processing apparatus of any one of claims 14 to 16.
CN202110878353.1A 2021-07-30 2021-07-30 Screen display and image processing method, embedded device and cloud server Pending CN113613043A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110878353.1A CN113613043A (en) 2021-07-30 2021-07-30 Screen display and image processing method, embedded device and cloud server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110878353.1A CN113613043A (en) 2021-07-30 2021-07-30 Screen display and image processing method, embedded device and cloud server

Publications (1)

Publication Number Publication Date
CN113613043A true CN113613043A (en) 2021-11-05

Family

ID=78306393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110878353.1A Pending CN113613043A (en) 2021-07-30 2021-07-30 Screen display and image processing method, embedded device and cloud server

Country Status (1)

Country Link
CN (1) CN113613043A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114466145A (en) * 2022-01-30 2022-05-10 北京字跳网络技术有限公司 Video processing method, device, equipment and storage medium
CN116708344A (en) * 2023-06-16 2023-09-05 黑龙江民族职业学院 Computer image communication method and device and image communication equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002108757A (en) * 2000-10-04 2002-04-12 Kyocera Communication Systems Co Ltd Server device equipped with image rotating function
CN108446085A (en) * 2018-03-14 2018-08-24 维沃移动通信有限公司 A kind of throwing screen display methods and mobile terminal
CN110933494A (en) * 2019-11-29 2020-03-27 维沃移动通信有限公司 Picture sharing method and electronic equipment
CN111694530A (en) * 2020-06-09 2020-09-22 北京百度网讯科技有限公司 Screen adaptation method and device, electronic equipment and storage medium
CN112019686A (en) * 2020-09-15 2020-12-01 维沃移动通信(杭州)有限公司 Display method and device and electronic equipment
CN112565839A (en) * 2020-11-23 2021-03-26 青岛海信传媒网络技术有限公司 Display method and display device of screen projection image

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002108757A (en) * 2000-10-04 2002-04-12 Kyocera Communication Systems Co Ltd Server device equipped with image rotating function
CN108446085A (en) * 2018-03-14 2018-08-24 维沃移动通信有限公司 A kind of throwing screen display methods and mobile terminal
CN110933494A (en) * 2019-11-29 2020-03-27 维沃移动通信有限公司 Picture sharing method and electronic equipment
CN111694530A (en) * 2020-06-09 2020-09-22 北京百度网讯科技有限公司 Screen adaptation method and device, electronic equipment and storage medium
CN112019686A (en) * 2020-09-15 2020-12-01 维沃移动通信(杭州)有限公司 Display method and device and electronic equipment
CN112565839A (en) * 2020-11-23 2021-03-26 青岛海信传媒网络技术有限公司 Display method and display device of screen projection image

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114466145A (en) * 2022-01-30 2022-05-10 北京字跳网络技术有限公司 Video processing method, device, equipment and storage medium
CN114466145B (en) * 2022-01-30 2024-04-12 北京字跳网络技术有限公司 Video processing method, device, equipment and storage medium
CN116708344A (en) * 2023-06-16 2023-09-05 黑龙江民族职业学院 Computer image communication method and device and image communication equipment

Similar Documents

Publication Publication Date Title
RU2445705C2 (en) Method of preparing data display in servers (versions) and machine-readable medium
CN107204023B (en) Method and apparatus for avoiding distortion of graphics drawn in canvas
CN113655975B (en) Image display method, image display device, electronic apparatus, and medium
CN111694530B (en) Screen adaptation method and device, electronic equipment and storage medium
CN113453073B (en) Image rendering method and device, electronic equipment and storage medium
CN113368492A (en) Rendering method and device
CN110807161A (en) Page framework rendering method, device, equipment and medium
CN103577496B (en) A kind of display methods and device of Email
CN114071190B (en) Cloud application video stream processing method, related device and computer program product
CN113778593B (en) Cloud desktop control method and device, electronic equipment, storage medium and program product
CN113613043A (en) Screen display and image processing method, embedded device and cloud server
CN114489552B (en) Remote display control system, remote control interface display method and computing equipment
CN114549303B (en) Image display method, image processing method, image display device, image processing apparatus, image display device, image processing program, and storage medium
US11910068B2 (en) Panoramic render of 3D video
CN116010736A (en) Vector icon processing method, device, equipment and storage medium
CN113836455A (en) Special effect rendering method, device, equipment, storage medium and computer program product
CN114371838A (en) Method, device and equipment for rendering small program canvas and storage medium
CN113835816A (en) Virtual machine desktop display method, device, equipment and readable storage medium
CN113362438A (en) Panorama rendering method, device, electronic apparatus, medium, and program
CN113467737A (en) Method, device and equipment for transmitting picture data and storage medium
CN114125135B (en) Video content presentation method and device, electronic equipment and storage medium
CN111158566A (en) Event processing method, device, equipment and storage medium
CN114500505B (en) Text processing method and device and electronic equipment
US12106527B2 (en) Realtime conversion of macroblocks to signed distance fields to improve text clarity in video streaming
CN114647476A (en) Page rendering method, device, equipment, storage medium and program

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20211105