US-12626670-B2 - Image display methods and apparatuses
Abstract
An image display method and apparatus are provided. The method includes: determining a target display position of a target object in an original image and a first size of a display region of an ink screen ( 102 ); generating a monochrome image with the first size according to the original image, where color values of pixel points in the monochrome image include at least one standard color value, and the target object is located at a target display position in the monochrome image ( 104 ); sending the monochrome image to the ink screen, so that the monochrome image is displayed by the ink screen in the display region ( 106 ). This method can improve the definition of the monochrome image displayed by the ink screen.
Inventors
- Cunqing LI
- Kun Li
Assignees
- BOE TECHNOLOGY GROUP CO., LTD.
Dates
- Publication Date
- 20260512
- Application Date
- 20220718
Claims (15)
- 1 . An image display method, comprising: determining a target display position of a target object in an original image and a first size of a display region of an ink screen; generating a monochrome image with the first size according to the original image, wherein color values of pixel points in the monochrome image comprise at least one standard color value, and the target object is located at the target display position in the monochrome image; and sending the monochrome image to the ink screen, so that the monochrome image is displayed by the ink screen in the display region; wherein generating the monochrome image with the first size according to the original image comprises: generating monochrome objects respectively corresponding to target objects according to original color values of the target objects in the original image, wherein sizes of the monochrome objects are respectively matched with the first size; and wherein the monochrome objects are obtained by drawing the target objects in an equal proportion; and obtaining the monochrome image with the first size by combining the monochrome objects according to target display positions of the target objects in the original image, wherein relative positions of the monochrome objects in the monochrome image are the same as relative positions of the target objects in the original image; wherein the target object comprises an image and a text; wherein generating the monochrome image with the first size according to the original image further comprises: if the target object is the image, in response to determining that a style designating operation for any one of target objects is detected, processing the any one of target objects according to a self-defined monochrome processing style designated by the style designating operation; and in response to determining that no style designating operation for any one of target objects is detected, processing the any one of target objects according to a pre-defined default monochrome processing style; if the target object is the text, processing the target object according to the pre-defined default monochrome processing style; wherein either one of the self-defined monochrome processing style and the default monochrome processing style comprises: a color style for indicating at least one standard color value corresponding to the monochrome image; and a line style for indicating an appearance of a line, wherein a monochrome object is composed of lines.
- 2 . The method according to claim 1 , wherein determining the target display position of the target object in the original image comprises: displaying an object typesetting region on a first screen different from the ink screen; in response to an object typesetting operation detected in the object typesetting region, determining a target object to be typeset; and in response to determining that the object typesetting operation is completed, taking a displayed picture corresponding to the object typesetting region as the original image, and taking a position of the target object in the object typesetting region as the target display position of the target object in the original image.
- 3 . The method according to claim 1 , wherein generating the monochrome image with the first size according to the original image comprises: determining a second size for characterizing a size of the original image; obtaining a first intermediate image with the first size by scaling the original image according to a scaling coefficient between the second size and the first size, and generating the monochrome image with the first size according to the first intermediate image; or, generating a second intermediate image with the second size according to the original image, and obtaining the monochrome image with the first size by scaling the second intermediate image according to a scaling coefficient between the second size and the first size.
- 4 . The method according to claim 1 , wherein generating the monochrome image with the first size according to the original image comprises: determining a unified monochrome processing style for the original image, and generating the monochrome image by processing target objects in the original image according to the unified monochrome processing style; or determining independent monochrome processing styles respectively corresponding to target objects in the original image, and generating the monochrome image by respectively processing the target objects according to the independent monochrome processing styles respectively corresponding to the target objects.
- 5 . The method according to claim 4 , wherein either one of the unified monochrome processing style and the independent monochrome processing style comprises at least one of: a color style for indicating at least one standard color value corresponding to the monochrome image; or, a line style for indicating an appearance of a line, wherein a monochrome object is composed of lines.
- 6 . The method according to claim 1 , wherein generating the monochrome image with the first size according to the original image comprises: determining at least one standard color value corresponding to a monochrome image to be generated; and respectively determining standard color values of pixel points in the monochrome image according to original color values of pixel points in the original image.
- 7 . The method according to claim 1 , further comprising: generating a monochrome preview image according to the original image or the monochrome image, wherein color values of pixel points in the monochrome preview image comprise at least one standard color value, and the target object is located at the target display position in the monochrome preview image; and displaying the monochrome preview image on a second screen different from the ink screen.
- 8 . The method according to claim 7 , wherein generating the monochrome preview image according to the original image or the monochrome image comprises: determining a third size for characterizing a size of an image display region of the second screen; and generating the monochrome preview image with the third size according to the original image or the monochrome image.
- 9 . The method according to claim 1 , wherein sending the monochrome image to the ink screen comprises: sending the monochrome image to the ink screen through a Near Field Communication (NFC) technology.
- 10 . A non-transient computer readable storage medium on which a computer program is stored, wherein the program is executed by a processor to perform the method according to claim 1 .
- 11 . An electronic device, comprising: a processor; a memory for storing processor executable instructions, wherein the processor is configured to implement operations comprising: determining a target display position of a target object in an original image and a first size of a display region of an ink screen; generating a monochrome image with the first size according to the original image, wherein color values of pixel points in the monochrome image comprise at least one standard color value, and the target object is located at the target display position in the monochrome image; and sending the monochrome image to the ink screen, so that the monochrome image is displayed by the ink screen in the display region; wherein generating the monochrome image with the first size according to the original image comprises: generating monochrome objects respectively corresponding to target objects according to original color values of the target objects in the original image, wherein sizes of the monochrome objects are respectively matched with the first size; and wherein the monochrome objects are obtained by drawing the target objects in an equal proportion; and obtaining the monochrome image with the first size by combining the monochrome objects according to target display positions of the target objects in the original image, wherein relative positions of the monochrome objects in the monochrome image are the same as relative positions of the target objects in the original image; wherein the target object comprises an image and a text; wherein generating the monochrome image with the first size according to the original image further comprises: if the target object is the image, in response to determining that a style designating operation for any one of target objects is detected, processing the any one of target objects according to a self-defined monochrome processing style designated by the style designating operation; and in response to determining that no style designating operation for any one of target objects is detected, processing the any one of target objects according to a pre-defined default monochrome processing style; if the target object is the text, processing the target object according to the pre-defined default monochrome processing style; wherein either one of the self-defined monochrome processing style and the default monochrome processing style comprises: a color style for indicating at least one standard color value corresponding to the monochrome image; and a line style for indicating an appearance of a line, wherein a monochrome object is composed of lines.
- 12 . The electronic device according to claim 11 , wherein determining the target display position of the target object in the original image comprises: displaying an object typesetting region on a first screen different from the ink screen; in response to an object typesetting operation detected in the object typesetting region, determining a target object to be typeset; and in response to determining that the object typesetting operation is completed, taking a displayed picture corresponding to the object typesetting region as the original image, and taking a position of the target object in the object typesetting region as the target display position of the target object in the original image.
- 13 . The electronic device according to claim 11 , wherein generating the monochrome image with the first size according to the original image comprises: determining a second size for characterizing a size of the original image; obtaining a first intermediate image with the first size by scaling the original image according to a scaling coefficient between the second size and the first size, and generating the monochrome image with the first size according to the first intermediate image; or, generating a second intermediate image with the second size according to the original image, and obtaining the monochrome image with the first size by scaling the second intermediate image according to a scaling coefficient between the second size and the first size.
- 14 . The electronic device according to claim 11 , wherein generating the monochrome image with the first size according to the original image comprises: determining a unified monochrome processing style for the original image, and generating the monochrome image by processing target objects in the original image according to the unified monochrome processing style; or determining independent monochrome processing styles respectively corresponding to target objects in the original image, and generating the monochrome image by respectively processing the target objects according to the independent monochrome processing styles respectively corresponding to the target objects.
- 15 . The electronic device according to claim 14 , wherein either one of the unified monochrome processing style and the independent monochrome processing style comprises at least one of: a color style for indicating at least one standard color value corresponding to the monochrome image; or, a line style for indicating an appearance of a line, wherein a monochrome object is composed of lines.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a national stage of international PCT Application No. PCT/CN2022/106205 filed on Jul. 18, 2022, the entire contents of which are incorporated herein by reference. TECHNICAL FIELD The present disclosure relates to the field of image processing technology, and in particular, to an image display method and apparatus. BACKGROUND With the increasing maturity of Electronic Ink (E-ink) technology, E-ink screens (hereinafter referred to as ink screens) with characteristics such as low power consumption and visual friendliness are gradually applied to readers, advertising boards, product labels, and other scenarios. At present stage, a drawn, to-be-displayed image is provided usually by a terminal device to an ink screen for display. In related art, if a size of a to-be-displayed monochrome image is inconsistent with that of the ink screen, the image needs to be scaled to have a same size as the ink screen and thereafter the image is displayed. Since details of a displayed object in the monochrome image may be lost during the scaling, this method often leads to lower definition or even deformation of the displayed object on the ink screen. The display effect needs to be improved. SUMMARY In view of this, in embodiments of the present disclosure, an image display method and apparatus are provided to address the shortcomings in the related art. According to a first aspect of the embodiments of the present disclosure, an image display method is provided, including: determining a target display position of a target object in an original image and a first size of a display region of an ink screen; generating a monochrome image with the first size according to the original image, where color values of pixel points in the monochrome image include at least one standard color value, and the target object is located at the target display position in the monochrome image;sending the monochrome image to the ink screen, so that the monochrome image is displayed by the ink screen in the display region. According to a second aspect of the embodiments of the present disclosure, an image display apparatus is provided, including: one or more processors configured to: determine a target display position of a target object in an original image and a first size of a display region of an ink screen;generate a monochrome image with the first size according to the original image, where color values of pixel points in the monochrome image include at least one standard color value, and the target object is located at the target display position in the monochrome image;send the monochrome image to the ink screen, so that the monochrome image is displayed by the ink screen in the display region. According to a third aspect of the embodiments of the present disclosure, an electronic device is provided, including: a processor: a memory for storing processor executable instructions, where the processor is configured to implement the image display method according to the first aspect. According to a fourth aspect of the embodiments of the present disclosure, a non-transient computer readable storage medium on which a computer program is stored is provided, where the program is executed by a processor to perform steps in the image display method according to the first aspect. According to the embodiments of the present disclosure, a target display position of a target object in an original image and a first size of a display region of an ink screen are first determined; then a monochrome image with the first size is generated according to the original image, where color values of all pixel points in the monochrome image include at least one standard color value, and the target object is located at a target display position in the monochrome image; and finally, the monochrome image is sent to the ink screen, so that the monochrome image is displayed by the ink screen in the display region. Through the embodiments, a monochrome image with a size being the same as that of a display region of an ink screen (i.e. a first size) is directly generated by a terminal device, and a target object is located at a same target display position in the monochrome image as in an original image. Based on this, a to-be-displayed monochrome image can be displayed directly by the ink screen without being scaled, which avoids details of a target object in the image from being lost, thereby ensuring that the monochrome image displayed by the ink screen has higher definition and avoiding deformation of the target object. It should be understood that the above general description and the following detailed description are only exemplary and explanatory, but cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS In order to illustrate the technical solutions in the embodiments of the present disclosure more clearly, the accompanying drawings required for description of the embodiments will be briefly