CN102710898A - 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
CN102710898A
CN102710898A CN2011102497918A CN201110249791A CN102710898A CN 102710898 A CN102710898 A CN 102710898A CN 2011102497918 A CN2011102497918 A CN 2011102497918A CN 201110249791 A CN201110249791 A CN 201110249791A CN 102710898 A CN102710898 A CN 102710898A
Authority
CN
China
Prior art keywords
switching
signal
prospect
user
background
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011102497918A
Other languages
Chinese (zh)
Other versions
CN102710898B (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

Images

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 chroma key device prospect background synchronous switching method and system
Technical field
The present invention relates to particularly handle in the virtual studio program making field particularly a kind of chroma key device prospect background synchronous switching method and system through the chroma key device.
Background technology
Virtual studio is the television program designing technology of developed recently a kind of uniqueness of getting up.It is digitized synthetic in real time that its essence is that the character activities image with the virtual three-dimensional scene of computer manufacture and television camera shooting carries out; Personage and virtual background can be changed synchronously; Thereby realize the fusion that both are flawless, to obtain perfectly synthetic picture.Virtual studio is a kind of new tool of TV programme production, and Virtual Studio Technology comprises design of chroma key technique, computer virtual scene and lan settings technology, light is technological and video camera tracking technique etc.Virtual Studio Technology is to scratch on the basis of picture technology at traditional chroma key; Made full use of Computerized three-dimensional graph technology and video synthetic technology,, the perspective relation of three-dimensional virtual scene and prospect have been consistent according to the position and the parameter of video camera; After the process chroma key is synthetic; Make host in the prospect seem to soak fully to the greatest extent in the three-dimensional virtual scene that computer produced, and can move therein, thereby create television stadio effect true to nature, that third dimension is very strong.
In the prior art since network accept thread and need accept networking command in real time, if in the network receiving thread, do chroma key device switch operating, can be influential to network real-time property.The employed method of prior art is: after the network receiving thread receives order, send out message to main thread, in main thread, carry out the switch operating of chroma key device.
Realize in the process of the present invention the inventor; Finding has following defective in the prior art; Owing to usually will do other operation in the main thread, network receiving thread transmission switching message begins to carry out to main thread has certain delay between the switch operating in the prior art, and because the running status of main thread is different; The time that causes delaying time is not fixed, and can't accomplish synchronous switching.
Summary of the invention
To defective of the prior art, the invention solves the problem that chroma key device prospect background switches synchronously in Virtual Studio Technology.
The invention provides a kind of chroma key device prospect, background synchronous switching method in order to solve above technical problem, specifically comprise: receive user's handoff request, comprise at least in the said handoff request: original equipment numbering, target device numbering; Generate handoff delay frame number information according to said user's handoff request, and the prospect of generation switching command; Switch said background signal according to said handoff delay frame number; Foreground signal after said chroma key device switches original equipment and target device and obtains switching according to said prospect switching command; Carry out signal output according to the foreground signal after said background signal and the said switching after synthetic.
Simultaneously, the system that the present invention also provides a kind of chroma key device prospect background to switch synchronously is characterized in that, comprising: receiving element, and prospect switching command generation unit, the background generation unit, the prospect generation unit, signal output unit, wherein,
Said receiving element is used to receive user's handoff request, comprises at least in the said handoff request: original equipment numbering, target device numbering;
Said prospect switching command generation unit is used for generating handoff delay frame number information according to said user's handoff request, and the prospect of generation switching command;
Said background generation unit is used for switching said background signal according to said handoff delay frame number;
Said prospect generation unit is used for the foreground signal after said chroma key device switches original equipment and target device and obtains switching according to said prospect switching command;
Said signal output unit is used for according to the foreground signal after said background signal and the said switching carrying out signal output after synthetic.
Compared with prior art; The embodiment of the invention has the following advantages: through the processing to synchronous switching command in the reception user handoff request; In carrying out prospect, background building-up process, background is switched the setting time-delay, thereby the prospect of making and background have realized synthetic in real time output.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1: the line graph that is a kind of chroma key device prospect background synchronous switching method in the embodiment of the invention;
Fig. 2: the flow chart that is a kind of chroma key device prospect background synchronous switching method in the embodiment of the invention;
Fig. 3: the flow chart that is another kind of chroma key device prospect background synchronous switching method in the embodiment of the invention;
Fig. 4: the sketch map that is the system that a kind of chroma key device prospect background switches synchronously in the embodiment of the invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obvious described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The line graph of present embodiment Virtual Studio System is as shown in Figure 1 in the embodiment of the invention 1; Graphics server provides background signal, and video camera provides foreground signal, and a chroma key device can connect a plurality of foreground signals; Current time; Have only one tunnel foreground signal to synthesize, switch prospect, background signal synchronously, just can realize the effect that switch the seat in the plane with background signal.The present invention comprises in realizing chroma key device prospect background synchronous switching method process: create chroma key device control thread, receive network chroma key device switching command, trigger handover event, carry out chroma key device handover event.
In the embodiment of the invention 1 a kind of chroma key device prospect background synchronous switching method is provided simultaneously, as shown in Figure 2, at first, the generation background signal; Generate foreground signal through the chroma key device, and further may further comprise the steps:
Step S101: receive user's handoff request;
In this step, receive user's handoff request, comprise at least in the said handoff request: original equipment numbering, target device numbering;
Step S102: generate the prospect switching command;
In this step, generate handoff delay frame number information according to said user's handoff request, and the prospect of generation switching command;
Step S103: switch background signal;
Switch said background signal according to said handoff delay frame number;
Step S104: generate the foreground signal after switching;
Foreground signal after said chroma key device switches original equipment and target device and obtains switching according to said prospect switching command;
Step S105: composite signal output;
Carry out signal output according to the foreground signal after said background signal and the said switching after synthetic.
In the embodiment of the 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 that switches synchronously also has graphics server to provide.Because the attribute of chroma key device hardware, to the switching command of chroma key device, the chroma key device can not be carried out immediately, and several frames such as needs could be carried out.So the prospect switching command will send immediately, the switching and background will be delayed time could make prospect, background switch simultaneously.
1, main control end receives the synchronous handoff request from the user.
2, main control end is packaged into the networking command packet to synchronous handoff request and sends to graphics server, has comprised the concrete machine item and the handoff delay frame number that switch in the packet.
3, graphics server receive to switch background command, and with play up clock synchronization.
4, organize the prospect synch command, and the prospect of transmission synch command is to master control.
5, main control end is resolved the prospect synch command, and sends the prospect handoff request to the chroma key device.
Wherein, network data receiving thread handling process is:
(1), waits for the network switching command
(2), resolve command, and revise packet
(3), trigger prospect switching time
The switch threads handling process is:
(1), waits for handover event
(2), read the switch data bag
(3), the handover information in the switch data bag is sent to the chroma key device
Another kind of chroma key device prospect background synchronous switching method is provided in the embodiment of the invention 2, as shown in Figure 3, may further comprise the steps:
Step S201: receive user's handoff request;
In this step, receive user's handoff request, comprise at least in the said handoff request: original equipment numbering, target device numbering;
Also comprise in the said reception user handoff request: the user sets time-delay frame switching time.
Step S202: generate the prospect switching command;
In this step, generate handoff delay frame number information according to said user's handoff request, and the prospect of generation switching command;
And then comprise step S2021: carry out the networking command packet encapsulation;
Be packaged into the networking command packet according to said user's handoff request;
Resolve said networking command packet and obtain said handoff delay frame number information and target device numbering generation prospect switching command.
Extract said user according to said user's handoff request and set time-delay frame switching time;
Set setting switching time of time-delay frame according to said user and generate handoff delay frame number information.
Step S203: switch background signal;
Switch said background signal according to said handoff delay frame number;
And then comprise step S2031: the generation background signal has generated information.
Step S204: generate the foreground signal after switching;
Foreground signal after said chroma key device switches original equipment and target device and obtains switching according to said prospect switching command;
And then comprise step S2041: generate foreground signal and generated information.
Step S205: composite signal output;
Carry out signal output according to the foreground signal after said background signal and the said switching after synthetic.
And then comprise step S2051: judge synthetic output;
Judge that said background signal has generated information and whether existed, if not, then there is not information in the generation background signal, otherwise, judge whether said foreground signal exists, if then generate synthetic order information; Otherwise, generate foreground signal and do not have information;
According to said synthetic order information,, output synthetic to the said background signal of said foreground signal machine.
The system that provides a kind of chroma key device prospect background to switch synchronously in the embodiment of the 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,
Said receiving element 401 is used to receive user's handoff request, comprises at least in the said handoff request: original equipment numbering, target device numbering;
Said prospect switching command generation unit 402 is used for generating handoff delay frame number information according to said user's handoff request, and the prospect of generation switching command;
Said background generation unit 403 is used for switching said background signal according to said handoff delay frame number;
Said prospect generation unit 404 is used for the foreground signal after said chroma key device switches original equipment and target device and obtains switching according to said prospect switching command;
Said signal output unit 405 is used for according to the foreground signal after said background signal and the said switching carrying out signal output after synthetic.
Also comprise in the said prospect generation unit 404, networking command packet generation unit 4041,
Said networking command packet generation unit is used for being packaged into the networking command packet according to said user's handoff request; Resolve said networking command packet and obtain said handoff delay frame number information and target device numbering generation prospect switching command.Also comprise in the said reception user handoff request: the user sets time-delay frame switching time.
Comprise that also user's handoff delay time is provided with unit 4042 in the said prospect switching command generation unit 404,
Said user's handoff delay time is provided with the unit, is used for extracting said user according to said user's handoff request and sets time-delay frame switching time; Set setting switching time of time-delay frame according to said user and generate handoff delay frame number information.
Said prospect generation unit also comprises 404, and foreground signal generation unit 4043, said foreground signal generation unit are used to generate foreground signal and have generated information.
Also comprise in the said background generation unit 403, background signal generation unit 4031, said background signal generation unit is used for the generation background signal and has generated information.
Said signal output unit 405 also comprises, judges synthesis unit 4051, said judgement synthesis unit; Be used to judge that said background signal has generated information and whether existed, if not, then there is not information in the generation background signal; Otherwise; Judge whether said foreground signal exists, if then generate synthetic order information; Otherwise, generate foreground signal and do not have information;
According to said synthetic order information,, output synthetic to the said background signal of said foreground signal machine.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize through hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding; Technical scheme of the present invention can be come out with the embodied of software product, this software product can be stored in a non-volatile memory medium (can be CD-ROM, USB flash disk; Portable hard drive etc.) in; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the sketch map of a preferred embodiment, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
More than disclosedly be merely several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (14)

1. a chroma key device prospect background synchronous switching method is characterized in that, comprising:
Receive user's handoff request, comprise at least in said user's handoff request: original equipment numbering and target device numbering;
Generate handoff delay frame number information according to said user's handoff request, and the prospect of generation switching command;
Switch background signal according to said handoff delay frame number;
Foreground signal after switching original equipment and target device and obtain switching according to said prospect switching command;
Carry out signal output according to the foreground signal after said background signal and the said switching after synthetic.
2. the method described in claim 1 is characterized in that, and is said according to said user's handoff request generation handoff delay frame number information, and the prospect of generation switching command, specifically comprises:
Said user's handoff request is packaged into the networking command packet;
Resolve said networking command packet and obtain said handoff delay frame number information and target device numbering;
According to networking command packet and said handoff delay frame number information and target device numbering generation prospect switching command.
3. the method described in claim 1 is characterized in that, also comprises in the said reception user handoff request: the user sets time-delay frame switching time.
4. the method described in claim 3 is characterized in that, saidly generates handoff delay frame number information according to said user's handoff request and specifically comprises:
Extract the time-delay frame switching time that said user sets according to said user's handoff request;
The time-delay frame setting of setting according to said user switching time generates handoff delay frame number information.
5. the method described in claim 1 is characterized in that, saidly switches said background signal step according to said handoff delay frame number and specifically comprises:
Switch said background signal according to said handoff delay frame number;
The generation background signal has generated information.
6. the method described in claim 5 is characterized in that, the foreground signal after said chroma key device switches original equipment and target device and obtains switching according to said prospect switching command also comprises after the step:
Generate foreground signal and generated information.
7. the method described in claim 6 is characterized in that, saidly carries out signal output according to the foreground signal after said background signal and the said switching after synthetic and specifically comprises:
Judge that said background signal has generated information and whether existed, if not, then there is not information in the generation background signal, otherwise, judge whether said foreground signal exists, if then generate synthetic order information; Otherwise, generate foreground signal and do not have information;
According to said synthetic order information, with said foreground signal and the synthetic back output of said background signal.
8. the system that chroma key device prospect background switches synchronously is characterized in that, comprising: receiving element, and prospect switching command generation unit, the background generation unit, the prospect generation unit, signal output unit, wherein,
Said receiving element is used to receive user's handoff request, comprises at least in the said handoff request: original equipment numbering, target device numbering;
Said prospect switching command generation unit is used for generating handoff delay frame number information according to said user's handoff request, and the prospect of generation switching command;
Said background generation unit is used for switching said background signal according to said handoff delay frame number;
Said prospect generation unit is used for the foreground signal after said chroma key device switches original equipment and target device and obtains switching according to said prospect switching command;
Said signal output unit is used for according to the foreground signal after said background signal and the said switching carrying out signal output after synthetic.
9. the system described in claim 8 is characterized in that, also comprise in the said prospect generation unit, and networking command packet generation unit,
Said networking command packet generation unit is used for being packaged into the networking command packet according to said user's handoff request; Resolve said networking command packet and obtain said handoff delay frame number information and target device numbering generation prospect switching command.
10. the system described in claim 8 is characterized in that, also comprises in the said reception user handoff request: the user sets time-delay frame switching time.
11. the system described in claim 10 is characterized in that, comprises that also user's handoff delay time is provided with the unit in the said prospect switching command generation unit,
Said user's handoff delay time is provided with the unit, is used for extracting said user according to said user's handoff request and sets time-delay frame switching time; Set setting switching time of time-delay frame according to said user and generate handoff delay frame number information.
12. the system described in claim 8 is characterized in that, also comprises in the said background generation unit, and the background signal generation unit, said background signal generation unit is used for the generation background signal and has generated information.
13. the system described in claim 12 is characterized in that, said prospect generation unit also comprises, foreground signal generation unit, said foreground signal generation unit are used to generate foreground signal and have generated information.
14. the system described in claim 13 is characterized in that, said signal output unit also comprises; Judge synthesis unit, said judgement synthesis unit is used to judge that said background signal has generated information and whether existed; If not, then there is not information in the generation background signal, otherwise; Judge whether said foreground signal exists, if then generate synthetic order information; Otherwise, generate foreground signal and do not have information; According to said synthetic order information,, output synthetic to the said background signal of said foreground signal machine.
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 true CN102710898A (en) 2012-10-03
CN102710898B 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)

Cited By (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
CN112843677A (en) * 2021-02-08 2021-05-28 脸萌有限公司 System delay determination method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010001242A1 (en) * 1997-02-01 2001-05-17 Orad Hi-Tec Systems Limited Virtual studio position sensing system
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010001242A1 (en) * 1997-02-01 2001-05-17 Orad Hi-Tec Systems Limited Virtual studio position sensing system
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

Cited By (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
CN112843677A (en) * 2021-02-08 2021-05-28 脸萌有限公司 System delay determination method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN102710898B (en) 2015-02-18

Similar Documents

Publication Publication Date Title
CN100588250C (en) Method and system for rebuilding free viewpoint of multi-view video streaming
CN108616731B (en) Real-time generation method for 360-degree VR panoramic image and video
CN112738010B (en) Data interaction method and system, interaction terminal and readable storage medium
US9787896B2 (en) System for processing data from an omnidirectional camera with multiple processors and/or multiple sensors connected to each processor
CN104349020B (en) A kind of method that virtual video camera switches with real camera
CN110536151A (en) The synthetic method and device of virtual present special efficacy, live broadcast system
CN112738534B (en) Data processing method and system, server and storage medium
CN112738495B (en) Virtual viewpoint image generation method, system, electronic device and storage medium
CN106210453A (en) A kind of intelligent virtual studio system
CN100546360C (en) Video process apparatus, and add time code and the method for preparing edit list
CN113521735A (en) Multi-GPU-based real-time rendering method for single-frame picture
EP4163876A1 (en) Information processing device, information processing method, and program
US20110012912A1 (en) Image processing device and image processing method
CN105578248B (en) Fancy splicing playing method, device and system
CN108243318B (en) Method and device for realizing live broadcast of multiple image acquisition devices through single interface
CN110149518A (en) Processing method, system, device, equipment and the storage medium of media data
US20190379917A1 (en) Image distribution method and image display method
US20180376181A1 (en) Networked video communication applicable to gigabit ethernet
CN102739984A (en) Method and system for realizing high-definition virtual scenery
CN102710898B (en) Method and system for synchronously switching foreground and background of color key device
CN106254805A (en) Storage method, device and the videocorder of a kind of Video data
CN105047210B (en) A kind of the striding equipment synchronous method and device of shuffle playlist
US20120256946A1 (en) Image processing apparatus, image processing method and program
WO2019118890A1 (en) Method and system for cloud video stitching
JPWO2019031306A1 (en) Generating device, reproducing device, generating method, reproducing method, control program, recording medium

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