CN102710898B - Method and system for synchronously switching foreground and background of color key device - Google Patents

Method and system for synchronously switching foreground and background of color key device Download PDF

Info

Publication number
CN102710898B
CN102710898B CN201110249791.8A CN201110249791A CN102710898B CN 102710898 B CN102710898 B CN 102710898B CN 201110249791 A CN201110249791 A CN 201110249791A CN 102710898 B CN102710898 B CN 102710898B
Authority
CN
China
Prior art keywords
switching
signal
prospect
background
user
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.)
Expired - Fee Related
Application number
CN201110249791.8A
Other languages
Chinese (zh)
Other versions
CN102710898A (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.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing 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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN201110249791.8A priority Critical patent/CN102710898B/en
Publication of CN102710898A publication Critical patent/CN102710898A/en
Application granted granted Critical
Publication of CN102710898B publication Critical patent/CN102710898B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Circuits (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

The invention discloses a method for synchronously switching a foreground and a background of a color key device. The method specifically comprises the following steps of: receiving a user switching request, wherein the user switching request comprises serial numbers of original equipment and target equipment; according to the user switching request, generating switching delay frame number information, and generating a foreground switching command; according to the switching delay frame number information, switching a background signal; according to the foreground switching command, switching the original equipment and the target equipment by using the color key device, and thus obtaining a switched foreground signal; and synthesizing the background signal and the switched foreground signal, and then outputting a signal. The method has the advantages that the problem about synchronous switching of the foreground and the background of the color key device in a virtual studio technology is solved, and delay time is set for background switching in the synthesis process of the foreground and the background by processing a synchronous switching command in the received user switching request, so the foreground and the background can be synthesized and output in real time.

Description

A kind of method and system of chroma key device prospect background synchronism switching
Technical field
The present invention relates in virtual studio program making field, particularly processed by chroma key device, particularly a kind of method and system of chroma key device prospect background synchronism switching.
Background technology
Virtual studio is the television program designing technology of a kind of uniqueness that developed recently gets up.Its essence is that the character activities image of the virtual three-dimensional scene of computer manufacture and television camera shooting is carried out digitized real-time synthesis, personage and virtual background are synchronously changed, thus fusion flawless both realizing, perfectly synthesize picture to obtain.Virtual studio is a kind of brand-new tool of TV programme production, and Virtual Studio Technology comprises chroma key technique, computer virtual Scenario Design and lan settings technology, lighting technology and Camera Tracking Technology etc.Virtual Studio Technology is on the basis of traditional Chroma Key technology, take full advantage of Computerized three-dimensional graph technology and Video Composition technology, according to position and the parameter of video camera, the perspective relation of three-dimensional virtual scene and prospect are consistent, after Image Matte, make the host in prospect seem to soak completely in the three-dimensional virtual scene produced in computer to the greatest extent, and can move wherein, thus create true to nature, that third dimension is very strong television stadio effect.
Need to accept networking command in real time because network accepts thread in prior art, if do chroma key device switch operating in network reception thread, impact can be had on networked-induced delay.The method that prior art uses is: after network reception thread receives order, send out message to main thread, performs the switch operating of chroma key device in main thread.
Realize in process of the present invention inventor, find there is following defect in prior art, due to other operation usually will be done in main thread in prior art, network reception thread transmission switching message starts to perform between switch operating to main thread certain time delay, and due to the running status of main thread different, cause the time of time delay not fixed, cannot synchronism switching be accomplished.
Summary of the invention
For defect of the prior art, the invention solves the problem of chroma key device prospect background synchronism switching in Virtual Studio Technology.
A kind of method that above technical problem the invention provides chroma key device prospect in order to solve, BACKGROUNDSynchronization switches, specifically comprise: receive user's handover request, at least comprise in described handover request: original equipment is numbered, target device is numbered; Generate handoff delay frame number information according to described user's handover request, and generate prospect switching command; Described background signal is switched according to described handoff delay frame number; Described chroma key device switches original equipment according to described prospect switching command and target device obtains the foreground signal after switching; Signal output is carried out according to after the foreground signal synthesis after described background signal and described switching.
Meanwhile, present invention also offers a kind of system of chroma key device prospect background synchronism switching, it is characterized in that, comprising: receiving element, prospect switching command generation unit, Background generation unit, prospect generation unit, signal output unit, wherein,
Described receiving element, for receiving user's handover request, at least comprises in described handover request: original equipment is numbered, and target device is numbered;
Described prospect switching command generation unit, for generating handoff delay frame number information according to described user's handover request, and generates prospect switching command;
Described Background generation unit, for switching described background signal according to described handoff delay frame number;
Described prospect generation unit, obtains the foreground signal after switching for described chroma key device according to described prospect switching command switching original equipment and target device;
Described signal output unit, for carrying out signal output according to after the foreground signal synthesis after described background signal and described switching.
Compared with prior art, the embodiment of the present invention has the following advantages: by the process to synchronism switching order in received user's handover request, carrying out in prospect, background building-up process, setting time delay is being switched to background, thus prospect and background is achieved synthesize output in real time.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1: the line graph being the method for a kind of chroma key device prospect background synchronism switching in the embodiment of the present invention;
Fig. 2: the flow chart being the method for a kind of chroma key device prospect background synchronism switching in the embodiment of the present invention;
Fig. 3: the flow chart being the method for another kind of chroma key device prospect background synchronism switching in the embodiment of the present invention;
Fig. 4: the schematic diagram being the system of a kind of chroma key device prospect background synchronism switching in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In the embodiment of the present invention 1, the line graph of the present embodiment Virtual Studio System as shown in Figure 1, graphics server provides background signal, video camera provides foreground signal, a chroma key device can connect multiple foreground signal, current time, only have a road foreground signal can synthesize with background signal, synchronism switching prospect, background signal, just can realize the effect that seat in the plane switches.The procedure that the present invention is realizing chroma key device prospect background synchronism switching comprises: create chroma key device and control thread, receive network chroma key device switching command, trigger handover event, perform chroma key device handover event.
Provide a kind of method of chroma key device prospect background synchronism switching in the embodiment of the present invention 1 simultaneously, as shown in Figure 2, first, generation background signal; Foreground signal is generated by chroma key device, and further comprising the steps:
Step S101: receive user's handover request;
In this step, receive user's handover request, at least comprise in described handover request: original equipment is numbered, target device is numbered;
Step S102: generate prospect switching command;
In this step, generate handoff delay frame number information according to described user's handover request, and generate prospect switching command;
Step S103: switch background signal;
Described background signal is switched according to described handoff delay frame number;
Step S104: generate the foreground signal after switching;
Described chroma key device switches original equipment according to described prospect switching command and target device obtains the foreground signal after switching;
Step S105: composite signal exports;
Signal output is carried out according to after the foreground signal synthesis after described background signal and described switching.
In the embodiment of the present invention, the serial ports control line of chroma key device is connected with main control computer, and with user-friendly, background signal is provided by graphics server, and the time reference of synchronism switching also has graphics server to provide.Due to the attribute of chroma key device hardware, to the switching command of chroma key device, chroma key device can not perform immediately, and a few frame such as to need could perform.So prospect switching command will send immediately, and background wants time delay to switch, and just can make prospect, background switches simultaneously.
1, main control end receives the synchronism switching request from user.
2, main control end is packaged into networking command Packet Generation to graphics server synchronism switching request, contains concrete seat in the plane number and the handoff delay frame number of switching in packet.
3, graphics server receive switch background command, and with play up clock synchronous.
4, organize prospect synch command, and send prospect synch command to master control.
5, main control end resolves prospect synch command, and sends prospect handover request to chroma key device.
Wherein, network data receiving thread handling process is:
(1), network switching command is waited for
(2), resolve command, and Update Table bag
(3), prospect switching time is triggered
Switch threads handling process is:
(1), handover event is waited for
(2), switch data bag is read
(3), the handover information in switch data bag is sent to chroma key device
Provide the method for another kind of chroma key device prospect background synchronism switching in the embodiment of the present invention 2, as shown in Figure 3, comprise the following steps:
Step S201: receive user's handover request;
In this step, receive user's handover request, at least comprise in described handover request: original equipment is numbered, target device is numbered;
Also comprise in described reception user handover request: user sets time delay frame switching time.
Step S202: generate prospect switching command;
In this step, generate handoff delay frame number information according to described user's handover request, and generate prospect switching command;
And then comprise step S2021: carry out networking command packet encapsulation;
Networking command packet is packaged into according to described user's handover request;
Resolve described networking command packet and obtain described handoff delay frame number information and target device numbering generation prospect switching command.
Extract described user according to described user's handover request and set time delay frame switching time;
Set setting switching time of time delay frame according to described user and generate handoff delay frame number information.
Step S203: switch background signal;
Described background signal is switched according to described handoff delay frame number;
And then comprise step S2031: generation background signal information generated.
Step S204: generate the foreground signal after switching;
Described chroma key device switches original equipment according to described prospect switching command and target device obtains the foreground signal after switching;
And then comprise step S2041: generate foreground signal information generated.
Step S205: composite signal exports;
Signal output is carried out according to after the foreground signal synthesis after described background signal and described switching.
And then comprise step S2051: judge that synthesis exports;
Judge described background signal information generated whether exist, if not, then there is not information in generation background signal, otherwise, judge whether described foreground signal exists, if so, then generate synthetic order information; Otherwise, generate foreground signal and there is not information;
According to described synthetic order information, to background signal syntheses, output described in described foreground signal machine.
Provide a kind of system of chroma key device prospect background synchronism switching in the embodiment of the present invention 3, as shown in Figure 4, comprising:
Receiving element 401, prospect switching command generation unit 402, Background generation unit 403, prospect generation unit 404, signal output unit 405, wherein,
Described receiving element 401, for receiving user's handover request, at least comprises in described handover request: original equipment is numbered, and target device is numbered;
Described prospect switching command generation unit 402, for generating handoff delay frame number information according to described user's handover request, and generates prospect switching command;
Described Background generation unit 403, for switching described background signal according to described handoff delay frame number;
Described prospect generation unit 404, obtains the foreground signal after switching for described chroma key device according to described prospect switching command switching original equipment and target device;
Described signal output unit 405, for carrying out signal output according to after the foreground signal synthesis after described background signal and described switching.
Also comprise in described prospect generation unit 404, networking command packet generation unit 4041,
Described networking command packet generation unit, for being packaged into networking command packet according to described user's handover request; Resolve described networking command packet and obtain described handoff delay frame number information and target device numbering generation prospect switching command.Also comprise in described reception user handover request: user sets time delay frame switching time.
Also comprise in described prospect switching command generation unit 404, user's handoff delay set of time unit 4042,
Described user's handoff delay set of time unit, sets time delay frame switching time for extracting described user according to described user's handover request; Set setting switching time of time delay frame according to described user and generate handoff delay frame number information.
Described prospect generation unit also comprises 404, foreground signal generation unit 4043, and described foreground signal generation unit is for generating foreground signal information generated.
Also comprise in described Background generation unit 403, background signal generation unit 4031, described background signal generation unit, for generation background signal information generated.
Described signal output unit 405 also comprises, judge synthesis unit 4051, described judgement synthesis unit, for judge described background signal information generated whether exist, if not, then there is not information in generation background signal, otherwise, judge whether described foreground signal exists, if so, then generate synthetic order information; Otherwise, generate foreground signal and there is not information;
According to described synthetic order information, to background signal syntheses, output described in described foreground signal machine.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention can by hardware implementing, and the mode that also can add necessary general hardware platform by software realizes.Based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions and perform method described in each embodiment of the present invention in order to make a computer equipment (can be personal computer, server, or the network equipment etc.).
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device in embodiment can carry out being distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices being different from the present embodiment.The module of above-described embodiment can merge into a module, also can split into multiple submodule further.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Be only several specific embodiment of the present invention above, but the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.

Claims (12)

1. a method for chroma key device prospect background synchronism switching, is characterized in that, comprising:
Receive user's handover request, at least comprise in described user's handover request: original equipment numbering and target device numbering;
Generate handoff delay frame number information according to described user's handover request, and generate prospect switching command, specifically comprise: described user's handover request is packaged into networking command packet; Resolve described networking command packet and obtain described handoff delay frame number information and target device numbering; According to networking command packet and described handoff delay frame number information and target device numbering generation prospect switching command;
Background signal is switched according to described handoff delay frame number;
The foreground signal after switching is obtained according to described prospect switching command switching original equipment and target device;
Signal output is carried out according to after the foreground signal synthesis after described background signal and described switching.
2. as described in claim 1 method, is characterized in that, also comprise in described reception user handover request: user sets time delay frame switching time.
3. as described in claim 2 method, is characterized in that, describedly generates handoff delay frame number information according to described user's handover request and specifically comprises:
The time delay frame switching time of described user setting is extracted according to described user's handover request;
Handoff delay frame number information is generated according to time delay frame setting switching time that described user sets.
4. as described in claim 1 method, is characterized in that, describedly switches described background signal step according to described handoff delay frame number and specifically comprises:
Described background signal is switched according to described handoff delay frame number;
Generation background signal information generated.
5. method as described in claim 4, is characterized in that, described chroma key device switches original equipment according to described prospect switching command and target device obtains the foreground signal after switching, and also comprises after step:
Generate foreground signal information generated.
6. as described in claim 5 method, is characterized in that, describedly exports specifically comprise according to carrying out signal after the foreground signal synthesis after described background signal and described switching:
Judge described background signal information generated whether exist, if not, then there is not information in generation background signal, otherwise, judge whether described foreground signal exists, if so, then generate synthetic order information; Otherwise, generate foreground signal and there is not information;
According to described synthetic order information, export after described foreground signal and the synthesis of described background signal.
7. a system for chroma key device prospect background synchronism switching, is characterized in that, comprising: receiving element, prospect switching command generation unit, Background generation unit, prospect generation unit, signal output unit, wherein,
Described receiving element, for receiving user's handover request, at least comprises in described handover request: original equipment is numbered, and target device is numbered;
Described prospect switching command generation unit, for generating handoff delay frame number information according to described user's handover request, and generates prospect switching command;
Described Background generation unit, for switching background signal according to described handoff delay frame number;
Described prospect generation unit, obtains the foreground signal after switching for described chroma key device according to described prospect switching command switching original equipment and target device;
Described signal output unit, for carrying out signal output according to after the foreground signal synthesis after described background signal and described switching;
Also comprise in described prospect generation unit, networking command packet generation unit,
Described networking command packet generation unit, for being packaged into networking command packet according to described user's handover request; Resolve described networking command packet and obtain described handoff delay frame number information and target device numbering generation prospect switching command.
8. as described in claim 7 system, is characterized in that, also comprise in described reception user handover request: user sets time delay frame switching time.
9. system as described in claim 8, is characterized in that, also comprise in described prospect switching command generation unit, user's handoff delay set of time unit,
Described user's handoff delay set of time unit, sets time delay frame switching time for extracting described user according to described user's handover request; Set setting switching time of time delay frame according to described user and generate handoff delay frame number information.
10. system as described in claim 7, it is characterized in that, also comprise in described Background generation unit, background signal generation unit, described background signal generation unit, for generation background signal information generated.
11. systems as described in claim 10, it is characterized in that, described prospect generation unit also comprises, foreground signal generation unit, and described foreground signal generation unit is for generating foreground signal information generated.
12. systems as described in claim 11, it is characterized in that, described signal output unit also comprises, and judges synthesis unit, described judgement synthesis unit, for judge described background signal information generated whether exist, if not, then there is not information in generation background signal, otherwise, judge whether described foreground signal exists, if so, then generate synthetic order information; Otherwise, generate foreground signal and there is not information; According to described synthetic order information, to described foreground signal and the synthesis of described background signal, export.
CN201110249791.8A 2011-08-26 2011-08-26 Method and system for synchronously switching foreground and background of color key device Expired - Fee Related CN102710898B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110249791.8A CN102710898B (en) 2011-08-26 2011-08-26 Method and system for synchronously switching foreground and background of color key device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110249791.8A CN102710898B (en) 2011-08-26 2011-08-26 Method and system for synchronously switching foreground and background of color key device

Publications (2)

Publication Number Publication Date
CN102710898A CN102710898A (en) 2012-10-03
CN102710898B true CN102710898B (en) 2015-02-18

Family

ID=46903439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110249791.8A Expired - Fee Related CN102710898B (en) 2011-08-26 2011-08-26 Method and system for synchronously switching foreground and background of color key device

Country Status (1)

Country Link
CN (1) CN102710898B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107509007A (en) * 2017-08-09 2017-12-22 南京理工大学 A kind of virtual studio synchronizing signal piece-rate system
CN112843677B (en) * 2021-02-08 2023-07-11 脸萌有限公司 System delay determining method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1477856A (en) * 2002-08-21 2004-02-25 北京新奥特集团 True three-dimensional virtual studio system and its implement method
CN102118568A (en) * 2009-12-30 2011-07-06 新奥特(北京)视频技术有限公司 Graphics generation system for sports competitions
CN102118576A (en) * 2009-12-30 2011-07-06 新奥特(北京)视频技术有限公司 Method and device for color key synthesis in virtual sports system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB9702636D0 (en) * 1997-02-01 1997-04-02 Orad Hi Tech Systems Limited Virtual studio position sensing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1477856A (en) * 2002-08-21 2004-02-25 北京新奥特集团 True three-dimensional virtual studio system and its implement method
CN102118568A (en) * 2009-12-30 2011-07-06 新奥特(北京)视频技术有限公司 Graphics generation system for sports competitions
CN102118576A (en) * 2009-12-30 2011-07-06 新奥特(北京)视频技术有限公司 Method and device for color key synthesis in virtual sports system

Also Published As

Publication number Publication date
CN102710898A (en) 2012-10-03

Similar Documents

Publication Publication Date Title
CN100588250C (en) Method and system for rebuilding free viewpoint of multi-view video streaming
CN104349020B (en) A kind of method that virtual video camera switches with real camera
US10003741B2 (en) System for processing data from an omnidirectional camera with multiple processors and/or multiple sensors connected to each processor
CN108616731B (en) Real-time generation method for 360-degree VR panoramic image and video
CN112738010A (en) Data interaction method and system, interaction terminal and readable storage medium
US9843725B2 (en) Omnidirectional camera with multiple processors and/or multiple sensors connected to each processor
CN100546360C (en) Video process apparatus, and add time code and the method for preparing edit list
WO2007082485A1 (en) System and method for creating interactive video image
US20160132280A1 (en) Image transmission system and image transmission method
CN112738495B (en) Virtual viewpoint image generation method, system, electronic device and storage medium
CN112738534A (en) Data processing method and system, server and storage medium
US9001139B2 (en) Image processing device and image processing method
CN111225153B (en) Image data processing method, image data processing device and mobile terminal
WO2022014341A1 (en) Information processing device and image data generation method
JP2019191989A (en) System for, method of, and program for generating virtual viewpoint image
US20150189364A1 (en) Signal switching apparatus and method for controlling operation thereof
CN102710898B (en) Method and system for synchronously switching foreground and background of color key device
CN106657719A (en) Intelligent virtual studio system
CN105578248B (en) Fancy splicing playing method, device and system
US20180376181A1 (en) Networked video communication applicable to gigabit ethernet
CN107483872A (en) Video call system and video call method
CN103546697A (en) Peer-to-peer control playing method of star structure
CN106254805A (en) Storage method, device and the videocorder of a kind of Video data
CN105551069B (en) A kind of real-time generation method and system of thumbnail
JP2015162117A (en) server device, program, and information processing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150218

Termination date: 20200826

CF01 Termination of patent right due to non-payment of annual fee