CN107148775B - Image processing method, apparatus, electronic device and readable storage medium - Google Patents
Image processing method, apparatus, electronic device and readable storage medium Download PDFInfo
- Publication number
- CN107148775B CN107148775B CN201580058789.9A CN201580058789A CN107148775B CN 107148775 B CN107148775 B CN 107148775B CN 201580058789 A CN201580058789 A CN 201580058789A CN 107148775 B CN107148775 B CN 107148775B
- Authority
- CN
- China
- Prior art keywords
- frame
- pattern
- display image
- display
- output
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/91—Television signal processing therefor
- H04N5/913—Television signal processing therefor for scrambling ; for copy protection
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
本发明涉及一种图像处理方法和终端,该方法包括:逐帧接收显示图像;根据每帧显示图像,确定遮挡图案,每帧遮挡图案遮挡对应帧显示图像的一部分;通过在每帧显示图像上叠加对应帧遮挡图案,确定输出图像;其中,每帧显示图像的每个像素在N帧连续输出的输出图像中至少出现一次,N帧连续输出的输出图像中,每帧遮挡图案未遮挡部分的显示图像满足视觉停留原理,其中,N为每秒输出的显示图像的帧数。本发明实施例通过对每帧的显示图像设置遮挡图案,根据终端输出信号的频率,结合视觉停留原理,在满足用户需求的情况下,可以防御终端显示图像的被偷拍,以保证用户使用终端的安全性。
The present invention relates to an image processing method and terminal. The method includes: receiving display images frame by frame; determining an occlusion pattern according to each frame display image, and each frame occlusion pattern occludes a part of the corresponding frame display image; Superimpose the corresponding frame occlusion pattern to determine the output image; wherein, each pixel of the display image of each frame appears at least once in the output image of N frames continuously output, and in the output image of N frames continuously output, each frame of the occlusion pattern is not occluded. The displayed image satisfies the visual stop principle, where N is the number of frames of the displayed image output per second. In the embodiment of the present invention, by setting a blocking pattern for the displayed image of each frame, according to the frequency of the output signal of the terminal, combined with the principle of visual stop, under the condition that the user's needs are met, the displayed image of the terminal can be prevented from being secretly photographed, so as to ensure that the user uses the terminal. safety.
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种图像处理方法和终端。The present invention relates to the field of communication technologies, and in particular, to an image processing method and a terminal.
背景技术Background technique
终端逐渐深入并广泛应用于人们的日常生活中,终端除具有通话功能外,还具有个人信息管理、浏览器、全球定位系统(Global Positioning System,简称“GPS”)和电子邮件等功能。终端能够通过软件运行和内容服务为用户提供各种应用服务,并通过结合通信网络的支持成为一个功能强大,集通话、短信、网络接入、影视娱乐为一体的综合体。因此,人们对安全使用终端的要求也越来越高。Terminals are gradually deepening and widely used in people's daily life. In addition to the function of calling, the terminal also has functions such as personal information management, browser, Global Positioning System ("GPS" for short), and email. The terminal can provide users with various application services through software operation and content services, and through the support of the communication network, it becomes a powerful complex that integrates calls, text messages, network access, and film and television entertainment. Therefore, people's requirements for the safe use of terminals are also getting higher and higher.
然而目前,终端的安全性防护工作主要由第三方平台来完成,并不能基于终端自身来完成。However, at present, the security protection of the terminal is mainly completed by a third-party platform, and cannot be completed based on the terminal itself.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供了一种图像处理方法和终端,通过在显示图像上设置遮挡图案。结合视觉停留原理,实现了终端显示内容的防偷拍。保证了用户使用终端的安全性。Embodiments of the present invention provide an image processing method and terminal, by setting an occlusion pattern on a displayed image. Combined with the principle of visual stop, the anti-candid shooting of the terminal display content is realized. It ensures the security of the user using the terminal.
第一方面,本发明实施例提供了一种图像处理方法,应用于一种便携式电子设备上,所述电子设备具有显示器,所述方法包括:In a first aspect, an embodiment of the present invention provides an image processing method, which is applied to a portable electronic device, the electronic device has a display, and the method includes:
逐帧接收显示图像;Receive display images frame by frame;
确定每帧显示图像的遮挡图案,所述遮挡图案遮挡所述显示图像的部分像素;determining an occlusion pattern of each frame of the display image, the occlusion pattern occludes part of the pixels of the display image;
逐帧输出图像,所述输出图像为所述显示图像与所述显示图像对应的遮挡图案的叠加。An image is output frame by frame, where the output image is a superposition of the display image and an occlusion pattern corresponding to the display image.
在第一方面的第一种可能的实现方式中,所述显示图像的每个像素在N帧连续输出的所述输出图像中至少出现一次未被遮挡图案遮挡。In a first possible implementation manner of the first aspect, each pixel of the display image appears at least once in the output image continuously output in N frames and is not blocked by the blocking pattern.
结合第一方面第一种可能的实现方式,在第二种可能的实现方式中,所述确定所述显示图像的遮挡图案包括:With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, the determining of the occlusion pattern of the displayed image includes:
沿第一方向移动第n帧遮挡图案,得到第n+1帧遮挡图案,其中,所述第n+1帧遮挡图案遮挡的显示图像的部分像素为第n帧遮挡图案未遮挡的显示图像的部分像素,n取从1到N-1的正整数。Move the nth frame of the occlusion pattern along the first direction to obtain the n+1th frame of the occlusion pattern, wherein the part of the pixels of the display image covered by the n+1th frame of the occlusion pattern is the part of the display image that is not covered by the nth frame of the occlusion pattern. Part of the pixel, n is a positive integer from 1 to N-1.
结合第一方面,或者第一方面第一至第二种任意一种可能的实现方式,在第三种可能的实现方式中,当所述遮挡图案为栅条型图案时,所述方法还包括:With reference to the first aspect, or any one of the first to second possible implementations of the first aspect, in a third possible implementation, when the blocking pattern is a grid pattern, the method further includes :
确定所述栅条型图案的宽度和所述栅条型图案的间距。The width of the grid pattern and the pitch of the grid pattern are determined.
在第一方面的第四种可能的实现方式中,所述方法还包括:In a fourth possible implementation manner of the first aspect, the method further includes:
接收用户输入的操作指令,所述操作指令用于指示开启所述遮挡图案。An operation instruction input by the user is received, where the operation instruction is used to instruct to open the shielding pattern.
第二方面,本发明实施例提供了一种图像处理装置,所述装置包括:In a second aspect, an embodiment of the present invention provides an image processing apparatus, and the apparatus includes:
接收模块,用于逐帧接收显示图像;The receiving module is used to receive and display images frame by frame;
确定模块,用于确定每帧显示图像的遮挡图案,所述遮挡图案遮挡所述显示图像的部分像素;a determining module, configured to determine an occlusion pattern of each frame of the display image, the occlusion pattern occludes part of the pixels of the display image;
输出模块,用于逐帧输出图像,所述输出图像为所述显示图像与所述显示图像对应的遮挡图案的叠加。An output module, configured to output images frame by frame, where the output image is a superposition of the display image and the occlusion pattern corresponding to the display image.
在第二方面的第一种可能的实现方式中,所述显示图像的每个像素在N帧连续输出的所述图像中至少出现一次未被遮挡图案遮挡。In a first possible implementation manner of the second aspect, each pixel of the display image is not blocked by the blocking pattern at least once in the images continuously output in N frames.
结合第二方面第一种可能的实现方式,在第二种可能的实现方式中,所述确定模块具体用于,With reference to the first possible implementation manner of the second aspect, in the second possible implementation manner, the determining module is specifically configured to:
沿第一方向移动第n帧遮挡图案,得到第n+1帧遮挡图案,其中,所述第n+1帧遮挡图案遮挡的显示图像的部分像素为第n帧遮挡图案未遮挡的显示图像的部分像素,n取从1到N-1的正整数。Move the nth frame of the occlusion pattern along the first direction to obtain the n+1th frame of the occlusion pattern, wherein the part of the pixels of the display image covered by the n+1th frame of the occlusion pattern is the part of the display image that is not covered by the nth frame of the occlusion pattern. Part of the pixel, n is a positive integer from 1 to N-1.
结合第二方面,或者第二方面第一至第二种任意一种可能的实现方式,在第三种可能的实现方式中,当所述遮挡图案为栅条型图案时,所述确定模块还用于,确定所述栅条型图案的宽度和所述栅条型图案的间距。With reference to the second aspect, or any one of the possible implementation manners of the first to second aspect of the second aspect, in a third possible implementation manner, when the blocking pattern is a grid pattern, the determining module further for determining the width of the grid pattern and the spacing of the grid pattern.
在第二方面的第四种可能的实现方式中,所述接收模块还用于,接收用户输入的操作指令,所述操作指令用于指示开启所述遮挡图案。In a fourth possible implementation manner of the second aspect, the receiving module is further configured to receive an operation instruction input by a user, where the operation instruction is used to instruct to open the shielding pattern.
第三方面,本发明实施例提供了一种便携式电子设备,所述便携式电子设备包括:In a third aspect, an embodiment of the present invention provides a portable electronic device, where the portable electronic device includes:
显示器,用于显示图像;a display for displaying images;
存储器,用于存储指令;memory for storing instructions;
处理器,用于调用存储在所述存储器中的指令以实现:a processor for invoking instructions stored in the memory to implement:
逐帧接收显示图像;Receive display images frame by frame;
确定每帧显示图像的遮挡图案,所述遮挡图案遮挡所述显示图像的部分像素;determining an occlusion pattern of each frame of the display image, the occlusion pattern occludes part of the pixels of the display image;
逐帧输出图像,所述输出图像为所述显示图像与所述显示图像对应的遮挡图案的叠加。An image is output frame by frame, where the output image is a superposition of the display image and an occlusion pattern corresponding to the display image.
第四方面,本发明实施例提供了一种存储一个或多个程序的非易失性计算机可读存储介质,所述一个或多个程序包括指令,所述指令当被包括具有显示器的便携式电子设备执行时使所述便携式电子设备执行以下事件:In a fourth aspect, embodiments of the present invention provide a non-volatile computer-readable storage medium storing one or more programs, the one or more programs including instructions, the instructions when included in a portable electronic device having a display Device execution causes the portable electronic device to perform the following events:
逐帧接收显示图像;Receive display images frame by frame;
确定每帧显示图像的遮挡图案,所述遮挡图案遮挡所述显示图像的部分像素;determining an occlusion pattern of each frame of the display image, the occlusion pattern occludes part of the pixels of the display image;
逐帧输出图像,所述输出图像为所述显示图像与所述显示图像对应的遮挡图案的叠加。An image is output frame by frame, where the output image is a superposition of the display image and an occlusion pattern corresponding to the display image.
基于上述技术方案,本发明实施例的提供的图像处理方法和终端,终端通过对每帧的显示图像设置遮挡图案,根据终端输出信号的频率,结合视觉停留原理,在满足用户需求的情况下,可以防御终端显示图像被偷拍,以保证用户使用终端的安全性。Based on the above technical solutions, in the image processing method and terminal provided by the embodiments of the present invention, the terminal sets the occlusion pattern for the displayed image of each frame, according to the frequency of the output signal of the terminal, combined with the principle of visual stop, in the case of satisfying user needs, It can prevent the displayed image of the terminal from being photographed secretly, so as to ensure the security of the user using the terminal.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings that need to be used in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1是本发明实施例的图像处理方法的示意流程图;1 is a schematic flowchart of an image processing method according to an embodiment of the present invention;
图2是本发明另一实施例中的显示图像的示意图FIG. 2 is a schematic diagram of a display image in another embodiment of the present invention
图3A是本发明另一实施例中第n帧遮挡图案的示意图;3A is a schematic diagram of an nth frame occlusion pattern in another embodiment of the present invention;
图3B是本发明另一实施例中第n+1帧遮挡图案的示意图;3B is a schematic diagram of an n+1th frame occlusion pattern in another embodiment of the present invention;
图4为遮挡图案分布于部分显示图像的示意图;Fig. 4 is the schematic diagram that the occlusion pattern is distributed in part of the display image;
图5是本发明实施例终端的示意性结构图;FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
图6是本发明另一实施例终端中的确定模块的示意性结构图;6 is a schematic structural diagram of a determination module in a terminal according to another embodiment of the present invention;
图7是本发明另一实施例终端的示意性结构图;7 is a schematic structural diagram of a terminal according to another embodiment of the present invention;
图8是本发明实施例终端的示意性结构图。FIG. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都应属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
在本发明实施中,用户设备(User Equipment,简称“UE”),也称为终端(Terminal)。该终端对逐帧输出的显示图像进行图像处理,在每帧的显示图像上叠加遮挡图案。连续帧中的遮挡图案按照一定的顺序变化,终端逐帧输出叠加遮挡图案后的显示图像。依据终端输出图像的频率,在某一瞬间,显示图像是无法完整显示的,但结合视觉停留原理,用户可以看到完整的显示图像。在本发明实施例中,终端可以为手机,平板电脑、电视等具有显示器的设备。In the implementation of the present invention, user equipment (User Equipment, "UE" for short) is also called a terminal (Terminal). The terminal performs image processing on the display images output frame by frame, and superimposes the occlusion pattern on the display images of each frame. The occlusion patterns in consecutive frames change in a certain order, and the terminal outputs the display image after superimposing the occlusion patterns frame by frame. Depending on the frequency of the terminal outputting images, the displayed image cannot be completely displayed at a certain moment, but combined with the visual stop principle, the user can see the complete displayed image. In this embodiment of the present invention, the terminal may be a device with a display, such as a mobile phone, a tablet computer, and a TV.
为便于说明,下面结合图1对本发明实施例的技术方案进行详细的说明。应理解,这仅是用以说明本发明实施例的技术方案的一个例子,并不对本发明实施例构成任何的限定。For convenience of description, the technical solution of the embodiment of the present invention will be described in detail below with reference to FIG. 1 . It should be understood that this is only an example for illustrating the technical solutions of the embodiments of the present invention, and does not constitute any limitation to the embodiments of the present invention.
图1是本发明实施例图像处理方法的示意流程图。如图1所示的图像处理方法100的执行主体为终端,该方法100包括:FIG. 1 is a schematic flowchart of an image processing method according to an embodiment of the present invention. The execution subject of the
110,逐帧接收显示图像;110. Receive display images frame by frame;
120,确定每帧显示图像的遮挡图案,遮挡图案遮挡显示图像的一部分;120. Determine an occlusion pattern of each frame of the displayed image, and the occlusion pattern occludes a part of the displayed image;
130,逐帧输出图像,输出图像为显示图像与所述显示图像对应的遮挡图案的叠加。130. Output images frame by frame, where the output image is a superposition of the display image and the occlusion pattern corresponding to the display image.
终端按预设帧率逐帧接收显示图像。终端按预设帧率逐帧输出图像,每一个输出图像以N帧连续输出。N帧连续输出的输出图像中的显示图像是相同的。每帧显示图像的每个像素在N帧连续输出的输出图像中至少出现一次未被遮挡图案遮挡。N帧连续输出的输出图像中,每帧遮挡图案未遮挡部分的显示图像满足视觉停留原理。N取正整数。The terminal receives and displays images frame by frame at a preset frame rate. The terminal outputs images frame by frame at a preset frame rate, and each output image is continuously output in N frames. The display images in the output images continuously output for N frames are the same. Each pixel of the display image of each frame appears at least once in the output images output continuously in N frames and is not blocked by the blocking pattern. In the output image of N frames continuously output, the displayed image of the unobstructed part of the occlusion pattern of each frame satisfies the visual stop principle. N is a positive integer.
具体的,在本发明实施例中,终端按照预设帧率输出图像。终端对每帧显示图像叠加所述显示图像对应的遮挡图案。显示图像与显示图像对应的遮挡图案叠加合成为输出图像。每帧显示图像对应的遮挡图案只遮挡该帧显示图像的部分像素。每帧显示图像的每个像素在N帧连续输出的输出图像中至少有一次未被遮挡图案遮挡。当预设帧率满足用户视觉停留的时间,连续N帧输出图像时,结合视觉停留原理或者说视觉滞留原理,用户可以在看到下一帧输出图像时,上一帧输出图像还保留在用户的视线中,用户可以看到完整的显示图像。Specifically, in this embodiment of the present invention, the terminal outputs images according to a preset frame rate. The terminal superimposes the occlusion pattern corresponding to the display image on each frame of the display image. The display image and the occlusion pattern corresponding to the display image are superimposed and synthesized to form an output image. The occlusion pattern corresponding to each frame of display image only occludes part of the pixels of the frame of display image. Each pixel of the display image of each frame is not occluded by the occlusion pattern at least once in the output images continuously output by the N frames. When the preset frame rate satisfies the user's visual stop time, and N frames of images are output continuously, combined with the visual stop principle or the visual stop principle, the user can see the next frame of the output image, the previous frame of the output image is still retained in the user , the user can see the full display image.
其中,不同帧的遮挡图案可以是不同的,可以按照一定的顺序变化。The occlusion patterns of different frames may be different, and may be changed in a certain order.
在110中,显示图像可以为终端需要输出的显示图像。终端逐帧接收需要输出的显示图像。In 110, the display image may be a display image that the terminal needs to output. The terminal receives the display image to be output frame by frame.
在120中,遮挡图案可以用于遮挡显示图像的部分信息。终端对每帧显示图像确定一个遮挡图案。At 120, the occlusion pattern may be used to occlude part of the information of the displayed image. The terminal determines an occlusion pattern for each frame of displayed image.
在本发明实施例中,每帧的遮挡图案可以遮挡对应帧显示图像的部分像素。连续帧的遮挡图案可以是不同的,可以按照一定的顺序变化。根据终端一秒钟输出图像的帧数,确定显示图像的每个像素在连续帧输出图像中至少有一次未被遮挡图案遮挡。为了满足用户需求,每帧中未被遮挡图案遮挡的显示图像满足视觉停留原理,以满足用户可以看到完整的显示图像。In the embodiment of the present invention, the occlusion pattern of each frame may occlude some pixels of the display image of the corresponding frame. The occlusion patterns of consecutive frames can be different and can be changed in a certain order. According to the number of frames of the image output by the terminal in one second, it is determined that each pixel of the displayed image is not blocked by the blocking pattern at least once in the continuous frame output image. In order to meet user requirements, the displayed image in each frame that is not blocked by the blocking pattern satisfies the visual stop principle, so that the user can see the complete displayed image.
其中,在本发明实施例中,N为终端每秒输出输出图像的帧数,。Wherein, in this embodiment of the present invention, N is the number of frames of output images output by the terminal per second.
在130中,终端逐帧输出图像,输出图像是显示图像和显示图像对应的遮挡图案的叠加。In 130, the terminal outputs an image frame by frame, and the output image is a superposition of the display image and the occlusion pattern corresponding to the display image.
因此,本发明实施例的技术方案公开了对每帧的显示图像设置遮挡图案,与终端输出帧率不匹配的拍摄设备无法通过拍摄获取终端的显示内容。本发明实施例的技术方案可以保护个人隐私,可以防止终端显示图像被偷拍,可以保证用户使用终端的安全性。Therefore, the technical solution of the embodiment of the present invention discloses that a blocking pattern is set for the display image of each frame, and a shooting device that does not match the output frame rate of the terminal cannot obtain the display content of the terminal by shooting. The technical solutions of the embodiments of the present invention can protect personal privacy, can prevent images displayed on the terminal from being photographed secretly, and can ensure the security of users using the terminal.
在本发明实施例中,遮挡图案包括规则形状的图案或不规则形状的图案。In the embodiment of the present invention, the shielding pattern includes a regular-shaped pattern or an irregular-shaped pattern.
可选地,显示图像的每个像素在N帧连续输出的输出图像中至少一次未被遮挡图案遮挡。Optionally, each pixel of the display image is not occluded by the occlusion pattern at least once in the N frames of consecutively outputted output images.
可选的,不同帧的显示图像对应的遮挡图案遮挡显示图像的不同部分的内容。Optionally, the occlusion patterns corresponding to the display images of different frames occlude the contents of different parts of the display images.
可选地,作为本发明另一实施例,确定显示图像的遮挡图案包括:Optionally, as another embodiment of the present invention, determining the occlusion pattern of the displayed image includes:
沿第一方向移动第n帧遮挡图案,得到第n+1帧遮挡图案。其中,第n+1帧遮挡图案所遮挡的显示图像的部分像素可以为第n帧遮挡图案未遮挡的显示图像的部分像素,n取从1到N-1的正整数。Move the nth frame occlusion pattern along the first direction to obtain the n+1th frame occlusion pattern. Wherein, the partial pixels of the display image blocked by the occlusion pattern of the n+1th frame may be the partial pixels of the display image not blocked by the occlusion pattern of the nth frame, and n is a positive integer from 1 to N-1.
在本发明实施例中,n为连续接收帧信号中的前一帧信号,n+1为连续接收帧信号中第n帧信号之后的帧信号。第一方向为终端预设的任一方向。当终端为第n帧显示图像确定遮挡图案之后,终端将第n帧显示图像的遮挡图案沿预设的第一方向移动。将移动后的遮挡图案作为第n+1帧显示图像的遮挡图案。第n+1帧遮挡图案未遮挡的显示图像的像素可以为第n帧遮档图案遮挡的显示图像的全部或者部分像素。In the embodiment of the present invention, n is the previous frame signal in the continuously received frame signal, and n+1 is the frame signal after the nth frame signal in the continuously received frame signal. The first direction is any direction preset by the terminal. After the terminal determines the occlusion pattern for the nth frame display image, the terminal moves the occlusion pattern of the nth frame display image along the preset first direction. The moved occlusion pattern is used as the occlusion pattern of the n+1th frame display image. The pixels of the display image not blocked by the n+1th frame of the blocking pattern may be all or part of the pixels of the display image blocked by the nth frame of the blocking pattern.
下面以终端每秒输出60帧图像,以遮挡图案为横栅条为例,当横栅条和遮挡图案中的透明条的宽度相同时,对本发明的技术方案进行描述。The technical solution of the present invention is described below by taking the terminal outputting 60 frames of images per second, and taking the occlusion pattern as a horizontal grid bar as an example, when the width of the horizontal grid bar and the transparent bar in the occlusion pattern are the same.
如图2、图3A和图3B所示,图2为显示图像,图3A为第n帧输出图像,图3B 为第n+1帧输出图像。图3A和图3B中未被遮挡图案遮挡的像素为透明条310部分。当终端输出的第20帧输出图像为图3A所示的图像时,遮挡图案遮挡部分显示图像的信息。终端按照一定的方向移动遮挡第20帧显示图像的遮挡图案作为第21帧显示图像的遮挡图案。As shown in FIG. 2 , FIG. 3A and FIG. 3B , FIG. 2 is a display image, FIG. 3A is an output image of the nth frame, and FIG. 3B is an output image of the n+1th frame. Pixels not blocked by the blocking pattern in FIGS. 3A and 3B are parts of the
应理解,在本发明实施例中,终端以每秒输出60帧图像,遮挡图案为横条为例,只是为了说明本发明的技术方案,但本发明的技术方案并不受限于此。It should be understood that, in the embodiment of the present invention, the terminal outputs 60 frames of images per second and the occlusion pattern is a horizontal bar as an example, only to illustrate the technical solution of the present invention, but the technical solution of the present invention is not limited thereto.
还应理解,在本发明实施例中,不同帧输出图像中被遮挡图案遮挡的图像可以部分重叠。显示图像的每个像素在连续N帧连续输出的输出图像中至少一次未被遮挡图案遮挡。It should also be understood that, in this embodiment of the present invention, the images occluded by the occlusion pattern in the output images of different frames may partially overlap. Each pixel of the display image is not occluded by the occlusion pattern at least once in the output images continuously output in N frames.
在本发明实施例中,遮挡图案为规则形状的栅条型图案,该栅条型图案可以为横栅条图案、竖栅条图案或者斜栅条图案等其他栅条形状的图案。In the embodiment of the present invention, the shielding pattern is a grid pattern with a regular shape, and the grid pattern may be a pattern of other grid shapes such as a horizontal grid pattern, a vertical grid pattern, or an oblique grid pattern.
需要说明的是,在本发明实施例中,连续帧中的遮挡图案按照一定的方向移动。遮挡图案可以按照一定的顺序移动。例如,可以按照一定的速度移动。It should be noted that, in this embodiment of the present invention, the occlusion patterns in consecutive frames move in a certain direction. The occlusion patterns can be moved in a certain order. For example, it is possible to move at a certain speed.
还应理解,在本发明实施例中,当遮挡图案满足条件:每帧遮挡图案遮挡对应帧显示图像的一部分,且每帧显示图像的每个像素在N帧连续输出的输出图像中至少一次未被遮挡图案遮挡,N帧连续输出的输出图像中,每帧遮挡图案未遮挡的显示图像满足视觉停留原理,N为每秒中输出的显示图像的帧数。遮挡图案还可以无规则的运动。在本发明实施例中对此不作任何限制。It should also be understood that, in this embodiment of the present invention, when the occlusion pattern satisfies the conditions: each frame of the occlusion pattern occludes a part of the display image of the corresponding frame, and each pixel of the display image of each frame is not displayed at least once in the output images continuously output by N frames. Occluded by the occlusion pattern, among the output images continuously output by N frames, the displayed image that is not occluded by the occlusion pattern in each frame satisfies the visual stop principle, and N is the number of frames of the displayed image output per second. The occlusion pattern can also move randomly. This is not limited in this embodiment of the present invention.
可选地,作为本发明的另一实施例,该方法100还包括:当遮挡图案为栅条型图案时,确定栅条型图案的宽度和栅条型图案的间距。Optionally, as another embodiment of the present invention, the
在本发明实施例中,当遮挡图案为栅条型图案时,终端可以确定栅条型图案的宽度和间距。例如,终端根据输出的显示图像的大小,确定栅条型图案的宽度和间距。在该实施例中,遮挡图案可以为等间距、不等间距、等宽度和/或不等宽度的图案。In this embodiment of the present invention, when the shielding pattern is a grid pattern, the terminal may determine the width and spacing of the grid pattern. For example, the terminal determines the width and spacing of the grid pattern according to the size of the output display image. In this embodiment, the blocking patterns may be patterns of equal spacing, unequal spacing, equal width and/or unequal width.
可选地,作为本发明的另一实施例,该方法100还可以包括:确定每帧遮挡图案的颜色。Optionally, as another embodiment of the present invention, the
在本发明实施例中,终端可以为每帧遮挡图案设置颜色。每帧遮挡图案的颜色可以为固定颜色,也可以为不相同的颜色。In this embodiment of the present invention, the terminal may set a color for each frame of the occlusion pattern. The color of each frame of the occlusion pattern can be a fixed color or a different color.
在本发明实施例中,终端还可以为每帧的遮挡图案设置不同的视觉效果。例如,终端为遮挡图案设置不同的透明度,或者终端将遮挡图案设置为特殊效果,再例如,毛玻璃效果。In this embodiment of the present invention, the terminal may further set different visual effects for the occlusion pattern of each frame. For example, the terminal sets different transparency for the occlusion pattern, or the terminal sets the occlusion pattern as a special effect, for example, a frosted glass effect.
优选地,在本发明实施例中,当终端开启一次遮挡图案时,该次输出的每帧输出图像的遮挡图案为同一种颜色、同一种透明度和/或同一种特殊效果,以降低颜色、透明度和/或特殊效果变化对眼睛的刺激,用以保护眼睛。当终端多次开启遮挡图案时,每次的遮挡图案颜色、透明度和/或特殊效果可以不一致,以用于用户使用过程中视觉的多样性,提高用户体验。Preferably, in the embodiment of the present invention, when the terminal turns on the occlusion pattern once, the occlusion pattern of each frame of output image output this time is the same color, the same transparency and/or the same special effect, so as to reduce the color and transparency and/or special effect changes to eye irritation for eye protection. When the terminal turns on the occlusion pattern multiple times, the color, transparency and/or special effect of each occlusion pattern may be inconsistent, which is used for the diversity of vision during the user's use and improves the user experience.
在本发明实施例中,终端还可以调整遮挡图案的亮度和或灰度,例如,终端可以将调整终端显示器屏幕的亮度与调整遮挡图案的亮度和或灰度相结合调整,同时调整终端显示器屏幕的亮度和遮挡图案的亮度和或灰度,以提高用户的体验。In this embodiment of the present invention, the terminal may also adjust the brightness and/or grayscale of the occlusion pattern. For example, the terminal may adjust the brightness of the terminal display screen in combination with the adjustment of the brightness and/or grayscale of the occlusion pattern, and adjust the screen of the terminal display at the same time. The brightness and or grayscale of the occlusion pattern to enhance the user experience.
可选地,作为本发明另一实施例,每帧遮挡图案分布于部分显示图像上或者每帧遮挡图案分布于整个显示图像上。Optionally, as another embodiment of the present invention, each frame of the occlusion pattern is distributed on a part of the display image or each frame of the occlusion pattern is distributed on the entire display image.
具体的,每帧的遮挡图案可以分布于整个显示图像上,也可以分布在整个显示图像的部分显示图像上,也就是说,终端遮挡图案可以遮挡显示器所有区域的显示图像,也可以遮挡显示器部分区域的显示图像。Specifically, the occlusion pattern of each frame may be distributed on the entire display image, or may be distributed on part of the entire display image, that is to say, the terminal occlusion pattern may block the display image in all areas of the display, and may also block part of the display. Display image of the area.
图4为遮挡图案遮挡显示器部分区域的显示图像的示意图。在图4中,遮挡图案分布于显示器的中部区域。FIG. 4 is a schematic diagram of a display image where a shielding pattern shields a partial area of the display. In Figure 4, the occlusion pattern is distributed in the middle area of the display.
应理解,在本发明实施例中,以遮挡图案分布于显示器的中部区域为例,只是为了对本发明实施例的技术方案进行详细描述,但并不限制本发明实施例的范围。It should be understood that in the embodiments of the present invention, the blocking patterns are distributed in the middle area of the display as an example, only to describe the technical solutions of the embodiments of the present invention in detail, but not to limit the scope of the embodiments of the present invention.
在本发明实施例中,遮挡图案遮挡显示器部分区域的显示图像时,遮挡图案还可以分布在显示器的顶部位置、底部位置、左侧位置、右侧位置,或者显示器的任一可能的位置,在本发明实施例中对此不作任何限制。In this embodiment of the present invention, when the blocking pattern blocks the displayed image in a part of the display, the blocking pattern may also be distributed on the top position, bottom position, left position, right position of the display, or any possible position of the display. This is not limited in the embodiments of the present invention.
还应理解,遮挡图案可以为任一形状的有规则形状的图案或者无规则形状的图案。It should also be understood that the occlusion pattern can be any shape of a regularly shaped pattern or a random shaped pattern.
可选地,作为本发明的另一实施例,该方法还包括:接收用户输入的操作指令,该操作指令用于指示开启遮挡图案。Optionally, as another embodiment of the present invention, the method further includes: receiving an operation instruction input by a user, where the operation instruction is used to instruct to open the shielding pattern.
具体的,在本发明实施例中,终端接收用户输入的开启遮挡图案的指令,以用于根据该指令为每帧接收的显示图像设置遮挡图案。Specifically, in this embodiment of the present invention, the terminal receives an instruction input by the user to enable the blocking pattern, so as to set the blocking pattern for each frame of the received display image according to the instruction.
在本发明实施例中,操作指令可以为用户按压终端上的按键触发,也可以通过手势触发。例如,以终端为手机为例,可以根据用户按压电源按键和/或上音量按键,触发手机开启遮挡图案;或者根据用户转动手势触发手机开启遮挡图案。In this embodiment of the present invention, the operation instruction may be triggered by the user pressing a button on the terminal, or may be triggered by a gesture. For example, taking the terminal as a mobile phone as an example, the mobile phone can be triggered to open the blocking pattern according to the user pressing the power button and/or the volume up button; or the mobile phone can be triggered to open the blocking pattern according to the user's turning gesture.
应理解,在本发明实施例中,终端也可以根据用户输入的操作指令关闭遮挡图案。It should be understood that, in this embodiment of the present invention, the terminal may also close the shielding pattern according to an operation instruction input by the user.
还应理解,在本发明实施例中,操作指令除可以通过用户按压终端上的按键触发之外,还可以通过软件开关或者特定的程序触发,在本发明实施例中对此不作任何限制。It should also be understood that, in this embodiment of the present invention, in addition to being triggered by a user pressing a key on the terminal, the operation instruction may also be triggered by a software switch or a specific program, which is not limited in this embodiment of the present invention.
因此,采用本发明实施例提供的图像处理方法,终端通过对每帧的显示图像设置遮挡图案,根据终端输出信号的频率,结合视觉停留原理,在满足用户需求的情况下,可以防御显示图像的被偷拍,以保证用户使用终端的安全性。Therefore, with the image processing method provided by the embodiment of the present invention, the terminal can set a blocking pattern for the displayed image of each frame, according to the frequency of the output signal of the terminal, combined with the principle of visual stop, under the condition of satisfying the user's needs, it can prevent the displayed image from being blocked. To be secretly photographed to ensure the safety of users using the terminal.
上文中结合图1至图4,详细描述了根据本发明实施例的图像处理的方法,下面将结合图5至图8,详细描述根据本发明实施例的终端。The image processing method according to the embodiment of the present invention is described in detail above with reference to FIG. 1 to FIG. 4 , and the terminal according to the embodiment of the present invention will be described in detail below with reference to FIG. 5 to FIG. 8 .
图5是本发明实施例终端的示意性结构图。如图5所示的终端500包括:接收模块510、确定模块520和输出模块530。FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal 500 shown in FIG. 5 includes a receiving module 510 , a determining module 520 and an outputting module 530 .
接收模块510,用于逐帧接收显示图像;a receiving module 510, configured to receive and display images frame by frame;
确定模块,用于确定每帧显示图像的遮挡图案,遮挡图案遮挡显示图像的一部分;a determining module, used for determining the occlusion pattern of each frame of the displayed image, and the occlusion pattern occludes a part of the displayed image;
输出模块530,用于逐帧输出图像,输出图像为显示图像与所述显示图像对应的遮挡图案的叠加。The output module 530 is configured to output images frame by frame, where the output image is a superposition of the display image and the occlusion pattern corresponding to the display image.
其中,每帧显示图像的每个像素在N帧连续输出的输出图像中至少出现一次未被遮挡图案遮挡,N帧连续输出的输出图像中,每帧遮挡图案未遮挡部分的显示图像满足视觉停留原理,N取正整数。Among them, each pixel of each frame of display image is not blocked by the occlusion pattern at least once in the output image of N frames of continuous output, and in the output image of N frames of continuous output, the displayed image of the unobstructed part of the occlusion pattern of each frame satisfies the visual stay In principle, N is a positive integer.
具体的,在本发明实施例中,终端按照预设帧率输出图像。每个终端使用的帧率满足视觉停留原理。确定模块520对接收模块510接收的每帧显示图像进行处理,在每帧的显示图像上叠加遮挡图案,合成最终的输出图像。每帧的遮挡图案可以只遮挡该帧显示图像的部分像素。由于输出图像包括显示图像和遮挡图案,在每一帧输出图像中,由于显示图像的部分像素被遮挡图案遮挡,所以每帧输出图像可能无法呈现完整的显示图像,每帧显示图像的每个像素在N帧连续输出的输出图像中至少出现一次未被遮挡图案遮挡,结合视觉停留原理,用户可以看到完整的显示图像。其中,连续输出帧中的遮挡图案可以按照一定的顺序变化。Specifically, in this embodiment of the present invention, the terminal outputs images according to a preset frame rate. The frame rate used by each terminal satisfies the visual stop principle. The determining module 520 processes each frame of the display image received by the receiving module 510, superimposes the occlusion pattern on the display image of each frame, and synthesizes the final output image. The occlusion pattern of each frame can only occlude part of the pixels of the displayed image of the frame. Since the output image includes the display image and the occlusion pattern, in each frame of the output image, since some pixels of the display image are occluded by the occlusion pattern, each frame of the output image may not be able to present the complete display image, and each pixel of the display image in each frame may not be able to present the complete display image. In the output image of N frames continuously output, the unobstructed pattern appears at least once. Combined with the principle of visual stop, the user can see the complete display image. Wherein, the occlusion patterns in the consecutive output frames can be changed in a certain order.
在本发明实施例中,显示图像可以为终端需要输出的显示图像。接收模块510逐帧接收需要输出的显示图像。确定模块520对每帧显示图像确定一个遮挡图案。遮挡图案可以用于遮挡显示图像的部分信息。In this embodiment of the present invention, the display image may be a display image that needs to be output by the terminal. The receiving module 510 receives the display images to be output frame by frame. The determining module 520 determines an occlusion pattern for each frame of display image. The occlusion pattern can be used to occlude part of the information of the displayed image.
每帧的遮挡图案遮挡对应帧显示图像的部分像素,连续帧的遮挡图案可以按照一定的顺序变化。根据终端一秒钟输出图像的帧数,确定显示图像的每个像素在规定的连续帧输出图像中至少显示一次未被遮挡图案遮挡,为满足用户需求,每帧中未被遮挡图案遮挡的显示部分的显示图像满足视觉停留原理,以便于用户看到完整的显示图像。也就是说,当预设帧率满足用户视觉停留的时间,连续N帧输出图像时,用户可以在看到下一帧图像时,上一帧图像还保留在用户的视线中,这样用户就可以看到完整的显示图像。The occlusion pattern of each frame occludes part of the pixels of the display image of the corresponding frame, and the occlusion patterns of consecutive frames can be changed in a certain order. According to the number of frames of the image output by the terminal in one second, it is determined that each pixel of the displayed image is displayed at least once in the specified continuous frame output image without being blocked by the blocking pattern. Part of the displayed image satisfies the visual stop principle so that the user can see the complete displayed image. That is to say, when the preset frame rate satisfies the user's visual stay time, and N frames of images are output in a row, the user can see the next frame of the image, and the previous frame of the image remains in the user's line of sight, so that the user can See full display image.
其中,在本发明实施例中,N为终端每秒输出显示图像的帧数。Wherein, in the embodiment of the present invention, N is the number of frames of displayed images output by the terminal per second.
终端将每帧的显示图像和对应帧显示图像的遮挡图案叠加,形成最终的输出图像。The terminal superimposes the display image of each frame and the occlusion pattern of the display image of the corresponding frame to form a final output image.
因此,本发明实施例的技术方案公开了对每帧的显示图像设置遮挡图案,与终端输出帧率不匹配的拍摄设备无法通过拍摄获取终端的显示内容,本发明实施例的技术方案可以保护个人隐私,可以防止终端显示图像被偷拍,可以保证用户使用终端的安全性。Therefore, the technical solution of the embodiment of the present invention discloses that a blocking pattern is set for the display image of each frame, and the shooting device that does not match the output frame rate of the terminal cannot obtain the display content of the terminal by shooting, and the technical solution of the embodiment of the present invention can protect the individual Privacy can prevent images displayed by the terminal from being secretly photographed, and can ensure the security of users using the terminal.
在本发明实施例中,遮挡图案包括规则形状的图案或不规则形状的图案。In the embodiment of the present invention, the shielding pattern includes a regular-shaped pattern or an irregular-shaped pattern.
可选地,作为本发明另一实施例,显示图像的每个像素在N帧连续输出的输出图像中至少一次未被遮挡图案遮挡。Optionally, as another embodiment of the present invention, each pixel of the display image is not occluded by the occlusion pattern at least once in the output images continuously output by N frames.
具体的,每帧遮挡图案可以遮挡显示图像中不同部分的内容。Specifically, each frame of the occlusion pattern can occlude the content of different parts of the displayed image.
可选地,在本发明实施例,确定模块520具体用于,Optionally, in this embodiment of the present invention, the determining module 520 is specifically configured to:
沿第一方向移动第n帧遮挡图案,得到第n+1帧遮挡图案,其中,第n+1帧遮挡图案遮挡的显示图像的部分像素为第n帧遮挡图案未遮挡的显示图像的部分像素,n 取从1到N-1的正整数。Moving the nth frame of the occlusion pattern along the first direction to obtain the n+1th frame of the occlusion pattern, wherein the part of the pixels of the display image covered by the n+1th frame of the occlusion pattern is the part of the pixel of the display image not covered by the nth frame of the occlusion pattern , n is a positive integer from 1 to N-1.
在本发明实施例中,n为连续接收帧信号中的前一帧信号,n+1为连续接收帧信号中第n帧信号之后的帧信号。第一方向为终端预设的任一方向。当确定模块520为前一帧接收模块510接收到的显示图像确定遮挡图案之后,确定模块520根据前一帧确定的遮挡图案沿预设的第一方向移动,将移动后的遮挡图案作为后一帧的遮挡图案,后一帧遮挡图案未遮挡的显示图像的像素可以为前一帧遮图案遮挡的显示图像的像素。In the embodiment of the present invention, n is the previous frame signal in the continuously received frame signal, and n+1 is the frame signal after the nth frame signal in the continuously received frame signal. The first direction is any direction preset by the terminal. After the determination module 520 determines the occlusion pattern for the display image received by the previous frame receiving module 510, the determination module 520 moves along the preset first direction according to the occlusion pattern determined in the previous frame, and takes the moved occlusion pattern as the next The occlusion pattern of the frame, the pixels of the displayed image that are not occluded by the occlusion pattern of the subsequent frame may be the pixels of the displayed image that are occluded by the occlusion pattern of the previous frame.
应理解,在发明实施例中,连续两帧的输出图案中的遮挡图案遮挡的显示图像的内容可以部分重叠。It should be understood that, in the embodiment of the present invention, the content of the display image blocked by the blocking pattern in the output patterns of two consecutive frames may partially overlap.
在本发明实施例中,遮挡图案为规则形状的栅条型图案,该栅条型图案可以为横栅条、竖栅条或者斜栅条等其他栅条形状的图案。In the embodiment of the present invention, the shielding pattern is a grid pattern with a regular shape, and the grid pattern may be a pattern of other grid shapes such as horizontal grid, vertical grid, or oblique grid.
需要说明的是,在本发明实施例中,连续帧中的遮挡图案可以按照一定的方向移动,遮挡图案可以沿任一方向按照一定的顺序移动,例如,可以按照规定的速度进行移动。It should be noted that, in this embodiment of the present invention, the occlusion patterns in consecutive frames may move in a certain direction, and the occlusion patterns may move in any direction in a certain order, for example, at a specified speed.
还应理解,在本发明实施例中,当遮挡图案满足条件:每帧遮挡图案遮挡对应帧显示图像的一部分,且每帧显示图像的每个像素在N帧连续输出的输出图像中至少出现一次,N帧连续输出的输出图像中,每帧遮挡图案未遮挡部分的显示图像满足视觉停留原理,N为每秒中输出的显示图像的帧数时,遮挡图案还可以无规则的运动,在本发明实施例中对此不作任何限制。It should also be understood that, in this embodiment of the present invention, when the occlusion pattern satisfies the conditions: each frame of the occlusion pattern occludes a part of the display image of the corresponding frame, and each pixel of the display image of each frame appears at least once in the output images continuously output by N frames. , in the output image of N frames continuously output, the displayed image of the unobstructed part of the occlusion pattern in each frame satisfies the principle of visual stop, and when N is the number of frames of the displayed image output per second, the occlusion pattern can also move irregularly. This is not limited in the embodiments of the invention.
可选地,作为本发明的另一实施例,当遮挡图案为栅条型图案时,确定模块520 还用于,确定栅条型图案的宽度和栅条型图案的间距。Optionally, as another embodiment of the present invention, when the shielding pattern is a grid pattern, the determining module 520 is further configured to determine the width of the grid pattern and the spacing of the grid pattern.
在本发明实施例中,当遮挡图案为栅条型图案时,确定模块520可以确定栅条型图案的宽度和间距。例如,确定模块520根据输出图像的大小,确定栅条型图案的宽度和间距。在该实施例中,遮挡图案可以为等间距、不等间距、等宽度和/或不等宽度的图案。In this embodiment of the present invention, when the blocking pattern is a grid pattern, the determining module 520 may determine the width and spacing of the grid pattern. For example, the determination module 520 determines the width and spacing of the grid pattern according to the size of the output image. In this embodiment, the blocking patterns may be patterns of equal spacing, unequal spacing, equal width and/or unequal width.
可选地,作为本发明的另一实施例,确定模块520还可以用于,确定每帧遮挡图案的颜色。Optionally, as another embodiment of the present invention, the determining module 520 may be further configured to determine the color of the occlusion pattern in each frame.
在本发明实施例中,确定模块520可以为每帧遮挡图案设置颜色,每帧遮挡图案的颜色可以为固定颜色,也可以为不相同的颜色。In this embodiment of the present invention, the determination module 520 may set a color for each frame of the occlusion pattern, and the color of each frame of the occlusion pattern may be a fixed color or a different color.
在本发明实施例中,确定模块520还可以为每帧遮挡图案设置不同的视觉效果,例如,确定模块520为遮挡图案设置不同的透明度,或者确定模块520将遮挡图案设置为特殊效果,再例如,毛玻璃效果。In this embodiment of the present invention, the determination module 520 may also set different visual effects for each frame of the occlusion pattern. For example, the determination module 520 may set different transparency for the occlusion pattern, or the determination module 520 may set the occlusion pattern as a special effect, or for example , frosted glass effect.
优选地,在本发明实施例中,当终端开启一次遮挡图案时,确定模块520为该次输出的每帧输出图像中的遮挡图案设置同一种颜色、同一种透明度和/或同一种特殊效果,以降低颜色、透明度和/或特殊效果变化对眼睛的刺激,用以保护眼睛。当终端多次开启遮挡图案时,确定模块520可以将每次的遮挡图案颜色、透明度和/或特殊效果设置为不一致,以用于用户使用过程的中视觉的多样性,提高用户体验。Preferably, in this embodiment of the present invention, when the terminal turns on the occlusion pattern once, the determination module 520 sets the same color, the same transparency and/or the same special effect for the occlusion pattern in each frame of the output image output this time, To protect the eyes by reducing the irritation to the eyes from changes in color, transparency and/or special effects. When the terminal turns on the occlusion pattern multiple times, the determination module 520 may set the color, transparency and/or special effect of each occlusion pattern to be inconsistent, so as to be used for visual diversity during user use and to improve user experience.
在本发明实施例中,确定模块520还可以调整遮挡图案的亮度,例如,终端可以将调整终端显示器屏幕的亮度与调整遮挡图案的亮度相结合调整,同时调整终端显示器屏幕的亮度和遮挡图案的亮度,以提高用户的体验。In this embodiment of the present invention, the determining module 520 may also adjust the brightness of the occlusion pattern. For example, the terminal may adjust the brightness of the screen of the terminal display and the brightness of the occlusion pattern in combination, and adjust the brightness of the screen of the terminal display and the brightness of the occlusion pattern at the same time. Brightness to improve user experience.
在本发明实施例中,终端还可以调整遮挡图案的亮度,例如,确定模块520可以将调整终端显示器屏幕的亮度与调整遮挡图案的亮度相结合调整,同时调整终端显示器屏幕的亮度和遮挡图案的亮度,以提高用户的体验。In this embodiment of the present invention, the terminal may also adjust the brightness of the occlusion pattern. For example, the determining module 520 may adjust the brightness of the screen of the terminal display and the brightness of the occlusion pattern in combination, and adjust the brightness of the screen of the terminal display and the brightness of the occlusion pattern at the same time. Brightness to improve user experience.
图6是本发明另一实施例终端中的确定模块的示意性结构图。FIG. 6 is a schematic structural diagram of a determination module in a terminal according to another embodiment of the present invention.
在本发明实施例中,如图6所示,确定模块520可以包括加密单元521,着色单元522和过滤单元523。加密单元521用于对每帧的显示图像,设置遮挡图案;着色单元522用于为每帧的遮挡图案设置颜色;过滤单元523用于将每帧遮挡图案和对应帧的显示图像进行叠加,得到最终的输出图像。In this embodiment of the present invention, as shown in FIG. 6 , the determination module 520 may include an encryption unit 521 , a coloring unit 522 and a filtering unit 523 . The encryption unit 521 is used to set the occlusion pattern for the display image of each frame; the coloring unit 522 is used to set the color for the occlusion pattern of each frame; the filter unit 523 is used to superimpose the occlusion pattern of each frame and the display image of the corresponding frame to obtain the final output image.
应理解,在本发明实施例中,确定模块520还可以根据内在逻辑需要设置其他单元,在本发明实施例中不作任何限制。It should be understood that, in this embodiment of the present invention, the determination module 520 may further set other units according to internal logic requirements, which is not limited in this embodiment of the present invention.
可选地,作为本发明另一实施例,确定模块520还用于设置每帧遮挡图案分布于部分显示图像上或者每帧遮挡图案分布于整个显示图像上。Optionally, as another embodiment of the present invention, the determining module 520 is further configured to set the occlusion pattern of each frame to be distributed on a part of the display image or the occlusion pattern of each frame to be distributed on the entire display image.
具体的,每帧的遮挡图案可以分布于整个显示图像上,也可以分布在整个显示图像的部分显示图像上,也就是说,终端遮挡图案可以遮挡终端的显示器屏幕的一部分区域,也可以遮挡终端的显示器屏幕的完整区域。如图4所示。Specifically, the occlusion pattern of each frame may be distributed on the entire display image, or may be distributed on a part of the entire display image, that is to say, the terminal occlusion pattern may block a part of the display screen of the terminal, and may also block the terminal. the complete area of the monitor screen. As shown in Figure 4.
应理解,在本发明实施例中,以遮挡图案分布于显示图像的中间位置为例,只是为了对本发明实施例的技术方案进行详细描述,但并不限制本发明实施例的范围。It should be understood that in the embodiments of the present invention, the occlusion patterns are distributed in the middle of the displayed image as an example, only to describe the technical solutions of the embodiments of the present invention in detail, but not to limit the scope of the embodiments of the present invention.
在本发明实施例中,遮挡图案分布于部分显示图像时,遮挡图案还可以分布在显示图像的顶部位置、底部位置、左侧位置、右侧位置,或者显示图像的任一可能的位置,在本发明实施例中对此不作任何限制。In this embodiment of the present invention, when the occlusion pattern is distributed in part of the displayed image, the occlusion pattern may also be distributed in the top position, bottom position, left position, right position of the displayed image, or any possible position of the displayed image. This is not limited in the embodiments of the present invention.
还应理解,遮挡图案可以为任一形状的有规则形状的图案或者无规则形状的图案。It should also be understood that the occlusion pattern can be any shape of a regularly shaped pattern or a random shaped pattern.
可选地,作为本发明的另一实施例,接收模块510还用于,接收用户输入的操作指令,操作指令用于指示开启遮挡图案。Optionally, as another embodiment of the present invention, the receiving module 510 is further configured to receive an operation instruction input by the user, where the operation instruction is used to instruct to open the shielding pattern.
具体的,在本发明实施例中,接收模块510接收用户输入的开启遮挡图案的指令,以用于根据该指令为每帧接收的显示图像设置遮挡图案。Specifically, in this embodiment of the present invention, the receiving module 510 receives an instruction to open the occlusion pattern input by the user, so as to set the occlusion pattern for each frame of the received display image according to the instruction.
在本发明实施例中,操作指令可以为用户通过终端上的按键触发,也可以通过终端上的手势触发。例如,该终端为手机,手机可以根据用户通过电源按键和上音量按键,触发手机开启遮挡图案;或者手机根据用户通过转动手机,触发手机开启遮挡图案。In this embodiment of the present invention, the operation instruction may be triggered by the user through a key on the terminal, or may be triggered through a gesture on the terminal. For example, if the terminal is a mobile phone, the mobile phone can trigger the mobile phone to open the blocking pattern according to the user through the power button and the volume up button; or the mobile phone can trigger the mobile phone to open the blocking pattern according to the user turning the mobile phone.
应理解,在本发明实施例中,终端也可以根据用户输入的操作指令关闭遮挡图案。It should be understood that, in this embodiment of the present invention, the terminal may also close the shielding pattern according to an operation instruction input by the user.
还应理解,在本发明实施例中,操作指令除可以通过终端上的按键触发之外,还可以通过软件开关或者特定的程序触发,在本发明实施例中对此不作任何限制。It should also be understood that, in this embodiment of the present invention, in addition to being triggered by a key on the terminal, the operation instruction may also be triggered by a software switch or a specific program, which is not limited in this embodiment of the present invention.
因此,采用本发明实施例提供的终端,终端通过对每帧的显示图像设置遮挡图案,根据终端输出信号的频率,结合视觉停留原理,在满足用户需求的情况下,可以防御显示图像的被偷拍,以保证用户使用终端的安全性。Therefore, by using the terminal provided by the embodiment of the present invention, the terminal can prevent the displayed image from being secretly photographed under the condition that the user's needs are met, by setting a blocking pattern for the displayed image of each frame, according to the frequency of the output signal of the terminal, and in combination with the visual stop principle. , in order to ensure the security of users using the terminal.
需要说明的是,在本发明实施例中,根据本发明实施例的终端500中的各个模块的上述和其它操作和/或功能分别为了实现图1中的各个方法的相应流程,为了简洁,在此不再赘述。It should be noted that, in this embodiment of the present invention, the above-mentioned and other operations and/or functions of each module in the terminal 500 according to the embodiment of the present invention are respectively in order to realize the corresponding process of each method in FIG. 1 . For brevity, in This will not be repeated here.
图7是根据本发明另一实施例的终端的示意性结构图。如图7所示的终端600包括内容缓存模块710、显示输出模块720、处理模块730、并行显示接口740、数模转换模块 750和显示模块760。FIG. 7 is a schematic structural diagram of a terminal according to another embodiment of the present invention. The terminal 600 shown in FIG. 7 includes a content cache module 710, a display output module 720, a processing module 730, a parallel display interface 740, a digital-to-analog conversion module 750, and a display module 760.
当终端接收到用户输入的开启遮挡图案的操作指令时,终端输出图像的具体过程为:When the terminal receives the operation instruction of opening the occlusion pattern input by the user, the specific process of the terminal outputting the image is as follows:
显示输出模块720从内容缓存模块710获取显示图像,并向处理模块730逐帧发送显示图像,处理模块730根据逐帧接收的显示图像,为每帧显示图像确定一个遮挡图案,并将遮挡图案和显示图像叠合,得到输出图像。处理模块730通过并行显示接口(英文:Display Serial Interface,简称“DSI”)740,将输出图像发送给数模转换模块750,经数模转换模块750将输出图像的数字信号转换为模拟信号,输出到显示模块760输出图像显示。The display output module 720 obtains the display image from the content cache module 710, and sends the display image frame by frame to the processing module 730. The processing module 730 determines an occlusion pattern for each frame of the display image according to the display image received frame by frame, and compares the occlusion pattern with the display image. Display the image overlay to get the output image. The processing module 730 sends the output image to the digital-to-analog conversion module 750 through the parallel display interface (English: Display Serial Interface, "DSI" for short) 740, and the digital-to-analog conversion module 750 converts the digital signal of the output image into an analog signal, and outputs the output image. The image display is output to the display module 760 .
需要说明的是,在本发明实施例中,根据本发明实施例的终端600可对应于根据本发明实施例的方法100的执行主体,并且终端600中的各个模块的上述和其它操作和/或功能分别为了实现图1中的各个方法的相应流程,为了简洁,在此不再赘述It should be noted that, in this embodiment of the present invention, the terminal 600 according to the embodiment of the present invention may correspond to the execution body of the
其中,在本发明实施例中,处理模块730包括终端500中的接收模块510、确定模块520,处理模块730也可以实现终端500中的接收模块510、确定模块520的操作和/或功能,为了实现图1中方法100的相应流程,为了简洁,在此不在赘述。其中,处理模块730还包括发送模块,用于将得到的输出图像通过并行显示接口740发送给数模转换模块750。Wherein, in this embodiment of the present invention, the processing module 730 includes the receiving module 510 and the determining module 520 in the terminal 500, and the processing module 730 may also implement the operations and/or functions of the receiving module 510 and the determining module 520 in the terminal 500, in order to The corresponding process for implementing the
因此,采用本发明实施例提供的终端,终端通过对每帧的显示图像设置遮挡图案,根据终端输出信号的频率,结合视觉停留原理,在满足用户需求的情况下,可以防御显示图像被偷拍,以保证用户使用终端的安全性。Therefore, by using the terminal provided by the embodiment of the present invention, the terminal can prevent the displayed image from being secretly photographed under the condition that the user's needs are met, by setting a blocking pattern for the displayed image of each frame, according to the frequency of the output signal of the terminal, and in combination with the principle of visual stop. In order to ensure the security of users using the terminal.
还需要说明的是,在本发明实施例中,将处理模块730设置在显示输出模块720和并行显示接口740之间,只是为了描述本发明实施例的技术方案,本发明的技术方案并不受限于此。It should also be noted that, in the embodiment of the present invention, the processing module 730 is arranged between the display output module 720 and the parallel display interface 740, just to describe the technical solution of the embodiment of the present invention, and the technical solution of the present invention is not affected by the limited to this.
在本发明实施例中,处理模块730也可以通过软件算法对每帧显示图像进行处理,得到输出图像。例如,在并行显示接口740对显示图像进行打包之前,执行处理模块730 的操作,或者在显示图像进入内容缓存模块710之前,执行处理模块730的操作,以完成显示图像的加密,实现显示图像的防偷拍,保证用户使用的安全性。In this embodiment of the present invention, the processing module 730 may also process each frame of displayed image through a software algorithm to obtain an output image. For example, before the parallel display interface 740 packages the display image, the operation of the processing module 730 is performed, or before the display image enters the content cache module 710, the operation of the processing module 730 is performed, so as to complete the encryption of the display image and realize the encryption of the display image. Anti-candid photography, to ensure the safety of users.
图8为本发明实施例终端的示意性结构图。如图8所示,终端800包括:处理器810、显示器820、存储器830和通信总线系统840。其中,处理器810、显示器820和存储器 830通过通信总线系统840相连接。其中,FIG. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in FIG. 8 , the terminal 800 includes: a
存储器830,用于存储指令;a
处理器810,用于调用存储在存储器830中的指令执行以下步骤;The
逐帧接收显示图像;确定每帧显示图像的遮挡图案,遮挡图案遮挡显示图像的一部分;逐帧输出图像,输出图像为显示图像与所述显示图像对应的遮挡图案的叠加;Receive the display image frame by frame; determine the occlusion pattern of each frame of the display image, and the occlusion pattern covers a part of the display image; output the image frame by frame, and the output image is the superposition of the display image and the occlusion pattern corresponding to the display image;
显示器820,用于显示输出图像,输出图像为显示图像与所述显示图像对应的遮挡图案的叠加。The
其中,每帧显示图像的每个像素在N帧连续输出的输出图像中至少一次未被遮挡图案遮挡,N帧连续输出的输出图像中,每帧遮挡图案未遮挡部分的显示图像满足视觉停留原理,N取正整数。其中视觉停留原理为,当用户长时间看一个图像,在一定的时间段内,将图像移走,用户会该图像还保持在视线中。Among them, each pixel of each frame of the displayed image is not blocked by the occlusion pattern at least once in the output image outputted by the N frames of continuous output, and in the output image of the continuous output of N frames, the displayed image of the unobstructed part of the occlusion pattern of each frame satisfies the visual stop principle , and N is a positive integer. The principle of visual staying is that when a user looks at an image for a long time and removes the image within a certain period of time, the user will keep the image in sight.
具体的,在本发明实施例中,终端按照预设帧率输出显示图像。每个终端使用的帧率满足视觉停留原理。处理器810对接收的每帧显示图像进行处理,在每帧的显示图像上叠加遮挡图案,合成最终的输出图像。每帧的遮挡图案只遮挡该帧显示图像的部分像素。一个完整的显示图像,由于被遮挡图案遮挡了部分像素,每帧输出图像为显示图像与遮挡图案的叠加,某一帧输出图像不能呈现完整的显示图像,但结合视觉停留原理,用户可以看到完整的输出图像。其中,连续输出帧中的遮挡图案可以按照一定的顺序变化。Specifically, in this embodiment of the present invention, the terminal outputs a display image according to a preset frame rate. The frame rate used by each terminal satisfies the visual stop principle. The
在本发明实施例中,显示图像可以为终端需要输出的显示图像。处理器810逐帧接收需要输出的显示图像。处理器810对每帧显示图像,确定一个遮挡图案。遮挡图案可以用于遮挡显示图像的部分信息。In this embodiment of the present invention, the display image may be a display image that needs to be output by the terminal. The
每帧的遮挡图案遮挡对应帧显示图像的部分像素,连续帧的遮挡图案可以按照一定的顺序变化。根据终端一秒钟输出图像的帧数,确定显示图像的每个像素在规定的连续帧输出图像中至少一次未被遮挡图案遮挡,为满足用户需求,每帧中未被遮挡图案遮挡的显示部分的显示图像满足视觉停留原理,以便于用户看到完整的显示图像。The occlusion pattern of each frame occludes part of the pixels of the display image of the corresponding frame, and the occlusion patterns of consecutive frames can be changed in a certain order. According to the number of frames of the image output by the terminal in one second, it is determined that each pixel of the displayed image is not blocked by the blocking pattern at least once in the specified continuous frame output image. The displayed image satisfies the visual stop principle, so that the user can see the complete displayed image.
其中,在本发明实施例中,N为终端每秒输出显示图像的帧数。Wherein, in the embodiment of the present invention, N is the number of frames of displayed images output by the terminal per second.
终端将每帧的显示图像和显示图像对应的遮挡图案叠加,形成最终的输出图像。The terminal superimposes the display image of each frame and the occlusion pattern corresponding to the display image to form the final output image.
因此,本发明实施例的技术方案公开了对每帧的显示图像设置遮挡图案,与终端输出帧率不匹配的拍摄设备无法通过拍摄获取终端的显示内容,本发明实施例的技术方案可以保护个人隐私,可以防止终端显示图像被偷拍,可以保证用户使用终端的安全性。Therefore, the technical solution of the embodiment of the present invention discloses that a blocking pattern is set for the display image of each frame, and the shooting device that does not match the output frame rate of the terminal cannot obtain the display content of the terminal by shooting, and the technical solution of the embodiment of the present invention can protect the individual Privacy can prevent images displayed by the terminal from being secretly photographed, and can ensure the security of users using the terminal.
在本发明实施例中,遮挡图案包括规则形状的图案或不规则形状的图案。In the embodiment of the present invention, the shielding pattern includes a regular-shaped pattern or an irregular-shaped pattern.
应理解,在本发明实施例中,该处理器810可以是中央处理单元(CentralProcessing Unit,CPU),该处理器810还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in this embodiment of the present invention, the
该总线系统840除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统840。In addition to the data bus, the
在实现过程中,上述方法的各步骤可以通过处理器810中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器830,处理器810读取存储器中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above-mentioned method can be completed by an integrated logic circuit of hardware in the
可选地,作为本发明另一实施例,显示图像的每个像素在N帧连续输出的输出图像中至少一次未被遮挡图案遮挡。Optionally, as another embodiment of the present invention, each pixel of the display image is not occluded by the occlusion pattern at least once in the output images continuously output by N frames.
可选地,在本发明实施例,处理器810具体用于,Optionally, in this embodiment of the present invention, the
沿第一方向移动第n帧遮挡图案,得到第n+1帧遮挡图案,其中,第n+1帧遮挡图案所遮挡的显示图像的部分像素可以为第n帧遮挡图案未遮挡的显示图像的部分像素,n取从1到N-1的正整数。Move the nth frame of the occlusion pattern along the first direction to obtain the n+1th frame of the occlusion pattern, wherein part of the pixels of the display image blocked by the n+1th frame of the occlusion pattern may be the unobstructed display image of the nth frame of the occlusion pattern. Part of the pixel, n is a positive integer from 1 to N-1.
在本发明实施例中,n为连续接收帧信号中的前一帧信号,n+1为连续接收帧信号中第n帧信号之后的帧信号。第一方向为终端预设的任一方向。当终端为第n帧显示图像确定遮挡图案之后,终端将第n帧显示图像的遮挡图案沿预设的第一方向移动,将移动后的遮挡图案作为第n+1帧显示图像的遮挡图案,第n+1帧遮挡图案未遮挡的显示图像的像素可以为第n帧遮档图案遮挡的显示图像的全部或者部分像素。In the embodiment of the present invention, n is the previous frame signal in the continuously received frame signal, and n+1 is the frame signal after the nth frame signal in the continuously received frame signal. The first direction is any direction preset by the terminal. After the terminal determines the occlusion pattern for the nth frame of display image, the terminal moves the occlusion pattern of the nth frame of display image along the preset first direction, and uses the moved occlusion pattern as the occlusion pattern of the n+1th frame of display image, The pixels of the display image not blocked by the n+1th frame of the blocking pattern may be all or part of the pixels of the display image blocked by the nth frame of the blocking pattern.
在本发明实施例中,遮挡图案为规则形状的栅条型图案,该栅条型图案可以为横栅条图案、竖栅条图案或者斜栅条图案等其他栅条形状的图案。In the embodiment of the present invention, the shielding pattern is a grid pattern with a regular shape, and the grid pattern may be a pattern of other grid shapes such as a horizontal grid pattern, a vertical grid pattern, or an oblique grid pattern.
需要说明的是,在本发明实施例中,连续帧中的遮挡图案按照一定的方向移动,遮挡图案可以按照一定的顺序移动,例如,可以按照一定的速度移动。It should be noted that, in this embodiment of the present invention, the occlusion patterns in consecutive frames move in a certain direction, and the occlusion patterns may move in a certain order, for example, at a certain speed.
还应理解,在本发明实施例中,当遮挡图案满足条件:每帧遮挡图案遮挡对应帧显示图像的一部分,且每帧显示图像的每个像素在N帧连续输出的输出图像中至少一次未被遮挡图案遮挡,N帧连续输出的输出图像中,每帧遮挡图案未遮挡的显示图像满足视觉停留原理,N为每秒中输出的显示图像的帧数,遮挡图案还可以无规则的运动,在本发明实施例中对此不作任何限制。It should also be understood that, in this embodiment of the present invention, when the occlusion pattern satisfies the conditions: each frame of the occlusion pattern occludes a part of the display image of the corresponding frame, and each pixel of the display image of each frame is not displayed at least once in the output images continuously output by N frames. Occluded by the occlusion pattern, in the output image of N frames continuously output, the displayed image that is not occluded by the occlusion pattern of each frame satisfies the principle of visual stop, N is the number of frames of the output display image per second, and the occlusion pattern can also move irregularly. This is not limited in this embodiment of the present invention.
可选地,作为本发明的另一实施例,当遮挡图案为规则形状的栅条型图案时,处理器810还用于,确定栅条型图案的宽度和栅条型图案的间距。Optionally, as another embodiment of the present invention, when the shielding pattern is a grid pattern with a regular shape, the
在本发明实施例中,当遮挡图案为栅条型图案时,处理器810可以确定栅条型图案的宽度和间距。例如,处理器810根据输出的显示图像的大小,确定栅条型图案的宽度和间距。在该实施例中,遮挡图案可以为等间距、不等间距、等宽度和/或不等宽度的图案。In this embodiment of the present invention, when the blocking pattern is a grid pattern, the
可选地,作为本发明的另一实施例,处理器810还可以用于,确定每帧遮挡图案的颜色。Optionally, as another embodiment of the present invention, the
在本发明实施例中,处理器810可以为每帧遮挡图案设置颜色,每帧遮挡图案的颜色可以为固定颜色,也可以为不相同的颜色。In this embodiment of the present invention, the
在本发明实施例中,处理器810还可以为每帧遮挡图案设置不同的视觉效果,例如,处理器810为遮挡图案设置不同的透明度,或者处理器810将遮挡图案设置为特殊效果,再例如,毛玻璃效果。In this embodiment of the present invention, the
优选地,在本发明实施例中,当终端开启一次遮挡图案时,处理器810为该次输出的每帧输出图像中的遮挡图案设置同一种颜色、同一种透明度和/或同一种特殊效果,以降低颜色、透明度和/或特殊效果变化对眼睛的刺激,用以保护眼睛。当终端多次开启遮挡图案时,处理器810可以将每次的遮挡图案颜色、透明度和/或特殊效果设置为不一致,以用于用户使用过程的中视觉的多样性,提高用户体验。Preferably, in this embodiment of the present invention, when the terminal turns on the occlusion pattern once, the
在本发明实施例中,处理器810还可以调整遮挡图案的亮度,例如,终端可以将调整终端显示器屏幕的亮度与调整遮挡图案的亮度相结合调整,同时调整终端显示器屏幕的亮度和遮挡图案的亮度,以提高用户的体验。In this embodiment of the present invention, the
在本发明实施例中,终端还可以调整遮挡图案的亮度,例如,处理器810可以将调整终端显示器屏幕的亮度与调整遮挡图案的亮度相结合调整,同时调整终端显示器屏幕的亮度和遮挡图案的亮度,以提高用户的体验。In this embodiment of the present invention, the terminal may also adjust the brightness of the occlusion pattern. For example, the
可选地,作为本发明另一实施例,处理器810还用于设置每帧遮挡图案分布于部分显示图像上或者每帧遮挡图案分布于整个显示图像上。Optionally, as another embodiment of the present invention, the
具体的,每帧的遮挡图案可以分布于整个显示图像上,也可以分布在整个显示图像的部分显示图像上,也就是说,终端遮挡图案可以遮挡部分终端的显示器屏幕,也可以遮挡整个终端的显示器屏幕。如图4所示。Specifically, the occlusion pattern of each frame may be distributed on the entire display image, or may be distributed on part of the display image of the entire display image, that is, the terminal occlusion pattern may cover part of the display screen of the terminal, or may cover the entire terminal's display screen. monitor screen. As shown in Figure 4.
应理解,在本发明实施例中,以遮挡图案分布于显示图像的中间位置为例,只是为了对本发明实施例的技术方案进行详细描述,但并不限制本发明实施例的范围。It should be understood that in the embodiments of the present invention, the occlusion patterns are distributed in the middle of the displayed image as an example, only to describe the technical solutions of the embodiments of the present invention in detail, but not to limit the scope of the embodiments of the present invention.
在本发明实施例中,遮挡图案分布于部分显示图像时,遮挡图案还可以分布在显示图像的顶部位置、底部位置、左侧位置、右侧位置,或者显示图像的任一可能的位置,在本发明实施例中对此不作任何限制。In this embodiment of the present invention, when the occlusion pattern is distributed in part of the displayed image, the occlusion pattern may also be distributed in the top position, bottom position, left position, right position of the displayed image, or any possible position of the displayed image. This is not limited in the embodiments of the present invention.
还应理解,遮挡图案可以为任一形状的有规则形状的图案或者无规则形状的图案。It should also be understood that the occlusion pattern can be any shape of a regularly shaped pattern or a random shaped pattern.
可选地,作为本发明的另一实施例,处理器810还用于,接收用户输入的操作指令,操作指令用于指示开启遮挡图案。Optionally, as another embodiment of the present invention, the
具体的,在本发明实施例中,处理器810接收用户输入的开启遮挡图案的指令,以用于根据该指令为每帧接收的显示图像设置遮挡图案。Specifically, in this embodiment of the present invention, the
在本发明实施例中,操作指令可以为用户通过终端上的按键触发,也可以通过终端上的手势触发。例如,该终端为手机,手机可以根据用户通过电源按键和上音量按键,触发手机开启遮挡图案;或者手机根据用户通过转动手机,触发手机开启遮挡图案。In this embodiment of the present invention, the operation instruction may be triggered by the user through a key on the terminal, or may be triggered through a gesture on the terminal. For example, if the terminal is a mobile phone, the mobile phone can trigger the mobile phone to open the blocking pattern according to the user through the power button and the volume up button; or the mobile phone can trigger the mobile phone to open the blocking pattern according to the user turning the mobile phone.
应理解,在本发明实施例中,终端也可以根据用户输入的操作指令关闭遮挡图案。It should be understood that, in this embodiment of the present invention, the terminal may also close the shielding pattern according to an operation instruction input by the user.
还应理解,在本发明实施例中,操作指令除可以通过终端上的按键触发之外,还可以通过软件开关或者特定的程序触发,在本发明实施例中对此不作任何限制。It should also be understood that, in this embodiment of the present invention, in addition to being triggered by a key on the terminal, the operation instruction may also be triggered by a software switch or a specific program, which is not limited in this embodiment of the present invention.
因此,本发明实施例的技术方案公开了对每帧的显示图像设置遮挡图案,与终端输出帧率不匹配的拍摄设备无法通过拍摄获取终端的显示内容,本发明实施例的技术方案可以保护个人隐私,可以防止终端显示图像被偷拍,可以保证用户使用终端的安全性。Therefore, the technical solution of the embodiment of the present invention discloses that a blocking pattern is set for the display image of each frame, and the shooting device that does not match the output frame rate of the terminal cannot obtain the display content of the terminal by shooting, and the technical solution of the embodiment of the present invention can protect the individual Privacy can prevent images displayed by the terminal from being secretly photographed, and can ensure the security of users using the terminal.
需要说明的是,在本发明实施例中,本发明实施例的终端800可以对应于图5的终端500,根据本发明实施例的终端800中的各个模块的上述和其它操作和/或功能分别为了实现图1中的各个方法的相应流程,为了简洁,在此不再赘述。It should be noted that, in the embodiment of the present invention, the terminal 800 in the embodiment of the present invention may correspond to the terminal 500 in FIG. 5 , and the foregoing and other operations and/or functions of each module in the terminal 800 according to the embodiment of the present invention are respectively In order to realize the corresponding flow of each method in FIG. 1 , for the sake of brevity, details are not repeated here.
本发明另一个实施例,一种存储一个或多个程序的非易失性计算机可读存储介质,一个或多个程序包括指令,指令当被包括具有显示器的便携式电子设备执行时使便携式电子设备执行以下事件:Another embodiment of the present invention is a non-transitory computer-readable storage medium storing one or more programs including instructions that, when executed by a portable electronic device including a display, cause the portable electronic device Execute the following events:
逐帧接收显示图像;Receive display images frame by frame;
确定每帧显示图像的遮挡图案,所述遮挡图案遮挡所述显示图像的部分像素;determining an occlusion pattern of each frame of the display image, the occlusion pattern occludes part of the pixels of the display image;
逐帧输出图像,所述输出图像为所述显示图像与所述显示图像对应的遮挡图案的叠加。An image is output frame by frame, where the output image is a superposition of the display image and an occlusion pattern corresponding to the display image.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,该单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。该作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may also be electrical, mechanical or other forms of connection. The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solutions in the embodiments of the present invention. In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
该集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个非易失性(non-transitory)计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例该方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a non-transitory computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or a part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can think of various equivalent modifications within the technical scope disclosed by the present invention. or replacement, these modifications or replacements should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims (10)
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2015/089625 WO2017045126A1 (en) | 2015-09-15 | 2015-09-15 | Image processing method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107148775A CN107148775A (en) | 2017-09-08 |
CN107148775B true CN107148775B (en) | 2020-02-21 |
Family
ID=58288301
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201580058789.9A Active CN107148775B (en) | 2015-09-15 | 2015-09-15 | Image processing method, apparatus, electronic device and readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107148775B (en) |
WO (1) | WO2017045126A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113592747A (en) * | 2021-09-28 | 2021-11-02 | 杭州海康威视数字技术股份有限公司 | Image shielding and anti-shooting method, device and equipment based on visual characteristics |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108897881B (en) * | 2018-07-05 | 2023-08-22 | 腾讯科技(深圳)有限公司 | Interactive image display method, device, equipment and readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1414250A2 (en) * | 2002-10-23 | 2004-04-28 | Sony Corporation | Image display apparatus and image display method |
CN1882086A (en) * | 2005-05-31 | 2006-12-20 | 株式会社东芝 | Decoder |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6559883B1 (en) * | 2000-09-27 | 2003-05-06 | David H. Sitrick | Movie film security system utilizing infrared patterns |
JP3674568B2 (en) * | 2001-10-02 | 2005-07-20 | ソニー株式会社 | Intensity modulation method and system, and light quantity modulation device |
US7302162B2 (en) * | 2002-08-14 | 2007-11-27 | Qdesign Corporation | Modulation of a video signal with an impairment signal to increase the video signal masked threshold |
EP1897087A4 (en) * | 2005-06-08 | 2009-11-18 | Dean K Goodhill | Method and apparatus for inhibiting the piracy of motion pictures |
CN101622867B (en) * | 2007-03-06 | 2013-03-06 | 汤姆森许可贸易公司 | Digital cinema anti-camcording method and apparatus based on image frame post-sampling |
JP5373662B2 (en) * | 2010-02-26 | 2013-12-18 | 大学共同利用機関法人情報・システム研究機構 | Video display device |
KR101905621B1 (en) * | 2012-02-16 | 2018-10-11 | 삼성전자 주식회사 | Apparatus and method for transmitting a frame image of camera using a hybrid interleaved data |
US9251760B2 (en) * | 2013-07-02 | 2016-02-02 | Cisco Technology, Inc. | Copy protection from capture devices for photos and videos |
-
2015
- 2015-09-15 WO PCT/CN2015/089625 patent/WO2017045126A1/en active Application Filing
- 2015-09-15 CN CN201580058789.9A patent/CN107148775B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1414250A2 (en) * | 2002-10-23 | 2004-04-28 | Sony Corporation | Image display apparatus and image display method |
CN1882086A (en) * | 2005-05-31 | 2006-12-20 | 株式会社东芝 | Decoder |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113592747A (en) * | 2021-09-28 | 2021-11-02 | 杭州海康威视数字技术股份有限公司 | Image shielding and anti-shooting method, device and equipment based on visual characteristics |
CN113592747B (en) * | 2021-09-28 | 2022-01-25 | 杭州海康威视数字技术股份有限公司 | Image shielding and anti-shooting method, device and equipment based on visual characteristics |
Also Published As
Publication number | Publication date |
---|---|
WO2017045126A1 (en) | 2017-03-23 |
CN107148775A (en) | 2017-09-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109064390B (en) | Image processing method, image processing device and mobile terminal | |
WO2018058813A1 (en) | Electronic device and display method | |
CN109118430B (en) | Super-resolution image reconstruction method and device, electronic equipment and storage medium | |
CN107992187B (en) | Display method and system thereof | |
CN110688081B (en) | Method for displaying data on screen and display control device | |
CN111147770B (en) | Multi-channel video window superposition display method, electronic equipment and storage medium | |
CN105574866A (en) | Image processing method and apparatus | |
US11410342B2 (en) | Method for adding special effect to video, electronic device and storage medium | |
CN104331524B (en) | Page display method, device and terminal | |
WO2016095429A1 (en) | Screenshot method and device for mobile terminal | |
WO2016110188A1 (en) | Method and electronic device for aesthetic enhancements of face in real-time video | |
CN108600644B (en) | A photographing method, device and wearable device | |
US8749704B2 (en) | Video terminal and method for forming display images | |
CN107148775B (en) | Image processing method, apparatus, electronic device and readable storage medium | |
EP3588943A1 (en) | Image display device, image display method, and program | |
CN112382240A (en) | Backlight control method and device, electronic equipment and readable storage medium | |
CN109242761B (en) | Picture display method and device | |
US11758259B2 (en) | Electronic apparatus and controlling method thereof | |
CN111444909B (en) | Image data acquisition method, terminal equipment and medium | |
CN104732496B (en) | A kind of video streaming image defogging processing method and display device | |
KR102108246B1 (en) | Method and apparatus for providing video in potable device | |
US20170140557A1 (en) | Image processing method and device, and computer storage medium | |
CN112363787A (en) | Image processing method and device and electronic equipment | |
JP2016053623A (en) | Screen anti-peeping device, screen anti-peeping method, and screen anti-peeping program | |
CN114943657B (en) | Image processing method, device, electronic device, 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |