CN119031094A - Video processing method, device and related equipment - Google Patents
Video processing method, device and related equipment Download PDFInfo
- Publication number
- CN119031094A CN119031094A CN202310601844.0A CN202310601844A CN119031094A CN 119031094 A CN119031094 A CN 119031094A CN 202310601844 A CN202310601844 A CN 202310601844A CN 119031094 A CN119031094 A CN 119031094A
- Authority
- CN
- China
- Prior art keywords
- visible
- area
- coordinate range
- video
- video data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/95—Computational photography systems, e.g. light-field imaging systems
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Studio Devices (AREA)
Abstract
Description
技术领域Technical Field
本申请涉及视频处理技术领域,尤其涉及一种视频处理方法、装置及相关设备。The present application relates to the field of video processing technology, and in particular to a video processing method, apparatus and related equipment.
背景技术Background Art
摄像头是一种非常重要的电子设备,它能够捕捉图像并将其转换为数字信号。随着科技的不断发展,摄像头也在不断地升级和改进,摄像头的分辨率已经得到了极大的提高,从最初的数十万像素到现在的几千万像素,摄像头的分辨率已经实现了数量级的跨越。高分辨率的摄像头可以捕捉更加细腻的图像细节,使得拍摄出来的照片或视频更加清晰、真实。摄像头已经成为我们日常生活中必不可少的一部分,然而,随之而来的是摄像头隐私保护问题的日益严重。Camera is a very important electronic device that can capture images and convert them into digital signals. With the continuous development of science and technology, cameras are also constantly upgraded and improved. The resolution of cameras has been greatly improved, from the initial hundreds of thousands of pixels to the current tens of millions of pixels. The resolution of cameras has achieved an order of magnitude leap. High-resolution cameras can capture more delicate image details, making the photos or videos taken clearer and more realistic. Cameras have become an indispensable part of our daily lives. However, the problem of camera privacy protection is becoming increasingly serious.
人们对隐私的需求越来越高,因此摄像头隐私保护显得尤为重要。People's demand for privacy is getting higher and higher, so camera privacy protection is particularly important.
发明内容Summary of the invention
本申请实施例提供了一种视频处理方法、装置及相关设备,用于解决在摄像头视频泄露或共享时,拍摄到隐私区域带来的隐私泄露的问题。The embodiments of the present application provide a video processing method, apparatus and related equipment for solving the problem of privacy leakage caused by capturing a private area when a camera video is leaked or shared.
第一方面,本申请提供了一种视频处理方法,该方法可由一种计算设备执行,该计算设备可以是服务器,例如是云服务器、中心服务器、边缘服务器,或者是本地数据中心中的本地服务器,或搭载于摄像装置等电子设备中。该方法包括:In a first aspect, the present application provides a video processing method, which can be executed by a computing device, which can be a server, such as a cloud server, a central server, an edge server, or a local server in a local data center, or mounted in an electronic device such as a camera device. The method includes:
获取终端设备指定的可见区域的可见坐标范围。用户在终端设备上对需要看护的可见区域进行指定,由终端设备将用户所指定的可见区域在视频画面中对应的可见坐标范围发送给计算设备。Obtaining the visible coordinate range of the visible area specified by the terminal device. The user specifies the visible area to be watched on the terminal device, and the terminal device sends the visible coordinate range corresponding to the visible area specified by the user in the video screen to the computing device.
获取摄像头拍摄的原始数据。该原始数据指的可以是摄像头的图像感应器将捕捉到的光源信号转化为数字信号的原始数据。The raw data captured by the camera is obtained. The raw data may refer to the raw data obtained by converting the light source signal captured by the camera's image sensor into a digital signal.
根据可见坐标范围,对原始数据进行处理,生成屏蔽可见区域以外区域的视频数据。在获取了可见坐标范围和原始数据后,在将原始数据转换为视频数据的同时,将视频画面中位于可见坐标范围以外的区域屏蔽,从而得到屏蔽可见区域以外区域的视频数据,即在该视频数据对应的视频画面中,可以仅包括用户指定的可见区域。According to the visible coordinate range, the original data is processed to generate video data of the area outside the visible area. After obtaining the visible coordinate range and the original data, while converting the original data into video data, the area outside the visible coordinate range in the video screen is shielded, so as to obtain the video data of the area outside the visible area, that is, in the video screen corresponding to the video data, only the visible area specified by the user can be included.
将视频数据发送至终端设备。经过上述步骤生成的视频数据发送至终端设备进行播放,所播放的视频内容中屏蔽可见区域以外区域的,从而实现了对视频中处于可见区域以外的区域的隐私保护。The video data is sent to the terminal device. The video data generated by the above steps is sent to the terminal device for playback, and the played video content shields the area outside the visible area, thereby achieving privacy protection for the area outside the visible area in the video.
本申请实施例所提供的视频处理方法,通过获取用户在终端设备上所指定的可见区域,然后根据该可见区域所处的坐标范围对摄像头所拍摄的原始数据进行处理,从而得到仅展示该可见区域内容的视频数据并返回至终端设备,实现了对视频画面的精准隐私遮挡,当视频数据泄露或共享时,可在视频数据源保护遮蔽区域隐私,解决了在摄像头视频泄露或共享时,拍摄到隐私区域带来的隐私泄露的问题。The video processing method provided in the embodiment of the present application obtains the visible area specified by the user on the terminal device, and then processes the original data captured by the camera according to the coordinate range of the visible area, thereby obtaining video data that only displays the content of the visible area and returning it to the terminal device, thereby achieving accurate privacy masking of the video screen. When the video data is leaked or shared, the privacy of the masked area can be protected at the video data source, thereby solving the problem of privacy leakage caused by capturing the privacy area when the camera video is leaked or shared.
在一种可能的实现方法中,根据可见范围,对原始数据进行处理,生成屏蔽可见区域以外区域的视频数据,包括:In a possible implementation method, the original data is processed according to the visible range to generate video data that masks areas outside the visible area, including:
对可见坐标范围进行坐标转换,得到屏蔽坐标范围;Perform coordinate transformation on the visible coordinate range to obtain the shielded coordinate range;
生成覆盖屏蔽坐标范围的电子挡块;Generate an electronic block covering the shielding coordinate range;
将电子挡块覆盖在原始数据上,生成屏蔽可见区域以外区域的视频数据。Electronic blocks are overlaid on the original data to generate video data that masks areas outside the visible area.
本实施例中,在确定了可见坐标范围和视频画面所覆盖的坐标范围之后,可见坐标范围的边缘至视频画面边缘之间的区域,则为屏蔽区域,在屏蔽区域上生成电子挡块,覆盖在原始数据中的相应位置后,此时屏蔽区域(可见区域以外的区域)被电子挡块遮蔽,生成的视频数据中屏蔽可见区域以外区域的,从而达到了精准隐私遮挡,对可见区域的内容进行看护的目的。In this embodiment, after determining the visible coordinate range and the coordinate range covered by the video screen, the area between the edge of the visible coordinate range and the edge of the video screen is the shielded area, and an electronic block is generated on the shielded area. After covering the corresponding position in the original data, the shielded area (the area outside the visible area) is shielded by the electronic block, and the area outside the visible area is shielded in the generated video data, thereby achieving precise privacy shielding and protecting the content of the visible area.
在一种可能的实现方法中,可见区域为N边形,电子挡块包括多个子挡块,其中N为大于3的整数;In a possible implementation method, the visible area is an N-polygon, and the electronic block includes a plurality of sub-blocks, where N is an integer greater than 3;
多个子挡块用于覆盖可见区域的N个边缘到视频画面边缘之间的区域。The plurality of sub-blocks are used to cover the area between the N edges of the visible area and the edge of the video screen.
在一种可能的实现方法中,根据可见坐标范围,对原始数据进行处理,生成屏蔽可见区域以外区域的视频数据,包括;In a possible implementation method, the original data is processed according to the visible coordinate range to generate video data for masking the area outside the visible area, including:
根据可见坐标范围的中心坐标和边缘坐标,得到画面调节参数;Obtaining picture adjustment parameters according to the center coordinates and edge coordinates of the visible coordinate range;
根据画面调节参数,对原始数据进行移动和/或裁剪,生成屏蔽可见区域以外区域的视频数据。The original data is moved and/or cropped according to the picture adjustment parameters to generate video data of the area outside the masked visible area.
本实施例中,可以对可见区域进行移动和裁剪,实现可见区域在视频画面中的最大覆盖,从而达到精准隐私遮挡,对可见区域的内容进行看护的目的。In this embodiment, the visible area can be moved and cropped to achieve maximum coverage of the visible area in the video picture, thereby achieving accurate privacy shielding and protecting the content of the visible area.
在一种可能的实现方法中,在将视频数据发送至终端设备之后,还包括:In a possible implementation method, after sending the video data to the terminal device, the method further includes:
对视频数据中的可见区域进行边缘识别,得到边缘坐标范围;Perform edge recognition on the visible area in the video data to obtain the edge coordinate range;
根据边缘坐标范围对可见坐标范围进行更新;Update the visible coordinate range according to the edge coordinate range;
根据更新后的可见坐标范围,对原始数据进行处理。The original data is processed according to the updated visible coordinate range.
本实施例中,采用了图像识别技术中的边缘识别技术,对已划定可见区域的视频数据中,该可见区域的边缘进行识别,根据识别结果重新对可见坐标范围进行更新,使得视频画面可以对可见区域进行追踪。In this embodiment, edge recognition technology in image recognition technology is used to identify the edge of the visible area in the video data of the demarcated visible area, and the visible coordinate range is re-updated according to the recognition result, so that the video screen can track the visible area.
第二方面,本申请提供了一种视频处理装置,包括收发模块和处理模块;In a second aspect, the present application provides a video processing device, including a transceiver module and a processing module;
收发模块用于执行如上述第一方面的视频处理方法的收发操作,处理模块用于执行如上述第一方面的视频处理方法的处理操作。The transceiver module is used to perform the transceiver operation of the video processing method of the first aspect, and the processing module is used to perform the processing operation of the video processing method of the first aspect.
例如,视频处理装置用于执行如下方案:For example, the video processing device is used to execute the following scheme:
收发模块,用于获取终端设备指定的可见区域的可见坐标范围;A transceiver module, used to obtain the visible coordinate range of the visible area specified by the terminal device;
收发模块,还用于获取摄像头拍摄的原始数据;The transceiver module is also used to obtain the raw data captured by the camera;
处理模块,用于根据可见坐标范围,对原始数据进行处理,生成屏蔽可见区域以外区域的视频数据;A processing module, used for processing the original data according to the visible coordinate range to generate video data of the area outside the visible area;
收发模块,还用于将视频数据发送至终端设备。The transceiver module is also used to send video data to the terminal device.
一种可能的实现方式中,处理模块,具体用于对可见坐标范围进行坐标转换,得到屏蔽坐标范围;生成覆盖屏蔽坐标范围的电子挡块;将电子挡块覆盖在原始数据上,生成屏蔽可见区域以外区域的视频数据。In a possible implementation, the processing module is specifically used to perform coordinate conversion on the visible coordinate range to obtain a shielded coordinate range; generate an electronic block covering the shielded coordinate range; cover the electronic block on the original data to generate video data of the area outside the shielded visible area.
一种可能的实现方式中,可见区域为N边形,电子挡块包括多个子挡块,其中N为大于3的整数;In a possible implementation, the visible area is an N-gon, and the electronic block includes a plurality of sub-blocks, where N is an integer greater than 3;
多个子挡块用于覆盖可见区域的N个边缘到视频画面边缘之间的区域。The plurality of sub-blocks are used to cover the area between the N edges of the visible area and the edge of the video screen.
一种可能的实现方式中,可见区域为矩形;In one possible implementation, the visible area is a rectangle;
处理模块,具体用于根据可见坐标范围的中心坐标和边缘坐标,得到画面调节参数;根据画面调节参数,对原始数据进行移动和/或裁剪,生成屏蔽可见区域以外区域的视频数据。The processing module is specifically used to obtain picture adjustment parameters according to the center coordinates and edge coordinates of the visible coordinate range; according to the picture adjustment parameters, the original data is moved and/or cropped to generate video data that shields the area outside the visible area.
一种可能的实现方式中,处理模块,还用于对视频数据中的可见区域进行边缘识别,得到边缘坐标范围;根据边缘坐标范围对可见坐标范围进行更新;根据更新后的可见坐标范围,对原始数据进行处理。In a possible implementation, the processing module is further used to perform edge recognition on the visible area in the video data to obtain an edge coordinate range; update the visible coordinate range according to the edge coordinate range; and process the original data according to the updated visible coordinate range.
第三方面,本申请提供了一种视频处理设备,包括终端设备、摄像头和如上述第二方面的视频处理装置;In a third aspect, the present application provides a video processing device, including a terminal device, a camera, and the video processing apparatus as described in the second aspect above;
终端设备,用于获取可见区域的可见坐标范围,并将可见坐标范围发送至视频处理装置;还用于获取经过视频处理装置处理后的视频数据;The terminal device is used to obtain the visible coordinate range of the visible area and send the visible coordinate range to the video processing device; and is also used to obtain the video data processed by the video processing device;
摄像头,用于通过图像传感器将捕捉到的光信号转化为数字信号的原始数据,并将原始数据发送至视频处理装置。The camera is used to convert the captured light signal into raw data of a digital signal through an image sensor, and send the raw data to a video processing device.
第四方面,本申请提供了一种计算设备,计算设备包括处理器;In a fourth aspect, the present application provides a computing device, the computing device comprising a processor;
处理器用于执行存储器中的计算机程序或计算机指令,以执行如上述第一方面的视频处理方法。The processor is used to execute the computer program or computer instructions in the memory to perform the video processing method of the first aspect as described above.
一种可能的实现方式中,计算设备还包括存储器。In a possible implementation, the computing device further includes a memory.
第五方面,本申请提供了一种计算机可读存储介质,其特征在于,其上存储有计算机程序,计算机程序被计算设备执行时,使得计算设备执行如上述第一方面的视频处理方法。In a fifth aspect, the present application provides a computer-readable storage medium, characterized in that a computer program is stored thereon, and when the computer program is executed by a computing device, the computing device executes the video processing method of the first aspect as described above.
第六方面,本申请提供了一种计算机程序产品,包括程序,其特征在于,当程序被处理器执行时,实现如上述第一方面的视频处理方法。In a sixth aspect, the present application provides a computer program product, comprising a program, characterized in that when the program is executed by a processor, the video processing method of the first aspect described above is implemented.
上述第二方面至第六方面提供的方案,用于实现或配合实现上述第一方面提供的方法,因此可以与第一方面达到相同或相应的有益效果,此处不再进行赘述。The solutions provided in the second to sixth aspects are used to implement or cooperate with the method provided in the first aspect, and thus can achieve the same or corresponding beneficial effects as the first aspect, and will not be repeated here.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1A为本申请实施例所提供的视频处理设备的架构图;FIG1A is an architecture diagram of a video processing device provided in an embodiment of the present application;
图1B为本申请实施例所提供的视频处理方法的方法流程图;FIG1B is a flow chart of a video processing method provided by an embodiment of the present application;
图2为本申请实施例所提供的视频画面中对可见区域进行选择的示意图;FIG2 is a schematic diagram of selecting a visible area in a video screen provided by an embodiment of the present application;
图3为步骤103的一种方法流程图;FIG3 is a method flow chart of step 103;
图4为本申请实施例所提供的子挡块遮蔽示意图;FIG4 is a schematic diagram of shielding a sub-block provided in an embodiment of the present application;
图5为本申请实施例所提供的子挡块遮蔽示意图;FIG5 is a schematic diagram of shielding a sub-block provided in an embodiment of the present application;
图6为步骤103的另一种方法流程图;FIG6 is another method flow chart of step 103;
图7a和图7b为本申请实施例所提供的可见区域的示意图;7a and 7b are schematic diagrams of visible areas provided in embodiments of the present application;
图8为本申请实施例所提供的视频处理装置的结构示意图;FIG8 is a schematic diagram of the structure of a video processing device provided in an embodiment of the present application;
图9为本申请实施例所提供的视频处理设备的传输信令图。FIG. 9 is a transmission signaling diagram of a video processing device provided in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
为了使本申请的目的、技术方案及优点更加清楚明白,下面结合附图,对本申请的实施例进行描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。本领域普通技术人员可知,随着新应用场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。In order to make the purpose, technical solutions and advantages of the present application more clear, the embodiments of the present application are described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. It is known to those skilled in the art that with the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或模块的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或模块,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或模块。在本申请中出现的对步骤进行的命名或者编号,并不意味着必须按照命名或者编号所指示的时间/逻辑先后顺序执行方法流程中的步骤,已经命名或者编号的流程步骤可以根据要实现的技术目的变更执行次序,只要能达到相同或者相类似的技术效果即可。本申请中所出现的单元的划分,是一种逻辑上的划分,实际应用中实现时可以有另外的划分方式,例如多个单元可以结合成或集成在另一个系统中,或一些特征可以忽略,或不执行,另外,所显示的或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元之间的间接耦合或通信连接可以是电性或其他类似的形式,本申请中均不作限定。并且,作为分离部件说明的单元或子单元可以是也可以不是物理上的分离,可以是也可以不是物理单元,或者可以分布到多个电路单元中,可以根据实际的需要选择其中的部分或全部单元来实现本申请方案的目的。The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described here can be implemented in an order other than that illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or devices. The naming or numbering of steps in this application does not mean that the steps in the method flow must be executed in the time/logical sequence indicated by the naming or numbering. The process steps that have been named or numbered can change the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved. The division of units in this application is a logical division. There may be other division methods when it is implemented in actual applications. For example, multiple units can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection between units can be electrical or other similar forms, which are not limited in this application. In addition, the units or sub-units described as separate components may or may not be physically separated, may or may not be physical units, or may be distributed in multiple circuit units, and some or all of the units may be selected according to actual needs to achieve the purpose of the present application.
摄像头是一种非常重要的电子设备,它能够捕捉图像并将其转换为数字信号。随着科技的不断发展,摄像头也在不断地升级和改进,摄像头的分辨率已经得到了极大的提高,从最初的数十万像素到现在的几千万像素,摄像头的分辨率已经实现了数量级的跨越。高分辨率的摄像头可以捕捉更加细腻的图像细节,使得拍摄出来的照片或视频更加清晰、真实。随着技术的进步,摄像头已经普及到我们生活的方方面面,从安防摄像头到智能手机摄像头,我们无时无刻不受其监视。然而,这种广泛的摄像头应用也引发了人们对隐私保护的担忧。Camera is a very important electronic device that can capture images and convert them into digital signals. With the continuous development of science and technology, cameras are also constantly upgraded and improved. The resolution of cameras has been greatly improved, from the initial hundreds of thousands of pixels to the current tens of millions of pixels. The resolution of cameras has achieved an order of magnitude leap. High-resolution cameras can capture more delicate image details, making the photos or videos taken clearer and more realistic. With the advancement of technology, cameras have become popular in all aspects of our lives, from security cameras to smartphone cameras, and we are monitored by them all the time. However, this widespread application of cameras has also caused people to worry about privacy protection.
当前阶段,有几种相关技术可以用于摄像头隐私保护。以下是其中一些主要技术:At the current stage, there are several related technologies that can be used for camera privacy protection. The following are some of the main technologies:
加密和安全传输:摄像头可以使用加密技术对视频数据进行保护,确保数据在传输过程中不被窃取或篡改。采用安全传输协议和加密算法,例如SSL/TLS,可以确保视频流的机密性和完整性。Encryption and secure transmission: The camera can use encryption technology to protect video data to ensure that the data is not stolen or tampered with during transmission. The use of secure transmission protocols and encryption algorithms, such as SSL/TLS, can ensure the confidentiality and integrity of the video stream.
访问权限控制:摄像头设备可以采用访问权限控制机制,只允许经过授权的用户或设备访问和操控摄像头。这可以通过身份验证、访问令牌或访问控制列表等方式实现,以确保只有合法用户才能访问摄像头。Access control: Camera devices can use access control mechanisms to allow only authorized users or devices to access and operate the camera. This can be achieved through authentication, access tokens, or access control lists to ensure that only legitimate users can access the camera.
隐私保护协议和标准:制定和采用统一的隐私保护协议和标准,对摄像头的设计、开发和使用进行规范,确保符合隐私保护原则。例如,GDPR(通用数据保护条例)就是一个针对个人数据保护的重要法规。Privacy protection protocols and standards: Develop and adopt unified privacy protection protocols and standards to regulate the design, development and use of cameras to ensure compliance with privacy protection principles. For example, GDPR (General Data Protection Regulation) is an important regulation for personal data protection.
物理遮挡:这是一种简单而有效的方法,通过物理手段遮挡摄像头镜头,如使用可移动的盖子、贴纸或专门设计的隐私保护设备。这可以有效地防止未经授权的访问和监视。Physical blocking: This is a simple but effective method that physically blocks the camera lens, such as using a removable cover, sticker, or specially designed privacy protection device. This can effectively prevent unauthorized access and surveillance.
匿名化和模糊化:这种技术用于对摄像头捕捉到的视频图像进行处理,以隐藏或模糊识别个人身份或敏感信息。例如,对人脸进行模糊、遮挡或替换,以保护被监视者的隐私。Anonymization and blurring: This technology is used to process video images captured by cameras to hide or blur personal identities or sensitive information. For example, faces are blurred, blocked or replaced to protect the privacy of the monitored person.
智能算法和人工智能:利用智能算法和人工智能技术,可以对摄像头进行分析和识别,以便过滤和去除不必要的个人信息,从而保护隐私。例如,使用人脸识别算法可以仅提取人脸特征,而不是完整的人脸图像。Smart algorithms and artificial intelligence: Using smart algorithms and artificial intelligence technology, cameras can be analyzed and identified to filter and remove unnecessary personal information, thereby protecting privacy. For example, using a face recognition algorithm can extract only facial features instead of a complete face image.
其中,加密和安全传输、访问权限控制、隐私保护协议和标准是针对视频数据传输过程中的对视频内容的保护;物理遮挡、匿名化和模糊化、智能算法和人工智能是通过对视频数据进行处理,隐藏一些隐私信息来对视频内容进行保护。Among them, encryption and secure transmission, access permission control, privacy protection protocols and standards are aimed at protecting video content during video data transmission; physical occlusion, anonymization and blurring, intelligent algorithms and artificial intelligence protect video content by processing video data and hiding some privacy information.
可以理解的是,随着光学和硬件技术的不断发展,当前摄像头的视场角越来越广,覆盖了更大的看护区域,同时也将用户的隐私区域拍摄到画面中,可能导致用户隐私的泄露或者共享视频时的不便。典型的例如婴儿看护场景:婴儿床普遍放置在父母的床边,为了看护婴儿安装的摄像头很容易拍摄到床上的隐私区域,给用户带来了隐私泄露的风险。由于婴儿父母可能会将视频共享给爷爷奶奶等其他家庭成员,看护区域的扩大也给这种场景带来了不便。It is understandable that with the continuous development of optical and hardware technologies, the current camera's field of view is getting wider and wider, covering a larger care area, while also capturing the user's private area in the picture, which may lead to the leakage of user privacy or inconvenience in sharing videos. A typical example is the baby care scenario: the crib is generally placed next to the parents' bed. The camera installed to watch the baby can easily capture the private area on the bed, bringing the risk of privacy leakage to the user. Since the baby's parents may share the video with other family members such as grandparents, the expansion of the care area also brings inconvenience to this scenario.
基于上述问题,本申请提供了一种视频处理方法、装置及相关设备,用户可以在视频界面中直接划定可见区域,使得最终输出的视频数据对应的视频画面中屏蔽了可见区域以外区域。Based on the above problems, the present application provides a video processing method, apparatus and related equipment, whereby the user can directly define the visible area in the video interface, so that the area outside the visible area is shielded in the video screen corresponding to the final output video data.
本申请提供了一种视频处理方法,该方法可应用于一种视频处理设备,如图1A所示,图1A为本申请实施例所提供的视频处理设备的架构图,包括终端设备1001、视频处理装置1002和摄像头1003,其中终端设备是包括通信功能的设备,例如手持式设备、或车载设备等。目前,一些终端设备的举例为:手机、电脑等,用于获取用户指定的需要进行视频看护的可见区域;摄像头1003用于拍摄视频画面,具体为将捕捉到的光源信号转化为数字信号的原始数据。视频处理装置1002用于执行以下视频处理方法,视频处理装置1002可是服务器,例如是云服务器、中心服务器、边缘服务器,或者是本地数据中心中的本地服务器,或部署于上述服务器上,视频处理装置1002也可搭载于摄像装置等电子设备中。The present application provides a video processing method, which can be applied to a video processing device, as shown in FIG1A, FIG1A is an architecture diagram of a video processing device provided in an embodiment of the present application, including a terminal device 1001, a video processing device 1002 and a camera 1003, wherein the terminal device is a device including a communication function, such as a handheld device, or a vehicle-mounted device, etc. At present, some examples of terminal devices are: mobile phones, computers, etc., which are used to obtain the visible area specified by the user for video care; the camera 1003 is used to shoot the video screen, specifically to convert the captured light source signal into the raw data of the digital signal. The video processing device 1002 is used to execute the following video processing method, and the video processing device 1002 can be a server, such as a cloud server, a central server, an edge server, or a local server in a local data center, or deployed on the above server, and the video processing device 1002 can also be mounted in electronic devices such as camera devices.
请参阅图1B,图1B为本申请实施例所提供的视频处理方法的方法流程图,包括:Please refer to FIG. 1B , which is a flow chart of a video processing method provided in an embodiment of the present application, including:
101,获取终端设备指定的可见区域的可见坐标范围。101. Obtain the visible coordinate range of the visible area specified by the terminal device.
终端设备Terminal equipment
首先,通过终端设备获取用户指定的需要进行视频看护的可见区域,该可见区域在视频画面中的坐标范围,为可见坐标范围。First, a visible area designated by a user and requiring video monitoring is obtained through a terminal device. The coordinate range of the visible area in the video screen is the visible coordinate range.
可以理解的是,可见区域的形状不进行限定,当用户需要对看护区域进行选择时,用户可以直接在视频画面中通过画笔工具框选出范围,也可以通过终端设备向用户展示的绘制框,通过选择对应的绘图工具,来确定看护范围。It is understandable that the shape of the visible area is not limited. When the user needs to select a care area, the user can directly select the range using the brush tool box in the video screen, or determine the care range by selecting the corresponding drawing tool through the drawing box displayed to the user by the terminal device.
请参阅图2,图2为本申请实施例所提供的视频画面中对可见区域进行选择的示意图。Please refer to FIG. 2 , which is a schematic diagram of selecting a visible area in a video screen provided in an embodiment of the present application.
在该视频画面中,婴儿床202所在的第一区域204属于看护区域,那么用户可以在绘图工具栏201中选择矩形工具,将婴儿床202所处的第一区域204进行框选,该第一区域204则为可见区域,同时第一区域204在该视频画面中所处的坐标范围,为可见坐标范围。在一种可能的情况下,可见区域可以为多个,例如图2中的桌子203,其上摆放有奶瓶、温度计、药品(图中未画出)等婴儿看护过程中可能会用到的物品,因此,用户可以通过绘画工具栏201中的弧形工具和直线工具将第二区域205进行框选,该第二区域205则也为可见区域,同时第二区域205在该视频画面中所处的坐标范围,也属于可见坐标范围。In the video screen, the first area 204 where the crib 202 is located belongs to the care area, so the user can select the rectangle tool in the drawing toolbar 201 to frame the first area 204 where the crib 202 is located, and the first area 204 is a visible area, and the coordinate range of the first area 204 in the video screen is a visible coordinate range. In a possible case, there can be multiple visible areas, such as the table 203 in Figure 2, on which are placed items that may be used in the baby care process, such as milk bottles, thermometers, and medicines (not shown in the figure), so the user can use the arc tool and the straight line tool in the drawing toolbar 201 to frame the second area 205, and the second area 205 is also a visible area, and the coordinate range of the second area 205 in the video screen also belongs to the visible coordinate range.
102,获取摄像头拍摄的原始数据。102, obtaining the original data captured by the camera.
可以理解的是,摄像头的图像感应器(sensor)输出的原始数据,指的是sensor将捕捉到的光源信号转化为数字信号的原始数据。原始数据(RAW数据)一般有RAW8、RAW10、RAW12等,分别表示一个像素点有8bit数据、10bit数据、12bit数据。It is understandable that the raw data output by the camera's image sensor refers to the raw data that the sensor converts the captured light source signal into a digital signal. Raw data (RAW data) generally has RAW8, RAW10, RAW12, etc., which respectively indicate that a pixel has 8-bit data, 10-bit data, and 12-bit data.
在获取了可见坐标范围后,获取摄像头拍摄的原始数据,以便于后续直接对原始数据进行处理。After obtaining the visible coordinate range, the original data captured by the camera is obtained so that the original data can be directly processed later.
103,根据可见坐标范围,对原始数据进行处理,生成屏蔽可见区域以外区域的视频数据。103 , processing the original data according to the visible coordinate range to generate video data of the area outside the masked visible area.
在获取了可见坐标范围后,直接对原始数据处理得到视频数据,当视频数据泄露或共享时,可在视频数据源保护遮蔽区域隐私。After obtaining the visible coordinate range, the original data is directly processed to obtain the video data. When the video data is leaked or shared, the privacy of the masked area can be protected in the video data source.
例如,在一种可能的情况下,对原始数据处理得到视频数据,指的是将RAW数据转换为YUV数据,同时将看护区域以外的区域屏蔽,得到H264/H265等格式数据的视频编码。For example, in one possible case, processing the raw data to obtain the video data refers to converting the RAW data into YUV data, while shielding the area outside the guard area, to obtain the video encoding of the data in the format of H264/H265 or the like.
在一种可能的实现方法中,请参阅图3,图3为步骤103的一种方法流程图,具体包括:In a possible implementation method, please refer to FIG. 3 , which is a flow chart of a method of step 103 , specifically including:
301,对可见坐标范围进行坐标转换,得到屏蔽坐标范围。301 , coordinate conversion is performed on the visible coordinate range to obtain a shielded coordinate range.
可以理解的是,在确定了可见坐标范围和视频画面所覆盖的坐标范围之后,可见坐标范围的边缘至视频画面边缘之间的区域,则为屏蔽区域,对应的坐标范围为屏蔽坐标范围。It can be understood that after the visible coordinate range and the coordinate range covered by the video screen are determined, the area between the edge of the visible coordinate range and the edge of the video screen is the shielding area, and the corresponding coordinate range is the shielding coordinate range.
302,生成覆盖屏蔽坐标范围的电子挡块。302, generate an electronic block covering the shielding coordinate range.
在确定了屏蔽坐标范围后,生成覆盖该范围的电子挡块。电子挡块可以是马赛克、彩色色块、指定图片等。After the shielding coordinate range is determined, an electronic block covering the range is generated. The electronic block can be a mosaic, a color block, a specified picture, etc.
303,将电子挡块覆盖在原始数据上,生成屏蔽可见区域以外区域的视频数据。303, overlay the original data with an electronic block to generate video data that shields areas outside the visible area.
可以理解的是,确定了屏蔽坐标范围后,将电子挡块覆盖在原始数据中的相应位置后,此时屏蔽区域(可见区域以外的区域)被电子挡块遮蔽,生成的视频数据中屏蔽可见区域以外的区域,从而达到了精准隐私遮挡的目的。It can be understood that after the shielding coordinate range is determined, the electronic block is covered at the corresponding position in the original data. At this time, the shielding area (the area outside the visible area) is shielded by the electronic block, and the area outside the visible area is shielded in the generated video data, thereby achieving the purpose of precise privacy shielding.
进一步的,可见区域为N边形,对应的,电子挡块包括多个子挡块,其中N为大于3的整数;Further, the visible area is an N-gon, and correspondingly, the electronic block includes a plurality of sub-blocks, where N is an integer greater than 3;
多个子挡块分别用于覆盖可见区域的N个边缘到视频画面边缘之间的区域。The multiple sub-blocks are respectively used to cover the areas between the N edges of the visible area and the edge of the video screen.
为了便于理解,请参阅图4和图5,图4和图5均为本申请实施例所提供的子挡块遮蔽示意图。For ease of understanding, please refer to FIG. 4 and FIG. 5 , which are schematic diagrams of shielding of sub-blocks provided in the embodiments of the present application.
如图4所示,可见区域为四边形,此时子挡块的数量也为4个,4个子挡块分别用于对遮挡区域1、遮挡区域2、遮挡区域3和遮挡区域4进行遮蔽。以覆盖遮挡区域1的子挡块(灰色区域)为例,该子挡块的左边缘、上边缘、下边缘分别为视频画面的左边缘、上边缘、下边缘,而该子挡块的右边缘所在的直线与可见区域的左边缘所在的直线一致。As shown in FIG4 , the visible area is a quadrilateral, and the number of sub-blocks is also 4, which are respectively used to shield the occlusion area 1, the occlusion area 2, the occlusion area 3 and the occlusion area 4. Taking the sub-block (gray area) covering the occlusion area 1 as an example, the left edge, the upper edge and the lower edge of the sub-block are respectively the left edge, the upper edge and the lower edge of the video screen, and the straight line where the right edge of the sub-block is located is consistent with the straight line where the left edge of the visible area is located.
可以理解的是,可见区域也可以是其他形状,如图5所示,当可见区域为三边形时,3个子挡块所覆盖的区域(遮挡区域1’、遮挡区域2’和遮挡区域3’)同样是分别覆盖三边形的边缘至视频画面边缘之前的区域,此处不再进行赘述。It is understandable that the visible area can also be other shapes. As shown in Figure 5, when the visible area is a triangle, the areas covered by the three sub-blocks (occlusion area 1', occlusion area 2' and occlusion area 3') also cover the area from the edge of the triangle to the edge of the video screen, which will not be repeated here.
在另一种可能的实现方法中,请参阅图6,图6为步骤103的另一种方法流程图,其中,可见区域为矩形,步骤103具体包括:In another possible implementation method, please refer to FIG. 6 , which is another method flow chart of step 103 , wherein the visible area is a rectangle, and step 103 specifically includes:
601,根据可见坐标范围的中心坐标和边缘坐标,得到画面调节参数。601 , obtaining picture adjustment parameters according to the center coordinates and edge coordinates of the visible coordinate range.
602,根据画面调节参数,对原始数据进行移动和/或裁剪,生成屏蔽可见区域以外区域的视频数据。602 , moving and/or cropping the original data according to the picture adjustment parameters to generate video data of the area outside the masked visible area.
可以理解的是,当可见区域为矩形时,由于视频画面也为矩形,因此在获取了可见区域的可见坐标范围后,对比可见坐标范围的中心坐标和视频画面的中心坐标、可见坐标范围的边缘坐标和视频画面的边缘,可以生成画面调节参数,该画面调节参数用于对视频画面进行移动,使得可见区域位于视频画面的正中间,同时对屏蔽区域进行裁剪,达到精准隐私遮挡的目的。It can be understood that when the visible area is a rectangle, since the video screen is also a rectangle, after obtaining the visible coordinate range of the visible area, the center coordinates of the visible coordinate range and the center coordinates of the video screen, and the edge coordinates of the visible coordinate range and the edge of the video screen are compared to generate picture adjustment parameters. The picture adjustment parameters are used to move the video screen so that the visible area is located in the middle of the video screen, and at the same time, the shielded area is cropped to achieve the purpose of precise privacy shielding.
请参阅图7a和图7b,图7a和图7b均为本申请实施例所提供的可见区域的示意图。Please refer to FIG. 7a and FIG. 7b , which are schematic diagrams of the visible area provided in the embodiments of the present application.
请同时结合图2,用户在图2所示的视频画面中仅将第一区域204框选并作为可见区域之后,由于第一区域204为矩形,那么根据第一区域204所处的坐标范围,可以得到第一区域204的中心坐标。再结合是视频画面的中心坐标,可以将该第一区域204移动至视频画面的正中间,如图7a所示。Please refer to FIG. 2 , after the user selects only the first area 204 in the video screen shown in FIG. 2 as the visible area, since the first area 204 is a rectangle, the center coordinates of the first area 204 can be obtained according to the coordinate range of the first area 204. Combined with the center coordinates of the video screen, the first area 204 can be moved to the center of the video screen, as shown in FIG. 7a .
然后再对第一区域204进行缩放操作,使得第一区域204至少有一条边与视频画面的边缘重合,超出视频画面的部分被裁剪,如图7b所示,从而生成了仅展示可见区域(第一区域)的视频数据。进一步的,当可见区域与视频画面的长宽比不同时,可同时设置电子挡块(如图7中灰色区域)进行遮蔽。Then, the first area 204 is scaled so that at least one side of the first area 204 overlaps with the edge of the video screen, and the portion beyond the video screen is cropped, as shown in FIG7b, thereby generating video data that only displays the visible area (the first area). Further, when the aspect ratio of the visible area and the video screen is different, an electronic block (such as the gray area in FIG7) can be set at the same time for shielding.
104,将视频数据发送至终端设备。104, sending the video data to the terminal device.
可以理解的是,经过上述步骤生成的视频数据发送至终端设备进行播放,所播放的视频内容中屏蔽了可见区域以外的区域,从而实现了对视频中处于可见区域以外的区域的隐私保护。同时,由于该视频数据是在由原始数据进行编码转换的过程中就进行了遮蔽处理,因此当视频数据传输过程中即使被泄露,也仍然只能看到可见区域的视频画面,进一步保障了用户隐私。具体的,该视频数据也可通过云服务器等传输介质发送至终端设备。It is understandable that the video data generated through the above steps is sent to the terminal device for playback, and the areas outside the visible area are shielded in the played video content, thereby achieving privacy protection for the areas outside the visible area in the video. At the same time, since the video data is shielded during the encoding and conversion process of the original data, even if it is leaked during the video data transmission process, only the video images in the visible area can be seen, further protecting the user's privacy. Specifically, the video data can also be sent to the terminal device via a transmission medium such as a cloud server.
在一种可能的实现方法中,还包括:In a possible implementation method, the method further includes:
105,对视频数据中的可见区域进行边缘识别,得到边缘坐标范围;105, performing edge recognition on the visible area in the video data to obtain an edge coordinate range;
106,根据边缘坐标范围对可见坐标范围进行更新;106, updating the visible coordinate range according to the edge coordinate range;
107,根据更新后的可见坐标范围,对原始数据进行处理。107, processing the original data according to the updated visible coordinate range.
可以理解的是,步骤105至107所考虑的场景是,当摄像头因为人为或其他原因产生移动时,视频画面也会发生相应的移动,从而可见区域也进行了转移,那么能够进行看护的区域可能就转移到了其他原本属于隐私区域的位置,若没有及时发现,那么也会对用户造成不必要的影响。因此,本申请实施例中采用了图像识别技术中的边缘识别技术,对已划定可见区域的视频数据中,该可见区域的边缘进行识别,根据识别结果重新对可见坐标范围进行更新,使得视频画面可以对可见区域进行追踪。具体如下:It is understandable that the scenario considered in steps 105 to 107 is that when the camera moves due to human or other reasons, the video screen will also move accordingly, so that the visible area is also shifted. Then the area that can be guarded may be shifted to other locations that originally belonged to the privacy area. If it is not discovered in time, it will also cause unnecessary impact on the user. Therefore, the edge recognition technology in image recognition technology is used in the embodiment of the present application to identify the edge of the visible area in the video data with the demarcated visible area, and re-update the visible coordinate range according to the recognition result, so that the video screen can track the visible area. The details are as follows:
在将视频数据发送给终端设备的同时,对视频数据中的可见区域进行边缘识别,例如图7b中的可见区域,其边缘为婴儿床护栏,那么可以采用图像识别技术,对婴儿床护栏进行定位和锁定,构建边缘坐标范围,即婴儿床护栏边缘以内的坐标区域。根据边缘坐标范围对可见坐标范围进行更新,即用该边缘坐标范围替换原本的可见坐标范围,并返回步骤103,根据更新后的可见坐标范围,对原始数据进行处理,所生成的视频数据中的可见区域,即边缘坐标范围内的区域,即图2所示的婴儿床所在区域。While sending the video data to the terminal device, edge recognition is performed on the visible area in the video data. For example, the visible area in FIG. 7b has an edge of a crib guardrail. Then, image recognition technology can be used to locate and lock the crib guardrail, and an edge coordinate range is constructed, i.e., a coordinate area within the edge of the crib guardrail. The visible coordinate range is updated according to the edge coordinate range, i.e., the original visible coordinate range is replaced with the edge coordinate range, and the process returns to step 103. The original data is processed according to the updated visible coordinate range, and the visible area in the generated video data, i.e., the area within the edge coordinate range, is the area where the crib is located as shown in FIG. 2.
可以理解的是,图像识别技术中的边缘识别技术为:在检测物体边缘时,先对其轮廓点进行粗略检测,然后通过链接规则把原来检测到的轮廓点连接起来,同时也检测和连接遗漏的边界点及去除虚假的边界,该技术已经存在并在相关领域进行了应用,因此本申请不再进行赘述。It can be understood that the edge recognition technology in image recognition technology is: when detecting the edge of an object, first roughly detect its contour points, and then connect the originally detected contour points through linking rules, while also detecting and connecting missed boundary points and removing false boundaries. This technology already exists and has been applied in related fields, so this application will not go into details.
本申请实施例所提供的视频处理方法,通过获取用户在终端设备上所指定的可见区域,然后根据该可见区域所处的坐标范围对摄像头所拍摄的原始数据进行处理,从而得到屏蔽可见区域以外区域视频数据并返回至终端设备,实现了对视频画面的精准隐私遮挡,当视频数据泄露或共享时,可在视频数据源保护遮蔽区域隐私,解决了在摄像头视频泄露或共享时,拍摄到隐私区域带来的隐私泄露的问题。The video processing method provided in the embodiment of the present application obtains the visible area specified by the user on the terminal device, and then processes the original data captured by the camera according to the coordinate range of the visible area, thereby obtaining the video data of the area outside the shielded visible area and returning it to the terminal device, thereby realizing accurate privacy shielding of the video screen. When the video data is leaked or shared, the privacy of the shielded area can be protected at the video data source, thereby solving the problem of privacy leakage caused by capturing the privacy area when the camera video is leaked or shared.
本申请还提供了一种视频处理装置。请参阅图8,图8为本申请实施例所提供的视频处理装置的结构示意图。视频处理装置可以用于执行图1所示的实施例中的步骤,具体请参考上述方法实施例中的相关介绍。可以理解的是,本申请实施例所提供的视频处理装置可以搭载在摄像装置中,例如与摄像头一体化设置;也可部署与云服务器上。The present application also provides a video processing device. Please refer to Figure 8, which is a schematic diagram of the structure of the video processing device provided in the embodiment of the present application. The video processing device can be used to execute the steps in the embodiment shown in Figure 1. For details, please refer to the relevant introduction in the above method embodiment. It can be understood that the video processing device provided in the embodiment of the present application can be mounted in a camera device, for example, integrated with a camera; it can also be deployed on a cloud server.
视频处理装置800包括收发模块801和处理模块802。The video processing device 800 includes a transceiver module 801 and a processing module 802 .
收发模块801可以实现相应的通信功能,收发模块801还可以称为通信接口或通信单元。处理模块802用于执行处理操作。The transceiver module 801 can implement corresponding communication functions, and the transceiver module 801 can also be called a communication interface or a communication unit. The processing module 802 is used to perform processing operations.
可选地,该视频处理装置800还可以包括存储模块,该存储模块可以用于存储指令和/或数据,处理模块802可以读取存储模块中的指令和/或数据,以使得视频处理装置800实现前图1所示的方法实施例。Optionally, the video processing device 800 may further include a storage module, which may be used to store instructions and/or data. The processing module 802 may read the instructions and/or data in the storage module so that the video processing device 800 implements the method embodiment shown in FIG. 1 .
该视频处理装置800可以用于执行上文方法实施例所执行的动作。该视频处理装置800可以为终端设备或者可配置于终端设备的部件。收发模块801用于执行上述方法实施例中终端设备侧的接收相关的操作,处理模块802用于执行上述方法实施例中终端设备侧的处理相关的操作。The video processing device 800 can be used to perform the actions performed by the above method embodiment. The video processing device 800 can be a terminal device or a component that can be configured in a terminal device. The transceiver module 801 is used to perform the reception-related operations on the terminal device side in the above method embodiment, and the processing module 802 is used to perform the processing-related operations on the terminal device side in the above method embodiment.
可选的,收发模块801可以包括发送模块和接收模块。发送模块用于执行上述图1所示的方法实施例中发送操作。接收模块用于执行上述图1所示的方法实施例中的接收操作。Optionally, the transceiver module 801 may include a sending module and a receiving module. The sending module is used to perform the sending operation in the method embodiment shown in FIG1 . The receiving module is used to perform the receiving operation in the method embodiment shown in FIG1 .
例如,视频处理装置800用于执行如下方案:For example, the video processing device 800 is used to execute the following scheme:
收发模块801,用于获取终端设备指定的可见区域的可见坐标范围;The transceiver module 801 is used to obtain the visible coordinate range of the visible area specified by the terminal device;
收发模块801,还用于获取摄像头拍摄的原始数据;The transceiver module 801 is also used to obtain the original data captured by the camera;
处理模块802,用于根据所述可见坐标范围,对所述原始数据进行处理,生成屏蔽可见区域以外区域的视频数据;A processing module 802 is used to process the original data according to the visible coordinate range to generate video data of the area outside the masked visible area;
收发模块801,还用于将所述视频数据发送至所述终端设备。The transceiver module 801 is also used to send the video data to the terminal device.
一种可能的实现方式中,处理模块802,具体用于对所述可见坐标范围进行坐标转换,得到屏蔽坐标范围;生成覆盖所述屏蔽坐标范围的电子挡块;将所述电子挡块覆盖在所述原始数据上,生成屏蔽可见区域以外区域的视频数据。In one possible implementation, the processing module 802 is specifically used to perform coordinate conversion on the visible coordinate range to obtain a shielded coordinate range; generate an electronic block covering the shielded coordinate range; cover the electronic block on the original data to generate video data of the area outside the shielded visible area.
一种可能的实现方式中,可见区域为N边形,所述电子挡块包括N个子挡块,其中N为大于3的整数;In a possible implementation, the visible area is an N-polygon, and the electronic block includes N sub-blocks, where N is an integer greater than 3;
N个所述子挡块分别用于覆盖所述可见区域的N个边缘到视频画面边缘之间的区域。The N sub-blocks are respectively used to cover the areas between the N edges of the visible area and the edge of the video screen.
一种可能的实现方式中,可见区域为矩形;In one possible implementation, the visible area is a rectangle;
处理模块802,具体用于根据所述可见坐标范围的中心坐标和边缘坐标,得到画面调节参数;根据所述画面调节参数,对所述原始数据进行缩放和/或裁剪,生成屏蔽可见区域以外区域的视频数据。The processing module 802 is specifically used to obtain picture adjustment parameters according to the center coordinates and edge coordinates of the visible coordinate range; and scale and/or crop the original data according to the picture adjustment parameters to generate video data that masks areas outside the visible area.
一种可能的实现方式中,处理模块802,还用于对所述视频数据中的所述可见区域进行边缘识别,得到边缘坐标范围;根据所述边缘坐标范围对所述可见坐标范围进行更新;根据更新后的所述可见坐标范围,对所述原始数据进行处理。In a possible implementation, the processing module 802 is further used to perform edge recognition on the visible area in the video data to obtain an edge coordinate range; update the visible coordinate range according to the edge coordinate range; and process the original data according to the updated visible coordinate range.
本申请还提供了一种视频处理设备,请参阅图9,图9为本申请实施例所提供的视频处理设备的传输信令图,包括终端设备901,摄像头902和如上述图8所示实施例中的视频处理装置903。需要说明的是,该视频处理装置903既可以搭载在云服务器上,也可以与摄像头902一体化设置,本申请对视频处理装置903的部署位置不进行限定,总之,该视频处理装置903用于提供视频处理功能。The present application also provides a video processing device, please refer to Figure 9, which is a transmission signaling diagram of the video processing device provided in the embodiment of the present application, including a terminal device 901, a camera 902 and a video processing device 903 in the embodiment shown in Figure 8 above. It should be noted that the video processing device 903 can be mounted on a cloud server or integrated with the camera 902. The present application does not limit the deployment location of the video processing device 903. In short, the video processing device 903 is used to provide video processing functions.
终端设备901,用于获取可见区域的可见坐标范围,并将可见坐标范围发送至视频处理装置;还用于获取经过视频处理装置处理后的视频数据;The terminal device 901 is used to obtain the visible coordinate range of the visible area and send the visible coordinate range to the video processing device; and is also used to obtain the video data processed by the video processing device;
摄像头902,用于通过图像传感器将捕捉到的光信号转化为数字信号的原始数据,并将原始数据发送至视频处理装置。The camera 902 is used to convert the captured light signal into raw data of a digital signal through an image sensor, and send the raw data to the video processing device.
视频处理装置903,用于获取终端设备指定的可见区域的可见坐标范围;获取摄像头拍摄的原始数据;根据可见坐标范围,对原始数据进行处理,生成屏蔽可见区域以外区域的视频数据;将视频数据发送至终端设备。The video processing device 903 is used to obtain the visible coordinate range of the visible area specified by the terminal device; obtain the original data captured by the camera; process the original data according to the visible coordinate range to generate video data that shields the area outside the visible area; and send the video data to the terminal device.
在一种可能的实现方式中,视频处理装置903,还用于对视频数据中的可见区域进行边缘识别,得到边缘坐标范围;根据边缘坐标范围对可见坐标范围进行更新;根据更新后的可见坐标范围,对原始数据进行处理。In a possible implementation, the video processing device 903 is further used to perform edge recognition on the visible area in the video data to obtain an edge coordinate range; update the visible coordinate range according to the edge coordinate range; and process the original data according to the updated visible coordinate range.
本申请还提供了一种计算设备,该计算设备可以是服务器,例如是云服务器、中心服务器、边缘服务器,或者是本地数据中心中的本地服务器。在一些实施例中,计算设备也可以是台式机、笔记本电脑或者智能手机等终端设备。The present application also provides a computing device, which may be a server, such as a cloud server, a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device may also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
计算设备包括处理器,所述处理器用于执行存储器中的计算机程序或计算机指令,以执行如上述图1所示实施例中视频处理方法。The computing device includes a processor, and the processor is used to execute a computer program or computer instructions in a memory to perform the video processing method in the embodiment shown in FIG. 1 above.
进一步的,计算设备还包括存储器,存储器中可以存有用于执行上述视频处理方法的指令。Furthermore, the computing device also includes a memory, and the memory may store instructions for executing the above-mentioned video processing method.
本申请实施例还提供了一种包含指令的计算机程序产品。所述计算机程序产品可以是包含指令的,能够运行在计算设备上或被储存在任何可用介质中的软件或程序产品。当所述计算机程序产品在至少一个计算设备上运行时,使得至少一个计算设备执行如上述图1所示实施例中视频处理方法。The present application also provides a computer program product including instructions. The computer program product may be a software or program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the video processing method in the embodiment shown in FIG. 1 above.
本申请实施例还提供了一种计算机可读存储介质。所述计算机可读存储介质可以是计算设备能够存储的任何可用介质或者是包含一个或多个可用介质的数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘)等。该计算机可读存储介质包括指令,所述指令指示计算设备执行如上述图1所示实施例中视频处理方法。The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the video processing method in the embodiment shown in FIG. 1 above.
结合本申请公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于终端中。当然,处理器和存储介质也可以作为分立组件存在于第一通信装置中。The steps of the method or algorithm described in conjunction with the disclosure of the present application can be implemented in a hardware manner, or can be implemented by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a mobile hard disk, a CD-ROM or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a terminal. Of course, the processor and the storage medium can also be present in the first communication device as discrete components.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the 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 a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310601844.0A CN119031094A (en) | 2023-05-25 | 2023-05-25 | Video processing method, device and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310601844.0A CN119031094A (en) | 2023-05-25 | 2023-05-25 | Video processing method, device and related equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN119031094A true CN119031094A (en) | 2024-11-26 |
Family
ID=93529804
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310601844.0A Pending CN119031094A (en) | 2023-05-25 | 2023-05-25 | Video processing method, device and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN119031094A (en) |
-
2023
- 2023-05-25 CN CN202310601844.0A patent/CN119031094A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102858011B1 (en) | Robust selective image, video, and audio content authentication | |
US9350914B1 (en) | Methods of enforcing privacy requests in imaging systems | |
JP5505007B2 (en) | Image processing apparatus, image processing method, and computer program for image processing | |
CN109218663B (en) | Image processing apparatus, image processing method, and storage medium | |
EP2876605B1 (en) | Gradient privacy masks | |
US10108793B2 (en) | Systems and methods for secure biometric processing | |
US11410342B2 (en) | Method for adding special effect to video, electronic device and storage medium | |
TW200903347A (en) | Edge mapping using panchromatic pixels | |
CN111327947B (en) | Screen capture management method and device and mobile terminal | |
CN110458870B (en) | Image registration, fusion and occlusion detection method and device and electronic equipment | |
EP3644599A1 (en) | Video processing method and apparatus, electronic device, and storage medium | |
WO2014169655A1 (en) | Shooting method and apparatus | |
JP7084795B2 (en) | Image processing equipment, image providing equipment, their control methods and programs | |
WO2019042243A1 (en) | Image shielding method, apparatus, device, and system | |
US11810399B2 (en) | Information processing device, information processing method, and program | |
US20160125239A1 (en) | Systems And Methods For Secure Iris Imaging | |
KR20080035440A (en) | Image processing apparatus and method | |
CN119031094A (en) | Video processing method, device and related equipment | |
KR20230017774A (en) | Information processing device, information processing method, and program | |
JP2009159525A (en) | Imaging apparatus and image synthesis program | |
JP4487660B2 (en) | Image protection device and imaging device | |
JP2021005798A (en) | Imaging apparatus, control method of imaging apparatus, and program | |
JP2002281486A (en) | System for acquiring image | |
JP6736916B2 (en) | Information processing apparatus, information processing method, and program | |
US12206828B2 (en) | Image processing circuitry and image processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication |