[go: up one dir, main page]

CN114143496B - Video acquisition method and device - Google Patents

Video acquisition method and device Download PDF

Info

Publication number
CN114143496B
CN114143496B CN202111528908.6A CN202111528908A CN114143496B CN 114143496 B CN114143496 B CN 114143496B CN 202111528908 A CN202111528908 A CN 202111528908A CN 114143496 B CN114143496 B CN 114143496B
Authority
CN
China
Prior art keywords
video
window
transparent
video window
interactive
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
CN202111528908.6A
Other languages
Chinese (zh)
Other versions
CN114143496A (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 Qianhai Hand Painted Technology and Culture Co Ltd
Original Assignee
Shenzhen Qianhai Hand Painted Technology and Culture 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 Qianhai Hand Painted Technology and Culture Co Ltd filed Critical Shenzhen Qianhai Hand Painted Technology and Culture Co Ltd
Priority to CN202111528908.6A priority Critical patent/CN114143496B/en
Publication of CN114143496A publication Critical patent/CN114143496A/en
Application granted granted Critical
Publication of CN114143496B publication Critical patent/CN114143496B/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/14Systems for two-way working
    • H04N7/15Conference systems
    • H04N7/152Multipoint control units therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明提供一种视频获取方法及装置,所述方法包括:S10:读取至少一个第一视频窗口不同演示模式下可操作的交互元素的参数;S20:根据读取的至少一个第一视频窗口不同演示模式下的可交互操作元素的参数,生成可模拟交互操作的透明操作窗口;S30:将透明操作窗口与第二视频窗口贴合。本发明实施例通过读取第一视频窗口的交互操作元素的参数,根据交互参数模拟生成可模拟交互操作的透明操作窗口,同时读取第二视频窗口的坐标尺寸,将透明操作窗口与第二视频窗口进行匹配贴合,可实现接收视频数据的第二视频窗口的交互操作。

The present invention provides a video acquisition method and device, the method comprising: S10: reading parameters of interactive elements operable in different demonstration modes of at least one first video window; S20: generating a transparent operation window that can simulate interactive operations according to the parameters of the interactive elements in different demonstration modes of at least one first video window that are read; S30: fitting the transparent operation window to a second video window. The embodiment of the present invention reads the parameters of the interactive operation elements of the first video window, simulates and generates a transparent operation window that can simulate interactive operations according to the interactive parameters, and simultaneously reads the coordinate size of the second video window, and matches and fits the transparent operation window to the second video window, so as to realize the interactive operation of the second video window that receives video data.

Description

Video acquisition method and device
Technical Field
The invention relates to the technical field of video conferences, in particular to a video acquisition method and device.
Background
In the video conference process, along with the diversity of demonstration and cooperative requirements, personalized creative expression requirements are usually realized by means of OBS push stream demonstration software of a third party. In general, audio and video communication between the video conference software and the OBS is realized based on connection of the virtual camera, so as to control the expression layer of the virtual camera of the OBS and push the audio and video stream to the video conference software port. Because of the factors of the system software process level, when the OBS communicates with the conference software, generally, only the OBS of the top level can be controlled, and at this time, other capabilities to be represented by the video conference software level, such as text communication, voting and the like, cannot be directly exposed and invoked in real time, and the demonstration effect is effectively compromised by frequent software switching.
Disclosure of Invention
To solve the above technical problem, a first aspect of the present invention provides a video acquisition method, including:
s10, reading parameters of interactive elements operable in different demonstration modes of at least one first video window;
S20, generating a transparent operation window capable of simulating interactive operation according to parameters of the interactive operation elements in different demonstration modes of at least one first video window;
and S30, attaching the transparent operation window to the second video window.
Preferably, in step S20, the method for generating the transparent operation window capable of simulating the interactive operation according to the parameters of the interactive operation elements in the different demonstration modes of the at least one first video window comprises the following steps:
s201, simulating and generating transparent element blocks of interoperable elements;
s202, overlapping the transparent element image blocks with transparent image canvas to generate a transparent operation window capable of simulating interactive operation.
Preferably, the parameters of the interoperable element include region coordinates of the interoperable element with respect to the first video window, an element size.
Preferably, the region coordinates and the element sizes of the transparent element block and the transparent image canvas are the same as the region coordinates and the element sizes of the interoperable elements and the first video window.
Preferably, step S10 is preceded by the step S00 of reading a first size scale and a first coordinate parameter of the at least one first video window and a second size scale and a second coordinate parameter of the at least one second video window.
Preferably, in step S30, the transparent operation window is scaled to be equal to the second video window in height, and aligned centrally, so as to implement positioning fit between the transparent operation window and the second video window.
A second aspect of the present invention provides a video acquisition apparatus, the apparatus comprising:
the reading module is used for reading parameters of the interoperable elements in different demonstration modes of at least one first video window;
the generating module is used for generating a transparent operation window capable of simulating interactive operation according to parameters of the interactive operation elements in different demonstration modes of at least one read first video window;
And the attaching module attaches the transparent operation window to the second video window.
Preferably, the generating module includes:
A simulation unit for simulating and generating transparent element blocks of interoperable elements;
and the superposition unit is used for superposing the transparent element image blocks on the transparent image canvas to generate a transparent operation window capable of simulating interactive operation.
A third aspect of the invention provides an electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the computer program is executed in the processor to implement any of the methods described above.
A fourth aspect of the present invention is a storage medium storing a computer program that, when executed in a processor, performs any of the methods described above.
The method and the device have the advantages that the transparent operation window capable of simulating the interactive operation is generated according to the simulation of the interactive parameters by reading the parameters of the interactive operation elements of the first video window, meanwhile, the coordinate size of the second video window is read, the transparent operation window and the second video window are matched and attached, and the interactive operation of the second video window for receiving video data can be realized.
Meanwhile, the embodiment of the invention transparencies the virtual video stream image layer, tiles the interoperable elements, reads the coordinate size of the video conference software image window, and performs matching lamination on the transparent image layer and the conference image layer, so as to laminate the interoperable elements to the video conference window. The video in the video conference can be controlled without frequent switching operation of the software end, and other capabilities of the conference software end can be controlled.
Drawings
FIG. 1 shows a flow chart of a video acquisition method of an embodiment of the present invention;
fig. 2 shows a schematic diagram of the structure of the video acquisition device of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that in the description of the present invention, the term "storage medium" may be a variety of media that can store computer programs, such as ROM, RAM, magnetic or optical disks, unless explicitly stated and limited otherwise. The term "processor" may be a chip or circuit with data processing functions, such as a CPLD (Complex Programmable Logic Device: complex Programmable logic device), an FPGA (Field-Programmable gate array) GATE ARRAY, an MCU (Microcontroller Unit: micro control unit), a PLC (Programmable Logic Controller: programmable logic controller), and a CPU (Central Processing Unit: central processing unit). The term "electronic device" may be any device having data processing and storage functions, and may generally include both fixed terminals and mobile terminals. Fixed terminals such as desktops and the like. Mobile terminals such as cell phones, PADs, mobile robots, and the like. In addition, the technical features of the different embodiments of the invention described later can be combined with each other as long as they do not collide with each other.
For a better understanding of the present invention, the present invention is further described below with reference to specific examples and drawings.
The video acquisition method provided by the embodiment is suitable for the situation of video conference between at least one first video device, such as a local video device, and at least one second video device, such as a remote video device. The first video device is provided with at least one actual camera, and the second video device can be the same video device as the first video device or can be a different video device. The first video device and the second video device are, for example, a mobile phone, a tablet, a desktop computer with a camera connected thereto, or the like.
Video conference software is installed in the first video equipment and the second video equipment, the video conference software in the first video equipment and the second video equipment interact through the Internet and are connected in a video mode, and after the video connection is established, the first video equipment can transmit video data with the second video equipment.
Further, a virtual camera is installed in the first video device in advance, format conversion is performed on window (screen) data of the first video device by using the virtual camera, so that video output data are obtained, and the video output data are displayed on a window of the second video device. The virtual camera is application software which can simulate a real camera.
The first video device is provided with a first video window, the second video device is provided with a second video window, and video data transmitted between the first video device and the second video device comprises video data acquired by a camera of the first video device and/or window data of the first video window acquired by a virtual camera.
Fig. 1 shows a flowchart of a video acquisition method according to an embodiment of the present invention, as shown in fig. 1, where the method includes:
S00, reading a first size proportion and a first coordinate parameter of at least one first video window, and a second size proportion and a second coordinate parameter of at least one second video window.
In the step, connection between the virtual camera and at least one first video device and at least one second video device is established, and specifically, video conference software in the first video device and the second video device interact and perform video connection through the internet.
The method comprises the steps of reading a first size proportion and a first coordinate parameter of a first video window through a communication interface between a virtual camera and the first video window, and reading a second size proportion and a second coordinate parameter of a second video window through a communication interface between the virtual camera and the second video window.
And S10, reading parameters of the interoperable elements of at least one first video window in different demonstration modes.
Different interactive operations can be realized for the first video window in different demonstration modes. The parameters of the interoperable elements comprise region coordinates of the interoperable elements relative to the first video window, element sizes and the like.
In the step, parameters of the interoperable elements in different presentation modes of the first video window are read via a communication interface between the virtual camera and the first video window.
And S20, generating a transparent operation window capable of simulating interactive operation according to the parameters of the interactive operation elements in different demonstration modes of the at least one first video window.
The method comprises the following steps:
s201, simulating and generating transparent element blocks of interoperable elements;
s202, overlapping the transparent element image blocks with transparent image canvas to generate a transparent operation window capable of simulating interactive operation.
The region coordinates and the element sizes of the transparent element block relative to the transparent image canvas are the same as the region coordinates and the element sizes of the interoperable elements relative to the first video window.
And S30, attaching the transparent operation window to the second video window.
In the step, the transparent operation window is scaled to be equal to the second video window in height and aligned in the middle, so that positioning and bonding between the transparent operation window and the second video window are realized.
In the embodiment of the invention, the parameters of the interactive operation elements of the first video window are read, the transparent operation window capable of simulating the interactive operation is generated according to the simulation of the interactive parameters, the coordinate size of the second video window is read, and the transparent operation window is matched and attached with the second video window, so that the interactive operation of the second video window for receiving the video data can be realized.
Meanwhile, the embodiment of the invention transparencies the virtual video stream image layer, tiles the interoperable elements, reads the coordinate size of the video conference software image window, and performs matching lamination on the transparent image layer and the conference image layer, so as to laminate the interoperable elements to the video conference window. The video in the video conference can be controlled without frequent switching operation of the software end, and other capabilities of the conference software end can be controlled.
Fig. 2 shows a schematic structural diagram of a video acquisition device according to the present invention, as shown in fig. 2, the device includes:
the reading module is used for reading parameters of the interoperable elements in different demonstration modes of at least one first video window;
the generating module is used for generating a transparent operation window capable of simulating interactive operation according to parameters of the interactive operation elements in different demonstration modes of at least one read first video window;
And the attaching module attaches the transparent operation window to the second video window.
Further, the reading module is further configured to read a first size ratio and a first coordinate parameter of at least one first video window, and a second size ratio and a second coordinate parameter of at least one second video window.
Further, the generating module includes:
A simulation unit for simulating and generating transparent element blocks of interoperable elements;
and the superposition unit is used for superposing the transparent element image blocks on the transparent image canvas to generate a transparent operation window capable of simulating interactive operation.
The embodiment of the invention also provides electronic equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the computer program executes in the processor to realize any method.
The embodiment of the invention also provides a storage medium which stores a computer program, and the computer program executes in a processor to realize any one of the methods.
It should be noted that any of the methods provided in the above embodiments are not permitted to use or store any of the methods without permission, and are within the scope of the present invention.
The foregoing describes the embodiments of the present invention in detail, but the description is only a preferred embodiment of the present invention and should not be construed as limiting the scope of the invention. All equivalent changes and modifications within the scope of the present invention are intended to be covered by this patent.

Claims (4)

1.一种视频获取方法,其特征在于:所述方法包括:1. A video acquisition method, characterized in that: the method comprises: S10:读取至少一个第一视频窗口不同演示模式下可操作的交互元素的参数;S10: Reading parameters of at least one interactive element operable in different presentation modes of the first video window; S20:根据读取的至少一个第一视频窗口不同演示模式下的可交互操作元素的参数,生成可模拟交互操作的透明操作窗口;S20: generating a transparent operation window capable of simulating interactive operation according to the parameters of the interactively operable elements in different demonstration modes of the at least one first video window read; S30:将透明操作窗口与第二视频窗口贴合;其中,第一视频设备具有所述第一视频窗口,第二视频设备具有所述第二视频窗口,第一视频设备与第二视频设备之间传输的视频数据包括第一视频设备的摄像头获取的视频数据和/或虚拟摄像头获取的所述第一视频窗口的窗口数据;S30: Attaching the transparent operation window to the second video window; wherein the first video device has the first video window, the second video device has the second video window, and the video data transmitted between the first video device and the second video device includes the video data acquired by the camera of the first video device and/or the window data of the first video window acquired by the virtual camera; 步骤S20:根据读取的至少一个第一视频窗口不同演示模式下的可交互操作元素的参数,生成可模拟交互操作的透明操作窗口的方法包括:Step S20: The method for generating a transparent operation window capable of simulating interactive operation according to the parameters of the interactively operable elements in different demonstration modes of at least one first video window read includes: S201:模拟生成可交互操作的元素的透明元素图块;S201: Simulate and generate transparent element blocks of interactively operable elements; S202:将所述透明元素图块叠加透明的影像画布,生成可模拟交互操作的透明操作窗口;S202: superimposing the transparent element block on the transparent image canvas to generate a transparent operation window that can simulate interactive operations; 可交互操作元素的参数包括可交互操作元素相对第一视频窗口的区域坐标、元素大小;The parameters of the interactively operable element include the area coordinates of the interactively operable element relative to the first video window and the element size; 透明元素图块相对所述透明的影像画布的区域坐标、元素大小与可交互操作元素相对第一视频窗口的区域坐标、元素大小相同;The area coordinates and element size of the transparent element block relative to the transparent image canvas are the same as the area coordinates and element size of the interactive element relative to the first video window; 步骤S10之前还包括步骤S00:读取至少一个第一视频窗口的第一尺寸比例以及第一坐标参数,以及至少一个第二视频窗口的第二尺寸比例以及第二坐标参数;Before step S10, the method further includes step S00: reading a first size ratio and a first coordinate parameter of at least one first video window, and a second size ratio and a second coordinate parameter of at least one second video window; 步骤S30中,将所述透明操作窗口等比例缩放至与第二视频窗口等高,并居中对齐,以实现所述透明操作窗口与第二视频窗口之间的定位贴合。In step S30, the transparent operation window is scaled proportionally to be equal in height to the second video window and centered to achieve positioning fit between the transparent operation window and the second video window. 2.一种视频获取装置,其特征在于:所述装置包括:2. A video acquisition device, characterized in that: the device comprises: 读取模块,读取至少一个第一视频窗口不同演示模式下的可交互操作元素的参数;A reading module, reading parameters of at least one interactively operable element in different presentation modes of the first video window; 生成模块,根据读取的至少一个第一视频窗口不同演示模式下的可交互操作元素的参数,生成可模拟交互操作的透明操作窗口;A generating module, generating a transparent operating window capable of simulating interactive operations according to the parameters of the interactively operable elements in different demonstration modes of at least one first video window read; 贴合模块,将透明操作窗口与第二视频窗口贴合;其中,第一视频设备具有所述第一视频窗口,第二视频设备具有所述第二视频窗口,第一视频设备与第二视频设备之间传输的视频数据包括第一视频设备的摄像头获取的视频数据和/或虚拟摄像头获取的所述第一视频窗口的窗口数据;A pasting module, pasting the transparent operation window with the second video window; wherein the first video device has the first video window, the second video device has the second video window, and the video data transmitted between the first video device and the second video device includes the video data acquired by the camera of the first video device and/or the window data of the first video window acquired by the virtual camera; 所述生成模块包括:The generation module comprises: 模拟单元,模拟生成可交互操作的元素的透明元素图块;Simulation unit, which simulates transparent element tiles that generate interactive elements; 叠加单元,将所述透明元素图块叠加透明的影像画布,生成可模拟交互操作的透明操作窗口;A superimposing unit, superimposing the transparent element block on the transparent image canvas to generate a transparent operation window that can simulate interactive operations; 其中,可交互操作元素的参数包括可交互操作元素相对第一视频窗口的区域坐标、元素大小;The parameters of the interactively operable element include the area coordinates of the interactively operable element relative to the first video window and the element size; 透明元素图块相对所述透明的影像画布的区域坐标、元素大小与可交互操作元素相对第一视频窗口的区域坐标、元素大小相同;The area coordinates and element size of the transparent element block relative to the transparent image canvas are the same as the area coordinates and element size of the interactive element relative to the first video window; 读取模块具体用于:读取至少一个第一视频窗口的第一尺寸比例以及第一坐标参数,以及至少一个第二视频窗口的第二尺寸比例以及第二坐标参数;The reading module is specifically used to: read a first size ratio and a first coordinate parameter of at least one first video window, and a second size ratio and a second coordinate parameter of at least one second video window; 叠加单元具有用于,将所述透明操作窗口等比例缩放至与第二视频窗口等高,并居中对齐,以实现所述透明操作窗口与第二视频窗口之间的定位贴合。The superimposing unit is used to proportionally scale the transparent operation window to the same height as the second video window and align them in the center to achieve positioning fit between the transparent operation window and the second video window. 3.一种电子设备,包括存储器和处理器,所述存储器存储计算机程序,其特征在于,所述计算机程序在所述处理器中执行可实现权利要求1中的方法。3. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein the computer program is executed in the processor to implement the method of claim 1. 4.一种存储介质,存储计算机程序,其特征在于,所述计算机程序在处理器中执行可实现权利要求1中的方法。4. A storage medium storing a computer program, characterized in that the computer program can implement the method of claim 1 when executed in a processor.
CN202111528908.6A 2021-12-15 2021-12-15 Video acquisition method and device Active CN114143496B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111528908.6A CN114143496B (en) 2021-12-15 2021-12-15 Video acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111528908.6A CN114143496B (en) 2021-12-15 2021-12-15 Video acquisition method and device

Publications (2)

Publication Number Publication Date
CN114143496A CN114143496A (en) 2022-03-04
CN114143496B true CN114143496B (en) 2025-01-10

Family

ID=80382328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111528908.6A Active CN114143496B (en) 2021-12-15 2021-12-15 Video acquisition method and device

Country Status (1)

Country Link
CN (1) CN114143496B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120263931B (en) * 2025-05-29 2025-08-05 成都天堂云科技有限公司 An OPS framework conference communication system for virtual enhanced digital conferences

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301788A (en) * 2014-09-26 2015-01-21 北京奇艺世纪科技有限公司 Method and device for providing video interaction
CN106293755A (en) * 2010-01-25 2017-01-04 Tivo有限公司 Use while multiple user interface apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107197194A (en) * 2017-06-27 2017-09-22 维沃移动通信有限公司 A kind of video call method and mobile terminal
CN112783398B (en) * 2019-11-08 2024-12-03 阿里巴巴集团控股有限公司 Display control and interactive control method, device, system and storage medium
US11150861B1 (en) * 2020-06-25 2021-10-19 Coscreen, Inc. Apparatus and method for simultaneous multi-user screen and window sharing, capturing and coordination

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293755A (en) * 2010-01-25 2017-01-04 Tivo有限公司 Use while multiple user interface apparatus
CN104301788A (en) * 2014-09-26 2015-01-21 北京奇艺世纪科技有限公司 Method and device for providing video interaction

Also Published As

Publication number Publication date
CN114143496A (en) 2022-03-04

Similar Documents

Publication Publication Date Title
CN109978989B (en) Three-dimensional face model generation method, three-dimensional face model generation device, computer equipment and storage medium
CN100525392C (en) Camera video image processing system and method thereof
WO2023179346A1 (en) Special effect image processing method and apparatus, electronic device, and storage medium
CN110969687B (en) Collision detection method, device, equipment and medium
US20230367395A1 (en) Haptic scene representation format
CN110505510B (en) Video picture display method and device in large-screen system and storage medium
CN114143496B (en) Video acquisition method and device
CN105719240A (en) Method and apparatus for picture processing
US20240144625A1 (en) Data processing method and apparatus, and electronic device and storage medium
CN112422882A (en) Method and device for providing video source for video conference system
CN113014960A (en) Method, device and storage medium for online video production
CN102647511B (en) Three-dimensional museum interaction system based on smartphone and interaction method thereof
EP4546268A1 (en) Graphical interface processing method and apparatus
US11070713B2 (en) Network-controlled 3D video capture
CN114339074A (en) Explanatory video generation method, device, computer equipment and storage medium
CN206421330U (en) A kind of virtual reality resource platform system
WO2020155908A1 (en) Method and apparatus for generating information
CN109308740A (en) 3D contextual data processing method, device and electronic equipment
CN105225035A (en) A kind ofly realize the unified robot of E-Government
CN116631244A (en) System, method, storage medium and electronic device for simulating operation of mechanical equipment
CN210072615U (en) Immersive training system and wearable equipment
CN205959309U (en) Cinema ticket ticketing machine people
CN119180917B (en) Target object surface reconstruction method and related device
EP4280226B1 (en) Remote reproduction method and system
US11731262B2 (en) Robot and method for operating the same

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