[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113891040B - Video processing method, device, computer equipment and storage medium - Google Patents

Video processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN113891040B
CN113891040B CN202111120702.XA CN202111120702A CN113891040B CN 113891040 B CN113891040 B CN 113891040B CN 202111120702 A CN202111120702 A CN 202111120702A CN 113891040 B CN113891040 B CN 113891040B
Authority
CN
China
Prior art keywords
video stream
target area
target
size information
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111120702.XA
Other languages
Chinese (zh)
Other versions
CN113891040A (en
Inventor
张艳玲
孔亚军
毕军辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202111120702.XA priority Critical patent/CN113891040B/en
Publication of CN113891040A publication Critical patent/CN113891040A/en
Application granted granted Critical
Publication of CN113891040B publication Critical patent/CN113891040B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2628Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Geometry (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本申请涉及一种视频处理方法、装置、计算机设备和存储介质。所述方法包括:获取待处理的视频流;根据所述视频流,识别出所述视频流中包含的目标对象;根据所述目标对象所在的目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数;根据所述放大倍数,在所述当前可显示区域中以所述目标区域为中心对所述视频流进行显示。采用本方法能够提高所拍摄的视频在不同显示屏幕上的显示效果,进而保证视频监控的有效性。

The present application relates to a video processing method, device, computer equipment and storage medium. The method comprises: obtaining a video stream to be processed; identifying a target object contained in the video stream according to the video stream; determining a magnification factor for the target area according to size information of a target area where the target object is located, size information of an image screen of the video stream and size information of a currently displayable area; and displaying the video stream in the currently displayable area with the target area as the center according to the magnification factor. The use of this method can improve the display effect of the captured video on different display screens, thereby ensuring the effectiveness of video surveillance.

Description

视频处理方法、装置、计算机设备和存储介质Video processing method, device, computer equipment and storage medium

技术领域Technical Field

本申请涉及图像处理技术领域,特别是涉及一种视频处理方法、装置、计算机设备和存储介质。The present application relates to the field of image processing technology, and in particular to a video processing method, apparatus, computer equipment and storage medium.

背景技术Background Art

随着视频监控技术的发展,视频监控系统的应用也越来越广泛。用户可以在监控区域设置视频监控系统从而对该监控区域进行监控。在目前的技术方案中,用户通过设置显示屏幕以对视频监控系统拍摄得到的画面进行显示,然而,市面上存在各种各样的显示屏幕,不同显示屏幕之间存在一定的差异,对该画面的显示效果也不尽相同。由此,如何提高所拍摄的视频在不同显示屏幕上的显示效果,进而保证视频监控的有效性,成为了亟待解决的技术问题。With the development of video surveillance technology, the application of video surveillance systems is becoming more and more extensive. Users can set up a video surveillance system in a surveillance area to monitor the surveillance area. In the current technical solution, users set up a display screen to display the pictures taken by the video surveillance system. However, there are various display screens on the market, and there are certain differences between different display screens, and the display effects of the pictures are also different. Therefore, how to improve the display effect of the captured video on different display screens, and then ensure the effectiveness of video surveillance, has become a technical problem that needs to be solved urgently.

发明内容Summary of the invention

基于此,有必要针对上述技术问题,提供一种能够提供所拍摄的视频在不同显示屏幕上的显示效果,进而保证视频监控的有效性的视频处理方法、装置、计算机设备和存储介质。Based on this, it is necessary to provide a video processing method, device, computer equipment and storage medium that can provide the display effect of the captured video on different display screens, thereby ensuring the effectiveness of video surveillance, in response to the above technical problems.

一种视频处理方法,该方法包括:A video processing method, the method comprising:

获取待处理的视频流;Get the video stream to be processed;

根据所述视频流,识别出所述视频流中包含的目标对象;According to the video stream, identifying a target object contained in the video stream;

根据所述目标对象所在的目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数;Determine a magnification factor for the target area according to size information of the target area where the target object is located, size information of the image screen of the video stream, and size information of the current displayable area;

根据所述放大倍数,在所述当前可显示区域中以所述目标区域为中心对所述视频流进行显示。The video stream is displayed in the current displayable area with the target area as the center according to the magnification factor.

可选的,根据所述视频流,识别出所述视频流中包含的目标对象,包括:将所述视频流输入至预先训练完成的目标识别模型中,以使所述目标识别模型识别出所述视频流中包含的目标对象。Optionally, identifying a target object contained in the video stream according to the video stream includes: inputting the video stream into a pre-trained target recognition model so that the target recognition model recognizes the target object contained in the video stream.

可选的,所述尺寸信息包括宽度和长度;根据所述目标对象所在的目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数,包括:根据所述目标对象所在的目标区域的宽度以及所述视频流的图像画面的宽度,确定所述目标区域的宽度相对于所述图像画面的宽度的第一占比;根据所述目标对象所在的目标区域的长度以及所述图像画面的长度,确定所述目标区域的长度相对于所述图像画面的长度的第二占比;基于所述第一占比、所述第二占比以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数。Optionally, the size information includes width and length; the magnification factor for the target area is determined according to the size information of the target area where the target object is located, the size information of the image screen of the video stream, and the size information of the currently displayable area, including: determining a first ratio of the width of the target area to the width of the image screen according to the width of the target area where the target object is located and the width of the image screen of the video stream; determining a second ratio of the length of the target area to the length of the image screen according to the length of the target area where the target object is located and the length of the image screen; and determining the magnification factor for the target area based on the first ratio, the second ratio, and the size information of the currently displayable area.

可选的,基于所述第一占比、所述第二占比以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数,包括:获取所述第一占比对应的第一权重、所述第二占比对应的第二权重以及当前可显示区域的尺寸信息对应的第三权重;根据所述第一占比、所述第二占比、所述当前可显示区域的尺寸信息、所述第一权重、所述第二权重以及所述第三权重进行加权和处理,确定针对所述目标区域的放大倍数。Optionally, based on the first proportion, the second proportion and the size information of the current displayable area, the magnification factor for the target area is determined, including: obtaining a first weight corresponding to the first proportion, a second weight corresponding to the second proportion and a third weight corresponding to the size information of the current displayable area; weighted and processed according to the first proportion, the second proportion, the size information of the current displayable area, the first weight, the second weight and the third weight to determine the magnification factor for the target area.

可选的,所述目标对象的数量为至少两个;根据所述目标对象所在的目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数,包括:确定包含至少两个所述目标对象的目标区域;根据所述目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数。Optionally, the number of the target objects is at least two; and the magnification factor for the target area is determined based on the size information of the target area where the target objects are located, the size information of the image screen of the video stream, and the size information of the currently displayable area, including: determining a target area containing at least two of the target objects; and determining the magnification factor for the target area based on the size information of the target area, the size information of the image screen of the video stream, and the size information of the currently displayable area.

可选的,根据所述放大倍数,在所述当前可显示区域中以所述目标区域为中心对所述视频流进行显示,包括:根据所述放大倍数对所述目标区域进行放大;在所述当前可显示区域中以放大后的所述目标区域为中心对所述视频流进行显示。Optionally, displaying the video stream in the current displayable area with the target area as the center according to the magnification factor includes: enlarging the target area according to the magnification factor; and displaying the video stream in the current displayable area with the enlarged target area as the center.

可选的,根据所述放大倍数,以所述目标区域为中心,在所述当前可显示区域对所述视频流进行显示,包括:根据所述放大倍数,对用于获取所述视频流的图像获取装置进行变焦,以对所述目标区域进行放大;接收由所述图像获取装置发送的变焦后的视频流,并在所述当前可显示区域中以所述目标区域为中心对变焦后的视频流进行显示。Optionally, the video stream is displayed in the current displayable area with the target area as the center according to the magnification factor, including: zooming the image acquisition device used to acquire the video stream according to the magnification factor to enlarge the target area; receiving the zoomed video stream sent by the image acquisition device, and displaying the zoomed video stream in the current displayable area with the target area as the center.

一种视频处理装置,所述装置包括:A video processing device, comprising:

获取模块,用于获取待处理的视频流;An acquisition module, used to acquire the video stream to be processed;

识别模块,用于根据所述视频流,识别出所述视频流中包含的目标对象;An identification module, used to identify a target object contained in the video stream according to the video stream;

确定模块,用于根据所述目标对象所在的目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数;A determination module, configured to determine a magnification factor for the target area according to size information of the target area where the target object is located, size information of the image screen of the video stream, and size information of the current displayable area;

显示模块,用于根据所述放大倍数,在所述当前可显示区域中以所述目标区域为中心对所述视频流进行显示。The display module is used to display the video stream in the current displayable area with the target area as the center according to the magnification.

一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

获取待处理的视频流;Get the video stream to be processed;

根据所述视频流,识别出所述视频流中包含的目标对象;According to the video stream, identifying a target object contained in the video stream;

根据所述目标对象所在的目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数;Determine a magnification factor for the target area according to size information of the target area where the target object is located, size information of the image screen of the video stream, and size information of the current displayable area;

根据所述放大倍数,在所述当前可显示区域中以所述目标区域为中心对所述视频流进行显示。The video stream is displayed in the current displayable area with the target area as the center according to the magnification factor.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

获取待处理的视频流;Get the video stream to be processed;

根据所述视频流,识别出所述视频流中包含的目标对象;According to the video stream, identifying a target object contained in the video stream;

根据所述目标对象所在的目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数;Determine a magnification factor for the target area according to size information of the target area where the target object is located, size information of the image screen of the video stream, and size information of the current displayable area;

根据所述放大倍数,在所述当前可显示区域中以所述目标区域为中心对所述视频流进行显示。The video stream is displayed in the current displayable area with the target area as the center according to the magnification factor.

上述技术方案中的一个技术方案具有如下优点和有益效果:One of the above technical solutions has the following advantages and beneficial effects:

上述视频处理方法、装置、计算机设备和存储介质,通过获取待处理的视频流,识别出该视频流中包含的目标对象,并根据该目标对象所在的目标区域的尺寸信息、视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对目标区域的放大倍数,并根据该放大倍数,在当前可显示区域以该目标区域为中心对该视频流进行显示,由此,该目标区域可以根据不同显示屏幕的差异进行一定的调整,从而使得目标区域能够适配于当前可显示区域,提高了该视频的显示效果,进而保证了视频监控的有效性。The above-mentioned video processing method, device, computer equipment and storage medium obtain a video stream to be processed, identify the target object contained in the video stream, and determine the magnification factor for the target area according to the size information of the target area where the target object is located, the size information of the image screen of the video stream and the size information of the current displayable area, and display the video stream in the current displayable area with the target area as the center according to the magnification factor. Therefore, the target area can be adjusted to a certain extent according to the differences between different display screens, so that the target area can be adapted to the current displayable area, thereby improving the display effect of the video and ensuring the effectiveness of video monitoring.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本申请实施例中视频处理方法的应用环境图。FIG. 1 is a diagram showing an application environment of a video processing method in an embodiment of the present application.

图2为本申请实施例中视频处理方法的流程示意图。FIG. 2 is a flow chart of a video processing method in an embodiment of the present application.

图3为本申请实施例中图2的视频处理方法中步骤S230的流程示意图。FIG. 3 is a flow chart of step S230 in the video processing method of FIG. 2 in an embodiment of the present application.

图4为本申请实施例中图3的视频处理方法中步骤S330的流程示意图。FIG. 4 is a flow chart of step S330 in the video processing method of FIG. 3 in an embodiment of the present application.

图5为本申请实施例中图2的视频处理方法中步骤S230的流程示意图。FIG. 5 is a flow chart of step S230 in the video processing method of FIG. 2 in an embodiment of the present application.

图6为本申请实施例中图2的视频处理方法中步骤S240的流程示意图。FIG. 6 is a flow chart of step S240 in the video processing method of FIG. 2 in an embodiment of the present application.

图7为本申请实施例中图2的视频处理方法中步骤S240的流程示意图。FIG. 7 is a flow chart of step S240 in the video processing method of FIG. 2 in an embodiment of the present application.

图8为本申请实施例中视频处理装置的结构框图。FIG8 is a structural block diagram of a video processing device in an embodiment of the present application.

图9为本申请实施例中计算机设备的内部结构图。FIG. 9 is a diagram showing the internal structure of a computer device in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

本申请提供的视频处理方法,可以应用于如图1所示的应用环境中。其中,图像获取装置110通过网络与处理终端120通过网络进行通信。其中,图像获取装置110可以是设置于需要进行视频监控的目标场所的摄像头,例如该目标场所可以是学校、养殖场、商场或者店铺等。另外,图像获取装置也可以是具有图像获取功能的终端设备,例如行车记录仪、穿戴式设备(智能手表、智能眼镜等)或者智能手机等。The video processing method provided in the present application can be applied in the application environment shown in FIG1 . The image acquisition device 110 communicates with the processing terminal 120 through a network. The image acquisition device 110 can be a camera set at a target location that needs to be monitored by video, such as a school, a farm, a shopping mall or a store. In addition, the image acquisition device can also be a terminal device with an image acquisition function, such as a driving recorder, a wearable device (smart watch, smart glasses, etc.) or a smart phone.

处理终端120可以是具有视频显示功能的终端设备,例如该处理终端120可以包括但不限于个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,等等。The processing terminal 120 may be a terminal device with a video display function. For example, the processing terminal 120 may include but is not limited to a personal computer, a laptop computer, a smart phone, a tablet computer, a portable wearable device, and the like.

在本申请一具体应用场景中,图像获取装置110可以对目标场所进行监控,并将监控所得的视频流通过网络向处理终端120进行发送,处理终端120可以获取待处理的视频流,根据该视频流,识别出视频流中包含的目标对象,并根据该目标对象所在的目标区域的尺寸信息、视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对该目标区域的放大倍数,再根据该放大倍数,在当前可显示区域中以该目标区域为中心对该视频流进行显示。In a specific application scenario of the present application, the image acquisition device 110 can monitor the target location and send the video stream obtained by monitoring to the processing terminal 120 through the network. The processing terminal 120 can obtain the video stream to be processed, identify the target object contained in the video stream based on the video stream, and determine the magnification factor for the target area based on the size information of the target area where the target object is located, the size information of the image screen of the video stream, and the size information of the current displayable area. Then, based on the magnification factor, the video stream is displayed in the current displayable area with the target area as the center.

在一个实施例中,如图2所示,提供了一种视频处理方法,以该方法应用于图1中的处理终端120为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 2 , a video processing method is provided, which is described by taking the method applied to the processing terminal 120 in FIG. 1 as an example, and includes the following steps:

在步骤S210中,获取待处理的视频流。In step S210, a video stream to be processed is obtained.

其中,该视频流可以是图像获取装置对目标场所进行视频监控得到的监控视频数据。The video stream may be surveillance video data obtained by an image acquisition device performing video surveillance on a target location.

在本申请一示例性实施例中,处理终端可以实时接收由图像获取装置所发送的视频流,并在该处理终端的显示界面中进行显示。在另一示例中,处理终端也可以将接收到的待处理的视频流在本地进行存储,当用户需要查看时,处理终端可以从本地中获取该视频流并进行显示。本申请对此不作特殊限定。In an exemplary embodiment of the present application, the processing terminal can receive the video stream sent by the image acquisition device in real time and display it in the display interface of the processing terminal. In another example, the processing terminal can also store the received video stream to be processed locally, and when the user needs to view it, the processing terminal can obtain the video stream locally and display it. This application does not make any special restrictions on this.

在步骤S220中,根据所述视频流,识别出所述视频流中包含的目标对象。In step S220, a target object contained in the video stream is identified according to the video stream.

其中,目标对象可以是视频流中用户感兴趣的对象,例如视频流中包含的人物、车辆、动物或者物品等。The target object may be an object in the video stream that the user is interested in, such as a person, vehicle, animal or object contained in the video stream.

在本申请一示例性实施例中,处理终端在接收到视频流后,可以根据该视频流的画面内容,识别出该视频流中所包含的目标对象。在一示例中,处理终端在对该视频流进行显示时,用户可以通过处理终端所配置的输入设备(例如鼠标、触控式显示屏等),在该视频流所对应的画面内容中确定感兴趣的对象即目标对象,例如用户可以通过点击、或者框选的方式进行确定。处理终端可以接收用户的选择信息,从而确定该目标对象。In an exemplary embodiment of the present application, after receiving the video stream, the processing terminal can identify the target object contained in the video stream according to the screen content of the video stream. In one example, when the processing terminal displays the video stream, the user can determine the object of interest, i.e., the target object, in the screen content corresponding to the video stream through the input device configured by the processing terminal (e.g., a mouse, a touch screen, etc.), for example, the user can determine it by clicking or box selection. The processing terminal can receive the user's selection information to determine the target object.

在另一示例中,处理终端也可以对该视频流的画面内容进行图像识别,从而确定该视频流中包含的目标对象。具体地,用户可以预先设定所感兴趣的对象类型,例如人物、车辆或者动物等。则处理终端可以从该视频流的画面内容中识别出是否具有用户所感兴趣的对象,若有,则将该对象确定为目标对象。例如,用户设定感兴趣的对象类型为车辆,则处理终端可以识别出该视频流的画面内容中是否包含有车辆,若有,则将其识别为目标对象。In another example, the processing terminal may also perform image recognition on the screen content of the video stream to determine the target object contained in the video stream. Specifically, the user may pre-set the type of object of interest, such as a person, a vehicle, or an animal. The processing terminal may then identify from the screen content of the video stream whether there is an object of interest to the user, and if so, the object is determined as the target object. For example, if the user sets the type of object of interest to be a vehicle, the processing terminal may identify whether the screen content of the video stream contains a vehicle, and if so, it is identified as the target object.

需要说明的,视频流的画面内容中所包含的目标对象可以是一个,也可以是多个,本申请所述多个即为两个或两个以上任意数量,本申请对此不作特殊限定。It should be noted that the target object contained in the picture content of the video stream can be one or more. The multiple mentioned in this application means two or more arbitrary numbers, and this application does not make any special limitation on this.

在步骤S230中,根据所述目标对象所在的目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数。In step S230, the magnification factor for the target area is determined according to the size information of the target area where the target object is located, the size information of the image frame of the video stream, and the size information of the current displayable area.

其中,目标区域可以是视频流的画面内容中目标对象所在的位置。在一示例中,该目标区域的大小可以是与目标对象本身相贴合的区域,例如目标对象为车辆,则该目标区域的形状即为该车辆的形状等;在另一示例中,目标区域可以是包含该目标对象且尺寸大小相对于目标对象具有一定余量的区域,例如目标对象为车辆,目标区域可以是包含该车辆的矩形区域,该矩形区域的尺寸大小可以略大于该车辆,从而将该车辆完整包含于目标区域内。The target area may be the location of the target object in the video stream. In one example, the size of the target area may be an area that fits the target object itself. For example, if the target object is a vehicle, the shape of the target area is the shape of the vehicle. In another example, the target area may be an area that includes the target object and has a certain size margin relative to the target object. For example, if the target object is a vehicle, the target area may be a rectangular area that includes the vehicle. The size of the rectangular area may be slightly larger than the vehicle, so that the vehicle is completely included in the target area.

应该理解的,本领域技术人员可以根据在先经验,预先设定对应的余量值大小,例如该余量值可以为1个像素、5个像素等等。以上数字仅为示例性举例,本申请对此不作特殊限定。处理终端在确定目标对象所在的目标区域时,可以基于该目标对象的位置信息以及预先设定的余量值进行确定。例如余量值为5个像素,则处理终端可以分别以与目标对象最左边、最右边、最上边以及最下边距离5个像素的位置作为目标区域的边界,从而得到形状为矩形的目标区域。It should be understood that those skilled in the art can pre-set the corresponding margin value size based on prior experience, for example, the margin value can be 1 pixel, 5 pixels, etc. The above numbers are only illustrative examples, and this application does not specifically limit this. When determining the target area where the target object is located, the processing terminal can make a determination based on the position information of the target object and the pre-set margin value. For example, if the margin value is 5 pixels, the processing terminal can use the positions that are 5 pixels away from the leftmost, rightmost, topmost and bottommost edges of the target object as the boundaries of the target area, thereby obtaining a target area with a rectangular shape.

在本申请一示例性实施例中,当处理终端确定该目标对象所在的目标区域之后,可以对应获取该目标区域的尺寸信息、以及视频流的图像画面的尺寸信息。在一示例中,该尺寸信息可以包括宽度和长度,则处理终端可以确定目标区域的宽度、长度,以及视频流的图像画面的宽度和长度。例如,以单位为像素为例,处理终端可以确定目标区域的宽度和长度分别为几个像素,确定视频流的图像画面的宽度和长度分别为几个像素,等等。In an exemplary embodiment of the present application, after the processing terminal determines the target area where the target object is located, the size information of the target area and the size information of the image screen of the video stream can be obtained accordingly. In one example, the size information may include width and length, and the processing terminal can determine the width and length of the target area, and the width and length of the image screen of the video stream. For example, taking the unit as a pixel, the processing terminal can determine how many pixels the width and length of the target area are, how many pixels the width and length of the image screen of the video stream are, and so on.

另外,放大倍数可以是针对目标区域在显示时所需要进行调整的倍率,应该理解的,通过对目标区域进行放大,可以突出该目标区域,从而对该目标对象进行有效显示,避免显示屏幕较大而图像内容中目标对象较小,不易进行观察的情况发生。In addition, the magnification factor can be the magnification that needs to be adjusted when displaying the target area. It should be understood that by enlarging the target area, the target area can be highlighted, thereby effectively displaying the target object, avoiding the situation where the display screen is large but the target object in the image content is small and difficult to observe.

在本申请一示例性实施例中,处理终端可以获取当前可显示区域的尺寸信息。应该理解的,当前可显示区域可以是用于播放该视频流的显示区域,例如在处理终端的显示屏幕中的部分区域中播放该视频流,则当前可显示区域的尺寸信息即为该部分区域的尺寸信息,若在处理终端的显示屏幕中全屏播放该视频流,则当前可显示区域的尺寸信息即为该显示屏幕的尺寸信息。In an exemplary embodiment of the present application, the processing terminal may obtain the size information of the current displayable area. It should be understood that the current displayable area may be a display area for playing the video stream, for example, if the video stream is played in a partial area of the display screen of the processing terminal, the size information of the current displayable area is the size information of the partial area, and if the video stream is played in full screen on the display screen of the processing terminal, the size information of the current displayable area is the size information of the display screen.

处理终端在获取目标区域的尺寸信息、视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息后,可以基于预先设定的倍率确定规则以及上述尺寸信息,确定针对该目标区域的放大倍数。应该理解的,若目标区域的尺寸信息占视频流的图像画面尺寸信息或者当前可显示区域的尺寸信息的比例越小,则该放大倍数应随之增大,反之,则随之减小。本领域技术人员可以根据在先经验设定对应的倍率确定规则,本申请对此不作特殊限定。After obtaining the size information of the target area, the size information of the image screen of the video stream, and the size information of the current displayable area, the processing terminal can determine the magnification factor for the target area based on the pre-set magnification determination rule and the above size information. It should be understood that if the size information of the target area accounts for a smaller proportion of the size information of the image screen of the video stream or the size information of the current displayable area, the magnification factor should increase accordingly, and vice versa. Those skilled in the art can set the corresponding magnification determination rule based on prior experience, and this application does not make any special limitation on this.

请继续参考图2,在步骤S240中,根据所述放大倍数,在所述当前可显示区域以所述目标区域为中心对所述视频流进行显示。Please continue to refer to FIG. 2 . In step S240 , the video stream is displayed in the current displayable area with the target area as the center according to the magnification.

在本申请一示例性实施例中,处理终端可以基于该放大倍数,对该目标区域的画面内容进行对应放大,例如放大倍数为2,则处理终端则将该目标区域的画面内容放大至两倍等。并在当前可显示区域中以放大后的目标区域为中心,对视频流进行播放显示。In an exemplary embodiment of the present application, the processing terminal can magnify the screen content of the target area accordingly based on the magnification factor. For example, if the magnification factor is 2, the processing terminal magnifies the screen content of the target area to twice, etc. The video stream is played and displayed with the magnified target area as the center in the current displayable area.

在图2所示的实施例中,基于目标区域的尺寸信息、视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对该目标区域的放大倍数,由此,可以使得放大后的目标区域能够与当前可显示区域相适配。即使在不同尺寸的屏幕上进行显示,也能够保证该目标区域的显示效果。另外,在当前可显示区域以放大后的该目标区域为中心对该视频流进行播放显示,也能够突出该目标区域,从而便于用户对目标对象进行观察,提高了视频监控的有效性。In the embodiment shown in FIG. 2 , the magnification factor for the target area is determined based on the size information of the target area, the size information of the image screen of the video stream, and the size information of the current displayable area, so that the enlarged target area can be adapted to the current displayable area. Even if displayed on screens of different sizes, the display effect of the target area can be guaranteed. In addition, the video stream is played and displayed with the enlarged target area as the center in the current displayable area, and the target area can also be highlighted, so that it is convenient for users to observe the target object, thereby improving the effectiveness of video monitoring.

基于图2所示的实施例,在本申请一示例性实施例中,根据所述视频流,识别出所述视频流中包含的目标对象,包括:Based on the embodiment shown in FIG. 2 , in an exemplary embodiment of the present application, identifying a target object contained in the video stream according to the video stream includes:

将所述视频流输入至预先训练完成的目标识别模型中,以使所述目标识别模型识别出所述视频流中包含的目标对象。The video stream is input into a pre-trained target recognition model so that the target recognition model can recognize the target object contained in the video stream.

在该实施例中,处理终端可以通过预先存储或者调用的方式,获取预先训练完成的目标识别模型,该目标识别模型可以是用于识别出视频流中包含的目标对象的机器学习模型。处理终端可以将该视频流作为目标识别模型的输入,以使该目标识别模型输出该视频流包含的目标对象。在一示例中,目标识别模型可以在视频流的画面内容中进行框选以确定目标对象。在另一示例中,目标识别模型也可以输出目标对象相对于该视频流的画面内容中的位置信息,以确定目标对象,本申请对此不作特殊限定。In this embodiment, the processing terminal can obtain a pre-trained target recognition model by pre-storing or calling, and the target recognition model can be a machine learning model for identifying the target object contained in the video stream. The processing terminal can use the video stream as the input of the target recognition model so that the target recognition model outputs the target object contained in the video stream. In one example, the target recognition model can select a frame in the picture content of the video stream to determine the target object. In another example, the target recognition model can also output the position information of the target object relative to the picture content of the video stream to determine the target object, which is not specifically limited in this application.

本领域技术人员可以预先对目标识别模型进行训练,通过大量的训练数据对目标识别模型进行训练,以使该目标识别模型能够准确输出每一训练数据中所包含的目标对象。需要说明的,针对不同类型的目标对象,可以分别设置于该类型对应的训练数据,例如目标对象为人物,则训练数据可以是包含有人物的视频流数据,若目标对象为车辆,则训练数据可以是包含有车辆的视频流数据等等。由此,对目标识别模型进行针对性训练,可以保证该目标识别模型的输出结果的准确性。Those skilled in the art can train the target recognition model in advance, and train the target recognition model through a large amount of training data, so that the target recognition model can accurately output the target object contained in each training data. It should be noted that for different types of target objects, training data corresponding to the type can be set respectively. For example, if the target object is a person, the training data can be video stream data containing the person. If the target object is a vehicle, the training data can be video stream data containing the vehicle, and so on. In this way, targeted training of the target recognition model can ensure the accuracy of the output result of the target recognition model.

在该实施例中,通过预先训练完成的目标识别模型对目标对象进行识别,可以提高目标对象识别的准确性和效率,进而保证监控的有效性。In this embodiment, the target object is identified by using a pre-trained target recognition model, which can improve the accuracy and efficiency of target object identification, thereby ensuring the effectiveness of monitoring.

基于图2所示的实施例,图3为本申请实施例的图2的视频处理方法中步骤S230的流程示意图。参照图3所示,该尺寸信息包括宽度和长度,则步骤S230至少包括步骤S310至步骤S320,详细介绍如下:Based on the embodiment shown in FIG2 , FIG3 is a flow chart of step S230 in the video processing method of FIG2 in the embodiment of the present application. Referring to FIG3 , the size information includes width and length, and step S230 includes at least steps S310 to S320, which are described in detail as follows:

在步骤S310中,根据所述目标对象所在的目标区域的宽度以及所述视频流的图像画面的宽度,确定所述目标区域的宽度相对于所述图像画面的宽度的第一占比。In step S310, a first ratio of the width of the target area where the target object is located to the width of the image screen is determined according to the width of the target area where the target object is located and the width of the image screen of the video stream.

在该实施例中,处理终端可以将目标区域的宽度除以该视频流的图像画面的宽度,从而得到该第一占比,例如目标区域的宽度为5个像素,视频流的图像画面的宽度为50,则第一占比为5/50即1/10,等等。In this embodiment, the processing terminal can divide the width of the target area by the width of the image screen of the video stream to obtain the first proportion. For example, if the width of the target area is 5 pixels and the width of the image screen of the video stream is 50, then the first proportion is 5/50, i.e., 1/10, and so on.

在步骤S320中,根据所述目标对象所在的目标区域的长度以及所述图像画面的长度,确定所述目标区域的长度相对于所述图像画面的长度的第二占比。In step S320, a second ratio of the length of the target area to the length of the image frame is determined according to the length of the target area where the target object is located and the length of the image frame.

在该实施例中,根据前文所述的第一占比的确定方法,处理终端可以对应确定目标区域的长度相对于图像画面的长度的第二占比,本申请在此不再赘述。In this embodiment, according to the method for determining the first ratio described above, the processing terminal may correspondingly determine the second ratio of the length of the target area to the length of the image screen, which will not be described in detail in this application.

在步骤S330中,基于所述第一占比、所述第二占比以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数。In step S330, based on the first proportion, the second proportion and the size information of the current displayable area, the magnification factor for the target area is determined.

在该实施例中,处理终端可以基于第一占比、第二占比以及当前可显示区域的尺寸信息,基于预先设定的倍率确定规则,确定针对该目标区域的放大倍数。由此,基于第一占比和第二占比以及当前可显示区域的尺寸信息,确定目标区域的放大倍数,可以保证所确定的放大倍数准确性,进而保证该目标区域的显示效果。In this embodiment, the processing terminal can determine the magnification factor for the target area based on the first proportion, the second proportion, and the size information of the current displayable area, based on a pre-set magnification determination rule. Thus, by determining the magnification factor of the target area based on the first proportion, the second proportion, and the size information of the current displayable area, the accuracy of the determined magnification factor can be ensured, thereby ensuring the display effect of the target area.

基于图2和图3所示的实施例,图4为本申请实施例中图3的视频处理方法中步骤S330的流程示意图,参照图4所示,步骤S330至少包括步骤S410至步骤S420,详细介绍如下:Based on the embodiments shown in FIG. 2 and FIG. 3 , FIG. 4 is a flow chart of step S330 in the video processing method of FIG. 3 in the embodiment of the present application. As shown in FIG. 4 , step S330 at least includes steps S410 to S420, which are described in detail as follows:

在步骤S410中,获取所述第一占比对应的第一权重、所述第二占比对应的第二权重以及当前可显示区域的尺寸信息对应的第三权重。In step S410, a first weight corresponding to the first proportion, a second weight corresponding to the second proportion, and a third weight corresponding to the size information of the current displayable area are obtained.

在本申请一示例性实施例中,本领域技术人员可以根据在先经验设定第一占比对应的第一权重、第二占比对应的第二权重以及当前可显示区域的尺寸信息对应的第三权重。并将上述权重信息预先存储与处理终端中,以供后续获取。In an exemplary embodiment of the present application, those skilled in the art can set a first weight corresponding to the first proportion, a second weight corresponding to the second proportion, and a third weight corresponding to the size information of the current displayable area based on prior experience, and pre-store the above weight information in the processing terminal for subsequent acquisition.

需要说明的,本领域技术人员可以针对不同类型的目标对象,分别确定与不同类型的目标对象对应的第一权重、第二权重以及第三权重,由此可以保证权重信息设定的有效性,避免所有类型的目标对象使用同一权重信息,从而影响后续的显示效果。It should be noted that technical personnel in this field can determine the first weight, second weight and third weight corresponding to different types of target objects, respectively, for different types of target objects, thereby ensuring the effectiveness of the weight information setting and avoiding all types of target objects using the same weight information, thereby affecting subsequent display effects.

在步骤S420中,根据所述第一占比、所述第二占比、所述当前可显示区域的尺寸信息、所述第一权重、所述第二权重以及所述第三权重进行加权和处理,确定针对所述目标区域的放大倍数。In step S420, weighted sum processing is performed according to the first proportion, the second proportion, the size information of the current displayable area, the first weight, the second weight, and the third weight to determine the magnification factor for the target area.

在本申请一示例性实施例中,处理终端在获取上述权重信息后,可以基于第一占比、第二占比以及当前可显示区域的尺寸信息,以及对应的第一权重值、第二权重值和第三权重值,进行加权和计算,从而确定针对该目标区域的放大倍数。In an exemplary embodiment of the present application, after obtaining the above-mentioned weight information, the processing terminal can perform weighted sum calculation based on the first proportion, the second proportion and the size information of the current displayable area, as well as the corresponding first weight value, the second weight value and the third weight value, so as to determine the magnification factor for the target area.

应该理解的,在该实施例中,通过设定对应的权重值信息,并基于上述信息进行加权和计算,可以充分考虑对目标区域的显示效果具有影响的各种因素,保证了所确定的放大倍数的有效性。It should be understood that, in this embodiment, by setting corresponding weight value information and performing weighted sum calculation based on the above information, various factors that affect the display effect of the target area can be fully considered, thereby ensuring the effectiveness of the determined magnification factor.

基于图2所示的实施例,图5为本申请实施例中图2的视频处理方法中步骤S230的流程示意图。参照图5所示,目标对象的数量为至少两个,则步骤S230至少包括步骤S510至步骤S520,详细介绍如下:Based on the embodiment shown in FIG2 , FIG5 is a flow chart of step S230 in the video processing method of FIG2 in the embodiment of the present application. Referring to FIG5 , if the number of target objects is at least two, step S230 at least includes steps S510 to S520, which are described in detail as follows:

在步骤S510中,确定包含至少两个所述目标对象的目标区域。In step S510, a target area including at least two target objects is determined.

在本申请一示例性实施例中,若目标对象的数量为至少两个,即两个或者两个以上的任意数量,则处理终端以所确定的目标区域能够同时包含该至少两个目标对象为基准,确定视频流的画面内容中的目标区域。In an exemplary embodiment of the present application, if the number of target objects is at least two, that is, any number of two or more than two, the processing terminal determines the target area in the picture content of the video stream based on the fact that the determined target area can simultaneously contain the at least two target objects.

在步骤S520中,根据所述目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数。In step S520, the magnification factor for the target area is determined according to the size information of the target area, the size information of the image frame of the video stream, and the size information of the current displayable area.

由此,在图5所示的实施例中,当目标对象的数量为至少两个时,则处理终端可以将同时包含该至少两个目标对象的区域识别为目标区域。由此,在后续显示时,可以同时突出该至少两个目标对象,避免目标对象的缺失,进而保证了视频监控的有效性。Therefore, in the embodiment shown in FIG5 , when the number of target objects is at least two, the processing terminal can identify the area containing the at least two target objects as the target area. Therefore, in subsequent display, the at least two target objects can be highlighted at the same time to avoid the loss of target objects, thereby ensuring the effectiveness of video monitoring.

基于图2所示的实施例,图6为本申请实施例中图2的视频处理方法中步骤S240的流程示意图。参照图6所示,步骤S240至少包括步骤S610至步骤S620,详细介绍如下:Based on the embodiment shown in FIG2 , FIG6 is a flow chart of step S240 in the video processing method of FIG2 in the embodiment of the present application. Referring to FIG6 , step S240 at least includes steps S610 to S620, which are described in detail as follows:

在步骤S610中,根据所述放大倍数对所述目标区域进行放大。In step S610, the target area is magnified according to the magnification factor.

在本申请一示例性实施例中,处理终端在确定针对目标区域的放大倍数后,可以按照该放大倍数,对该目标区域进行放大,从而突出目标区域包含的目标对象。In an exemplary embodiment of the present application, after determining the magnification factor for the target area, the processing terminal may magnify the target area according to the magnification factor, so as to highlight the target object contained in the target area.

在步骤S620中,在所述当前可显示区域中以放大后的所述目标区域为中心对所述视频流进行显示。In step S620, the video stream is displayed in the current displayable area with the enlarged target area as the center.

在本申请一示例性实施例中,处理终端在放大该目标区域后,可以将放大后的目标区域移动至当前可显示区域的中心,并对该视频流进行播放。由此保证该目标区域的显示效果,进而保证视频监控的有效性。In an exemplary embodiment of the present application, after the processing terminal enlarges the target area, it can move the enlarged target area to the center of the current displayable area and play the video stream, thereby ensuring the display effect of the target area and further ensuring the effectiveness of video monitoring.

基于图2所示的实施例,图7为本申请实施例中图2的视频处理方法中步骤S240的流程示意图。参照图7所示,步骤S240至少包括步骤S710至步骤S720,详细介绍如下:Based on the embodiment shown in FIG2 , FIG7 is a flow chart of step S240 in the video processing method of FIG2 in the embodiment of the present application. Referring to FIG7 , step S240 at least includes steps S710 to S720, which are described in detail as follows:

在步骤S710中,根据所述放大倍数,对用于获取所述视频流的图像获取装置进行变焦,以对所述目标区域进行放大。In step S710, the image acquisition device for acquiring the video stream is zoomed according to the magnification factor to magnify the target area.

在本申请一示例性实施例中,当确定放大倍数之后,处理终端可以向获取视频流的图像获取装置发送变焦指令,图像获取装置在接收到该变焦指令后,可以对应调整自身的拍摄参数,从而对该目标区域进行放大拍摄。In an exemplary embodiment of the present application, after determining the magnification factor, the processing terminal can send a zoom instruction to the image acquisition device that acquires the video stream. After receiving the zoom instruction, the image acquisition device can adjust its own shooting parameters accordingly to enlarge the target area.

在另一示例中,处理终端也可以基于目标区域在视频流的图像画面的位置信息,向图像获取装置发送拍摄角度调整指令,从而对应调整图像获取装置的拍摄角度,以使图像获取装置正对该目标区域。In another example, the processing terminal may also send a shooting angle adjustment instruction to the image acquisition device based on the position information of the target area in the image frame of the video stream, thereby adjusting the shooting angle of the image acquisition device accordingly so that the image acquisition device faces the target area.

在步骤S720中,接收由所述图像获取装置发送的变焦后的视频流,并在所述当前可显示区域中以所述目标区域为中心对变焦后的视频流进行显示。In step S720, the zoomed video stream sent by the image acquisition device is received, and the zoomed video stream is displayed in the current displayable area with the target area as the center.

在本申请一示例性实施例中,在变焦后,图像获取装置可以继续向处理终端发送拍摄得到的视频流数据。处理终端在接收到变焦后的视频流数据后,可以无需对变焦后的视频流进行处理,即可以在当前可显示区域中以目标区域为中心对变焦后的视频流进行显示,保证了视频监控的有效性。In an exemplary embodiment of the present application, after zooming, the image acquisition device can continue to send the captured video stream data to the processing terminal. After receiving the zoomed video stream data, the processing terminal does not need to process the zoomed video stream, that is, the zoomed video stream can be displayed with the target area as the center in the current displayable area, thereby ensuring the effectiveness of video monitoring.

应该理解的是,虽然图2-7的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-7中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the various steps in the flowcharts of Fig. 2-7 are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in Fig. 2-7 may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

在一个实施例中,如图8所示,提供了一种视频处理装置,包括:In one embodiment, as shown in FIG8 , a video processing device is provided, including:

获取模块810,用于获取待处理的视频流;An acquisition module 810 is used to acquire a video stream to be processed;

识别模块820,用于根据所述视频流,识别出所述视频流中包含的目标对象;The identification module 820 is used to identify the target object contained in the video stream according to the video stream;

确定模块830,用于根据所述目标对象所在的目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数;A determination module 830, configured to determine a magnification factor for the target area according to size information of the target area where the target object is located, size information of the image screen of the video stream, and size information of the current displayable area;

显示模块840,用于根据所述放大倍数,在所述当前可显示区域中以所述目标区域为中心对所述视频流进行显示。The display module 840 is configured to display the video stream in the current displayable area with the target area as the center according to the magnification factor.

在一个实施例中,识别模块820被配置为:将所述视频流输入至预先训练完成的目标识别模型中,以使所述目标识别模型识别出所述视频流中包含的目标对象。In one embodiment, the recognition module 820 is configured to: input the video stream into a pre-trained target recognition model, so that the target recognition model recognizes the target object contained in the video stream.

在一个实施例中,所述尺寸信息包括宽度和长度;确定模块830被配置为:根据所述目标对象所在的目标区域的宽度以及所述视频流的图像画面的宽度,确定所述目标区域的宽度相对于所述图像画面的宽度的第一占比;根据所述目标对象所在的目标区域的长度以及所述图像画面的长度,确定所述目标区域的长度相对于所述图像画面的长度的第二占比;基于所述第一占比、所述第二占比以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数。In one embodiment, the size information includes width and length; the determination module 830 is configured to: determine a first ratio of the width of the target area to the width of the image screen according to the width of the target area where the target object is located and the width of the image screen of the video stream; determine a second ratio of the length of the target area to the length of the image screen according to the length of the target area where the target object is located and the length of the image screen; determine the magnification factor for the target area based on the first ratio, the second ratio and the size information of the currently displayable area.

在一个实施例中,确定模块830被配置为:获取所述第一占比对应的第一权重、所述第二占比对应的第二权重以及当前可显示区域的尺寸信息对应的第三权重;根据所述第一占比、所述第二占比、所述当前可显示区域的尺寸信息、所述第一权重、所述第二权重以及所述第三权重进行加权和处理,确定针对所述目标区域的放大倍数。In one embodiment, the determination module 830 is configured to: obtain a first weight corresponding to the first proportion, a second weight corresponding to the second proportion, and a third weight corresponding to the size information of the current displayable area; perform weighted and processing according to the first proportion, the second proportion, the size information of the current displayable area, the first weight, the second weight, and the third weight to determine the magnification factor for the target area.

在一个实施例中,所述目标对象的数量为至少两个,确定模块830被配置为:确定包含至少两个所述目标对象的目标区域;根据所述目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数。In one embodiment, the number of the target objects is at least two, and the determination module 830 is configured to: determine a target area containing at least two of the target objects; and determine a magnification factor for the target area based on size information of the target area, size information of the image screen of the video stream, and size information of the currently displayable area.

在一个实施例中,显示模块840被配置为:根据所述放大倍数对所述目标区域进行放大;在所述当前可显示区域中以放大后的所述目标区域为中心对所述视频流进行显示。In one embodiment, the display module 840 is configured to: enlarge the target area according to the magnification factor; and display the video stream in the current displayable area with the enlarged target area as the center.

在一个实施例中,显示模块840被配置为:根据所述放大倍数,对用于获取所述视频流的图像获取装置进行变焦,以对所述目标区域进行放大;接收由所述图像获取装置发送的变焦后的视频流,并在所述当前可显示区域中以所述目标区域为中心对变焦后的视频流进行显示。In one embodiment, the display module 840 is configured to: zoom the image acquisition device used to acquire the video stream according to the magnification factor to enlarge the target area; receive the zoomed video stream sent by the image acquisition device, and display the zoomed video stream in the current displayable area with the target area as the center.

关于视频处理装置的具体限定可以参见上文中对于视频处理方法的限定,在此不再赘述。上述视频处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific definition of the video processing device, please refer to the definition of the video processing method above, which will not be repeated here. Each module in the above video processing device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图9所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种视频处理方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG9. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a video processing method is implemented. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

本领域技术人员可以理解,图9中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art will understand that the structure shown in FIG. 9 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

获取待处理的视频流;Get the video stream to be processed;

根据所述视频流,识别出所述视频流中包含的目标对象;According to the video stream, identifying a target object contained in the video stream;

根据所述目标对象所在的目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数;Determine a magnification factor for the target area according to size information of the target area where the target object is located, size information of the image screen of the video stream, and size information of the current displayable area;

根据所述放大倍数,在所述当前可显示区域中以所述目标区域为中心对所述视频流进行显示。The video stream is displayed in the current displayable area with the target area as the center according to the magnification factor.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

将所述视频流输入至预先训练完成的目标识别模型中,以使所述目标识别模型识别出所述视频流中包含的目标对象。The video stream is input into a pre-trained target recognition model so that the target recognition model can recognize the target object contained in the video stream.

在一个实施例中,所述尺寸信息包括宽度和长度,处理器执行计算机程序时还实现以下步骤:In one embodiment, the size information includes width and length, and the processor further implements the following steps when executing the computer program:

根据所述目标对象所在的目标区域的宽度以及所述视频流的图像画面的宽度,确定所述目标区域的宽度相对于所述图像画面的宽度的第一占比;根据所述目标对象所在的目标区域的长度以及所述图像画面的长度,确定所述目标区域的长度相对于所述图像画面的长度的第二占比;基于所述第一占比、所述第二占比以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数。According to the width of the target area where the target object is located and the width of the image screen of the video stream, a first ratio of the width of the target area relative to the width of the image screen is determined; according to the length of the target area where the target object is located and the length of the image screen, a second ratio of the length of the target area relative to the length of the image screen is determined; based on the first ratio, the second ratio and the size information of the currently displayable area, a magnification factor for the target area is determined.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

获取所述第一占比对应的第一权重、所述第二占比对应的第二权重以及当前可显示区域的尺寸信息对应的第三权重;根据所述第一占比、所述第二占比、所述当前可显示区域的尺寸信息、所述第一权重、所述第二权重以及所述第三权重进行加权和处理,确定针对所述目标区域的放大倍数。Obtain a first weight corresponding to the first proportion, a second weight corresponding to the second proportion, and a third weight corresponding to the size information of the current displayable area; perform weighted and processing according to the first proportion, the second proportion, the size information of the current displayable area, the first weight, the second weight, and the third weight to determine the magnification factor for the target area.

在一个实施例中,所述目标对象的数量为至少两个,处理器执行计算机程序时还实现以下步骤:In one embodiment, the number of the target objects is at least two, and the processor further implements the following steps when executing the computer program:

确定包含至少两个所述目标对象的目标区域;根据所述目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数。Determine a target area containing at least two of the target objects; and determine a magnification factor for the target area according to size information of the target area, size information of the image screen of the video stream, and size information of the current displayable area.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

根据所述放大倍数对所述目标区域进行放大;在所述当前可显示区域中以放大后的所述目标区域为中心对所述视频流进行显示。The target area is enlarged according to the magnification factor; and the video stream is displayed in the current displayable area with the enlarged target area as the center.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

根据所述放大倍数,对用于获取所述视频流的图像获取装置进行变焦,以对所述目标区域进行放大;接收由所述图像获取装置发送的变焦后的视频流,并在所述当前可显示区域中以所述目标区域为中心对变焦后的视频流进行显示。According to the magnification factor, the image acquisition device used to acquire the video stream is zoomed to enlarge the target area; the zoomed video stream sent by the image acquisition device is received, and the zoomed video stream is displayed in the current displayable area with the target area as the center.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

获取待处理的视频流;Get the video stream to be processed;

根据所述视频流,识别出所述视频流中包含的目标对象;According to the video stream, identifying a target object contained in the video stream;

根据所述目标对象所在的目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数;Determine a magnification factor for the target area according to size information of the target area where the target object is located, size information of the image screen of the video stream, and size information of the current displayable area;

根据所述放大倍数,在所述当前可显示区域中以所述目标区域为中心对所述视频流进行显示。The video stream is displayed in the current displayable area with the target area as the center according to the magnification factor.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

将所述视频流输入至预先训练完成的目标识别模型中,以使所述目标识别模型识别出所述视频流中包含的目标对象。The video stream is input into a pre-trained target recognition model so that the target recognition model can recognize the target object contained in the video stream.

在一个实施例中,所述尺寸信息包括宽度和长度,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the size information includes width and length, and when the computer program is executed by the processor, the following steps are further implemented:

根据所述目标对象所在的目标区域的宽度以及所述视频流的图像画面的宽度,确定所述目标区域的宽度相对于所述图像画面的宽度的第一占比;根据所述目标对象所在的目标区域的长度以及所述图像画面的长度,确定所述目标区域的长度相对于所述图像画面的长度的第二占比;基于所述第一占比、所述第二占比以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数。According to the width of the target area where the target object is located and the width of the image screen of the video stream, a first ratio of the width of the target area relative to the width of the image screen is determined; according to the length of the target area where the target object is located and the length of the image screen, a second ratio of the length of the target area relative to the length of the image screen is determined; based on the first ratio, the second ratio and the size information of the currently displayable area, a magnification factor for the target area is determined.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

获取所述第一占比对应的第一权重、所述第二占比对应的第二权重以及当前可显示区域的尺寸信息对应的第三权重;根据所述第一占比、所述第二占比、所述当前可显示区域的尺寸信息、所述第一权重、所述第二权重以及所述第三权重进行加权和处理,确定针对所述目标区域的放大倍数。Obtain a first weight corresponding to the first proportion, a second weight corresponding to the second proportion, and a third weight corresponding to the size information of the current displayable area; perform weighted and processing according to the first proportion, the second proportion, the size information of the current displayable area, the first weight, the second weight, and the third weight to determine the magnification factor for the target area.

在一个实施例中,所述目标对象的数量为至少两个,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the number of the target objects is at least two, and when the computer program is executed by the processor, the following steps are further implemented:

确定包含至少两个所述目标对象的目标区域;根据所述目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数。Determine a target area containing at least two of the target objects; and determine a magnification factor for the target area according to size information of the target area, size information of the image screen of the video stream, and size information of the current displayable area.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

根据所述放大倍数对所述目标区域进行放大;在所述当前可显示区域中以放大后的所述目标区域为中心对所述视频流进行显示。The target area is enlarged according to the magnification factor; and the video stream is displayed in the current displayable area with the enlarged target area as the center.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

根据所述放大倍数,对用于获取所述视频流的图像获取装置进行变焦,以对所述目标区域进行放大;接收由所述图像获取装置发送的变焦后的视频流,并在所述当前可显示区域中以所述目标区域为中心对变焦后的视频流进行显示。According to the magnification factor, the image acquisition device used to acquire the video stream is zoomed to enlarge the target area; the zoomed video stream sent by the image acquisition device is received, and the zoomed video stream is displayed in the current displayable area with the target area as the center.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent application shall be subject to the attached claims.

Claims (8)

1.一种视频处理方法,其特征在于,包括以下步骤:1. A video processing method, comprising the following steps: 获取待处理的视频流;Get the video stream to be processed; 根据所述视频流,识别出所述视频流中包含的目标对象;所述目标对象为所述视频流中用户感兴趣的对象;According to the video stream, identifying a target object contained in the video stream; the target object is an object in the video stream that a user is interested in; 根据所述目标对象所在的目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数;Determine a magnification factor for the target area according to size information of the target area where the target object is located, size information of the image screen of the video stream, and size information of the current displayable area; 根据所述放大倍数,在所述当前可显示区域中以所述目标区域为中心对所述视频流进行显示;According to the magnification factor, display the video stream in the current displayable area with the target area as the center; 所述尺寸信息包括宽度和长度;The size information includes width and length; 所述根据所述目标对象所在的目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数,包括:The determining the magnification factor for the target area according to the size information of the target area where the target object is located, the size information of the image screen of the video stream, and the size information of the current displayable area includes: 根据所述目标对象所在的目标区域的宽度以及所述视频流的图像画面的宽度,确定所述目标区域的宽度相对于所述图像画面的宽度的第一占比;Determining a first ratio of the width of the target area to the width of the image screen according to the width of the target area where the target object is located and the width of the image screen of the video stream; 根据所述目标对象所在的目标区域的长度以及所述图像画面的长度,确定所述目标区域的长度相对于所述图像画面的长度的第二占比;Determining a second ratio of the length of the target area to the length of the image screen according to the length of the target area where the target object is located and the length of the image screen; 基于所述第一占比、所述第二占比以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数;Determine a magnification factor for the target area based on the first proportion, the second proportion, and size information of a current displayable area; 所述基于所述第一占比、所述第二占比以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数,包括:The determining the magnification factor for the target area based on the first proportion, the second proportion, and the size information of the current displayable area includes: 获取所述第一占比对应的第一权重、所述第二占比对应的第二权重以及当前可显示区域的尺寸信息对应的第三权重;所述第一权重、所述第二权重以及所述第三权重基于所述目标对象的类型确定;Obtaining a first weight corresponding to the first proportion, a second weight corresponding to the second proportion, and a third weight corresponding to the size information of the current displayable area; the first weight, the second weight, and the third weight are determined based on the type of the target object; 根据所述第一占比、所述第二占比、所述当前可显示区域的尺寸信息、所述第一权重、所述第二权重以及所述第三权重进行加权和处理,确定针对所述目标区域的放大倍数。A magnification factor for the target area is determined by weighting and processing the first proportion, the second proportion, the size information of the current displayable area, the first weight, the second weight, and the third weight. 2.根据权利要求1所述的视频处理方法,其特征在于,根据所述视频流,识别出所述视频流中包含的目标对象,包括:2. The video processing method according to claim 1, characterized in that identifying the target object contained in the video stream according to the video stream comprises: 将所述视频流输入至预先训练完成的目标识别模型中,以使所述目标识别模型识别出所述视频流中包含的目标对象。The video stream is input into a pre-trained target recognition model so that the target recognition model can recognize the target object contained in the video stream. 3.根据权利要求1所述的视频处理方法,其特征在于,所述目标对象的数量为至少两个;3. The video processing method according to claim 1, characterized in that the number of the target objects is at least two; 根据所述目标对象所在的目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数,包括:Determining a magnification factor for the target area according to size information of the target area where the target object is located, size information of the image screen of the video stream, and size information of the current displayable area includes: 确定包含至少两个所述目标对象的目标区域;determining a target area including at least two of the target objects; 根据所述目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数。The magnification factor for the target area is determined according to the size information of the target area, the size information of the image frame of the video stream, and the size information of the current displayable area. 4.根据权利要求1所述的视频处理方法,其特征在于,根据所述放大倍数,在所述当前可显示区域中以所述目标区域为中心对所述视频流进行显示,包括:4. The video processing method according to claim 1, characterized in that the step of displaying the video stream with the target area as the center in the current displayable area according to the magnification factor comprises: 根据所述放大倍数对所述目标区域进行放大;Enlarging the target area according to the magnification factor; 在所述当前可显示区域中以放大后的所述目标区域为中心对所述视频流进行显示。The video stream is displayed in the current displayable area with the enlarged target area as the center. 5.根据权利要求1所述的视频处理方法,其特征在于,根据所述放大倍数,以所述目标区域为中心,在所述当前可显示区域对所述视频流进行显示,包括:5. The video processing method according to claim 1, characterized in that displaying the video stream in the current displayable area with the target area as the center according to the magnification factor comprises: 根据所述放大倍数,对用于获取所述视频流的图像获取装置进行变焦,以对所述目标区域进行放大;According to the magnification factor, zooming an image acquisition device for acquiring the video stream to magnify the target area; 接收由所述图像获取装置发送的变焦后的视频流,并在所述当前可显示区域中以所述目标区域为中心对变焦后的视频流进行显示。The zoomed video stream sent by the image acquisition device is received, and the zoomed video stream is displayed in the current displayable area with the target area as the center. 6.一种视频处理装置,其特征在于,包括:6. A video processing device, comprising: 获取模块,用于获取待处理的视频流;An acquisition module, used to acquire the video stream to be processed; 识别模块,用于根据所述视频流,识别出所述视频流中包含的目标对象;所述目标对象为所述视频流中用户感兴趣的对象;An identification module, configured to identify a target object contained in the video stream according to the video stream; the target object is an object in the video stream that a user is interested in; 确定模块,用于根据所述目标对象所在的目标区域的尺寸信息、所述视频流的图像画面的尺寸信息以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数;A determination module, configured to determine a magnification factor for the target area according to size information of the target area where the target object is located, size information of the image screen of the video stream, and size information of the current displayable area; 显示模块,用于根据所述放大倍数,在所述当前可显示区域中以所述目标区域为中心对所述视频流进行显示;A display module, configured to display the video stream in the current displayable area with the target area as the center according to the magnification; 所述尺寸信息包括宽度和长度,所述确定模块被配置为:根据所述目标对象所在的目标区域的宽度以及所述视频流的图像画面的宽度,确定所述目标区域的宽度相对于所述图像画面的宽度的第一占比;根据所述目标对象所在的目标区域的长度以及所述图像画面的长度,确定所述目标区域的长度相对于所述图像画面的长度的第二占比;基于所述第一占比、所述第二占比以及当前可显示区域的尺寸信息,确定针对所述目标区域的放大倍数;The size information includes width and length, and the determination module is configured to: determine a first ratio of the width of the target area to the width of the image screen according to the width of the target area where the target object is located and the width of the image screen of the video stream; determine a second ratio of the length of the target area to the length of the image screen according to the length of the target area where the target object is located and the length of the image screen; determine a magnification factor for the target area based on the first ratio, the second ratio and the size information of the current displayable area; 所述确定模块还被配置为:获取所述第一占比对应的第一权重、所述第二占比对应的第二权重以及当前可显示区域的尺寸信息对应的第三权重;所述第一权重、所述第二权重以及所述第三权重基于所述目标对象的类型确定;The determination module is further configured to: obtain a first weight corresponding to the first proportion, a second weight corresponding to the second proportion, and a third weight corresponding to the size information of the current displayable area; the first weight, the second weight, and the third weight are determined based on the type of the target object; 根据所述第一占比、所述第二占比、所述当前可显示区域的尺寸信息、所述第一权重、所述第二权重以及所述第三权重进行加权和处理,确定针对所述目标区域的放大倍数。A magnification factor for the target area is determined by weighting and processing the first proportion, the second proportion, the size information of the current displayable area, the first weight, the second weight, and the third weight. 7.一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至5中任一项所述方法的步骤。7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the method according to any one of claims 1 to 5 when executing the computer program. 8.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至5中任一项所述的方法的步骤。8. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
CN202111120702.XA 2021-09-24 2021-09-24 Video processing method, device, computer equipment and storage medium Active CN113891040B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111120702.XA CN113891040B (en) 2021-09-24 2021-09-24 Video processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111120702.XA CN113891040B (en) 2021-09-24 2021-09-24 Video processing method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113891040A CN113891040A (en) 2022-01-04
CN113891040B true CN113891040B (en) 2024-11-08

Family

ID=79006390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111120702.XA Active CN113891040B (en) 2021-09-24 2021-09-24 Video processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113891040B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115941861B (en) * 2022-12-14 2023-09-26 上海山源电子科技股份有限公司 Pane playing method and device, electronic equipment and medium
CN116524436B (en) * 2023-05-04 2024-08-16 南京补天科技实业有限公司 Security video supervision method based on deep AI intelligent learning algorithm

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111083568A (en) * 2019-12-13 2020-04-28 维沃移动通信有限公司 Video data processing method and electronic equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014092720A (en) * 2012-11-05 2014-05-19 Toshiba Corp Video display device and video display system
US9380275B2 (en) * 2013-01-30 2016-06-28 Insitu, Inc. Augmented video system providing enhanced situational awareness
US9158974B1 (en) * 2014-07-07 2015-10-13 Google Inc. Method and system for motion vector-based video monitoring and event categorization
CN106993227B (en) * 2016-01-20 2020-01-21 腾讯科技(北京)有限公司 Method and device for information display
CN109034115B (en) * 2018-08-22 2021-10-22 Oppo广东移动通信有限公司 Video image recognition method, device, terminal and storage medium
CN111385525B (en) * 2018-12-28 2021-08-17 杭州海康机器人技术有限公司 Video monitoring method, device, terminal and system
CN111210472B (en) * 2019-12-31 2021-07-09 山东信通电子股份有限公司 3D positioning method, device, equipment and medium for video picture
CN112115804B (en) * 2020-08-26 2024-05-24 北京博睿维讯科技有限公司 Method, system, intelligent terminal and storage medium for controlling monitoring video of key area
CN112367559B (en) * 2020-10-30 2022-10-04 北京达佳互联信息技术有限公司 Video display method and device, electronic equipment, server and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111083568A (en) * 2019-12-13 2020-04-28 维沃移动通信有限公司 Video data processing method and electronic equipment

Also Published As

Publication number Publication date
CN113891040A (en) 2022-01-04

Similar Documents

Publication Publication Date Title
CN111698553B (en) Video processing method and device, electronic equipment and readable storage medium
JP5347279B2 (en) Image display device
CN111107418A (en) Video data processing method, video data processing device, computer equipment and storage medium
CN102017597A (en) Method, apparatus, and computer program product for presenting burst images
CN113891040B (en) Video processing method, device, computer equipment and storage medium
CN114003160B (en) Data visual display method, device, computer equipment and storage medium
US10129504B2 (en) Method and system for measuring quality of video call
CN112019891A (en) Multimedia content display method and device, terminal and storage medium
CN109191544A (en) A kind of paster present methods of exhibiting, device, electronic equipment and storage medium
CN109685015B (en) Image processing method and device, electronic equipment and computer storage medium
CN115511717A (en) Image correction method, image correction device, computer equipment and storage medium
CN114390197A (en) Shooting method and device, electronic equipment and readable storage medium
WO2024093763A1 (en) Panoramic image processing method and apparatus, computer device, medium and program product
CN112464301A (en) Image display method and device
WO2024222356A1 (en) Special-effect generation method and apparatus, and computer device and storage medium
CN111402391A (en) User face image display method, display device and corresponding storage medium
CN116582637A (en) Screen splitting method of video conference picture and related equipment
CN116392813A (en) Synchronous positioning method and system based on virtual space and electronic equipment
CN113822899A (en) Image processing method, image processing device, computer equipment and storage medium
TW201640471A (en) Method for displaying video frames on a portable video capturing device and corresponding device
CN115514895B (en) Image anti-shake method, apparatus, electronic device, and computer-readable storage medium
WO2020062681A1 (en) Eyeball motion trajectory-based test question magnifying method and system, and device
CN112347914B (en) Teaching management method, device, terminal equipment and storage medium
WO2024169730A1 (en) Video processing method and apparatus, and electronic device
CN119485011A (en) Data flow configuration method, device, electronic device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant