CN110225377A - A kind of video method for implantation and device, equipment, medium, system - Google Patents

A kind of video method for implantation and device, equipment, medium, system Download PDF

Info

Publication number
CN110225377A
CN110225377A CN201910528675.6A CN201910528675A CN110225377A CN 110225377 A CN110225377 A CN 110225377A CN 201910528675 A CN201910528675 A CN 201910528675A CN 110225377 A CN110225377 A CN 110225377A
Authority
CN
China
Prior art keywords
video
implanted
implantation
default mark
relation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910528675.6A
Other languages
Chinese (zh)
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.)
Beijing Yingpu Technology Co Ltd
Original Assignee
Beijing Yingpu Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Yingpu Technology Co Ltd filed Critical Beijing Yingpu Technology Co Ltd
Priority to CN201910528675.6A priority Critical patent/CN110225377A/en
Publication of CN110225377A publication Critical patent/CN110225377A/en
Priority to PCT/CN2019/108435 priority patent/WO2020252976A1/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23424Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for inserting or substituting an advertisement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2668Creating a channel for a dedicated end-user group, e.g. insertion of targeted commercials based on end-user profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/812Monomedia components thereof involving advertisement data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Image Analysis (AREA)

Abstract

The present invention provides a kind of video method for implantation and device, equipment, medium, system, the video method for implantation, comprising: obtains video to be implanted and the default mark for being set to position to be implanted;By the default mark compared with standard logo, corresponding pose transformation relation is determined;According to the pose transformation relation, the video to be implanted is implanted into the position to be implanted.Video implantation provided by the invention, which can be utilized, determines how video to be implanted is implanted to implantation position in the default mark of position to be implanted setting and the pose transformation relation of standard logo, so as to which simply and easily the advertisement in video is implanted into and is replaced, realize video implantation more abundant, the video conducive to various transformation scenes is implanted into scene.

Description

A kind of video method for implantation and device, equipment, medium, system
Technical field
The present embodiments relate to technical field of video processing, and in particular to a kind of video method for implantation and device, equipment, Medium, system.
Background technique
Video product placement, which must use for reference powerful later period tracking, in the prior art could complete the implantation of high-quality with synthesis Effect, the implantation that high-volume camera lens is completed in the short time synthesizes again by a large amount of human resources, and one end later period is complete It is exported at coding after uploading in flakes, the information of implantation cannot be changed.
Therefore, it is necessary to a kind of videos to be implanted into scheme, can simply and easily the advertisement in video is implanted into and be replaced, Realize video implantation more abundant, the videos conducive to various transformation scenes are implanted into scenes, be those skilled in the art urgently Technical problem to be solved.
Summary of the invention
For this purpose, the embodiment of the present invention provides a kind of video method for implantation and device, equipment, medium, system, it can be simply square Just the advertisement in video is implanted into and is replaced, realize video implantation more abundant, be conducive to various transformation scenes Video be implanted into scene.
To achieve the goals above, the embodiment of the present invention provides the following technical solutions:
In a first aspect, the present invention provides a kind of video method for implantation, comprising:
Obtain video to be implanted and the default mark for being set to position to be implanted;
By the default mark compared with standard logo, corresponding pose transformation relation is determined;
According to the pose transformation relation, the video to be implanted is implanted into the position to be implanted.
Preferably,
It is described by it is described it is default mark compared with standard logo, determine corresponding pose transformation relation, comprising:
Obtain the second direction of the first direction and the standard logo of the default mark;
Compare first direction and second direction, obtains second towards the angle changing toward the first direction transformation;
The angle changing is determined as pose transformation relation.
Preferably,
It is described by it is described it is default mark compared with standard logo, determine corresponding pose transformation relation, comprising:
Obtain the first size of the default mark and the second size of the standard logo;
Compare the first size and second size, obtains size change over relationship;
The size change over relationship is determined as pose transformation relation.
Preferably,
It is described by it is described it is default mark compared with standard logo, determine corresponding pose transformation relation, comprising:
Obtain perspective relation of the default mark of the mark relative to the standard logo;
The perspective relation is determined as pose transformation relation.
Preferably,
It is described according to the pose transformation relation, the video to be implanted is implanted into the position to be implanted, comprising:
According to the pose transformation relation, video to be implanted is adjusted;
By video position to be implanted to be implanted adjusted.
Preferably,
The default mark for obtaining video to be implanted and being set to position to be implanted, comprising:
Obtain the identity code of the default mark of position to be implanted;
According to the identity code, select position to be implanted corresponding with the identity code corresponding in video library Video, as video to be implanted corresponding with the default mark.
Preferably,
After the acquisition video to be implanted with the default mark set on position to be implanted, further includes:
Identify the implantation coding of the default mark;
Implantation corresponding with implantation coding is selected, so that the video implantation to be implanted is described wait plant When entering position, the implantation is utilized.
Preferably,
The implantation, comprising: implantation mask type and/or Video Composition mode.
Second aspect, the present invention provide a kind of video implanted device, comprising:
Video identifier obtains module, the default mark for obtaining video to be implanted with being set to position to be implanted;
Position orientation relation determining module, for the default mark compared with standard logo, to be determined corresponding pose transformation Relationship;
Video implant module, for the video to be implanted being implanted into described to be implanted according to the pose transformation relation Position.
Preferably,
The position orientation relation determining module, comprising:
Towards acquiring unit, the second direction of the first direction and the standard logo for obtaining the default mark;
Second is obtained towards past first court for first direction and second direction towards comparing unit To the angle changing of transformation;
Towards position orientation relation determination unit, for the angle changing to be determined as pose transformation relation.
Preferably,
The position orientation relation determining module, comprising:
Size acquiring unit, for obtaining the first size of the default mark and the second size of the standard logo;
Size relationship comparing unit obtains size change over relationship for the first size and second size;
Size pose determination unit, for the size change over relationship to be determined as pose transformation relation.
Preferably,
The position orientation relation determining module, comprising:
Perspective relation acquiring unit, for obtaining perspective relation of the default mark of the mark relative to the standard logo;
Pose determination unit is had an X-rayed, for the perspective relation to be determined as pose transformation relation.
Preferably,
The video implant module, comprising:
Video adjustment unit, for being adjusted to video to be implanted according to the pose transformation relation;
Video is implanted into unit, is used for video position to be implanted to be implanted adjusted.
Preferably,
The video identifier obtains module, comprising:
Default identity acquiring unit, the identity code of the default mark for obtaining position to be implanted;
Video selecting unit to be implanted, for according to the identity code, selection to be known with the identity in video library The corresponding video in the corresponding position to be implanted of other code, as video to be implanted corresponding with the default mark.
Preferably,
Further include:
Implantation identification module, the implantation of the default mark encodes for identification;
Implantation selecting module, for selecting corresponding with implantation coding implantation, so as to will described in When video to be implanted is implanted into the position to be implanted, the implantation is utilized.
The third aspect, the present invention provide a kind of video implantation equipment, comprising:
Memory, for storing computer program;
Processor realizes the video implantation side as described in above-mentioned first aspect is any when for executing the computer program The step of method.
Fourth aspect Fa Ming not provide a kind of computer readable storage medium, deposit on the computer readable storage medium Computer program is contained, realizes that video is planted as described in above-mentioned first aspect is any when the computer program is executed by processor The step of entering method.
5th aspect, the present invention provides a kind of video implant system, comprising: video library device to be implanted, target video library Device, the video implanted device as described in above-mentioned second aspect is any;
The video library device to be implanted, for storing video to be implanted;
Target video library device, for storing target video, the position to be implanted of the target video is equipped with default Mark;
The video implanted device, is used for:
Video to be implanted is obtained in the video library device to be implanted;
The default mark for being set to position to be implanted is obtained in target video library device;
By the default mark compared with standard logo, corresponding pose transformation relation is determined;
According to the pose transformation relation, the video to be implanted is implanted into the position to be implanted of the target video.
6th aspect, the present invention provides a kind of default mark, applied to the video as described in above-mentioned first aspect is any Method for implantation, comprising:
Rectangle identifies frame, direction mark, identification code mark in rectangle identification frame.
Preferably,
The rectangle identifies frame, comprising: the black outline border and red inside casing adjoined.
Preferably,
The direction is identified as three rectangular dots on the inside of rectangle identification frame in the fixed point arrangement of isosceles right angle three Mark;
The color identifier combination inside three rectangle point identifications is arranged in the identity code flag bit.
The present invention provides a kind of video method for implantation, comprising: obtains video to be implanted and is set to the default of position to be implanted Mark;By the default mark compared with standard logo, corresponding pose transformation relation is determined;It is converted and is closed according to the pose The video to be implanted is implanted into the position to be implanted by system.Video implantation provided by the invention can be utilized wait plant The pose transformation relation of the default mark and standard logo that enter position setting determines how video to be implanted is implanted to implantation position, So as to which simply and easily the advertisement in video is implanted into and is replaced, video implantation more abundant, benefit are realized Scene is implanted into the video of various transformation scenes.
A kind of video method for implantation provided by the invention and device, equipment, medium, system all have above-mentioned beneficial effect Fruit, this is no longer going to repeat them.
Detailed description of the invention
It, below will be to embodiment party in order to illustrate more clearly of embodiments of the present invention or technical solution in the prior art Formula or attached drawing needed to be used in the description of the prior art are briefly described.It should be evident that the accompanying drawings in the following description is only It is merely exemplary, it for those of ordinary skill in the art, without creative efforts, can also basis The attached drawing of offer, which is extended, obtains other implementation attached drawings.
Structure depicted in this specification, ratio, size etc., only to cooperate the revealed content of specification, for Those skilled in the art understands and reads, and is not intended to limit the invention enforceable qualifications, therefore does not have technical Essential meaning, the modification of any structure, the change of proportionate relationship or the adjustment of size are not influencing the function of the invention that can be generated Under effect and the purpose that can reach, should all still it fall in the range of disclosed technology contents obtain and can cover.
Fig. 1 is a kind of a kind of flow chart for video method for implantation that specific embodiment provides of the present invention;
Fig. 2 determines process towards relationship for a kind of a kind of video method for implantation that specific embodiment provides of the present invention Figure;
Fig. 3 is that a kind of a kind of size relationship for video method for implantation that specific embodiment provides of the present invention determines process Figure;
Fig. 4 is that a kind of a kind of perspective relation for video method for implantation that specific embodiment provides of the present invention determines process Figure;
Fig. 5 is a kind of a kind of acquisition video process to be implanted for video method for implantation that specific embodiment provides of the present invention Figure;
Fig. 6 is that a kind of a kind of implantation for video method for implantation that specific embodiment provides of the present invention selects process Figure;
Fig. 7 is a kind of composition schematic diagram of video implanted device provided by still another embodiment of the present invention;
Fig. 8 is that a kind of a kind of position orientation relation of video implanted device provided by still another embodiment of the present invention is determining Module composition schematic diagram;
Fig. 9 is that a kind of a kind of position orientation relation of video implanted device provided by still another embodiment of the present invention is determining Module composition schematic diagram;
Figure 10 is a kind of another position orientation relation of video implanted device provided by still another embodiment of the present invention Determining module composition schematic diagram;
Figure 11 is a kind of composition schematic diagram of video implanted device provided by still another embodiment of the present invention;
Figure 12 is a kind of composition schematic diagram of video implanted device provided by still another embodiment of the present invention;
Figure 13 is a kind of composition schematic diagram of video implanted device provided by still another embodiment of the present invention;
Figure 14 is a kind of structural schematic diagram of video implantation equipment provided in a kind of specific embodiment of the present invention;
Figure 15 shows for a kind of structure of computer readable storage medium provided in a kind of specific embodiment of the present invention It is intended to;
Figure 16 is a kind of composition schematic diagram of video implant system provided by a kind of specific embodiment of the present invention;
Figure 17 is a kind of schematic diagram of default mark provided by another specific embodiment of the invention;
Figure 18 is that the direction of mark and image are preset in a kind of specific embodiment towards corresponding relationship;
Figure 19 is the size corresponding relationship that mark with image are preset in a kind of specific embodiment;
Figure 20 is the perspective corresponding relationship that mark with image are preset in a kind of specific embodiment.
Specific embodiment
Embodiments of the present invention are illustrated by particular specific embodiment below, those skilled in the art can be by this explanation Content disclosed by book is understood other advantages and efficacy of the present invention easily, it is clear that described embodiment is the present invention one Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
Fig. 1, Fig. 2, Fig. 3, Fig. 4, Fig. 5, Fig. 6 are please referred to, Fig. 1 is a kind of a kind of view that specific embodiment provides of the present invention The flow chart of frequency method for implantation;Fig. 2 is that a kind of a kind of direction of video method for implantation that specific embodiment provides of the present invention is closed It is to determine flow chart;Fig. 3 is that a kind of a kind of size relationship for video method for implantation that specific embodiment provides of the present invention determines Flow chart;Fig. 4 is that a kind of a kind of perspective relation for video method for implantation that specific embodiment provides of the present invention determines flow chart; Fig. 5 is a kind of a kind of acquisition video flow chart to be implanted for video method for implantation that specific embodiment provides of the present invention;Fig. 6 Flow chart is selected for a kind of a kind of implantation for video method for implantation that specific embodiment provides of the present invention.
A kind of according in topic embodiment in the present invention, the embodiment of the present invention provides a kind of video method for implantation, comprising:
Step S11: video to be implanted and the default mark for being set to position to be implanted are obtained;
Step S12: by the default mark compared with standard logo, corresponding pose transformation relation is determined;
Step S13: according to the pose transformation relation, the video to be implanted is implanted into the position to be implanted.
In embodiments of the present invention, it is necessary first to obtain the default mark of video and position to be implanted to be implanted, example Such as, when needing for an advertisement video to be implanted in TV play as video to be implanted, at this moment advertisement video is as to be implanted Video, TV play, and can be in advance in the position of the desired addition advertisement video of TV play as to be implanted as target video It position can be in the addition default mark in position to be implanted, to realize a kind of acquisition in order to be identified to this position The case where video to be implanted is with the default mark for being set to position to be implanted, certain position to be implanted can also be with some of a width picture Specific position is treated implantation position here and is located on video or picture or other advertisement screen boards on earth, with no restrictions.
After getting default mark, which can be made comparisons with standard logo, obtain pose transformation relation, That is, the standard logo original for one, which, for the effect of display, may be marked in setting to pre- Know and done the adjustment of some column such as direction, size, perspective relation, at this moment can by the comparison of default mark and standard logo come It determines which type of adjustment specifically done, has also obtained a pose transformation relation in time, pose here refers to position, appearance The a series of factor that can cause visual effect such as state.
And after determining pose transformation relation, video to be implanted can be done to tune corresponding with the evolution relationship It is whole, if for example, if the ratio that increases of the size in pose transformation relation is 2 times, it can be correspondingly by view to be implanted The size of frequency increases identical ratio, alternatively, wrapping in pose transformation relation to adapt to the angle of certain specific viewing video Variation containing direction, then the video can also be done to identical direction variation, thus simply and easily to the advertisement in video It is implanted into and is replaced, realize video implantation more abundant, the video conducive to various transformation scenes is implanted into scene.
Specifically, in a specific embodiment, pose transformation relation may include angle changing, in order to will be described pre- Bidding is known compared with standard logo, determines corresponding pose transformation relation, following steps can be embodied:
Step S21: the second direction of the first direction and the standard logo of the default mark is obtained;
Step S22: first direction and second direction obtain second towards the change toward the first direction transformation Change angle;
Step S23: the angle changing is determined as pose transformation relation.
That is, can indicate according to the direction in default mark, the first direction for recognizing the default mark is obtained, And the second of standard logo towards be usually it is determining, may be prescribed as vertically downward or other directions, as a benchmark With reference to.It, can be with if identified second towards being rotated by 90 ° to obtain the first direction counterclockwise, the angle just changed The angle changing is determined as pose variation relation.
Further, pose transformation relation also may include size change over relationship, that is to say, that the size of standard logo with The mark of pre-set dimension is simultaneously different, specifically, in order to which the default mark compared with standard logo, is determined corresponding pose Transformation relation can carry out step:
Step S31: the first size of the default mark and the second size of the standard logo are obtained;
Step S32: the first size and second size obtain size change over relationship;
Step S33: the size change over relationship is determined as pose transformation relation.
It is worth noting that generally, before the determination for carrying out size change over relationship, if default mark, while There is the variation of direction, then ratio that is unified and then carrying out size first can be adjusted the direction of default mark and standard logo Example relationship determines, can just obtain correct size change over relationship.Moreover, in actually implantation, in order to avoid screen energy to be implanted Enough coverings do not live the mark of position to be implanted, and the size change over relationship can carry out to the increase of preset ratio, such as can be with Increase 3%, 5% equal proportion.
It in one embodiment, can also be using perspective relation as a kind of pose transformation relation, specifically, in order to will be described Default mark determines corresponding pose transformation relation, can specifically carry out step compared with standard logo:
Step S41: perspective relation of the default mark of the mark relative to the standard logo is obtained;
Step S41: the perspective relation is determined as pose transformation relation.
" perspective " word original in Latin " perspclre " (understanding thoroughly), original research perspective be taken through one piece it is transparent Plane go to see the method for scenery, finding scenery is accurately drawn in this block plane, the scenery perspective view.Then will afterwards According to certain principle on plane picture, the spatial position of object, the science referred to as perspective of profile and projection are shown with lines It learns.In the present embodiment, if position to be implanted is not to face the display picture of video, in order to preferably allow view to be implanted Frequency incorporates position to be implanted, then video to be implanted can be done to the vision adjustment of some perspective relations, such as can will regard The overall picture profile of frequency carries out visual perspective adjustment.
On the basis of above-mentioned specific embodiment, in present embodiment, in order to according to the pose transformation relation, The video to be implanted is implanted into the position to be implanted, it can be first according to the pose transformation relation, to video to be implanted It is adjusted;Then by video position to be implanted to be implanted adjusted.
Further, the default mark in order to obtain video to be implanted be set to position to be implanted, it is possible to implement following step It is rapid:
Step S51: the identity code of the default mark of position to be implanted is obtained;
Step S51: it according to the identity code, is selected in video library corresponding with the identity code to be implanted The corresponding video in position, as video to be implanted corresponding with the default mark.
Further, in order to obtain video to be implanted be implanted into position to be implanted implantation can it is described obtain to After being implanted into video and being set to the default mark of position to be implanted, follow the steps below:
Step S61: the implantation coding of the identification default mark;
Step S62: selection implantation corresponding with implantation coding, so that the video to be implanted is implanted into When the position to be implanted, the implantation is utilized.
That is, including the encoded information of implantation in default mark, implantation coding is being got Afterwards, video to be implanted can be implanted in position to be implanted using corresponding implantation.Specific implantation, can be with It include: to be implanted into mask type and/or Video Composition mode, etc..
Fig. 7, Fig. 8, Fig. 9, Figure 10, Figure 11, Figure 12, Figure 13 are please referred to, Fig. 7 is mentioned by still another embodiment of the present invention A kind of composition schematic diagram of the video implanted device supplied;Fig. 8 is a kind of video provided by still another embodiment of the present invention A kind of position orientation relation determining module composition schematic diagram of implanted device;Fig. 9 is provided by still another embodiment of the present invention A kind of a kind of position orientation relation determining module composition schematic diagram of video implanted device;Figure 10 is still another embodiment of the present invention A kind of another position orientation relation determining module composition schematic diagram of provided video implanted device;Figure 11 is the another tool of the present invention A kind of composition schematic diagram of video implanted device provided by body embodiment;Figure 12 is still another embodiment institute of the present invention A kind of composition schematic diagram of the video implanted device provided;Figure 13 is a kind of view provided by still another embodiment of the present invention The composition schematic diagram of frequency implanted device.
In still another embodiment of the present invention, the embodiment of the present invention provides a kind of video implanted device 700, comprising:
Video identifier obtains module 710, the default mark for obtaining video to be implanted with being set to position to be implanted;
Position orientation relation determining module 720, for the default mark compared with standard logo, to be determined that corresponding pose becomes Change relationship;
Video implant module 730, for the video to be implanted being implanted into described wait plant according to the pose transformation relation Enter position.
Preferably,
The position orientation relation determining module 720, comprising:
Towards acquiring unit 721, the second court of the first direction and the standard logo for obtaining the default mark To;
Second towards past first is obtained for first direction and second direction towards comparing unit 722 Towards the angle changing of transformation;
Towards position orientation relation determination unit 723, for the angle changing to be determined as pose transformation relation.
Preferably,
The position orientation relation determining module 720, comprising:
Size acquiring unit 724, for obtaining the first size of the default mark and the second ruler of the standard logo It is very little;
Size relationship comparing unit 725 obtains size change over pass for the first size and second size System;
Size pose determination unit 726, for the size change over relationship to be determined as pose transformation relation.
Preferably,
The position orientation relation determining module 720, comprising:
Perspective relation acquiring unit 727 is closed for obtaining the default mark of the mark relative to the perspective of the standard logo System;
Pose determination unit 728 is had an X-rayed, for the perspective relation to be determined as pose transformation relation.
Preferably,
The video implant module 730, comprising:
Video adjustment unit 731, for being adjusted to video to be implanted according to the pose transformation relation;
Video is implanted into unit 732, is used for video position to be implanted to be implanted adjusted.
Preferably,
The video identifier obtains module 710, comprising:
Default identity acquiring unit 711, the identity code of the default mark for obtaining position to be implanted;
Video selecting unit 712 to be implanted, for being selected and the identity in video library according to the identity code The corresponding video in the corresponding position to be implanted of identification code, as video to be implanted corresponding with the default mark.
Preferably,
Video implanted device 700, further includes:
Implantation identification module 740, the implantation of the default mark encodes for identification;
Implantation selecting module 750, for selecting corresponding with implantation coding implantation, so as to by institute When stating the video implantation position to be implanted to be implanted, the implantation is utilized.
Figure 14, Figure 15 are please referred to, Figure 14 sets for a kind of video implantation provided in a kind of specific embodiment of the present invention Standby structural schematic diagram;Figure 15 is a kind of computer readable storage medium provided in a kind of specific embodiment of the present invention Structural schematic diagram.
The embodiment of the present invention provides video and is implanted into equipment 1400, comprising:
Memory 1410, for storing computer program;
Processor 1420 realizes that any video is planted as described in above-mentioned first aspect when for executing the computer program The step of entering method.The computer program is stored in the space for program code storage in memory 1410, the calculating Machine program has the method realized in any embodiment of the present invention when the execution of processor 1420.
The embodiment of the present invention also provides a kind of computer readable storage medium, stores on the computer readable storage medium There is computer program, is realized when the computer program is executed by processor any as described in above-mentioned any specific embodiment The step of kind video method for implantation.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description, The specific work process of equipment and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed device, device and method can be with It realizes by another way.For example, apparatus embodiments described above are merely indicative, for example, the division of unit, Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with In conjunction with or be desirably integrated into another device, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of equipment or unit or Communication connection can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
Figure 16 is please referred to, Figure 16 is a kind of composition of video implant system provided by a kind of specific embodiment of the present invention Schematic diagram.
5th aspect, the present invention provides a kind of video implant system, comprising: video library device 1610 to be implanted, target view Frequency library device 1620, the video implanted device 1630 as described in above-mentioned any of the above-described kind of specific embodiment;
The video library device 1610 to be implanted, for storing video to be implanted;
Target video library device 1620, for storing target video, the position to be implanted of the target video is equipped with Default mark;
The video implanted device 1630, is used for:
Video to be implanted is obtained in the video library device 1610 to be implanted;
In the target video library, device 1620 obtains the default mark for being set to position to be implanted;
By the default mark compared with standard logo, corresponding pose transformation relation is determined;
According to the pose transformation relation, the video to be implanted is implanted into the position to be implanted of the target video.
Figure 17, Figure 18, Figure 19, Figure 20 are please referred to, Figure 17 is one kind provided by another specific embodiment of the invention The schematic diagram of default mark;Figure 18 is that the direction of mark and image are preset in a kind of specific embodiment towards corresponding relationship Figure;Figure 19 is the size corresponding relationship that mark with image are preset in a kind of specific embodiment;Figure 20 is a kind of specific implementation The perspective corresponding relationship of mark with image is preset in mode.
In still another embodiment of the present invention, the embodiment of the present invention provides a kind of default mark, is applied to as above-mentioned Video method for implantation in any specific embodiment, comprising:
Rectangle identifies frame 1710, in rectangle identification frame towards mark 1720, identification code mark 1730.
Preferably,
The rectangle identifies frame 1710, comprising: the black outline border 1711 and red inside casing 1712 adjoined.
Preferably,
The direction mark 1720 is to identify that frame inside is in three squares that the fixed point of isosceles right angle three is arranged positioned at the rectangle Form point mark;
Color identifier combination inside three rectangle point identifications of the identification code mark 1730 settings.
When identification code mark is identified namely when color is identified and carries out permutation and combination, so that it may Command information is imparted, the information of order directly determines the movement of implantation, such as the type of product, and the mask type of implantation is closed At mode etc..
Three above-mentioned rectangular dots indicate that the internal rectangular-ambulatory-plane space that can be set for Fill Color, is easy to identified, has Body, the permutation and combination of 4 kinds of colors can be used, (in the case where polyenergetic combination) can generate about thousands of group command rows, use In implantation, when a large amount of implantation requires to be accessed, 4 color compound commands can be coped with easily!(polyenergetic combines for example: The green combination of Lan Hong: it is red blue to be also possible to the turquoise red red blue turquoise blue indigo plant of indigo plant of bluish-green red blue green It is green ...), it is of course also possible to be combined using more colors, when color is identified and carries out permutation and combination, just assign Command information, the information of order directly determine the movement of implantation.That is, the combination of color corresponded to product type, The mask type of implantation, mode of synthesis etc..
Frame 1710 identified for rectangle, RED sector be the square boundary identified, the picture of implantation with the boundary of rectangle into Row filling, the black border of red outside are for the recognition effect to square boundary definitely, when light and environment are complicated When variation, a kind of more specific identification can be obtained.
Certainly, the default identification marking in the present invention can also be drawn using other mark shapes or a width concept Make, mainly goes to explain to execute using programming language and move.The design of default mark and standard logo makes every effort to simple and clear, simpler Symbol when the remoter pixel of distance is lower, shape is more easily recognizable to the computer, such as a square shape and one Hawk.When pixel very little, hawk may not seen, but square can still be identified by computer, and be used In calculating, and guarantee accuracy of identification.
In still another embodiment of the invention, python2.7, opencv2.4, pyqt4 specifically can be used, etc. Tool realizes the purpose of video implantation, and the file used is described as follows: track_core.py includes the function of all tracking, Track_test07.py is main program, the simple player write using pyqt, and opencv reads video frame, uses track_ Function in core switchs to the frame for filling picture, is then shown on ui;In the case where there is no problem for python environment, fortune Row python track_test07.py is i.e. executable.
Specifically how to identify that default mark, process are as follows:
1. the frame of default mark is switched to grayscale image;
Specifically utilize the expression formula: gray=cv2.cvtColor (image, cv2.COLOR_BGR2GRAY) Lai Shixian;
2. the frame of default mark is carried out some Fuzzy Processings, to remove the influence that some little particles generate;
Specifically used expression formula: blurred=cv2.blur (gray, (blur_size, blur_size)) Lai Shixian;
However, this fuzzy value is smaller, may see unobvious;
3. a pair default mark carries out threshold process;
Binary map can only be used in order to search the image of profile;A given black value 100 and white value 200, in whole picture Numerical value is changing to 0 less than 100, is changing to 200 greater than 100;Specifically used following sentence handles image:
(_, thresh)=cv2.threshold (blurred, black_point, white_point, cv2.THRESH_BINARY);
4. searching the profile of default mark;
Following code specifically can be used and realize that the profile of default mark is searched:
(contours, hierarchy)=cv2.findContours (thresh.copy (), cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE);
Tracking the figure used is there are three trace point among a dark border, and the effect of dark border is to eliminate background face The changeable influence of color.
5. judging trace point;
The trace point in profile is searched in 129-144 behavior in track_core code;
Trace point, which can be regarded as, a white rectangle among the rectangle as a black, intermediate to have a black again Rectangle finds specific one profile according to this specific relationship from all profiles, this is exactly trace point;
Father's profile of each trace point seek to replacement region profile, it is possible to according to father's profile by it is all with Track point carries out beating group, obtains the profile in each region for needing to replace and the trace point of the inside in this way;What is carried out simultaneously also will The color record of primitive frame central point is entered and the center point coordinate of three trace points.
6. calculating direction, 4 final coordinates are calculated;
According to the coordinate of three points, the coordinate of the 4th point can be calculated, and first three is a according to it by this four points The angle of point is ranked up, with reference to sort_points function.
Finally obtained is the list of sequential four point, and last corresponding relationship is the corresponding filling of first point The lower left corner of picture, according to clockwise and so on.
7. judging fill using any picture according to central point color assembly coding information, and execute corresponding mask class Type, and action command is synthesized accordingly.
Center picture for tracking is the region of color filling, judges to use according to the ratio in tri- channels color RGB It (is all to be filled using a picture at present, it is of course also possible to be filled out using video or plurality of pictures which picture, which is filled, It fills).
That is, the color in identification picture encodes the pincode as default mark, and then selects and be somebody's turn to do The corresponding picture of pincode is filled, naturally it is also possible to be filled video, and be executed relevant synthesis movement, allow element Preferably incorporate picture.
8. filling picture or video;
According to 4 coordinates of profile of the filling region obtained before, cv2.getPerspectiveTransform is used Picture is subjected to perspective transform with cv2.warpPerspective function;
The mask of profile is obtained according to 4 coordinates, is first black by the area filling of this mask of primitive frame, so Primitive frame is added using cv2.add function afterwards to obtain final frame with the picture after perspective transform;Due to tracking effect, in order to The dark border of primitive frame is covered completely, the picture of filling can be subjected to some put.
Above to realize the present invention in preset a kind of identification method of mark, certainly, there are also other identification methods, this hairs It is bright to specific identification method without limitation.Although general explanation and specific embodiment has above been used to make the present invention Detailed description, but on the basis of the present invention, it can be made some modifications or improvements, this is to those skilled in the art It is obvious.Therefore, these modifications or improvements without departing from theon the basis of the spirit of the present invention, belong to the present invention Claimed range.

Claims (20)

1. a kind of video method for implantation characterized by comprising
Obtain video to be implanted and the default mark for being set to position to be implanted;
By the default mark compared with standard logo, corresponding pose transformation relation is determined;
According to the pose transformation relation, the video to be implanted is implanted into the position to be implanted.
2. video method for implantation according to claim 1, which is characterized in that
It is described by it is described it is default mark compared with standard logo, determine corresponding pose transformation relation, comprising:
Obtain the second direction of the first direction and the standard logo of the default mark;
Compare first direction and second direction, obtains second towards the angle changing toward the first direction transformation;
The angle changing is determined as pose transformation relation.
3. video method for implantation according to claim 1, which is characterized in that
It is described by it is described it is default mark compared with standard logo, determine corresponding pose transformation relation, comprising:
Obtain the first size of the default mark and the second size of the standard logo;
Compare the first size and second size, obtains size change over relationship;
The size change over relationship is determined as pose transformation relation.
4. video method for implantation according to claim 1, which is characterized in that
It is described by it is described it is default mark compared with standard logo, determine corresponding pose transformation relation, comprising:
Obtain perspective relation of the default mark of the mark relative to the standard logo;
The perspective relation is determined as pose transformation relation.
5. video method for implantation according to any one of claims 1 to 4, which is characterized in that
It is described according to the pose transformation relation, the video to be implanted is implanted into the position to be implanted, comprising:
According to the pose transformation relation, video to be implanted is adjusted;
By video position to be implanted to be implanted adjusted.
6. video method for implantation according to any one of claims 1 to 4, which is characterized in that
The default mark for obtaining video to be implanted and being set to position to be implanted, comprising:
Obtain the identity code of the default mark of position to be implanted;
According to the identity code, the corresponding view in corresponding with identity code position to be implanted is selected in video library Frequently, as video to be implanted corresponding with the default mark.
7. video method for implantation according to any one of claims 1 to 4, which is characterized in that
After the acquisition video to be implanted with the default mark set on position to be implanted, further includes:
Identify the implantation coding of the default mark;
Implantation corresponding with implantation coding is selected, so that the video to be implanted is implanted into the position to be implanted When setting, the implantation is utilized.
8. a kind of video implanted device characterized by comprising
Video identifier obtains module, the default mark for obtaining video to be implanted with being set to position to be implanted;
Position orientation relation determining module, for the default mark compared with standard logo, to be determined corresponding pose transformation relation;
Video implant module, for according to the pose transformation relation, the video to be implanted to be implanted into the position to be implanted.
9. video implanted device according to claim 8, which is characterized in that
The position orientation relation determining module, comprising:
Towards acquiring unit, the second direction of the first direction and the standard logo for obtaining the default mark;
It obtains second for first direction and second direction towards comparing unit and becomes towards toward the first direction The angle changing changed;
Towards position orientation relation determination unit, for the angle changing to be determined as pose transformation relation.
10. video method for implantation according to claim 8, which is characterized in that
The position orientation relation determining module, comprising:
Size acquiring unit, for obtaining the first size of the default mark and the second size of the standard logo;
Size relationship comparing unit obtains size change over relationship for the first size and second size;
Size pose determination unit, for the size change over relationship to be determined as pose transformation relation.
11. video implanted device according to claim 8, which is characterized in that
The position orientation relation determining module, comprising:
Perspective relation acquiring unit, for obtaining perspective relation of the default mark of the mark relative to the standard logo;
Pose determination unit is had an X-rayed, for the perspective relation to be determined as pose transformation relation.
12. video implanted device according to any one of claims 8 to 11, which is characterized in that
The video implant module, comprising:
Video adjustment unit, for being adjusted to video to be implanted according to the pose transformation relation;
Video is implanted into unit, is used for video position to be implanted to be implanted adjusted.
13. video implanted device according to any one of claims 8 to 11, which is characterized in that
The video identifier obtains module, comprising:
Default identity acquiring unit, the identity code of the default mark for obtaining position to be implanted;
Video selecting unit to be implanted, for being selected and the identity code in video library according to the identity code The corresponding video in corresponding position to be implanted, as video to be implanted corresponding with the default mark.
14. video implanted device according to any one of claims 8 to 11, which is characterized in that
Further include:
Implantation identification module, the implantation of the default mark encodes for identification;
Implantation selecting module, for selecting corresponding with implantation coding implantation, so as to by described wait plant When entering the video implantation position to be implanted, the implantation is utilized.
15. a kind of video is implanted into equipment characterized by comprising
Memory, for storing computer program;
Processor, realizing the video method for implantation as described in any one of claim 1 to 7 when for executing the computer program Step.
16. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the step of the video method for implantation as described in any one of claim 1 to 7 when the computer program is executed by processor Suddenly.
17. a kind of video implant system characterized by comprising video library device to be implanted, is such as weighed target video library device Benefit requires 8 to 14 described in any item video implanted devices;
The video library device to be implanted, for storing video to be implanted;
Target video library device, for storing target video, the position to be implanted of the target video is equipped with default mark;
The video implanted device, is used for:
Video to be implanted is obtained in the video library device to be implanted;
The default mark for being set to position to be implanted is obtained in target video library device;
By the default mark compared with standard logo, corresponding pose transformation relation is determined;
According to the pose transformation relation, the video to be implanted is implanted into the position to be implanted of the target video.
18. the default mark of one kind, is applied to video method for implantation as described in any one of claim 1 to 7, which is characterized in that Include:
Rectangle identifies frame, direction mark, identification code mark in rectangle identification frame.
19. default mark according to claim 18, which is characterized in that
The rectangle identifies frame, comprising: the black outline border and red inside casing adjoined.
20. default mark according to claim 18, which is characterized in that
The direction is identified as three rectangle point identifications on the inside of rectangle identification frame in the fixed point arrangement of isosceles right angle three;
The color identifier combination inside three rectangle point identifications is arranged in the identity code flag bit.
CN201910528675.6A 2019-06-18 2019-06-18 A kind of video method for implantation and device, equipment, medium, system Pending CN110225377A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910528675.6A CN110225377A (en) 2019-06-18 2019-06-18 A kind of video method for implantation and device, equipment, medium, system
PCT/CN2019/108435 WO2020252976A1 (en) 2019-06-18 2019-09-27 Video insertion method, apparatus and device, medium and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910528675.6A CN110225377A (en) 2019-06-18 2019-06-18 A kind of video method for implantation and device, equipment, medium, system

Publications (1)

Publication Number Publication Date
CN110225377A true CN110225377A (en) 2019-09-10

Family

ID=67817620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910528675.6A Pending CN110225377A (en) 2019-06-18 2019-06-18 A kind of video method for implantation and device, equipment, medium, system

Country Status (2)

Country Link
CN (1) CN110225377A (en)
WO (1) WO2020252976A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020252976A1 (en) * 2019-06-18 2020-12-24 北京影谱科技股份有限公司 Video insertion method, apparatus and device, medium and system
CN116939294A (en) * 2023-09-17 2023-10-24 世优(北京)科技有限公司 Video implantation method and device, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103974126A (en) * 2014-05-15 2014-08-06 北京奇艺世纪科技有限公司 Method and device for embedding advertisements in video
CN104170392A (en) * 2013-11-21 2014-11-26 华为技术有限公司 Method, device, system and terminal of inplanting advertisements in files
CN104735465A (en) * 2015-03-31 2015-06-24 北京奇艺世纪科技有限公司 Method and device for implanting planar pattern advertisements into video frame
US20170084231A1 (en) * 2015-09-23 2017-03-23 Intel Corporation Imaging system management for camera mounted behind transparent display
US20180122506A1 (en) * 2015-03-26 2018-05-03 Surgical Safety Technologies Inc. Operating room black-box device, system, method and computer readable medium for event and error prediction
CN109033795A (en) * 2018-07-24 2018-12-18 青岛海信移动通信技术股份有限公司 A kind of method and terminal that the terminal containing camera is unlocked

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060111970A1 (en) * 2004-11-24 2006-05-25 Microsoft Corporation System and method for selling on-line and off-line advertising in content delivered to a display screen
CN105141987B (en) * 2015-08-14 2019-04-05 京东方科技集团股份有限公司 Advertisement method for implantation and advertisement implant system
CN106982380A (en) * 2017-04-20 2017-07-25 上海极链网络科技有限公司 The method for implantation of virtual interactive advertisement in internet video
CN109168034B (en) * 2018-08-28 2020-04-28 百度在线网络技术(北京)有限公司 Commodity information display method and device, electronic equipment and readable storage medium
CN110225377A (en) * 2019-06-18 2019-09-10 北京影谱科技股份有限公司 A kind of video method for implantation and device, equipment, medium, system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104170392A (en) * 2013-11-21 2014-11-26 华为技术有限公司 Method, device, system and terminal of inplanting advertisements in files
CN103974126A (en) * 2014-05-15 2014-08-06 北京奇艺世纪科技有限公司 Method and device for embedding advertisements in video
US20180122506A1 (en) * 2015-03-26 2018-05-03 Surgical Safety Technologies Inc. Operating room black-box device, system, method and computer readable medium for event and error prediction
CN104735465A (en) * 2015-03-31 2015-06-24 北京奇艺世纪科技有限公司 Method and device for implanting planar pattern advertisements into video frame
US20170084231A1 (en) * 2015-09-23 2017-03-23 Intel Corporation Imaging system management for camera mounted behind transparent display
CN109033795A (en) * 2018-07-24 2018-12-18 青岛海信移动通信技术股份有限公司 A kind of method and terminal that the terminal containing camera is unlocked

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020252976A1 (en) * 2019-06-18 2020-12-24 北京影谱科技股份有限公司 Video insertion method, apparatus and device, medium and system
CN116939294A (en) * 2023-09-17 2023-10-24 世优(北京)科技有限公司 Video implantation method and device, storage medium and electronic equipment
CN116939294B (en) * 2023-09-17 2024-03-05 世优(北京)科技有限公司 Video implantation method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
WO2020252976A1 (en) 2020-12-24

Similar Documents

Publication Publication Date Title
US11475246B2 (en) System and method for generating training data for computer vision systems based on image segmentation
Rana et al. Deep tone mapping operator for high dynamic range images
CN109345556B (en) Neural network foreground separation for mixed reality
CN105635719B (en) Method and apparatus for calibrating image
KR102134405B1 (en) System and Method for Improving Low Light Level Image Using Generative Adversarial Network
CN110650368B (en) Video processing method and device and electronic equipment
US9811946B1 (en) High resolution (HR) panorama generation without ghosting artifacts using multiple HR images mapped to a low resolution 360-degree image
US20110273466A1 (en) View-dependent rendering system with intuitive mixed reality
Yang et al. Single image haze removal via region detection network
JP7389116B2 (en) Deep neural network pose estimation system
CN110100252A (en) For determining the technology of the setting of content capture equipment
CN109325532A (en) The image processing method of EDS extended data set under a kind of small sample
US20110273369A1 (en) Adjustment of imaging property in view-dependent rendering
CN110796080A (en) Multi-pose pedestrian image synthesis algorithm based on generation of countermeasure network
CN112200035B (en) Image acquisition method, device and vision processing method for simulating crowded scene
US20230021533A1 (en) Method and apparatus for generating video with 3d effect, method and apparatus for playing video with 3d effect, and device
CN106255990A (en) Image for camera array is heavily focused
Scheck et al. Learning from theodore: A synthetic omnidirectional top-view indoor dataset for deep transfer learning
CN110225377A (en) A kind of video method for implantation and device, equipment, medium, system
Yang et al. Training with augmented data: Gan-based flame-burning image synthesis for fire segmentation in warehouse
Lamer et al. Computer vision based object recognition principles in education
CN111968191A (en) Automatic image synthesis using a comb neural network architecture
CN111738964A (en) Image data enhancement method based on modeling
KR102176805B1 (en) System and method for providing virtual reality contents indicated view direction
CN107369138A (en) Image based on higher order statistical model optimizes display methods

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190910