CN114489549A - Screen projection image processing method and device, electronic equipment and storage medium - Google Patents
Screen projection image processing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114489549A CN114489549A CN202210113739.8A CN202210113739A CN114489549A CN 114489549 A CN114489549 A CN 114489549A CN 202210113739 A CN202210113739 A CN 202210113739A CN 114489549 A CN114489549 A CN 114489549A
- Authority
- CN
- China
- Prior art keywords
- screen projection
- area
- projection image
- message notification
- screen
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1407—General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
- G06F21/6245—Protecting personal data, e.g. for financial or medical purposes
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- Medical Informatics (AREA)
- Human Computer Interaction (AREA)
- Databases & Information Systems (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Transforming Electric Information Into Light Information (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
本申请公开了一种投屏图像处理方法、装置、电子设备及存储介质,所述投屏图像处理方法包括:获取至少一张初始投屏图像帧;对各所述初始投屏图像帧中的消息通知区域进行识别;若在各所述初始投屏图像帧中识别到至少一个所述消息通知区域,则对各所述消息通知区域进行隐藏处理,得到至少一个目标投屏图像帧。本申请解决了现有技术在投屏过程中隐私泄露的技术问题。
The present application discloses a screen projection image processing method, device, electronic device and storage medium. The screen projection image processing method includes: acquiring at least one initial screen projection image frame; The message notification area is identified; if at least one of the message notification areas is identified in each of the initial screen projection image frames, each of the message notification areas is hidden to obtain at least one target screen projection image frame. The present application solves the technical problem of privacy leakage during screen projection in the prior art.
Description
技术领域technical field
本申请涉及投屏技术领域,尤其涉及一种投屏图像处理方法、装置、电子设备及存储介质。The present application relates to the technical field of screen projection, and in particular, to a method, device, electronic device and storage medium for processing a screen projection image.
背景技术Background technique
随着科技的发展和人们生活水平的提高,通过电视大屏、投影仪等显示设备,显示手机、平板电脑、计算机等移动设备的屏幕的功能已经日益普及,用户常常将移动设备的图片、音乐、视频等推送到显示设备上进行播放,然而,将移动设备的屏幕进行同屏投送时,移动设备上接收到的通知类消息,也会同步投送到显示设备上,而显示设备往往是公共属性的屏幕,若通知类消息中存在隐私信息,则会造成隐私泄露。With the development of science and technology and the improvement of people's living standards, the function of displaying the screen of mobile devices such as mobile phones, tablet computers, computers and other mobile devices has become increasingly popular through display devices such as large TV screens and projectors. , video, etc. are pushed to the display device for playback. However, when the screen of the mobile device is sent to the same screen, the notification messages received on the mobile device will also be sent to the display device synchronously, and the display device is often On the screen of public properties, if there is private information in the notification message, it will cause privacy leakage.
发明内容SUMMARY OF THE INVENTION
本申请的主要目的在于提供一种投屏图像处理方法、装置、电子设备及存储介质,旨在解决现有技术在投屏过程中隐私泄露的技术问题。The main purpose of this application is to provide a screen projection image processing method, device, electronic device and storage medium, which aims to solve the technical problem of privacy leakage in the screen projection process in the prior art.
为实现上述目的,本申请提供一种投屏图像处理方法,所述投屏图像处理方法包括:In order to achieve the above purpose, the present application provides a projection image processing method, the projection image processing method includes:
获取至少一张初始投屏图像帧;Obtain at least one initial projected screen image frame;
对各所述初始投屏图像帧中的消息通知区域进行识别;Identifying the message notification area in each of the initial screen projection image frames;
若在各所述初始投屏图像帧中识别到至少一个所述消息通知区域,则对各所述消息通知区域进行隐藏处理,得到至少一个目标投屏图像帧。If at least one of the message notification areas is identified in each of the initial screen projection image frames, each of the message notification areas is hidden to obtain at least one target screen projection image frame.
可选地,所述对各所述初始投屏图像帧中的消息通知区域进行识别的步骤包括:Optionally, the step of identifying the message notification area in each of the initial screen projection image frames includes:
从各所述初始投屏图像帧的预设区域范围截取区域图像;intercepting a regional image from a preset region range of each of the initial screen projection image frames;
将各所述区域图像与预设标准区域图像进行比对,识别出各所述区域图像中存在块状差异的消息通知区域。Each of the area images is compared with the preset standard area images, and a message notification area with block-like differences in each of the area images is identified.
可选地,所述将各所述区域图像与预设标准区域图像进行比对,对各所述区域图像中存在块状差异的消息通知区域进行识别的步骤之前,还包括:Optionally, before the step of comparing each of the area images with a preset standard area image, and identifying the message notification areas with block differences in each of the area images, the method further includes:
根据帧序列依次检测帧序列相邻的两个区域图像之间的块状差异区域;According to the frame sequence, sequentially detect the block difference area between the two adjacent area images of the frame sequence;
当检测到帧序列相邻的两个区域图像之间存在块状差异区域时,根据所述块状差异区域的像素值判断所述块状差异是否存在边缘线;When it is detected that there is a blocky difference area between two adjacent area images of the frame sequence, determine whether the blocky difference has an edge line according to the pixel value of the blocky difference area;
将不存在所述边缘线的块状差异区域对应的区域图像作为预设标准区域图像。The area image corresponding to the block-shaped difference area without the edge line is used as the preset standard area image.
可选地,所述对各所述初始投屏图像帧中的消息通知区域进行识别的步骤之后,还包括:Optionally, after the step of identifying the message notification area in each of the initial screen projection image frames, the step further includes:
若在各所述初始投屏图像帧中未识别到消息通知区域,则将各所述初始投屏图像帧作为目标投屏图像帧。If the message notification area is not identified in each of the initial screen projection image frames, each of the initial screen projection image frames is used as a target screen projection image frame.
可选地,所述对各所述消息通知区域进行隐藏处理,得到至少一个目标投屏图像帧的步骤包括:Optionally, the step of performing concealment processing on each of the message notification areas to obtain at least one target screen projection image frame includes:
获取各所述消息通知区域的至少一个初始像素值;acquiring at least one initial pixel value of each of the message notification areas;
根据预设变形算法将各所述初始像素值转换成模糊像素值,得到至少一个目标投屏图像帧。Each of the initial pixel values is converted into a blurred pixel value according to a preset deformation algorithm to obtain at least one target screen projection image frame.
可选地,所述对各所述消息通知区域进行隐藏处理,得到至少一个目标投屏图像帧的步骤包括:Optionally, the step of performing concealment processing on each of the message notification areas to obtain at least one target screen projection image frame includes:
将各所述消息通知区域替换成预设的消息通知标准图像,得到至少一个目标投屏图像帧。Each of the message notification areas is replaced with a preset message notification standard image to obtain at least one target screen projection image frame.
可选地,所述获取至少一张初始投屏图像帧的步骤之前,还包括:Optionally, before the step of acquiring at least one initial screen projection image frame, the method further includes:
获取当前的投屏显示模式;Get the current screen projection display mode;
若当前的投屏显示模式为隐私保护模式,则生成隐私保护模式已开启的提示信息。If the current screen projection display mode is the privacy protection mode, a prompt message that the privacy protection mode is turned on is generated.
本申请还提供一种投屏图像处理装置,所述投屏图像处理装置应用于投屏图像处理设备,所述投屏图像处理装置包括:The present application further provides a screen projection image processing device, the screen projection image processing device is applied to a screen projection image processing device, and the screen projection image processing device includes:
获取模块,用于获取至少一张初始投屏图像帧;an acquisition module, used to acquire at least one initial screen projection image frame;
识别模块,用于对各所述初始投屏图像帧中的消息通知区域进行识别;an identification module, configured to identify the message notification area in each of the initial screen projection image frames;
隐藏处理模块,用于若在各所述初始投屏图像帧中识别到至少一个所述消息通知区域,则对各所述消息通知区域进行隐藏处理,得到至少一个目标投屏图像帧。A concealment processing module, configured to perform concealment processing on each of the message notification areas if at least one of the message notification areas is identified in each of the initial screen projection image frames to obtain at least one target screen projection image frame.
本申请还提供一种电子设备,所述电子设备为实体设备,所述电子设备包括:存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的所述投屏图像处理方法的程序,所述投屏图像处理方法的程序被处理器执行时可实现如上述的投屏图像处理方法的步骤。The present application also provides an electronic device, the electronic device is a physical device, and the electronic device includes: a memory, a processor, and the screen projection image processing that is stored in the memory and can run on the processor The program of the method, when the program of the projected screen image processing method is executed by the processor, can realize the steps of the above-mentioned projected screen image processing method.
本申请还提供一种存储介质,所述存储介质为计算机可读存储介质,所述计算机可读存储介质上存储有实现投屏图像处理方法的程序,所述投屏图像处理方法的程序被处理器执行时实现如上述的投屏图像处理方法的步骤。The present application also provides a storage medium, the storage medium is a computer-readable storage medium, and the computer-readable storage medium stores a program for implementing the screen projection image processing method, and the program of the screen projection image processing method is processed The steps of the above-mentioned projection image processing method are realized when the device is executed.
本申请还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述的投屏图像处理方法的步骤。The present application also provides a computer program product, including a computer program, when the computer program is executed by a processor, the steps of the above-mentioned method for processing a projected screen image are implemented.
本申请提供了一种投屏图像处理方法、装置、电子设备及存储介质,通过获取至少一张初始投屏图像帧,实现了待投屏的初始投屏图像帧的获取,进而通过对各所述初始投屏图像帧中的消息通知区域进行识别,实现了对待投屏的初始投屏图像帧中出现的可能存在隐私信息的消息通知区域的确定,进而通过若在各所述初始投屏图像帧中识别到至少一个所述消息通知区域,则对各所述消息通知区域进行隐藏处理,得到至少一个目标投屏图像帧,实现了对各所述初始投屏图像帧中的消息通知区域的隐藏处理,即隐藏了各所述初始投屏图像帧中的可能存在的隐私信息的消息通知信息,得到隐藏了消息通知信息的目标投屏图像帧,有效提高了对投屏图像帧中个人隐私的保护,克服了现有技术在投屏过程中隐私泄露的技术问题。The present application provides a screen projection image processing method, device, electronic device and storage medium. By acquiring at least one initial screen projection image frame, the acquisition of the initial screen projection image frame to be projected is realized. The message notification area in the initial screen projection image frame is identified, which realizes the determination of the message notification area that may contain privacy information that appears in the initial screen projection image frame to be projected. If at least one of the message notification areas is identified in the frame, each of the message notification areas is hidden to obtain at least one target screen projection image frame, which realizes the transmission of the message notification area in each of the initial screen projection image frames. Hiding processing, that is, hiding the message notification information of the possible privacy information in each of the initial screen projection image frames, and obtaining the target screen projection image frame with the message notification information hidden, which effectively improves the personal privacy in the screen projection image frame. The protection of the existing technology overcomes the technical problem of privacy leakage during the screen projection process in the prior art.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. In other words, on the premise of no creative labor, other drawings can also be obtained from these drawings.
图1为本申请投屏图像处理方法一实施例的投屏连接场景示意图;FIG. 1 is a schematic diagram of a screen projection connection scenario according to an embodiment of a screen projection image processing method of the present application;
图2为本申请实施例中投屏图像处理方法涉及的硬件运行环境的电子设备结构示意图;FIG. 2 is a schematic structural diagram of an electronic device of a hardware operating environment involved in a method for processing a projected screen image according to an embodiment of the present application;
图3为本申请投屏图像处理方法一实施例的流程示意图;FIG. 3 is a schematic flowchart of an embodiment of a method for processing a projected screen image of the present application;
图4为本申请投屏通话方法一种可实施方式的场景示意图;FIG. 4 is a schematic diagram of a scenario that can be implemented in a method for screen-casting a call according to the present application;
图5为本申请投屏图像处理方法另一实施例的流程示意图;FIG. 5 is a schematic flowchart of another embodiment of a method for processing a projected screen image of the present application;
图6为本申请实施例中投屏图像处理方法涉及的装置结构示意图。FIG. 6 is a schematic structural diagram of a device involved in a method for processing a projected screen image according to an embodiment of the present application.
本申请目的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional features and advantages of the present application will be further described with reference to the accompanying drawings in conjunction with the embodiments.
具体实施方式Detailed ways
为使本发明的上述目的、特征和优点能够更加明显易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其它实施例,均属于本发明保护的范围。In order to make the above objects, features and advantages of the present invention more obvious and easy to understand, 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 only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present invention.
参照图1,图1为本发明实施例方案涉及的投屏连接示意图。Referring to FIG. 1 , FIG. 1 is a schematic diagram of a screen projection connection involved in an embodiment of the present invention.
如图1所示,投屏器包括:投屏器发射器和/或投屏器接收器,其中,第一电子设备可以是个人电脑,也可以是智能手机、平板电脑、电子书阅读器、便携计算机等可移动式终端设备,第二电子设备可以是电视,也可以是显示器,投影仪等具有显示功能的显示设备。As shown in FIG. 1 , the screen projector includes: a screen projector transmitter and/or a screen projector receiver, wherein the first electronic device may be a personal computer, or may be a smart phone, a tablet computer, an e-book reader, For portable terminal devices such as portable computers, the second electronic device may be a television, or may be a display device with a display function, such as a monitor and a projector.
在一些实施例中,第一电子设备通过有线或无线网络连接投屏器发射器和/或投屏器接收器进行数据传输与交互;投屏器发射器通过无线网络连接投屏器接收器进行数据传输与交互,或者投屏器发射器通过无线网络连接第二电子设备进行数据传输与交互;投屏器接收器通过有线或无线网络连接第二电子设备进行数据传输与交互。在一可选实现方式中,投屏器接收器与第二电子设备之间以及投屏器发射器与第一电子设备之间的有线连接方式,可以包括基于HDMI(High Definition Multimedia Interface,高清多媒体接口)、USB(Universal Serial Bus,通用串行总线)、DP(DisplayPort,显示接口)和VGA(VideoGraphics Array,视频图形阵列)等有线连接。第一电子设备与投屏器发射器和投屏器接收器之间、第二电子设备与投屏器发射器和投屏器接收器之间的无线通信方式,可以包括蓝牙(Bluetooth)、无线宽带(Wi-Fi)、红外通讯等无线通信。In some embodiments, the first electronic device connects the screen projector transmitter and/or the screen projector receiver through a wired or wireless network for data transmission and interaction; the screen projector transmitter is connected to the screen projector receiver through a wireless network for data transmission and interaction; Data transmission and interaction, or the screen projector transmitter connects to the second electronic device through a wireless network for data transmission and interaction; the screen projector receiver connects to the second electronic device through a wired or wireless network for data transmission and interaction. In an optional implementation manner, the wired connection between the screen projector receiver and the second electronic device and between the screen projector transmitter and the first electronic device may include a high definition multimedia interface based on HDMI (High Definition Multimedia Interface). Interface), USB (Universal Serial Bus, Universal Serial Bus), DP (DisplayPort, Display Interface) and VGA (VideoGraphics Array, Video Graphics Array) and other wired connections. The wireless communication methods between the first electronic device and the screen projector transmitter and screen projector receiver, and between the second electronic device and the screen projector transmitter and screen projector receiver may include Bluetooth, wireless Wireless communication such as broadband (Wi-Fi) and infrared communication.
所以,第一电子设备、投屏器发射器、投屏器接收器和第二电子设备之间实现投屏时可能的连接方式至少包括:Therefore, the possible connection modes for realizing screen projection among the first electronic device, the screen projector transmitter, the screen projector receiver and the second electronic device at least include:
(1)投屏器发射器与投屏器接收器连接,第一电子设备画面经过投屏器发射器、投屏器接收器最终投屏到第二电子设备;(1) The screen projector transmitter is connected to the screen projector receiver, and the screen of the first electronic device is finally projected to the second electronic device through the screen projector transmitter and the screen projector receiver;
(2)投屏器发射器与第二电子设备无线连接,第一电子设备画面经过投屏器发射器投屏到第二电子设备,此时投屏器发射器与第二电子设备内置的无线通信模块通过无线网络相连;(2) The screen projector transmitter is wirelessly connected to the second electronic device, and the screen of the first electronic device is projected to the second electronic device through the screen projector transmitter. At this time, the screen projector transmitter and the built-in wireless device of the second electronic device The communication module is connected through a wireless network;
(3)第一电子设备与投屏器接收器连接,第一电子设备画面经过投屏器接收器投屏到第二电子设备。(3) The first electronic device is connected to the screen projector receiver, and the screen of the first electronic device is projected to the second electronic device through the screen projector receiver.
参照图2,图2为本申请实施例中投屏图像处理方法涉及的硬件运行环境的电子设备结构示意图。本公开实施例中的电子设备可以包括但不限于诸如电视机、投屏器、投屏器接收器、投屏器发射器、移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)、数字TV、台式计算机等等的固定终端。Referring to FIG. 2 , FIG. 2 is a schematic structural diagram of an electronic device of a hardware operating environment involved in a method for processing a projected screen image according to an embodiment of the present application. Electronic devices in the embodiments of the present disclosure may include, but are not limited to, such as televisions, screen projectors, screen projector receivers, screen projector transmitters, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants) , PAD (tablet computer), PMP (portable multimedia player), vehicle terminal (such as vehicle navigation terminal), digital TV, desktop computer and so on.
如图2所示,所述电子设备还包括:处理器1001,例如中央处理器(CentralProcessing Unit,CPU),通信总线1002,网络接口1003,存储器1004。其中,通信总线1002用于实现这些组件之间的连接通信。网络接口1003可选的可以包括标准的有线接口、无线接口(如无线保真(Wireless-Fidelity,WI-FI)接口)。存储器1004可以是高速的随机存取存储器(Random Access Memory,RAM)存储器,也可以是稳定的非易失性存储器(Non-Volatile Memory,NVM),例如磁盘存储器。存储器1004可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 2 , the electronic device further includes: a
可选地,终端还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等等。其中,传感器比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏的亮度,接近传感器可在移动终端移动到耳边时,关闭显示屏和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;当然,移动终端还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。Optionally, the terminal may further include a camera, an RF (Radio Frequency, radio frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Among them, sensors such as light sensors, motion sensors and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may turn off the display screen and/or turn off the display screen when the mobile terminal is moved to the ear. Backlight. As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that recognize the posture of mobile terminals (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. No longer.
本领域技术人员可以理解,图2中示出的结构并不构成对运行设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 2 does not constitute a limitation on the operating equipment, and may include more or less components than the one shown, or combine some components, or arrange different components.
如图2所示,作为一种存储介质的存储器1004中可以包括操作系统、数据存储模块、网络通信模块以及投屏图像处理程序。As shown in FIG. 2 , the
在图2所示的运行设备中,网络接口1003主要用于与其他设备进行数据通信。本发明运行设备中的处理器1001、存储器1004可以设置在运行设备中,所述运行设备通过处理器1001调用存储器1004中存储的投屏图像处理程序,并执行以下操作:In the operating device shown in FIG. 2, the
获取至少一张初始投屏图像帧;Obtain at least one initial projected screen image frame;
对各所述初始投屏图像帧中的消息通知区域进行识别;Identifying the message notification area in each of the initial screen projection image frames;
若在各所述初始投屏图像帧中识别到至少一个所述消息通知区域,则对各所述消息通知区域进行隐藏处理,得到至少一个目标投屏图像帧。If at least one of the message notification areas is identified in each of the initial screen projection image frames, each of the message notification areas is hidden to obtain at least one target screen projection image frame.
进一步地,处理器1001可以调用存储器1004中存储的投屏图像处理程序,还执行以下操作:Further, the
从各所述初始投屏图像帧的预设区域范围截取区域图像;intercepting a regional image from a preset region range of each of the initial screen projection image frames;
将各所述区域图像与预设标准区域图像进行比对,识别出各所述区域图像中存在块状差异的消息通知区域。Each of the area images is compared with the preset standard area images, and a message notification area with block-like differences in each of the area images is identified.
进一步地,处理器1001可以调用存储器1004中存储的投屏图像处理程序,还执行以下操作:Further, the
根据帧序列依次检测帧序列相邻的两个区域图像之间的块状差异区域;According to the frame sequence, sequentially detect the block difference area between the two adjacent area images of the frame sequence;
当检测到帧序列相邻的两个区域图像之间存在块状差异区域时,根据所述块状差异区域的像素值判断所述块状差异是否存在边缘线;When it is detected that there is a blocky difference area between two adjacent area images of the frame sequence, determine whether the blocky difference has an edge line according to the pixel value of the blocky difference area;
将不存在所述边缘线的块状差异区域对应的区域图像作为预设标准区域图像。The area image corresponding to the block-shaped difference area without the edge line is used as the preset standard area image.
进一步地,处理器1001可以调用存储器1004中存储的投屏图像处理程序,还执行以下操作:Further, the
若在各所述初始投屏图像帧中未识别到消息通知区域,则将各所述初始投屏图像帧作为目标投屏图像帧。If the message notification area is not identified in each of the initial screen projection image frames, each of the initial screen projection image frames is used as a target screen projection image frame.
进一步地,处理器1001可以调用存储器1004中存储的投屏图像处理程序,还执行以下操作:Further, the
获取各所述消息通知区域的至少一个初始像素值;acquiring at least one initial pixel value of each of the message notification areas;
根据预设变形算法将各所述初始像素值转换成模糊像素值,得到至少一个目标投屏图像帧。Each of the initial pixel values is converted into a blurred pixel value according to a preset deformation algorithm to obtain at least one target screen projection image frame.
进一步地,处理器1001可以调用存储器1004中存储的投屏图像处理程序,还执行以下操作:Further, the
将各所述消息通知区域替换成预设的消息通知标准图像,得到至少一个目标投屏图像帧。Each of the message notification areas is replaced with a preset message notification standard image to obtain at least one target screen projection image frame.
进一步地,处理器1001可以调用存储器1004中存储的投屏图像处理程序,还执行以下操作:Further, the
获取当前的投屏显示模式;Get the current screen projection display mode;
若当前的投屏显示模式为隐私保护模式,则生成隐私保护模式已开启的提示信息。If the current screen projection display mode is the privacy protection mode, a prompt message that the privacy protection mode is turned on is generated.
本申请实施例提供一种投屏图像处理方法,在本申请投屏图像处理方法的第一实施例中,参照图3,所述投屏图像处理方法包括:An embodiment of the present application provides a projection image processing method. In the first embodiment of the projection image processing method of the present application, referring to FIG. 3 , the projection image processing method includes:
步骤S10,获取至少一张初始投屏图像帧;Step S10, obtaining at least one initial screen projection image frame;
在本实施例中,需要说明的是,所述投屏是将投屏推送端的显示画面投送到投屏接收端进行显示的过程,在投屏过程中,投屏推送端将投屏图像帧发送到投屏接收端进行显示,在投屏推送端生成投屏图像帧之后,投屏接收端进行投屏图像帧的显示之前,投屏推送端或投屏接收端均可对投屏图像帧中的消息通知区域进行隐藏处理,即可隐藏投屏图像帧中可能带有隐私信息的消息通知信息,使得所述投屏接收端最终显示的是隐藏处理后的投屏图像帧,进而实现了对投屏图像中隐私信息的有效保护。In this embodiment, it should be noted that the screen projection is a process of sending the display screen of the screen projection pusher to the screen projection receiver for display. During the screen projection process, the screen projection pusher sends the projection image frame It is sent to the screen-casting receiver for display. After the screen-casting pusher generates the screen-casting image frame, before the screen-casting receiver displays the screen-casting image frame, either the screen-casting pusher or the screen-casting receiver can display the screen-casting image frame. The message notification area in the screen projection image frame can be hidden, and the message notification information that may have private information in the screen projection image frame can be hidden, so that the screen projection receiving end finally displays the screen projection image frame after the hidden processing, thereby realizing Effective protection of private information in projected images.
本实施例的执行主体可以为投屏推送端或投屏接收端,其中,所述投屏接收端是接收投屏的设备,例如电视机、计算机或投影仪等,在一种可实施的方式中,所述投屏接收端也可以是与显示器和/或扬声器连接的信号接收器,所述信号接收器与显示器和/或扬声器之间可以通过有线或无线连接,在接收到投屏的音频信号和图像信号之后,通过与信号接收器连接的显示器和/或扬声器,输出接收到投屏的音频信号和图像信号;所述投屏推送端是推送投屏的移动设备,例如手机、计算机或平板电脑等,所述投屏推送端可以通过传统的通信网络或互联网与其他移动设备进行通信,所述投屏推送端与所述投屏接收端之间可以通过有线或无线连接,在一种可实施的方式中,所述投屏推送端也可以是与移动设备连接的信号发射器,所述信号发射器与移动设备之间可以通过有线或无线连接,移动设备通过信号发射器将所需投屏的音频信号和图像信号发送到投屏接收端。The execution body of this embodiment may be a screen projection push terminal or a screen projection receiver, wherein the screen projection receiver is a device that receives a screen projection, such as a TV, a computer, or a projector, etc. In an implementable manner , the screen projection receiver can also be a signal receiver connected to a display and/or a speaker, and the signal receiver and the display and/or speaker can be wired or wireless After the signal and the image signal, the audio signal and image signal received by the screen projection are output through the display and/or speaker connected to the signal receiver; the screen projection push terminal is a mobile device that pushes the projection screen, such as a mobile phone, Tablet computer, etc., the screen projection push terminal can communicate with other mobile devices through a traditional communication network or the Internet, and the screen projection push terminal and the screen projection receiver can be connected through wired or wireless connections. In an implementable manner, the screen-casting push terminal may also be a signal transmitter connected to the mobile device, and the signal transmitter and the mobile device may be connected by wire or wirelessly, and the mobile device transmits the required information through the signal transmitter. The projected audio signal and image signal are sent to the projected screen receiver.
具体地,在投屏推送端生成初始投屏图像帧之后,获取至少一张所述初始投屏图像帧,其中,所述初始投屏图像帧是投屏推送端生成的待投屏的图像帧,获取初始投屏图像帧的方式可以为获取预设时间段对应的全部初始投屏图像帧,也可以为获取预设图像帧数量的初始投屏图像帧,预设时间段和预设图像帧数量均可以根据实际情况进行设定,例如,从待处理的第一帧初始投屏图像帧开始,依次获取T毫秒内的全部初始投屏图像帧,或者,从待处理的第一帧初始投屏图像帧开始,依次获取C张初始投屏图像帧等。Specifically, after the screen projection push terminal generates an initial screen projection image frame, at least one of the initial screen projection image frames is acquired, wherein the initial screen projection image frame is an image frame to be projected generated by the screen projection push terminal , the method of obtaining the initial screen projection image frames may be to obtain all the initial screen projection image frames corresponding to the preset time period, or to obtain the initial screen projection image frames of the preset number of image frames, the preset time period and the preset image frames. The number can be set according to the actual situation. For example, starting from the initial projection image frame of the first frame to be processed, all initial projection image frames within T milliseconds are obtained in sequence, or, starting from the initial projection image frame of the first frame to be processed. The screen image frame starts, and C initial screen projection image frames are obtained in sequence.
可选地,所述获取至少一张初始投屏图像帧的步骤之前,还包括:Optionally, before the step of acquiring at least one initial screen projection image frame, the method further includes:
步骤A10,获取当前的投屏显示模式;Step A10, obtaining the current screen projection display mode;
步骤A20,若当前的投屏显示模式为隐私保护模式,则生成隐私保护模式已开启的提示信息。Step A20, if the current screen projection display mode is the privacy protection mode, generate a prompt message that the privacy protection mode has been turned on.
在本实施例中,具体地,获取所述投屏连接当前设置的投屏显示模式,判断当前设置的投屏显示模式是否为隐私保护模式,若当前的投屏显示模式为隐私保护模式,则生成隐私保护模式已开启的提示信息,通过所述投屏接收端对应的显示设备输出所述提示信息,其中,所述投屏显示模式是投屏过程中根据不同情景而确定的进行投屏显示或不进行投屏显示的显示模式,包括隐私保护模式、无限畅投模式、会议模式和/或游戏模式等,可以根据大数据或测试数据等进行预先设置,也可以引导用户根据自身需求进行设置和更改,所述获取当前的投屏显示模式的步骤的触发时机可以是所述投屏推送端与所述投屏接收端建立投屏连接时,或者投屏显示模式发生变更时等。In this embodiment, specifically, the screen projection display mode currently set by the screen projection connection is obtained, and it is determined whether the currently set screen projection display mode is the privacy protection mode. If the current screen projection display mode is the privacy protection mode, then Generating prompt information that the privacy protection mode has been turned on, and outputting the prompt information through the display device corresponding to the screen projection receiver, wherein the screen projection display mode is determined according to different scenarios in the screen projection process to perform screen projection display Display modes without screen projection, including privacy protection mode, unlimited casting mode, conference mode and/or game mode, etc., can be pre-set according to big data or test data, etc., or can guide users to set according to their own needs and modification, the trigger timing of the step of acquiring the current screen projection display mode may be when the screen projection push terminal and the screen projection receiver establish a screen projection connection, or when the screen projection display mode is changed, or the like.
步骤S20,对各所述初始投屏图像帧中的消息通知区域进行识别;Step S20, identifying the message notification area in each of the initial screen projection image frames;
在本实施例中,具体地,获取各所述初始投屏图像帧对应的图像像素信息,根据各所述图像像素信息对各所述初始投屏图像帧中的消息通知区域进行识别,其中,根据各所述图像像素信息对各所述初始投屏图像帧中的消息通知区域进行识别的方式包括,通过图像识别技术对各所述初始投屏图像帧中的消息通知区域进行识别,或者,通过将各所述初始投屏图像与预设标准投屏图像进行比对,对二者之间的块状差异图像进行识别,将二者之间的块状差异图像对应的区域作为消息通知区域,其中,所述预设标准投屏图像可以为各所述初始投屏图像中的一张,也可以预先根据实际情况进行设定,所述块状差异图像是指面积超过预设面积且具有规则边框的整块图像,所述预设面积可以根据实际屏幕大小或实际测试结果等进行确定,所述规则边框的判定可以通过判断是否有相同或相近的像素值相互连接形成闭环进行确定,进一步地,还可以将形成闭环的像素值组构成的图形与预置的图形库中的图形进行相似度匹配,将图形相似度高于预设相似度的像素值组对应的整块图像确定为块状差异图像。In this embodiment, specifically, image pixel information corresponding to each of the initial screen projection image frames is acquired, and the message notification area in each of the initial screen projection image frames is identified according to each of the image pixel information, wherein, The manner of identifying the message notification area in each of the initial screen projection image frames according to each of the image pixel information includes identifying the message notification area in each of the initial screen projection image frames through image recognition technology, or, By comparing each of the initial screen projection images with the preset standard screen projection images, the block-shaped difference images between the two are identified, and the area corresponding to the block-shaped difference images between the two is used as the message notification area , wherein the preset standard screen projection image may be one of the initial screen projection images, or may be set in advance according to the actual situation, and the block-shaped difference image refers to an area exceeding the preset area and having For the entire image of the regular frame, the preset area can be determined according to the actual screen size or actual test results, etc. The determination of the regular frame can be determined by judging whether the same or similar pixel values are connected to each other to form a closed loop, and further It is also possible to perform similarity matching between the graphics formed by the closed-loop pixel value groups and the graphics in the preset graphics library, and determine the entire image corresponding to the pixel value group whose graphics similarity is higher than the preset similarity as a block. shape difference image.
步骤S30,若在各所述初始投屏图像帧中识别到至少一个所述消息通知区域,则对各所述消息通知区域进行隐藏处理,得到至少一个目标投屏图像帧。Step S30, if at least one of the message notification areas is identified in each of the initial screen projection image frames, hide each of the message notification areas to obtain at least one target screen projection image frame.
在本实施例中,具体地,若在各所述初始投屏图像帧中识别到至少一个所述消息通知区域,则对各所述初始投屏图像帧中对应的各所述消息通知区域的部分进行隐藏处理,得到至少一个目标投屏图像帧,通过显示设备输出所述目标投屏图像帧,其中,所述隐藏处理是对各所述消息通知区域中的信息进行隐藏的操作,包括模糊处理、图像替换等,所述目标投屏图像帧为投屏接收端对应的显示设备进行输出显示的投屏图像。In this embodiment, specifically, if at least one of the message notification areas is identified in each of the initial screen projection image frames, the message notification area corresponding to each of the initial screen projection image frames is Partially performing hiding processing to obtain at least one target screen projection image frame, and outputting the target screen projection image frame through a display device, wherein the hiding processing is an operation of hiding information in each of the message notification areas, including blurring processing, image replacement, etc., the target screen projection image frame is the screen projection image output and displayed by the display device corresponding to the screen projection receiving end.
可选地,所述对各所述初始投屏图像帧中的消息通知区域进行识别的步骤之后,还包括:Optionally, after the step of identifying the message notification area in each of the initial screen projection image frames, the step further includes:
若在各所述初始投屏图像帧中未识别到消息通知区域,则将各所述初始投屏图像帧作为目标投屏图像帧。If the message notification area is not identified in each of the initial screen projection image frames, each of the initial screen projection image frames is used as a target screen projection image frame.
在本实施例中,具体地,若在各所述初始投屏图像帧中未识别到消息通知区域,则说明在各所述初始投屏图像帧对应的时间范围内未接收到消息通知,不会出现消息通知中的隐私信息泄露的问题,因此直接将各所述初始投屏图像帧作为目标投屏图像帧,通过显示设备输出所述目标投屏图像帧。In this embodiment, specifically, if the message notification area is not identified in each of the initial screen projection image frames, it means that no message notification has been received within the time range corresponding to each of the initial screen projection image frames, and no message notification is received. There will be a problem of leakage of private information in the message notification. Therefore, each initial screen projection image frame is directly used as a target screen projection image frame, and the target screen projection image frame is output through a display device.
可选地,所述对各所述消息通知区域进行隐藏处理,得到至少一个目标投屏图像帧的步骤包括:Optionally, the step of performing concealment processing on each of the message notification areas to obtain at least one target screen projection image frame includes:
步骤B10,获取各所述消息通知区域的至少一个初始像素值;Step B10, acquiring at least one initial pixel value of each of the message notification areas;
在本实施例中,具体地,获取各所述消息通知区域的部分或全部初始像素值,例如,识别出各所述消息通知区域中的文字区域,仅获取所述文字区域的初始像素值。In this embodiment, specifically, part or all of the initial pixel values of each of the message notification areas are acquired, for example, the text areas in each of the message notification areas are identified, and only the initial pixel values of the text areas are acquired.
步骤B20,根据预设变形算法将各所述初始像素值转换成模糊像素值,得到至少一个目标投屏图像帧。Step B20: Convert each of the initial pixel values into blurred pixel values according to a preset deformation algorithm to obtain at least one target screen projection image frame.
在本实施例中,具体地,将各所述初始像素值输入预设变形算法中,转换得到各所述初始像素值对应的模糊像素值,并保持各所述初始投屏图像帧中除所述消息通知区域之外的其他区域的像素值不变,即可得到将消息通知区域隐藏处理后的目标投屏图像帧,其中,所述模糊像素值是通过预设变型算法,对原本语义清楚的消息通知区域的初始像素值进行转换,得到的使得原本语义无法准确表示的像素值,由所述模糊像素值构成的图像与所述初始像素值构成的图像相比是模糊的,例如马赛克处理、高斯模糊等,所述预设变型算法与现有技术中进行马赛克处理、高斯模糊处理等模糊处理的算法类似,此处不做过多赘述。In this embodiment, specifically, each of the initial pixel values is input into a preset deformation algorithm, and the blurred pixel value corresponding to each of the initial pixel values is converted to obtain the blurred pixel value corresponding to each of the initial pixel values. If the pixel values of other areas other than the message notification area remain unchanged, the target projection image frame after the message notification area is hidden can be obtained. The initial pixel value of the message notification area is converted to obtain the pixel value that cannot be accurately represented by the original semantics. The image composed of the blurred pixel value is blurred compared to the image composed of the initial pixel value. For example, mosaic processing , Gaussian blur, etc. The preset variant algorithm is similar to the algorithms for blur processing such as mosaic processing and Gaussian blur processing in the prior art, and details are not described here.
可选地,所述对各所述消息通知区域进行隐藏处理,得到至少一个目标投屏图像帧的步骤包括:Optionally, the step of performing concealment processing on each of the message notification areas to obtain at least one target screen projection image frame includes:
将各所述消息通知区域替换成预设的消息通知标准图像,得到至少一个目标投屏图像帧。Each of the message notification areas is replaced with a preset message notification standard image to obtain at least one target screen projection image frame.
在本实施例中,具体地,将各所述消息通知区域替换成预设的消息通知标准图像,并保持各所述初始投屏图像帧中除所述消息通知区域之外的其他区域不变,得到至少一个目标投屏图像帧,其中,所述消息通知标准图像是提示用户接收到消息通知的标准图像。In this embodiment, specifically, each of the message notification areas is replaced with a preset message notification standard image, and other areas except the message notification area in each of the initial screen projection image frames are kept unchanged. to obtain at least one target screen projection image frame, wherein the message notification standard image is a standard image that prompts the user to receive a message notification.
在一种可实施的方式中,所述将各所述消息通知区域替换成预设的消息通知标准图像的步骤包括:获取各所述消息通知区域的区域规格信息以及消息通知初始图像,根据所述区域规格信息对所述消息通知标准图像进行规格调整,得到消息通知标准图像,将各所述消息通知区域替换成预设的消息通知标准图像,其中,所述规格调整包括裁剪、拉伸、缩放等。In an implementable manner, the step of replacing each of the message notification areas with a preset message notification standard image includes: acquiring area specification information and a message notification initial image of each of the message notification areas, and according to the The area specification information is used to perform specification adjustment on the message notification standard image to obtain a message notification standard image, and replace each message notification area with a preset message notification standard image, wherein the specification adjustment includes cropping, stretching, zoom etc.
在一种可实施的方式中,所述将各所述消息通知区域替换成预设的消息通知标准图像的步骤包括:识别各所述消息通知区域中的文字信息,根据所述文字信息判断所述消息通知区域对应的目标应用信息,根据应用信息与消息通知标准图像的映射关系,确定所述目标应用信息对应的目标消息通知标准图像,将各所述消息通知区域替换成所述目标消息通知标准图像。In an implementable manner, the step of replacing each of the message notification areas with a preset message notification standard image includes: identifying text information in each of the message notification areas, and judging the information according to the text information. the target application information corresponding to the message notification area, determine the target message notification standard image corresponding to the target application information according to the mapping relationship between the application information and the message notification standard image, and replace each of the message notification areas with the target message notification Standard image.
在一种可实施的方式中,参照图4,所述投屏接收端包括电视机400和投屏器接收器300,所述电视机400和所述投屏器接收器300通信连接,所述投屏推送端包括手机100和投屏器发射器200,所述手机100和所述投屏器发射器200通信连接,所述投屏器接收器300与所述投屏器发射器200通信连接,在手机100向电视机400投屏过程中,投屏器发射器200将手机100的屏幕画面和声音同步传输到投屏器接收器300,投屏器接收器300将接收到的手机100的屏幕画面和声音发送至电视机400进行画面显示和声音播放,投屏器发射器200获取手机100生成的至少一张初始投屏图像帧,对各所述初始投屏图像帧中的消息通知区域进行识别,若在各所述初始投屏图像帧中识别到至少一个所述消息通知区域,则对各所述消息通知区域进行隐藏处理,得到至少一个目标投屏图像帧,将所述目标投屏图像帧发送至投屏器接收器300,进而通过投屏器300发送至电视机400显示所述目标投屏图像帧。In an implementable manner, referring to FIG. 4 , the screen projection receiver includes a
在本实施例中,通过获取至少一张初始投屏图像帧,实现了待投屏的初始投屏图像帧的获取,进而通过对各所述初始投屏图像帧中的消息通知区域进行识别,实现了对待投屏的初始投屏图像帧中出现的可能存在隐私信息的消息通知区域的确定,进而通过若在各所述初始投屏图像帧中识别到至少一个所述消息通知区域,则对各所述消息通知区域进行隐藏处理,得到至少一个目标投屏图像帧,实现了对各所述初始投屏图像帧中的消息通知区域的隐藏处理,即隐藏了各所述初始投屏图像帧中的可能存在的隐私信息的消息通知信息,得到隐藏了消息通知信息的目标投屏图像帧,有效提高了对投屏图像帧中个人隐私的保护,克服了现有技术在投屏过程中隐私泄露的技术问题。In this embodiment, by acquiring at least one initial screen projection image frame, the acquisition of the initial screen projection image frame to be projected is realized, and then by identifying the message notification area in each of the initial screen projection image frames, It realizes the determination of a message notification area that may have private information that appears in the initial screen projection image frame to be projected, and then, if at least one of the message notification areas is identified in each of the initial screen projection image frames, then Each of the message notification areas is hidden to obtain at least one target screen projection image frame, which realizes the hidden processing of the message notification area in each of the initial screen projection image frames, that is, hides each of the initial screen projection image frames. The message notification information of the possible privacy information in the screen is obtained, and the target screen projection image frame with the message notification information hidden is obtained, which effectively improves the protection of personal privacy in the screen projection image frame, and overcomes the prior art in the screen projection process. Leaked technical issues.
进一步地,在本申请投屏图像处理方法的另一实施例中,参照图5,所述对各所述初始投屏图像帧中的消息通知区域进行识别的步骤包括:Further, in another embodiment of the screen projection image processing method of the present application, referring to FIG. 5 , the step of identifying the message notification area in each of the initial screen projection image frames includes:
步骤S21,从各所述初始投屏图像帧的预设区域范围截取区域图像;Step S21, intercepting a regional image from a preset region range of each of the initial screen projection image frames;
在本实施例中,具体地,根据预设区域范围对各所述初始投屏图像帧进行切割,得到各所述初始投屏图像帧各自对应的区域图像,其中,所述预设区域范围可以根据实际情况进行设置,例如,消息通知常显示在屏幕顶部,因此可以将图像进行四等分,将最上方的四分之一区域作为预设区域范围,也可以将图像距离顶部预设距离的区域作为预设区域范围等。In this embodiment, specifically, each of the initial screen projection image frames is cut according to a preset area range to obtain a corresponding area image of each of the initial screen projection image frames, wherein the preset area range may be Set according to the actual situation. For example, message notifications are often displayed at the top of the screen, so the image can be divided into four equal parts, and the top quarter area can be used as the preset area range, or the image can be set at a preset distance from the top. area as a preset area range, etc.
步骤S22,将各所述区域图像与预设标准区域图像进行比对,识别出各所述区域图像中存在块状差异的消息通知区域。Step S22, comparing each of the area images with the preset standard area images, and identifying a message notification area with block differences in each of the area images.
在本实施例中,具体地,将各所述区域图像与预设标准区域图像进行比对,判断各所述区域图像与预设标准区域图像相比,是否存在块状差异,将存在块状差异的预设区域范围作为消息通知区域,其中,所述预设标准区域图像可以为各所述区域图像中的一张,也可以预先根据实际情况进行设定,所述块状差异是指面积超过预设面积且具有规则边框的整块差异区域,所述预设面积可以根据实际屏幕大小或实际测试结果等进行确定,所述规则边框的判定可以通过判断是否有相同或相近的像素值相互连接形成闭环进行确定,进一步地,还可以将形成闭环的像素值组构成的图形与预置的图形库中的图形进行相似度匹配,将图形相似度高于预设相似度的像素值组对应的预设区域范围确定为消息通知区域。In this embodiment, specifically, each of the area images is compared with a preset standard area image to determine whether there is a blocky difference between each of the area images and the preset standard area image, and there will be a blocky difference. The preset area range of the difference is used as the message notification area, wherein the preset standard area image may be one of the area images, or may be set in advance according to the actual situation, and the block difference refers to the area The entire difference area that exceeds the preset area and has a regular border, the preset area can be determined according to the actual screen size or actual test results, etc., and the regular border can be determined by judging whether there are the same or similar pixel values. It is determined by connecting to form a closed loop. Further, the graphics composed of the pixel value groups forming the closed loop can also be matched with the graphics in the preset graphics library for similarity, and the pixel value groups whose graphics similarity is higher than the preset similarity are corresponding to The preset area of is determined as the message notification area.
在一种可实施的方式中,所述识别出各所述区域图像中存在块状差异的消息通知区域的步骤包括:将各所述区域图像进行两两比对,比对检测任意两个区域图像之间是否存在超过预设差异面积的差异区域,若检测到两个目标区域图像之间存在所述差异区域,则根据所述差异区域的像素值判断所述差异区域是否存在边缘线,若在两个初始区域图像中的任意一个初始区域图像存在所述边缘线,则确定两个目标区域图像之间存在块状差异。In an implementable manner, the step of recognizing the message notification areas with block-like differences in each of the regional images includes: performing a pairwise comparison of each of the regional images, and comparing and detecting any two regions Whether there is a difference area between the images that exceeds the preset difference area, if it is detected that the difference area exists between the two target area images, it is determined whether there is an edge line in the difference area according to the pixel value of the difference area, if If the edge line exists in any one of the two initial area images, it is determined that there is a block difference between the two target area images.
可选地,所述将各所述区域图像与预设标准区域图像进行比对,对各所述区域图像中存在块状差异的消息通知区域进行识别的步骤之前,还包括:Optionally, before the step of comparing each of the area images with a preset standard area image, and identifying the message notification areas with block differences in each of the area images, the method further includes:
步骤C10,根据帧序列依次检测帧序列相邻的两个区域图像之间的块状差异区域;Step C10, sequentially detecting block-shaped difference regions between two adjacent regional images of the frame sequence according to the frame sequence;
在本实施例中,具体地,确定各所述初始区域图像对应的初始投屏图像帧的帧序列,根据所述帧序列依次获取帧序列相邻的两个初始区域图像,根据帧序列依次检测帧序列相邻的两个初始区域图像之间的块状差异区域。In this embodiment, specifically, the frame sequence of the initial screen projection image frame corresponding to each of the initial area images is determined, the two adjacent initial area images of the frame sequence are sequentially acquired according to the frame sequence, and the frame sequences are sequentially detected according to the frame sequence. A blocky difference region between two adjacent initial region images in a frame sequence.
步骤C20,当检测到帧序列相邻的两个区域图像之间存在块状差异区域时,根据所述块状差异区域的像素值判断所述块状差异是否存在边缘线;Step C20, when it is detected that there is a blocky difference area between two adjacent regional images of the frame sequence, determine whether the blocky difference has an edge line according to the pixel value of the blocky difference area;
在本实施例中,具体地,当检测到帧序列相邻的两个区域图像之间存在块状差异区域时,获取所述块状差异区域的像素值,根据所述块状差异区域的像素值判断所述块状差异是否存在边缘线,当未检测到帧序列相邻的两个区域图像之间存在块状差异区域时,根据帧序列依次继续检测其他相邻的区域图像对,直至全部可检测的区域图像完成检测,若未检测到帧序列相邻的两个区域图像之间存在块状差异区域,则说明各所述初始投屏图像帧中不存在消息通知区域,将各所述初始投屏图像帧作为目标投屏图像帧,通过显示设备输出所述初始投屏图像帧,其中,所述边缘线是像素值相同或相近的像素点组成的连续且首尾相连的框线。In this embodiment, specifically, when it is detected that a block-shaped difference area exists between two adjacent area images in a frame sequence, the pixel value of the block-shaped difference area is acquired, and the pixel value of the block-shaped difference area is obtained according to the pixel value of the block-shaped difference area. value to determine whether there is an edge line in the block difference. When no block difference area is detected between two adjacent regional images in the frame sequence, continue to detect other adjacent regional image pairs in turn according to the frame sequence until all The detection of the detectable area images is completed. If there is no block-like difference area between the two adjacent area images of the frame sequence, it means that there is no message notification area in each of the initial projected image frames, and each of the The initial screen projection image frame is used as the target screen projection image frame, and the initial screen projection image frame is output through the display device, wherein the edge line is a continuous and end-to-end frame line composed of pixel points with the same or similar pixel values.
步骤C30,将不存在所述边缘线的块状差异区域对应的区域图像作为预设标准区域图像。Step C30, taking the area image corresponding to the block-shaped difference area without the edge line as the preset standard area image.
在本实施例中,具体地,将不存在所述边缘线的块状差异区域对应的区域图像作为预设标准区域图像,将存在所述边缘线的块状差异区域对应的区域图像作为消息通知区域。In this embodiment, specifically, the area image corresponding to the block-shaped difference area without the edge line is used as a preset standard area image, and the area image corresponding to the block-shaped difference area with the edge line is used as a message notification area.
在本实施例中,通过对区域图像进行图像比对的方式,可以减少需要进行比对的区域范围,有效缩短比对时间,减小投屏延时,且进行区域范围的限定,可以有效避免投屏图像中消息通知以外的其他意外情况造成消息通知区域识别的误判,有效提高了可能导致隐私泄露的消息通知区域识别的准确性。In this embodiment, by performing image comparison on regional images, the range of the region to be compared can be reduced, the comparison time can be effectively shortened, the screen projection delay can be reduced, and the range of the region can be limited, which can effectively avoid Other unexpected situations other than the message notification in the projected image cause misjudgment in the identification of the message notification area, which effectively improves the accuracy of the identification of the message notification area that may lead to privacy leakage.
进一步地,本申请实施例还提供一种投屏图像处理装置,参照图6,所述投屏图像处理装置应用于投屏图像处理设备,所述投屏图像处理装置包括:Further, an embodiment of the present application further provides a screen projection image processing apparatus. Referring to FIG. 6 , the screen projection image processing apparatus is applied to a screen projection image processing device, and the screen projection image processing apparatus includes:
获取模块10,用于获取至少一张初始投屏图像帧;an
识别模块20,用于对各所述初始投屏图像帧中的消息通知区域进行识别;The
隐藏处理模块30,用于若在各所述初始投屏图像帧中识别到至少一个所述消息通知区域,则对各所述消息通知区域进行隐藏处理,得到至少一个目标投屏图像帧。The
可选地,所述识别模块20,还用于:Optionally, the
从各所述初始投屏图像帧的预设区域范围截取区域图像;intercepting a regional image from a preset region range of each of the initial screen projection image frames;
将各所述区域图像与预设标准区域图像进行比对,识别出各所述区域图像中存在块状差异的消息通知区域。Comparing each of the area images with the preset standard area images, identifying a message notification area with block differences in each of the area images.
可选地,所述识别模块20,还用于:Optionally, the
根据帧序列依次检测帧序列相邻的两个区域图像之间的块状差异区域;According to the frame sequence, sequentially detect the block difference area between the two adjacent area images of the frame sequence;
当检测到帧序列相邻的两个区域图像之间存在块状差异区域时,根据所述块状差异区域的像素值判断所述块状差异是否存在边缘线;When it is detected that there is a blocky difference area between two adjacent area images of the frame sequence, determine whether the blocky difference has an edge line according to the pixel value of the blocky difference area;
将不存在所述边缘线的块状差异区域对应的区域图像作为预设标准区域图像。The area image corresponding to the block difference area without the edge line is used as the preset standard area image.
可选地,所述识别模块20,还用于:Optionally, the
若在各所述初始投屏图像帧中未识别到消息通知区域,则将各所述初始投屏图像帧作为目标投屏图像帧。If the message notification area is not identified in each of the initial screen projection image frames, each of the initial screen projection image frames is used as a target screen projection image frame.
可选地,所述隐藏处理模块30,还用于:Optionally, the hidden
获取各所述消息通知区域的至少一个初始像素值;acquiring at least one initial pixel value of each of the message notification areas;
根据预设变形算法将各所述初始像素值转换成模糊像素值,得到至少一个目标投屏图像帧。Each of the initial pixel values is converted into a blurred pixel value according to a preset deformation algorithm to obtain at least one target screen projection image frame.
可选地,所述隐藏处理模块30,还用于:Optionally, the hidden
将各所述消息通知区域替换成预设的消息通知标准图像,得到至少一个目标投屏图像帧。Each of the message notification areas is replaced with a preset message notification standard image to obtain at least one target screen projection image frame.
可选地,所述投屏图像处理装置还包括提示模块,所述提示模块用于:Optionally, the screen projection image processing apparatus further includes a prompting module, and the prompting module is used for:
获取当前的投屏显示模式;Get the current screen projection display mode;
若当前的投屏显示模式为隐私保护模式,则生成隐私保护模式已开启的提示信息。If the current screen projection display mode is the privacy protection mode, a prompt message indicating that the privacy protection mode is turned on is generated.
本发明提供的投屏图像处理装置,采用上述实施例中的投屏图像处理方法,解决了现有技术在投屏过程中隐私泄露的技术问题。与现有技术相比,本发明实施例提供的投屏图像处理装置的有益效果与上述实施例提供的投屏图像处理方法的有益效果相同,且该投屏图像处理装置中的其他技术特征与上述实施例方法公开的特征相同,在此不做赘述。The screen projection image processing device provided by the present invention adopts the screen projection image processing method in the above-mentioned embodiments, so as to solve the technical problem of privacy leakage in the screen projection process in the prior art. Compared with the prior art, the beneficial effects of the screen projection image processing apparatus provided by the embodiments of the present invention are the same as those of the screen projection image processing method provided by the above-mentioned embodiments, and other technical features of the screen projection image processing apparatus are the same as those of the present invention. The disclosed features of the methods in the above embodiments are the same, and are not described in detail here.
进一步地,本申请还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述的投屏图像处理方法的步骤。Further, the present application also provides a computer program product, including a computer program, when the computer program is executed by a processor, the steps of the above-mentioned method for processing a projected screen image are implemented.
本申请提供的计算机程序产品解决了现有技术在投屏过程中隐私泄露的技术问题。与现有技术相比,本发明实施例提供的计算机程序产品的有益效果与上述实施例提供的投屏图像处理方法的有益效果相同,在此不做赘述。The computer program product provided by this application solves the technical problem of privacy leakage in the screen projection process in the prior art. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiments of the present invention are the same as those of the screen projection image processing method provided by the above-mentioned embodiments, which will not be repeated here.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利处理范围内。The above are only the preferred embodiments of the present application, and are not intended to limit the scope of the patent of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present application, or directly or indirectly applied in other related technical fields , are similarly included within the scope of patent processing of this application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210113739.8A CN114489549B (en) | 2022-01-30 | 2022-01-30 | Screen projection image processing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210113739.8A CN114489549B (en) | 2022-01-30 | 2022-01-30 | Screen projection image processing method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114489549A true CN114489549A (en) | 2022-05-13 |
CN114489549B CN114489549B (en) | 2023-04-25 |
Family
ID=81478500
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210113739.8A Active CN114489549B (en) | 2022-01-30 | 2022-01-30 | Screen projection image processing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114489549B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP4336339A4 (en) * | 2022-07-29 | 2024-03-13 | Guangzhou Shiyuan Electronics Co., Ltd. | DATA TRANSMISSION METHOD AND APPARATUS, AND CONFERENCE SYSTEM, WIRELESS SCREEN TRANSMITTER AND STORAGE MEDIUM |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104238986A (en) * | 2014-09-26 | 2014-12-24 | 深圳市中兴移动通信有限公司 | Screen transfer display method and device |
KR20150063953A (en) * | 2013-12-02 | 2015-06-10 | 삼성전자주식회사 | Apparatus and method for displaying images |
CN108549608A (en) * | 2018-04-18 | 2018-09-18 | 武汉极意网络科技有限公司 | A kind of the UI sectional drawings test method and system of APP |
CN109829456A (en) * | 2017-11-23 | 2019-05-31 | 腾讯科技(深圳)有限公司 | Image-recognizing method, device and terminal |
CN110784758A (en) * | 2019-08-22 | 2020-02-11 | 腾讯科技(深圳)有限公司 | Screen projection processing method and device |
CN111259907A (en) * | 2020-03-12 | 2020-06-09 | Oppo广东移动通信有限公司 | Content identification method and device and electronic equipment |
US20200202576A1 (en) * | 2018-12-19 | 2020-06-25 | Samsung Electronics Co., Ltd. | Electronic apparatus and control method thereof |
CN112965680A (en) * | 2021-04-20 | 2021-06-15 | 努比亚技术有限公司 | Screen projection method, screen projection initiating device and storage medium |
CN113313089A (en) * | 2021-07-28 | 2021-08-27 | 湖南涉外经济学院 | Data processing method, device and computer readable storage medium |
CN113391774A (en) * | 2020-03-11 | 2021-09-14 | 钉钉控股(开曼)有限公司 | Screen projection processing method, device, equipment and storage medium |
CN113596593A (en) * | 2021-07-28 | 2021-11-02 | 深圳创维-Rgb电子有限公司 | Multi-terminal interaction method, television and computer readable storage medium |
-
2022
- 2022-01-30 CN CN202210113739.8A patent/CN114489549B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20150063953A (en) * | 2013-12-02 | 2015-06-10 | 삼성전자주식회사 | Apparatus and method for displaying images |
CN104238986A (en) * | 2014-09-26 | 2014-12-24 | 深圳市中兴移动通信有限公司 | Screen transfer display method and device |
CN109829456A (en) * | 2017-11-23 | 2019-05-31 | 腾讯科技(深圳)有限公司 | Image-recognizing method, device and terminal |
CN108549608A (en) * | 2018-04-18 | 2018-09-18 | 武汉极意网络科技有限公司 | A kind of the UI sectional drawings test method and system of APP |
US20200202576A1 (en) * | 2018-12-19 | 2020-06-25 | Samsung Electronics Co., Ltd. | Electronic apparatus and control method thereof |
CN110784758A (en) * | 2019-08-22 | 2020-02-11 | 腾讯科技(深圳)有限公司 | Screen projection processing method and device |
CN113391774A (en) * | 2020-03-11 | 2021-09-14 | 钉钉控股(开曼)有限公司 | Screen projection processing method, device, equipment and storage medium |
CN111259907A (en) * | 2020-03-12 | 2020-06-09 | Oppo广东移动通信有限公司 | Content identification method and device and electronic equipment |
CN112965680A (en) * | 2021-04-20 | 2021-06-15 | 努比亚技术有限公司 | Screen projection method, screen projection initiating device and storage medium |
CN113313089A (en) * | 2021-07-28 | 2021-08-27 | 湖南涉外经济学院 | Data processing method, device and computer readable storage medium |
CN113596593A (en) * | 2021-07-28 | 2021-11-02 | 深圳创维-Rgb电子有限公司 | Multi-terminal interaction method, television and computer readable storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP4336339A4 (en) * | 2022-07-29 | 2024-03-13 | Guangzhou Shiyuan Electronics Co., Ltd. | DATA TRANSMISSION METHOD AND APPARATUS, AND CONFERENCE SYSTEM, WIRELESS SCREEN TRANSMITTER AND STORAGE MEDIUM |
Also Published As
Publication number | Publication date |
---|---|
CN114489549B (en) | 2023-04-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9591256B2 (en) | Methods and devices for video communication | |
JP6336206B2 (en) | Method, apparatus, program and recording medium for processing moving picture file identifier | |
CN111372126B (en) | Video playing method, device and storage medium | |
KR102317021B1 (en) | Display apparatus and image correction method thereof | |
WO2021147657A1 (en) | Frame interpolation processing method and related product | |
CN111145192B (en) | Image processing method and electronic device | |
CN107771310B (en) | Head mounted display device and processing method thereof | |
CN107248137B (en) | Method for realizing image processing and mobile terminal | |
CN114428598B (en) | Screen projection method, device, electronic device and storage medium | |
CN109462745B (en) | White balance processing method and mobile terminal | |
CN108449541B (en) | Panoramic image shooting method and mobile terminal | |
US11880919B2 (en) | Sticker processing method and apparatus | |
CN108965769B (en) | Video display method and device | |
WO2022134475A1 (en) | Point cloud map construction method and apparatus, electronic device, storage medium and program | |
US20230316529A1 (en) | Image processing method and apparatus, device and storage medium | |
CN114647468B (en) | Screen projection image display method and device, electronic equipment and storage medium | |
US20250211719A1 (en) | Projection apparatus and operating method thereof | |
CN114489549B (en) | Screen projection image processing method and device, electronic equipment and storage medium | |
CN110290263B (en) | An image display method and mobile terminal | |
CN109104573B (en) | Method for determining focusing point and terminal equipment | |
CN111784773A (en) | Image processing method and device, neural network training method and device | |
WO2023142370A1 (en) | Screen mirroring display method and apparatus, and electronic device and readable storage medium | |
CN109561258B (en) | A kind of supplementary light method and terminal equipment | |
CN106875450A (en) | For the training set optimization method and device of camera reorientation | |
CN110769162A (en) | Electronic equipment and focusing method |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20241121 Address after: 518000 First Floor, Chuangwei Technology Industrial Park Experimental Factory, Tangtou Community, Shiyan Street, Bao'an District, Shenzhen City, Guangdong Province Patentee after: Shenzhen Skyworth Display Technology Co.,Ltd. Country or region after: China Address before: 518057 13-16 floor, block A, SKYWORTH building, Shennan Avenue, Nanshan District, Shenzhen, Guangdong. Patentee before: SHENZHEN SKYWORTH-RGB ELECTRONIC Co.,Ltd. Country or region before: China |