CN112464301A - Image display method and device - Google Patents

Image display method and device Download PDF

Info

Publication number
CN112464301A
CN112464301A CN202011338641.XA CN202011338641A CN112464301A CN 112464301 A CN112464301 A CN 112464301A CN 202011338641 A CN202011338641 A CN 202011338641A CN 112464301 A CN112464301 A CN 112464301A
Authority
CN
China
Prior art keywords
image
displayed
original
content
area
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
CN202011338641.XA
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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202011338641.XA priority Critical patent/CN112464301A/en
Publication of CN112464301A publication Critical patent/CN112464301A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/84Protecting input, output or interconnection devices output devices, e.g. displays or monitors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration by the use of more than one image, e.g. averaging, subtraction

Abstract

The embodiment of the invention provides an image display method and device, wherein the method comprises the following steps: acquiring an original image to be displayed; generating at least two target images to be displayed according to the original image, wherein the target images to be displayed comprise the content of a first image area and the content of a second image area, and the content of the first image area is as follows: the content of the second image area is: overlapping the contents of the first image area in each target image to be displayed on the processed image contents contained in the corresponding area in the original image to obtain the image contents contained in the original image; and sequentially displaying the target images to be displayed according to a preset image display interval. When the scheme provided by the invention is applied to image display, the probability of image leakage can be reduced.

Description

Image display method and device
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to an image display method and apparatus.
Background
The APP (Application software) can provide information for users in various information display forms, such as text, image, video, voice, and other information display forms, wherein the image as an important information display form can provide very intuitive information for users.
The images that users with different permissions of the APP can view through the APP are often different. For example, advanced member users of APP can view images provided by the value added service of APP, while other users of APP have no authority to view the images provided by the value added service.
When the APP displays the images provided by the value-added service, the APP generally displays the images directly after obtaining the images. And in the process of viewing the image provided by the value added service, the advanced user can obtain the image provided by the value added service by performing operations such as screen capture, photographing and the like on the APP interface. This results in a high probability that the image provided by the value added service is leaked.
Disclosure of Invention
An object of the embodiments of the present invention is to provide an image display method and apparatus, so as to reduce the probability of image leakage. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides an image display method, where the method includes:
acquiring an original image to be displayed;
generating at least two target images to be displayed according to the original image, wherein the target images to be displayed comprise the content of a first image area and the content of a second image area, and the content of the first image area is as follows: the content of the second image area is: overlapping the content of the first image area in each target image to be displayed on the processed image content contained in the corresponding area in the original image to obtain the image content contained in the original image;
and sequentially displaying the target images to be displayed according to a preset image display interval.
In an embodiment of the present invention, the generating at least two target images to be displayed according to the original image includes:
adjusting the pixel value of the original image to obtain an adjusted image;
dividing the original image into a first preset number of original image areas according to a preset area division rule;
combining image contents corresponding to each original image area in the original image to obtain a second preset number of original contents, wherein the second preset number is greater than or equal to 2;
for each original content, replacing the content of a first image area in the adjusted image with the original content to obtain a target image to be displayed, wherein the first image area is as follows: and the position of the area in the adjusted image is the same as that of the original content in the original image.
In an embodiment of the present invention, the adjusting the pixel value of the original image to obtain an adjusted image includes:
carrying out fuzzy processing on the original image to obtain an adjusted image;
or
And carrying out transparency adjustment processing on the original image to obtain an adjusted image.
In an embodiment of the present invention, the image display interval satisfies the following condition:
the screen refreshing interval is less than the image display time length and less than or equal to the human eye visual reaction time length;
the image display duration is equal to the product of the image display interval and the number of the target images to be displayed.
In an embodiment of the present invention, sequentially displaying the target images to be displayed according to a preset image display interval includes:
and sequentially displaying the target images to be displayed according to a preset image display interval and the position sequence of the first image area in each target image to be displayed in the corresponding area in the original image.
In a second aspect, an embodiment of the present invention provides an image display apparatus, including:
the original image acquisition module is used for acquiring an original image to be displayed;
an image generating module, configured to generate at least two target images to be displayed according to the original image, where the target images to be displayed include contents of a first image area and contents of a second image area, and the contents of the first image area are: the content of the second image area is: overlapping the content of the first image area in each target image to be displayed on the processed image content contained in the corresponding area in the original image to obtain the image content contained in the original image;
and the image display module is used for sequentially displaying the target images to be displayed according to the preset image display interval.
In an embodiment of the present invention, the image generating module includes:
the adjusted image obtaining submodule is used for adjusting the pixel value of the original image to obtain an adjusted image;
the region division submodule is used for dividing the original image into a first preset number of original image regions according to a preset region division rule;
a content obtaining sub-module, configured to combine image contents corresponding to each original image area in the original image to obtain a second preset number of original contents, where the second preset number is greater than or equal to 2;
a content replacement sub-module, configured to replace, for each original content, the content in the first image area in the adjusted image with the original content to obtain a target first image to be displayed, where the first image area is: and the position of the area in the adjusted image is the same as that of the original content in the original image.
In an embodiment of the present invention, the adjusted image obtaining sub-module is specifically configured to perform a blurring process on the original image to obtain an adjusted image; or carrying out transparency adjustment processing on the original image to obtain an adjusted image.
In an embodiment of the present invention, the image display interval satisfies the following condition:
the screen refreshing interval is less than the image display time length and less than or equal to the human eye visual reaction time length;
the image display duration is equal to the product of the image display interval and the number of the target images to be displayed.
In an embodiment of the present invention, the image display module is specifically configured to sequentially display the target images to be displayed according to a preset image display interval and according to a position sequence of a corresponding area of a first image area in each target image to be displayed in the original image.
In a third aspect, an embodiment of the present invention provides a terminal device, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
a processor configured to implement the method steps of the first aspect when executing the program stored in the memory.
In a fourth aspect, the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps described in the first aspect.
As can be seen from the above, when the scheme provided by the embodiment of the present invention is applied to image display, at least two target images to be displayed are generated according to an original image to be displayed, and each target image to be displayed is sequentially displayed according to a preset image display interval. The target image to be displayed comprises the content of the first image area and the content of the second image area, and the content of the first image area is as follows: the content of the second image area is: the processed image content contained in the corresponding area in the original image, that is, only part of the content in the original image is reserved in the target image to be displayed. Therefore, when the user performs operations such as screen capture and photographing, only partial image content in the original image can be obtained, and the complete image content of the original image cannot be obtained, so that the probability of image leakage is reduced.
In addition, the content of the image contained in the original image can be obtained due to the content superposition of the first image area in the target image to be displayed. Therefore, when the target images to be displayed are sequentially displayed according to the preset image display interval, the user can visually think that the original images are displayed currently, and the user can see the original images.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a first image display method according to an embodiment of the present invention;
FIG. 2a is a schematic diagram of an original image according to an embodiment of the present invention;
FIG. 2b is a schematic diagram of a target image to be displayed according to an embodiment of the present invention;
FIG. 2c is a schematic diagram of another target to-be-displayed image according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a second image displaying method according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating an adjusted image according to an embodiment of the present invention;
FIG. 5 is a block diagram illustrating a flow chart of an image displaying method according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a first image display apparatus according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a second image display apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the technical problem, the embodiment of the invention provides an image display method and device, because the probability of image leakage provided by the value-added service of the APP is higher in the prior art.
In one embodiment of the present invention, there is provided an image display method including:
acquiring an original image to be displayed;
generating at least two target images to be displayed according to the original image, wherein the target images to be displayed comprise the content of a first image area and the content of a second image area, and the content of the first image area is as follows: the content of the second image area is: overlapping the contents of the first image area in each target image to be displayed on the processed image contents contained in the corresponding area in the original image to obtain the image contents contained in the original image;
and sequentially displaying the target images to be displayed according to a preset image display interval.
As can be seen from the above, when the scheme provided by this embodiment is applied to image display, at least two target images to be displayed are generated according to an original image to be displayed, and each target image to be displayed is sequentially displayed according to a preset image display interval. The target image to be displayed comprises the content of the first image area and the content of the second image area, and the content of the first image area is as follows: the content of the second image area is: the processed image content contained in the corresponding area in the original image, that is, only part of the content in the original image is reserved in the target image to be displayed. Therefore, when the user performs operations such as screen capture and photographing, only partial image content in the original image can be obtained, and the complete image content of the original image cannot be obtained, so that the probability of image leakage is reduced.
In addition, the content of the image contained in the original image can be obtained due to the content superposition of the first image area in the target image to be displayed. Therefore, when the target images to be displayed are sequentially displayed according to the preset image display interval, the user can visually think that the original images are displayed currently, and the user can see the original images.
The following describes an image display method according to an embodiment of the present invention.
First, the execution subject of the embodiment of the present invention may be a terminal device, for example: mobile phones, tablet computers, and the like.
Then, the concept related to the embodiment of the present invention is explained.
1. The screen refreshing interval refers to an interval for refreshing the screen of the terminal equipment. The screen refresh interval is the minimum interval at which the images of the terminal device are switched. For example: when the screen refresh interval of the terminal device is 1/60 second, the minimum interval of image switching is 1/60 second.
2. The human eye visual reaction time length refers to the minimum reaction time of the human eye from image acquisition to image information processing, that is, the minimum time length for which the human eye can perceive image switching. The typical human visual response time is about 1/16 of a second. Based on the principle of persistence of vision, when the duration of image switching is shorter than the duration of human eye visual reaction, a person is hard to perceive that multiple images are being switched, and the current image is considered to be displayed; when the image switching duration is longer than the human eye visual reaction duration, a human can perceive that multiple images are being switched, and the current display is considered to be multiple images. Taking an animation film as an example, each frame of image of the animation film describes an action, and when the continuous image frames are played in sequence within a certain time period, the effect of moving the images can be achieved, so that a human eye can see a video, which is a typical application of the persistence of vision principle.
Referring to fig. 1, fig. 1 is a schematic flowchart of a first image display method according to an embodiment of the present invention, where the method includes S101 to S103.
S101: and acquiring an original image to be displayed.
When the original image to be displayed is acquired, a storage address of the original image to be displayed in a server may be acquired first, and then the storage address may be searched for from a server providing the image, so as to acquire the image. For example: the storage address may be a URL (Uniform Resource Locator) address.
Specifically, the storage address of the original image of the image to be displayed in the server may be determined according to a click operation or an input operation of the user on the operation interface, and the original image may be downloaded based on the determined storage address.
S102: and generating at least two target images to be displayed according to the original image.
The actual number of the target images to be displayed may be set by a worker based on experience. The method can also be determined according to the screen refreshing interval and the human eye visual reaction time length. Specific determination manners can be found in the following embodiments, and detailed descriptions thereof are omitted.
The target image to be displayed includes the content of a first image area and the content of a second image area, and the content of the first image area is as follows: the content of the second image area is: and processing the processed image content contained in the corresponding area in the original image.
The content of the first image area in each target image to be displayed is superposed to obtain the image content contained in the original image. Specifically, the contents of the first image area in each target image to be displayed may have overlapped image contents, or may have non-overlapped image contents.
Taking fig. 2a, fig. 2b, and fig. 2c as examples, fig. 2a is a schematic diagram of an original image provided in an embodiment of the present invention, fig. 2b is a schematic diagram of an image to be displayed as a target provided in an embodiment of the present invention, and fig. 2c is a schematic diagram of another image to be displayed as a target provided in an embodiment of the present invention.
The target images to be displayed in fig. 2b and 2c are: the target image to be displayed is generated from the original image of fig. 2 a. The area marked 1 in fig. 2b and 2c is the first image area and the area marked 2 is the second image area.
Based on the comparison between fig. 2b, fig. 2c and fig. 2a, the contents of the first image region in fig. 2b and fig. 2c are: the content of the second image area in fig. 2b and 2c is: and processing the processed image content contained in the corresponding area in the original image. And the superposition of the contents of the first image area in fig. 2b and fig. 2c may result in the image contents contained in the original image.
It is assumed that the key area of the image in fig. 2a is the area where each five sense organs in the cat face are located, such as the area where the eyes, the nose, and the mouth are located, and the non-key area of the image is the remaining area of the image except the key area, so that, in fig. 2b, the content of the first image area includes the image content included in the non-key area in the original image, and the content of the second image area includes the image content included in the key area in the original image.
When the target to-be-displayed image is obtained, the original image may be copied to obtain at least two copied images, a first image area and a second image area in each copied image are determined, and the content of the second image area in each copied image is processed, for example, the pixel value of the image content may be adjusted, so that each target to-be-displayed image may be obtained, and the content of the original image may be obtained by overlapping the content of the first image area in each target to-be-displayed image.
The method for specifically generating at least two target images to be displayed can be seen in the following embodiments, and details thereof are not described herein.
And S103, sequentially displaying the target images to be displayed according to a preset image display interval.
The image display interval can be determined according to the number of the target images to be displayed, the screen refreshing interval and the human eye visual reaction time length.
The target images to be displayed are sequentially displayed according to a preset image display interval, the image display interval is determined according to the number of the target images to be displayed, a screen refreshing interval and human eye visual reaction time, the human eye visual reaction time is the minimum reaction time of human eyes in the process of acquiring images and processing image information, and when the image display interval is smaller than the human eye visual reaction time, the process of displaying each target image to be displayed can be difficultly perceived by human eyes. And the content of the image contained in the original image can be obtained due to the content superposition of the first image area in the target image to be displayed. Therefore, when the target images to be displayed are sequentially displayed according to the preset image display interval, the user can visually think that the original images are displayed currently, and the user can see the original images.
Specifically, when the image display interval duration is determined, an image display interval range may be determined according to the number of target images to be displayed, a screen refresh interval, and a human eye visual reaction duration, and then one duration may be selected from the determined range as the image display interval.
When the image display interval range is determined, that is, the minimum value and the maximum value of the image display interval are calculated.
In calculating the minimum value of the image display interval, in one embodiment of the present invention, the screen refresh interval may be a minimum interval value of the image display interval, and thus, the minimum value of the image display interval is the screen refresh interval.
When the maximum value of the image display interval is calculated, the human eye visual response time length can be the maximum value of the image display time length, and the image display time length is the product of the number of the target images to be displayed and the image display interval, so that the maximum value of the image display interval is the ratio of the human eye visual response time length to the number of the target images to be displayed. Therefore, the image display interval ranges are [ screen refresh interval, human visual reaction time length/number of target images to be displayed ].
For example: assuming that the screen refresh interval is 1/60 second, the human visual reaction time is 1/16 second, and the number of target images to be displayed is 2, the image display interval range can be calculated as [1/60 second, 1/32 second ], and one image display interval of 1/60 second can be selected from the above range as the image display interval.
In one embodiment of the present invention, the image display interval needs to satisfy the following condition:
the screen refreshing interval is less than the image display time length and less than the human eye visual reaction time length.
The image display duration is equal to the product of the image display interval and the number of the target images to be displayed.
Specifically, since the human eye visual reaction duration is the minimum duration for the human eye to perceive the image switching, in order to make it difficult for the user to perceive the image switching process, the display duration of each image needs to be less than the human eye visual reaction duration; in addition, since the screen refresh interval is the minimum value of the image switching interval, the above-described image display time period needs to be longer than the screen refresh interval.
Based on the above, when the image display interval is determined, the range of the image display time length can be determined according to the screen refreshing interval and the human eye visual reaction time length, and the image display interval is determined according to the determined range and the number of the target images to be displayed.
Specifically, when displaying each image to be displayed, the display order of the target images to be displayed may be determined first, and then each target image to be displayed may be displayed in a cycle in sequence according to the determined display order and the image display interval. The target images to be displayed can be displayed in sequence within a preset time period according to the determined display sequence and the image display interval.
When the display order of each target image to be displayed is determined, the display order of each target image to be displayed may be randomly determined. Or the position sequence of the corresponding area of the first image area in the original image in each target image to be displayed.
When the target images to be displayed are sequentially displayed according to the preset image display interval, when the number of the target images to be displayed is larger, the frame rate of the video playing the target images to be displayed is higher.
As can be seen from the above, when the scheme provided by this embodiment is applied to image display, at least two target images to be displayed are generated according to an original image to be displayed, and the target images to be displayed are sequentially displayed according to a preset image display interval. The target image to be displayed comprises the content of the first image area and the content of the second image area, and the content of the first image area is as follows: the content of the second image area is: the processed image content contained in the corresponding area in the original image, that is, only part of the content in the original image is reserved in the target image to be displayed. Therefore, when the user performs operations such as screen capture and photographing, only partial image content in the original image can be obtained, and the complete image content of the original image cannot be obtained, so that the probability of image leakage is reduced.
In addition, the content of the image contained in the original image can be obtained due to the content superposition of the first image area in the target image to be displayed. Therefore, when the target images to be displayed are sequentially displayed according to the preset image display interval, the user can visually think that the original images are displayed currently, and the user can see the original images.
Referring to fig. 3, fig. 3 is a schematic flowchart of a second image display method according to an embodiment of the present invention. On the basis of the above embodiment, the above S102 may include S102a1-S102a 4.
S102a 1: and adjusting the pixel value of the original image to obtain an adjusted image.
In an embodiment of the present invention, the original image may be blurred to obtain an adjusted image.
Taking fig. 4 as an example, fig. 4 is a schematic diagram of adjusting an image according to an embodiment of the present invention. The image of fig. 4 is an adjusted image obtained by applying gaussian blur processing to the image of fig. 2 a.
Specifically, the blurring process may include a gaussian blurring process, a mosaic blurring process, or the like. When the original image is subjected to Gaussian blur processing to obtain the Gaussian blur image, and the target image to be displayed is obtained based on the obtained Gaussian blur image and the original image, the target image to be displayed can be smoother when the image is displayed, and therefore the display effect is closer to the original image.
In an embodiment of the present invention, transparency adjustment processing may be further performed on the original image to obtain an adjusted image.
Specifically, when transparency adjustment is performed, the pixel value of each pixel point in the original image can be adjusted, so that an adjusted image is obtained.
In adjusting the transparency, the transparency of the original image may be adjusted to 80%, 50%, or the like.
And S102A2, dividing the original image into a first preset number of original image areas according to a preset area division rule.
The preset region division rule may be set by a worker according to experience. For example: the preset region division rule may be horizontal division, longitudinal division, cross division, or division based on the region where the object is located in the original image.
The first preset number may be set by a worker according to experience, for example: the first predetermined number may be 2, 4, 8, etc.
S102a 3: and combining the image contents corresponding to each original image area in the original image to obtain a second preset number of original image contents.
The second predetermined number is greater than or equal to 2, and the first predetermined number may be greater than or equal to the second predetermined number. For example: when the second predetermined number is 4, the first predetermined number may be 4, 6, 8, etc. The second preset number may be the same as the number of the target images to be displayed.
Specifically, when the combination is performed, image contents corresponding to adjacent original image areas in the original image may be combined, image contents corresponding to the original image areas in the original image may also be combined according to a preset interval, and image contents corresponding to the original image areas in the original image may also be combined according to a random combination manner.
And S102A4, replacing the content of the first image area in the adjusted image with the original content to obtain a target image to be displayed aiming at each original content.
The first image area is: the area in the adjusted image that is in the same position in the original image as the original content.
Specifically, during replacement, the pixel values of the pixels of the original content in the original image may be obtained, and the pixel values are used as the pixel values of the pixels of the content of the first image region in the adjusted image, so as to obtain a target image to be displayed.
In this way, after the image contents corresponding to the original image areas are combined to obtain a preset number of original contents, the contents of the first image area in the adjusted image are replaced by the original contents for each original content, so that the obtained target image to be displayed comprises the contents of the first image area and the contents of the second image area, and the contents of the original image can be obtained by overlapping the contents of the first image area in each target image to be displayed.
In an embodiment of the present invention, when the target to-be-displayed image is generated, the original image may be copied to obtain at least two copied images, the first image area and the second image area in each copied image are determined, and the content of the second image area in each copied image is processed, so that each target to-be-displayed image may be obtained.
In determining the first image area and the second image area of each of the copied images, the determination may be made in the following manner. In the following description, the first position is a position of a first image area in the copied image or the original image, and the second position is a position of a second image area in the copied image or the original image.
Specifically, the second position S in the first copy image can be determined first1And for S in the first copy image1And adjusting the pixel value of the image content to obtain a first target image to be displayed.
And then based on the second position S in the first copy image1Determining a second position S in the second copy image2And for S in the second copy image2And adjusting the pixel value of the image content to obtain a second target image to be displayed.
According to the mode, the second position in each copy image is determined, and the pixel value of the image content at the second position in each copy image is adjusted to obtain each target image to be displayed.
More specifically, the second position S in the first copy image is determined1In one embodiment, the first copy image may be divided into areas, for example: the second position S can be a position where a part of the region is located1
In another embodiment, the first copy image may be subject to object recognition, and the position of the object may be regarded as the second position S1Or taking the position of the key point in the object as the second position S1
Determining a second location S in a second copy image2Due to the second position S2Based on a second position S in the first copy1Determining that the second position S can be divided by the second copy image1The position other than the corresponding position is taken as the second position S2. The second position S may be excluded from the second copy image1The position other than the corresponding position is taken as the second position S2. In this manner, the second positions in the respective copied images are determined in sequence.
Taking the number of the target images to be displayed as 2 examples, in an embodiment of the present invention, the target images to be displayed may be generated in the following manner.
Performing Gaussian blur processing on the original image to obtain a Gaussian blur image; acquiring the content of a partial area in an original image, acquiring the content of a Gaussian blur image except the partial area, and generating a first target image to be displayed based on the acquired content; and acquiring the content of the partial area in the Gaussian blur image, acquiring the content of the original image except the partial area, and generating a second target image to be displayed based on the acquired content.
Specifically, when the first target image to be displayed is generated, the original image and the gaussian blurred image may be divided into n × n image regions with uniform size, and the content of each region is alternately obtained from the original image and the gaussian blurred image with n as a step size. For example: the content of the area 1 may be obtained from the original image first, and then the content of the area 2 may be obtained from the gaussian-blurred image, where the area 2 is: next, the content of the area 3 is obtained from the original image in the area adjacent to the area 1, where the area 3 is: the position adjacent to the above-mentioned region 2, … … is in such a way that the content of the nth region is obtained from the original image or the gaussian-blurred image, and the first target image to be displayed is generated based on the obtained content.
When generating the second target image to be displayed, according to the similar method, firstly, the content of the region 1 is obtained from the gaussian blurred image, then the content of the region 2 is obtained from the original image, then the content of the region 3 is obtained from the original image, … … is according to the method, until the content of the nth region is obtained from the gaussian blurred image or the original image, and the second target image to be displayed is generated based on the obtained content.
Therefore, the two target images to be displayed are generated based on the original image and the Gaussian blurred image, so that when the target images to be displayed are switched, the target images to be displayed can be switched more smoothly, and the image display effect is more vivid.
In an embodiment of the present invention, when the first preset number is determined according to the screen refresh interval and the human visual reaction time in the above S103, the first preset number may be determined as follows:
and calculating the number range of the target images to be displayed based on the screen refreshing interval and the human eye visual reaction duration, and then selecting one number from the number range as the number of the target images to be displayed.
The number range is calculated, i.e., the maximum and minimum values of the number of images to be displayed of the calculation target. In an embodiment of the present invention, first, when calculating the maximum value of the number of target images to be displayed, it may be considered that the number of target images to be displayed is equal to the image display duration/image display interval, the screen refresh interval is a minimum interval value of the image display interval, and the human eye visual response duration is a maximum value of the image display duration.
For example: assuming that the screen refresh interval is 1/60 second and the human visual reaction time period is 1/16 second, the ratio of the two can be calculated as 60/16, and since 3 is the maximum integer less than 60/16, the maximum value of the number of images targeted to be displayed is 3.
In one embodiment of the present invention, when calculating the minimum value of the number of target images to be displayed, since the number of target images to be displayed is an integer greater than 1, the minimum value of the number of target images to be displayed may be 2. When the maximum value is calculated to be 2, since the minimum value of the number of the target images to be displayed is also 2, that is, the number range of the target images to be displayed includes only one integer.
For example: following the above example, assuming that the screen refresh interval is 1/60 second and the human visual reaction time period is 1/16 second, the number range of the target images to be displayed is calculated as [2,3], and a number 2 is randomly selected from the range as the number of the target images to be displayed.
Based on the above embodiment, in an embodiment of the present invention, sequentially displaying the target images to be displayed according to the preset image display interval in S103 may be implemented as follows.
And sequentially displaying the target images to be displayed according to a preset image display interval and the position sequence of the corresponding area of the first image area in the original image in each target image to be displayed.
Specifically, when it is assumed that the position of the first image area in each target image to be displayed is an upper area, a middle area, and a lower area, the target images to be displayed may be sequentially displayed according to the position sequence of the upper area, the middle area, and the lower area and according to a preset image display interval.
Assuming that a first image region in each target image to be displayed is a partial region divided into n × n regions in the original image, for example: if the first image area in the first target image to be displayed corresponds to the area 1, the area 3, the area 5, and the area … … in the original image, and the first image area in the second target image to be displayed corresponds to the area 2, the area 4, the area 6, and the area … … in the original image, the first target image to be displayed may be displayed first, the second target image to be displayed may be displayed, and the target images to be displayed may be displayed in this order.
The following describes an image display method provided by an embodiment of the present invention. Take the preset number of 2 and the preset image display interval as the screen refresh interval as an example. Referring to fig. 5, fig. 5 is a flowchart of an image display method according to an embodiment of the present invention.
In fig. 5, the description is made in order from left to right in the direction of the arrow.
First, an original image P is obtained by downloading the original image from a server based on the URL of the original image to be displayed.
Then, gaussian blur processing is performed on the original image P to obtain a gaussian blur image Pg.
And then, based on the original image P and the Gaussian blur image Pg, generating two target images Pa and Pb to be displayed with Gaussian blur complementation.
And finally, the terminal equipment circularly displays the target images Pa and Pb to be displayed in sequence according to the screen refreshing interval.
Corresponding to the image display method, the embodiment of the invention also provides an image display device.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a first image display device according to an embodiment of the present invention, where the device includes 601 to 603.
An original image obtaining module 601, configured to obtain an original image to be displayed;
an image generating module 602, configured to generate at least two target images to be displayed according to the original image, where the target images to be displayed include content of a first image area and content of a second image area, and the content of the first image area is: the content of the second image area is: overlapping the content of the first image area in each target image to be displayed on the processed image content contained in the corresponding area in the original image to obtain the image content contained in the original image;
the image display module 603 is configured to sequentially display the target images to be displayed according to a preset image display interval.
As can be seen from the above, when the scheme provided by this embodiment is applied to image display, at least two target images to be displayed are generated according to an original image to be displayed, and each target image to be displayed is sequentially displayed according to a preset image display interval. The target image to be displayed comprises the content of the first image area and the content of the second image area, and the content of the first image area is as follows: the content of the second image area is: the processed image content contained in the corresponding area in the original image, that is, only part of the content in the original image is reserved in the target image to be displayed. Therefore, when the user performs operations such as screen capture and photographing, only partial image content in the original image can be obtained, and the complete image content of the original image cannot be obtained, so that the probability of image leakage is reduced.
In addition, the content of the image contained in the original image can be obtained due to the content superposition of the first image area in the target image to be displayed. Therefore, when the target images to be displayed are sequentially displayed according to the preset image display interval, the user can visually think that the original images are displayed currently, and the user can see the original images.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a second image display device according to an embodiment of the present invention, and the image obtaining module 602 further includes 602B1-602B 4.
An adjusted image obtaining sub-module 602B1, configured to perform pixel value adjustment on the original image to obtain an adjusted image;
the region dividing sub-module 602B2 is configured to divide the original image into a first preset number of original image regions according to a preset region dividing rule;
a content obtaining sub-module 602B3, configured to combine image contents corresponding to each original image area in the original image to obtain a second preset number of original contents, where the second preset number is greater than or equal to 2;
the content replacing sub-module 602B4 is configured to replace, for each original content, the content of a first image area in the adjusted image with the original content to obtain a target image to be displayed, where the first image area is: and the position of the area in the adjusted image is the same as that of the original content in the original image.
In this way, after the image contents corresponding to the original image areas are combined to obtain a preset number of original contents, the contents of the first image area in the adjusted image are replaced by the original contents for each original content, so that the obtained target image to be displayed comprises the contents of the first image area and the contents of the second image area, and the contents of the original image can be obtained by overlapping the contents of the first image area in each target image to be displayed.
In an embodiment of the present invention, the adjusted image obtaining sub-module 602B1 is specifically configured to perform a blurring process on the original image to obtain an adjusted image; or carrying out transparency adjustment processing on the original image to obtain an adjusted image.
Because the adjustment image is obtained by blurring the original image, and the target image to be displayed is generated based on the adjustment image and the original image, that is, a part of the region in the target image to be displayed is a region subjected to blurring, when the target image to be displayed is displayed, the target image to be displayed can be displayed more smoothly, so that the reality degree of image display is improved.
In an embodiment of the present invention, the image display interval satisfies the following condition: the screen refreshing interval is less than the image display time length and less than or equal to the human eye visual reaction time length; the image display duration is equal to the product of the image display interval and the number of the target images to be displayed.
In an embodiment of the present invention, the image display module 603 is specifically configured to sequentially display the target images to be displayed according to a preset image display interval and according to a position sequence of a corresponding area of a first image area in each target image to be displayed in the original image.
Corresponding to the image display method, the embodiment of the invention also provides terminal equipment.
Fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, and includes a processor 801, a communication interface 802, a memory 803, and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete mutual communication through the communication bus 804,
a memory 803 for storing a computer program;
the processor 801 is configured to implement the image display method according to the embodiment of the present invention when executing the program stored in the memory 803.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In still another embodiment provided by the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the image display method provided by the embodiment of the present invention.
In another embodiment provided by the present invention, a computer program product containing instructions is also provided, which when executed on a computer, causes the computer to implement the image display method provided by the embodiment of the present invention.
As can be seen from the above, when the scheme provided by this embodiment is applied to image display, at least two target images to be displayed are generated according to an original image to be displayed, and each target image to be displayed is sequentially displayed according to a preset image display interval. The target image to be displayed comprises the content of the first image area and the content of the second image area, and the content of the first image area is as follows: the content of the second image area is: the processed image content contained in the corresponding area in the original image, that is, only part of the content in the original image is reserved in the target image to be displayed. Therefore, when the user performs operations such as screen capture and photographing, only partial image content in the original image can be obtained, and the complete image content of the original image cannot be obtained, so that the probability of image leakage is reduced.
In addition, the content of the image contained in the original image can be obtained due to the content superposition of the first image area in the target image to be displayed. Therefore, when the target images to be displayed are sequentially displayed according to the preset image display interval, the user can visually think that the original images are displayed currently, and the user can see the original images.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the embodiments of the apparatus, the terminal device, and the computer-readable storage medium, since they are substantially similar to the embodiments of the method, the description is simple, and for the relevant points, reference may be made to the partial description of the embodiments of the method.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (11)

1. An image display method, characterized in that the method comprises:
acquiring an original image to be displayed;
generating at least two target images to be displayed according to the original image, wherein the target images to be displayed comprise the content of a first image area and the content of a second image area, and the content of the first image area is as follows: the content of the second image area is: overlapping the content of the first image area in each target image to be displayed on the processed image content contained in the corresponding area in the original image to obtain the image content contained in the original image;
and sequentially displaying the target images to be displayed according to a preset image display interval.
2. The method according to claim 1, wherein the generating at least two target images to be displayed according to the original image comprises:
adjusting the pixel value of the original image to obtain an adjusted image;
dividing the original image into a first preset number of original image areas according to a preset area division rule;
combining image contents corresponding to each original image area in the original image to obtain a second preset number of original contents, wherein the second preset number is greater than or equal to 2;
for each original content, replacing the content of a first image area in the adjusted image with the original content to obtain a target image to be displayed, wherein the first image area is as follows: and the position of the area in the adjusted image is the same as that of the original content in the original image.
3. The method of claim 2, wherein the adjusting the pixel value of the original image to obtain an adjusted image comprises:
carrying out fuzzy processing on the original image to obtain an adjusted image;
or
And carrying out transparency adjustment processing on the original image to obtain an adjusted image.
4. The method according to any one of claims 1 to 3,
the image display interval satisfies the following condition:
the screen refreshing interval is less than the image display time length and less than or equal to the human eye visual reaction time length;
the image display duration is equal to the product of the image display interval and the number of the target images to be displayed.
5. The method according to any one of claims 1 to 3, wherein the sequentially displaying the target images to be displayed according to a preset image display interval comprises:
and sequentially displaying the target images to be displayed according to a preset image display interval and the position sequence of the first image area in each target image to be displayed in the corresponding area in the original image.
6. An image display apparatus, characterized in that the apparatus comprises:
the original image acquisition module is used for acquiring an original image to be displayed;
an image generating module, configured to generate at least two target images to be displayed according to the original image, where the target images to be displayed include contents of a first image area and contents of a second image area, and the contents of the first image area are: the content of the second image area is: overlapping the content of the first image area in each target image to be displayed on the processed image content contained in the corresponding area in the original image to obtain the image content contained in the original image;
and the image display module is used for sequentially displaying the target images to be displayed according to the preset image display interval.
7. The apparatus of claim 6, wherein the image generation module comprises:
the adjusted image obtaining submodule is used for adjusting the pixel value of the original image to obtain an adjusted image;
the region division submodule is used for dividing the original image into a first preset number of original image regions according to a preset region division rule;
a content obtaining sub-module, configured to combine image contents corresponding to each original image area in the original image to obtain a second preset number of original contents, where the second preset number is greater than or equal to 2;
a content replacement sub-module, configured to replace, for each original content, a content in a first image area in the adjusted image with the original content to obtain a target image to be displayed, where the first image area is: and the position of the area in the adjusted image is the same as that of the original content in the original image.
8. The apparatus according to claim 7, wherein the adjusted image obtaining sub-module is specifically configured to perform a blurring process on the original image to obtain an adjusted image; or carrying out transparency adjustment processing on the original image to obtain an adjusted image.
9. The apparatus according to any one of claims 6-8,
the image display interval satisfies the following condition:
the screen refreshing interval is less than the image display time length and less than or equal to the human eye visual reaction time length;
the image display duration is equal to the product of the image display interval and the number of the target images to be displayed.
10. The apparatus according to any one of claims 6-8,
the image display module is specifically configured to sequentially display the target images to be displayed according to a preset image display interval and according to a position sequence of a corresponding area of a first image area in each target image to be displayed in the original image.
11. The terminal equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing the communication between the processor and the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method of any one of claims 1 to 5 when executing a program stored in a memory.
CN202011338641.XA 2020-11-25 2020-11-25 Image display method and device Pending CN112464301A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011338641.XA CN112464301A (en) 2020-11-25 2020-11-25 Image display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011338641.XA CN112464301A (en) 2020-11-25 2020-11-25 Image display method and device

Publications (1)

Publication Number Publication Date
CN112464301A true CN112464301A (en) 2021-03-09

Family

ID=74799965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011338641.XA Pending CN112464301A (en) 2020-11-25 2020-11-25 Image display method and device

Country Status (1)

Country Link
CN (1) CN112464301A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113486278A (en) * 2021-06-22 2021-10-08 西安震有信通科技有限公司 Picture display method, intelligent terminal and computer readable storage medium
CN115002377A (en) * 2022-08-04 2022-09-02 湖北微模式科技发展有限公司 Video recording method for realizing privacy protection

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491443A (en) * 2014-09-19 2016-04-13 中兴通讯股份有限公司 Method and device for processing and accessing images
CN107801055A (en) * 2017-11-01 2018-03-13 北京邦邦共赢网络科技有限公司 A kind of method and apparatus that image is presented
CN108416722A (en) * 2018-01-17 2018-08-17 深圳壹账通智能科技有限公司 A kind of method for displaying image, storage medium and terminal device
CN111046448A (en) * 2019-12-16 2020-04-21 联想(北京)有限公司 Information processing method and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491443A (en) * 2014-09-19 2016-04-13 中兴通讯股份有限公司 Method and device for processing and accessing images
CN107801055A (en) * 2017-11-01 2018-03-13 北京邦邦共赢网络科技有限公司 A kind of method and apparatus that image is presented
CN108416722A (en) * 2018-01-17 2018-08-17 深圳壹账通智能科技有限公司 A kind of method for displaying image, storage medium and terminal device
CN111046448A (en) * 2019-12-16 2020-04-21 联想(北京)有限公司 Information processing method and electronic device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113486278A (en) * 2021-06-22 2021-10-08 西安震有信通科技有限公司 Picture display method, intelligent terminal and computer readable storage medium
CN115002377A (en) * 2022-08-04 2022-09-02 湖北微模式科技发展有限公司 Video recording method for realizing privacy protection

Similar Documents

Publication Publication Date Title
CN110784754A (en) Video display method and device and electronic equipment
US10546557B2 (en) Removing overlays from a screen to separately record screens and overlays in a digital medium environment
US20170104893A1 (en) System and method of pixel manipulation and screen display disruption
US7616220B2 (en) Spatio-temporal generation of motion blur
CN107357544B (en) Display method, display device, intelligent terminal and computer readable storage medium
CN109005283A (en) Show method, apparatus, terminal and the storage medium of notification message
CN111147770A (en) Multi-channel video window overlapping display method, electronic equipment and storage medium
US10531153B2 (en) Cognitive image obstruction
CN112464301A (en) Image display method and device
CN109767401B (en) Picture optimization method, device, terminal and corresponding storage medium
CN111459364B (en) Icon updating method and device and electronic equipment
CN109121000A (en) A kind of method for processing video frequency and client
CN111212313A (en) Advertisement display method, device, storage medium and computer equipment
CN111698548B (en) Video playing method and device
CN109766530B (en) Method and device for generating chart frame, storage medium and electronic equipment
CN109091866B (en) Display control method and device, computer readable medium and electronic equipment
CN113891141B (en) Video processing method, device and equipment
CN115049572A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN109242763B (en) Picture processing method, picture processing device and terminal equipment
CN113672829A (en) Page display method and device, electronic equipment and storage medium
CN113132803A (en) Video watching time length prediction method, device, storage medium and terminal
CN112035767A (en) Method and device for displaying prompt information
CN110597432A (en) Interface control method and device, computer readable medium and electronic equipment
CN114896531B (en) Image processing method and device, electronic equipment and storage medium
CN113923495B (en) Video playing method, system, 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