CN108111779A - A kind of method and terminal device of video processing - Google Patents

A kind of method and terminal device of video processing Download PDF

Info

Publication number
CN108111779A
CN108111779A CN201711161843.XA CN201711161843A CN108111779A CN 108111779 A CN108111779 A CN 108111779A CN 201711161843 A CN201711161843 A CN 201711161843A CN 108111779 A CN108111779 A CN 108111779A
Authority
CN
China
Prior art keywords
facial image
video file
substituted
parameter
video
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
CN201711161843.XA
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.)
Shenzhen Lang - Shaped Digital Technology Co Ltd
Original Assignee
Shenzhen Lang - Shaped Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Lang - Shaped Digital Technology Co Ltd filed Critical Shenzhen Lang - Shaped Digital Technology Co Ltd
Priority to CN201711161843.XA priority Critical patent/CN108111779A/en
Publication of CN108111779A publication Critical patent/CN108111779A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2628Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation

Abstract

The embodiment of the present application discloses a kind of method of video processing, including:At least N number of character image of acquisition, extracts N number of facial image in N number of character image, and the N is positive integer;The first video file of selection is obtained, searches the position of the facial image to be substituted in M two field pictures in first video file, the M is positive integer;The position that N number of facial image is separately positioned on to the facial image to be substituted in M two field pictures generates the second video file, and second video file is played, and the N is greater than or equal to M.The embodiment of the present application additionally provides relevant device.The head portrait of some personage in video using the embodiment of the present application can be substituted for the head portrait of user, user is made to have better experience at the recreational aspect of video.

Description

A kind of method and terminal device of video processing
Technical field
A kind of method and terminal device handled this application involves image processing field more particularly to video.
Background technology
At present, the technology of video processing is more and more flourishing, and the software of video processing is also more and more such as widely known Photoshop, in graphic detail with Digital Photo Professional, etc..Related technical personnel can utilize these Software, according to oneself the video progress editing and adjustment that need to have recorded these, so that these videos are better The needs of meeting oneself.
But for the prior art, editing and adjustment to video rely on technical staff and are grasping to a certain extent It is completed on the basis of video processing and image processing techniques using related software, for the masses of no relevant knowledge deposit For user, video cannot be just adjusted according to the demand of oneself, also can not just experience some videos and carry out handling it Caused entertainment effect afterwards.
The content of the invention
The present invention provides a kind of method and terminal device of video processing, to expand the application range of video processing, allows More people, which can enjoy, replaces enjoyment caused by head portrait in video, improves the experience of user.
In a first aspect, the present invention provides a kind of method of video processing, including:
At least N number of character image of acquisition, extracts N number of facial image in N number of character image, and the N is positive integer;
It obtains the first video file of selection, searches in first video file face figure to be substituted in M two field pictures The position of picture, the M are positive integer;
The position generation second that N number of facial image is separately positioned on to the facial image to be substituted in M two field pictures regards Frequency file plays second video file, and the N is greater than or equal to the M.
Second aspect, the present invention provide a kind of terminal device of video processing, including:
Collecting unit:For at least N number of character image of acquisition, N number of facial image in N number of character image is extracted, The N is positive integer.
Processing unit:For obtaining the first video file of selection, searching will in M two field pictures in first video file The position of the facial image of replacement, the M are positive integer.
Setting unit:For N number of facial image to be separately positioned on to the position for the facial image to be substituted in M two field pictures The second video file of generation is put, second video file is played, the N is greater than or equal to the M.
The third aspect, the embodiment of the present application provides a kind of terminal device, including one or more processors, one or more Memory, one or more transceivers and one or more programs, one or more of programs are stored in the storage In device, and it is configured to be performed by one or more of processors, described program includes performing as described in relation to the first aspect Method in step instruction.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, and storage is handed over for electronic data The computer program changed, wherein, the computer program causes computer to perform method as described in relation to the first aspect.
5th aspect, the embodiment of the present application provide a kind of computer program product, and the computer program product includes depositing The non-transient computer readable storage medium of computer program is stored up, the computer program is operable to perform computer Method as described in relation to the first aspect.
Using the embodiment of the present application, have the advantages that:
In the prior art, it is that professional technician is completed on the basis of using Video processing software to the processing of video , and method provided in this embodiment is for all users, user only needs to complete corresponding operation according to prompting, it is possible to The head portrait of some personage in video is substituted for the head portrait of oneself, and according to original in target video during replacement The size of the head figure of personage is adjusted the image of user, is substituted into using account picture after target video with target video very Coordinate, make the video generated after replacement that the terminal device for having this function especially are placed on large size and travelled with more ornamental value , more enjoyment can be brought to user, improve user experience.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of flow diagram of the method for video processing provided by the embodiments of the present application;
Fig. 2 is a kind of interface schematic diagram provided by the embodiments of the present application;
Fig. 3 is another interface schematic diagram provided by the embodiments of the present application;
Fig. 4 is that the embodiment of the present application provides a kind of length and width schematic diagram of facial image;
Fig. 5 is another interface schematic diagram provided by the embodiments of the present application;
Fig. 6 is the flow diagram of the method for another video processing provided by the embodiments of the present application;
Fig. 7 is the structure diagram of another terminal device provided by the embodiments of the present application;
Fig. 8 is the structure diagram of another terminal device provided by the embodiments of the present application.
Specific embodiment
In order to which those skilled in the art is made to more fully understand application scheme, below in conjunction in the embodiment of the present application The technical solution in the embodiment of the present application is clearly and completely described in attached drawing, it is clear that described embodiment is only The embodiment of the application part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people Member's all other embodiments obtained without making creative work should all belong to the model of the application protection It encloses.
It is described in detail individually below.
Term " first ", " second ", " the 3rd " in the description and claims of this application and the attached drawing and " Four " etc. be for distinguishing different objects rather than for describing particular order.In addition, term " comprising " and " having " and it Any deformation, it is intended that cover non-exclusive include.Such as it contains the process of series of steps or unit, method, be The step of system, product or equipment are not limited to list or unit, but optionally further include the step of not listing or list Member is optionally further included for other intrinsic steps of these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Hereinafter, the part term in the present invention is explained, in order to those skilled in the art understand that.
Terminal device is a kind of equipment for providing a user voice and/or data connectivity, for example, with wireless connection work( Portable equipment, mobile unit of energy etc..Common terminal device for example including:Mobile phone, tablet computer, laptop, the palm Upper computer, mobile internet device (mobile internet device, MID), wearable device, such as smartwatch, intelligence Energy bracelet, pedometer etc..
First, referring to Fig. 1, a kind of Fig. 1 positions flow diagram of the method for video processing provided by the embodiments of the present application should Method includes:
Step 101:Terminal device gathers at least N number of character image, extracts N number of face figure in N number of character image Picture, the N are positive integer.
Wherein, at least N number of character image specific embodiment of acquisition has:After terminal device startup, initial Acquisition prompting is shown on display interface, as shown in Fig. 2, the acquisition prompts to remind user will acquisition after preset duration T N number of character image of the user is asked the user to carry out acquisition in advance and is prepared;The acquisition prompting is additionally operable to prompt the use Different postures is shown at family during acquisition, makes different expressions.
Further, after preset duration T, the acquisition prompting is hidden, and the terminal device starts continuous acquisition N number of character image of the user, the preset duration T for example can be 3s, 5s, 7s, 10s, 15s or other values, described Preset duration T can be modified according to the needs of user in the system of the terminal device is set, and the N for example can be 500th, 600,750,1000,1500 or other values, the N by pre-stored video in the terminal device and it is described in advance The personage to be substituted pre-set in the video of storage codetermines.
Certainly, the pre-stored video can be that a video can also be multiple videos, described pre-stored The personage to be substituted pre-set in video can be that a personage can also be multiple personages.
Further, after the terminal continuous acquisition to N number of character image of the user, to the user N number of character image carry out characteristics of image identification and extraction, obtain N number of face figure of N number of character image of the user, and will N number of face figure is stored temporarily in the terminal device.
For example, preset duration T=5s, the N=500 after terminal device unlatching, are being initially displayed interface Upper show gathers prompt message, and after 5s, the acquisition prompt message disappears, user described in the terminal device continuous acquisition 500 character images, after the completion of acquisition, the terminal device carries out characteristics of image to 500 character images of the user Identification and extraction, obtain 500 facial images, and 500 facial images are stored temporarily in the terminal device In portion's storage unit.
Step 102:Terminal device obtains the first video file of selection, searches M two field pictures in first video file In the facial image to be substituted position, the M be positive integer.
Wherein, after N number of face figure that N number of character image of the user is obtained in the terminal device, at the end First displaying interface display video select button of end equipment.
Further, a corresponding prompting frame below each button at the first displaying interface, as shown in figure 3, described Prompting frame is used to prompt user that can click on the video select button, the prompting frame according to the prompt message of the prompting frame Prompt message include:Introduce the replacement that title, protagonist, plot, scene and the video of the video are pre-set Personage, etc., the user can click on the video select button according to the prompt message of the prompting frame, and the terminal is set After the standby click request for receiving user, the corresponding video file of the button is obtained, using the video file as the first video File.
Further, the video file of the prompting frame is all anticipated, and make use of Video processing software AE (Adobe After Effects) pre-processes the video file, and obtaining each using Video processing software AE regards The facial image parameter of frequency file, and the facial image parameter of each video file is subjected to corresponding deposit in the form of a file Storage, and the mapping table of the facial image parameter of video file and the video file is established, when user selects any one video After file, the terminal device caller obtains the mapping table of the video file, obtains pre-stored in the video file Facial image parameter.
Further, after the equipment obtains the first video file of selection, according to video file with pre-setting Facial image parameter mapping relations, obtain pre-set facial image parameter, the pre-set facial image ginseng Number includes:M two field pictures comprising the personage to be substituted, the face to be substituted in the M two field pictures in first video file The length parameter and width parameter of the location parameter of image and the facial image to be substituted, wherein, the first video text The M two field pictures comprising the personage to be substituted in advance scratch the head figure of the personage to be substituted by pretreatment in part.Such as Shown in Fig. 4, the length parameter is that for forehead to the distance of chin, the width parameter is institute in the facial image to be substituted State the distance between two ear centers in the facial image to be substituted.
Further, the terminal device searches the first video text in the pre-set facial image parameter The location parameter for the facial image to be substituted in M two field pictures described in part.
For example, at the described first displaying interface there are three video select button, first video button corresponds to video 《Pirates of the Caribbean 5》, second video button correspond to video《Warwolf 2》, the 3rd video button correspond to video《Spider free from worldly cares It is chivalrous》, the video file and the mapping relations of pre-set facial image parameter are as shown in table 1, if the user clicks on institute The button of first video is stated, then the terminal device obtains video《Pirates of the Caribbean 5》As the first video file, according to table The personage that 1 mapping relations know to replace is Jack captain, and Jack captain has 500 frames to anticipate in first video Interchangeable image, in the interchangeable image of 500 frame the position of the facial image of Jack captain be respectively (2.1, 3.2), (2.3,3.4) ..., the length and width difference of the head figure of Jack captain in the interchangeable image of 500 frame For 5.0,5.2 ... and 3.5,3.6 ..., the terminal device is from the video《Pirates of the Caribbean 5》Facial image parameter In find Jack captain position be respectively (2.1,3.2), (2.3,3.4), etc..
Table 1
Step 103:N number of facial image is separately positioned on the facial image to be substituted in M two field pictures by terminal device Position generate the second video file, second video file is played, the N is more than or equal to M.
Wherein, the face figure for the user that N number of facial image arrives for terminal device continuous acquisition described in step 101 Picture, N number of facial image may be provided entirely in the face figure to be substituted in the M two field pictures according to the sequencing of acquisition The some people face image of N number of facial image is simply arranged on institute by the position of picture according to the sequencing of acquisition The position for the facial image to be substituted in M two field pictures is stated, concrete condition is determined by the occurrence of N and M, described N number of if N=M Facial image is all used, if N>M, then N number of facial image part be used.
Further, according to the location parameter of the facial image to be substituted in the M two field pictures, by N number of face figure Position as being separately positioned on the facial image to be substituted in M two field pictures, the terminal device obtain advance in a step 102 The length parameter and width parameter for the facial image to be substituted described in being searched in the facial image parameter of setting.
Further, the terminal device is arranged on the M two field pictures according to the length parameter and width parameter adjustment In the facial image to be substituted position N number of facial image length and width, by the length of N number of facial image It is the length and width of the facial image to be substituted in the M two field pictures with width adjustment.
It is understood that the method for processing video frequency is the head figure that the character image to be replaced is substituted, not There are position and order of the character image to be replaced in the target video described in change, the terminal device is according to the mesh The original order constitutional diagram picture of video is marked, generates the second video file, described the is played in the second display interface of the terminal Two video files.
For example, the terminal device collects the setting of 500 frame facial images, to be substituted in 500 two field picture The position of facial image be (2.1,3.2), (2.3,3.4) ..., then the terminal device will the 500 frame facial image press it is suitable Sequence is separately positioned on the position (2.1,3.2) of the facial image to be substituted, (2.3,3.4) ... place, the terminal device According to the length and width of the facial image of the replacement, such as 5.0,5.2 ... and 3.5,3.6 ..., by the 500 frame people Face image is adjusted to 5.0,5.2 ... and 3.5,3.6 ..., and finally, the terminal device is original according to the target video Sequential combination image generates the second video file, and second video file is played in the second display interface of the terminal.
In one example, it is described after second display interface in the terminal plays second video file Method further includes:
In the 3rd display interface display reminding information of the terminal, as shown in figure 5, the prompt message is used for prompting Family is to play second video file again, still terminates this time to substitute operation.
In the prior art, it is that professional technician is completed on the basis of using Video processing software to the processing of video , and the method that embodiments herein provides is for all users, user only needs to complete corresponding operation according to prompting, The head portrait of some in video personages can be substituted for the head portrait of oneself, and according to target video during replacement In the size of head figure of original personage the image of user is adjusted, be substituted into using account picture after target video and target Video is coordinated very much, and the video generated after replacement is made especially to be placed on the terminal device for having this function greatly with more ornamental value Type recreation ground can bring more enjoyment to user, improve user experience.
The embodiment of the present application additionally provides another more detailed method flow, as shown in fig. 6, this method includes:
Step 601:Terminal device gathers at least N number of character image, and the N is positive integer.
Step 602:Terminal device extracts N number of facial image in N number of character image.
Step 603:Terminal device obtains the first video file of selection.
Step 604:Terminal device searches the position of the facial image to be substituted in M two field pictures in first video file It puts, the M is positive integer.
Step 605:N number of facial image will be separately positioned on the face figure to be substituted in M two field pictures by terminal device The position of picture generates the second video file.
Step 606:Terminal device plays second video file.
Step 607:The clicking operation that terminal device receives user determines whether to replay second video file.
If so, perform step 606;
If it is not, then terminate to operate herein.
It should be noted that the specific implementation process of each step of method shown in Fig. 6 can be found in described in the above method Specific implementation process, no longer describe herein.
The device of the embodiment of the present application is provided below in the above-mentioned method for illustrating the embodiment of the present application.
Fig. 7 is referred to, Fig. 7 is a kind of terminal device 700 provided by the embodiments of the present application, including:At least one processor, At least one processor and at least one communication interface;And one or more programs;
One or more of programs are stored in the memory, and are configured to be performed by the processor, Described program includes performing the instruction of following steps:
At least N number of character image of acquisition, extracts N number of facial image in N number of character image, and the N is positive integer;
It obtains the first video file of selection, searches in first video file face figure to be substituted in M two field pictures The position of picture, the M are positive integer;
The position generation second that N number of facial image is separately positioned on to the facial image to be substituted in M two field pictures regards Frequency file plays second video file, and the N is greater than or equal to M.
In one example, described after second video file is played, described program is additionally operable to perform following step Rapid instruction:
In the 3rd display interface display reminding information, the prompt message is to play described second again for prompting user Video file still terminates this time to substitute operation.
It should be noted that the specific implementation of the content described in the present embodiment can be found in the above method, herein no longer Narration.
It is above-mentioned that mainly the scheme of the embodiment of the present application is described from the angle of method side implementation procedure.It is appreciated that , for terminal device in order to realize above-mentioned function, it comprises perform the corresponding hardware configuration of each function and/or software mould Block.Those skilled in the art should be readily appreciated that, with reference to each exemplary unit of the embodiments described herein description And algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function actually with Hardware or computer software drive the mode of hardware to perform, depending on the specific application of technical solution and design constraint item Part.Professional technician specifically can realize described function to each using distinct methods, but this reality Now it is not considered that beyond scope of the present application.
The embodiment of the present application can carry out terminal device according to the above method example division of functional unit, for example, can Each functional unit is divided with each function of correspondence, two or more functions can also be integrated in a processing unit In.The form that hardware had both may be employed in above-mentioned integrated unit is realized, can also be realized in the form of SFU software functional unit.It needs It is only a kind of division of logic function it is noted that being schematical to the division of unit in the embodiment of the present application, it is actual real There can be other dividing mode now.
In the case of using integrated unit, Fig. 8 shows one kind of terminal device involved in above-described embodiment Possible functional unit forms block diagram.Terminal device 800 includes:Processing unit 801, communication unit 802 and storage unit 803, Processing unit 801 includes collecting unit 8011, acquiring unit 8012, setting unit 8013 and display unit 8014.Storage unit 803 are used for the program code and data of storage terminal device.Communication unit 802 is used to support the logical of terminal device and other equipment Letter.Above-mentioned some units (collecting unit 8011, acquiring unit 8012, setting unit 8013 and display unit 8014) are used to perform The correlation step of the above method.
Wherein, processing unit 801 can be processor or controller, (such as can be central processing unit (Central Processing Unit, CPU), general processor, digital signal processor (Digital Signal Processor, DSP), Application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), field programmable gate array It is (Field Programmable Gate Array, FPGA) or other programmable logic device, transistor logic, hard Part component or its any combination.It can realize or perform and various illustratively patrol with reference to present disclosure is described Collect box, module and circuit.The processor can also be the combination for realizing computing function, such as include one or more micro- places Manage device combination, combination of DSP and microprocessor etc.).Storage unit 803 can be memory, and communication unit 802 can be received Send out device, transmission circuit, radio frequency chip, communication interface etc..
Wherein, collecting unit 8011 for gathering at least N number of character image, are extracted N number of in N number of character image Facial image, the N are positive integer;
Acquiring unit 8012 for obtaining the first video file of selection, searches M two field pictures in first video file In the facial image to be substituted position, the M be positive integer;
Setting unit 8013, for N number of facial image to be separately positioned on the facial image to be substituted in M two field pictures Position generate the second video file, second video file is played, the N is more than or equal to M.
In one example, after the setting unit 8013 plays second video file, the terminal Equipment further includes:
Display unit 8014, in the 3rd display interface display reminding information, the prompt message to be used to prompt user It is to play second video file again, still terminates this time to substitute operation.
In one example, the acquiring unit 8012 is specifically used for:
When detect for the video select button of the first display interface clicking operation at present, obtain first video File;
Obtain the pre-set facial image parameter of first video file;
Being searched in the pre-set facial image parameter will replace described in first video file in M two field pictures The position of the facial image in generation.
In one example, the setting unit 8013 is specifically used for:
According to the position of the facial image to be substituted in the M two field pictures, N number of facial image is separately positioned on M The position for the facial image to be substituted in two field picture;
The length parameter and width for the facial image to be substituted described in being searched in the pre-set facial image parameter Parameter is spent, the length parameter is that for forehead to the distance of chin, the width parameter is institute in the facial image to be substituted State the distance between two ear centers in the facial image to be substituted;
The position of the facial image to be substituted in the M two field pictures is arranged on according to the length parameter and width parameter adjustment The length and width for the N number of facial image put generates the second video file, and playing described second in the second display interface regards Frequency file.
The embodiment of the present application also provides a kind of computer storage media, wherein, computer storage media storage is for electricity The computer program that subdata exchanges, the computer program cause computer to perform any as described in above-mentioned embodiment of the method The part or all of step of method, the computer include terminal device.
The embodiment of the present application also provides a kind of computer program product, and the computer program product includes storing calculating The non-transient computer readable storage medium of machine program, the computer program are operable to that computer is made to perform such as above-mentioned side The part or all of step of either method described in method embodiment.The computer program product can be a software installation Bag, the computer include terminal device.
The step of described method of the embodiment of the present application or algorithm can be realized in a manner of hardware or The mode of software instruction is performed by processor to realize.Software instruction can be made of corresponding software module, and software module can To be stored on random access memory (Random Access Memory, RAM), flash memory, read-only memory (Read Only Memory, ROM), Erasable Programmable Read Only Memory EPROM (Erasable Programmable ROM, EPROM), electrically erasable can Program read-only memory (Electrically EPROM, EEPROM), register, hard disk, mobile hard disk, read-only optical disc (CD- ROM) or in the storage medium of any other form well known in the art.A kind of illustrative storage medium is coupled to processing Device so as to enable a processor to from the read information, and can write information to the storage medium.Certainly, storage is situated between Matter can also be the component of processor.Pocessor and storage media can be located in ASIC.In addition, the ASIC can be located at In access network equipment, destination network device or equipment of the core network.Certainly, pocessor and storage media can also be used as discrete assembly It is present in access network equipment, destination network device or equipment of the core network.
Those skilled in the art it will be appreciated that in said one or multiple examples, retouched by the embodiment of the present application The function of stating can be realized wholly or partly by software, hardware, firmware or its any combination.It is realized when using software When, it can entirely or partly realize in the form of a computer program product.The computer program product includes one or more A computer instruction.When loading on computers and performing the computer program instructions, entirely or partly generate according to this Apply for the flow or function described in embodiment.The computer can be all-purpose computer, special purpose computer, computer network, Or other programmable devices.The computer instruction can be stored in a computer-readable storage medium or counted from one Calculation machine readable storage medium storing program for executing is transmitted to another computer readable storage medium, for example, the computer instruction can be from one Web-site, computer, server or data center pass through wired (such as coaxial cable, optical fiber, Digital Subscriber Line (Digital Subscriber Line, DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, Server or data center are transmitted.It is any available can be that computer can access for the computer readable storage medium The data storage devices such as server, the data center that medium is either integrated comprising one or more usable mediums.It is described to use Medium can be magnetic medium (for example, floppy disk, hard disk, tape), optical medium (for example, digital video disk (Digital Video Disc, DVD)) or semiconductor medium (for example, solid state disk (Solid State Disk, SSD)) etc..
Above-described specific embodiment carries out the purpose, technical solution and advantageous effect of the embodiment of the present application It is further described, it should be understood that the foregoing is merely the specific embodiment of the embodiment of the present application, and do not have to In limit the embodiment of the present application protection domain, it is all on the basis of the technical solution of the embodiment of the present application, done it is any Modification, equivalent substitution, improvement etc. should all be included within the protection domain of the embodiment of the present application.

Claims (10)

  1. A kind of 1. method of video processing, which is characterized in that including:
    At least N number of character image of acquisition, extracts N number of facial image in N number of character image, and the N is positive integer;
    It obtains the first video file of selection, searches in first video file facial image to be substituted in M two field pictures Position, the M are positive integer;
    The position that N number of facial image is separately positioned on to the facial image to be substituted in M two field pictures generates the second video text Part plays second video file, and the N is greater than or equal to the M.
  2. 2. according to the method described in claim 1, it is characterized in that, first video file for obtaining selection, described in lookup In first video file in M two field pictures the facial image to be substituted position, including:
    Before the first video file of selection is obtained, the face of first video file is obtained using Video processing software AE Image parameter, and store the facial image parameter;
    When detecting the clicking operation for the video select button of the first display interface, first video file is obtained;
    Obtain facial image parameter pre-stored in first video file;
    The facial image to be substituted in M two field pictures is searched described in first video file in the facial image parameter Location parameter.
  3. 3. method according to claim 1 or 2, which is characterized in that described that N number of facial image is separately positioned on M The position of alternative facial image generates the second video file in two field picture, and second video file is played, including:
    According to the location parameter of the facial image to be substituted in the M two field pictures, N number of facial image is separately positioned on M The position for the facial image to be substituted in two field picture;
    The length parameter and width parameter for the facial image to be substituted, the length described in being searched in the facial image parameter Parameter is that for forehead to the distance of chin, the width parameter is the face figure to be substituted in the facial image to be substituted The distance between two ear centers as in;
    The institute of the facial image position to be substituted in the M two field pictures is arranged on according to the length parameter and width parameter adjustment The length and width for stating N number of facial image generates the second video file, and second video file is played in the second display interface.
  4. 4. according to claim 1-3 any one of them methods, which is characterized in that described to be played by second video file Afterwards, the method further includes:
    In the 3rd display interface display reminding information, the prompt message is to play second video again for prompting user File still terminates this time to substitute operation.
  5. 5. a kind of terminal device of video processing, which is characterized in that including:
    Collecting unit:For gathering at least N number of character image, N number of facial image in N number of character image, the N are extracted For positive integer;
    Acquiring unit:For obtaining the first video file of selection, searching in first video file will substitute in M two field pictures Facial image position, the M be positive integer;
    Setting unit:For N number of facial image to be separately positioned on to the life of the position for the facial image to be substituted in M two field pictures Into the second video file, second video file is played, the N is greater than or equal to M.
  6. 6. terminal device according to claim 5, which is characterized in that the acquiring unit is specifically used for:
    Before the first video file of selection is obtained, first video file is obtained in advance using Video processing software AE Facial image parameter, and store the facial image parameter;
    When detecting the clicking operation for the video select button of the first display interface, first video file is obtained;
    Obtain pre-stored facial image parameter in first video file;
    The facial image to be substituted in M two field pictures is searched described in first video file in the facial image parameter Position.
  7. 7. terminal device according to claim 5 or 6, which is characterized in that the setting unit is specifically used for:
    According to the position of the facial image to be substituted in the M two field pictures, N number of facial image is separately positioned on M frame figures The position for the facial image to be substituted as in;
    The length parameter and width parameter for the facial image to be substituted, the length described in being searched in the facial image parameter Parameter is that for forehead to the distance of chin, the width parameter is the face figure to be substituted in the facial image to be substituted The distance between two ear centers as in;
    The institute of the facial image position to be substituted in the M two field pictures is arranged on according to the length parameter and width parameter adjustment The length and width for stating N number of facial image generates the second video file, and second video file is played in the second display interface.
  8. 8. according to claim 5-7 any one of them terminal devices, which is characterized in that the terminal device further includes:
    Display unit:For in the 3rd display interface display reminding information, the prompt message to be to broadcast again for prompting user Second video file is put, still terminates this time to substitute operation.
  9. 9. a kind of terminal device, which is characterized in that including one or more processors, one or more memory, one or more A transceiver and one or more programs, one or more of programs are stored in the memory, and are configured It is performed by one or more of processors, described program includes performing such as claim 1-4 any one of them methods In step instruction.
  10. 10. a kind of computer readable storage medium, which is characterized in that it stores the computer program for electronic data interchange, Wherein, the computer program causes computer to perform such as claim 1-4 any one of them methods.
CN201711161843.XA 2017-11-21 2017-11-21 A kind of method and terminal device of video processing Pending CN108111779A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711161843.XA CN108111779A (en) 2017-11-21 2017-11-21 A kind of method and terminal device of video processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711161843.XA CN108111779A (en) 2017-11-21 2017-11-21 A kind of method and terminal device of video processing

Publications (1)

Publication Number Publication Date
CN108111779A true CN108111779A (en) 2018-06-01

Family

ID=62206478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711161843.XA Pending CN108111779A (en) 2017-11-21 2017-11-21 A kind of method and terminal device of video processing

Country Status (1)

Country Link
CN (1) CN108111779A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968736A (en) * 2019-12-04 2020-04-07 深圳追一科技有限公司 Video generation method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106023063A (en) * 2016-05-09 2016-10-12 西安北升信息科技有限公司 Video transplantation face changing method
CN106792147A (en) * 2016-12-08 2017-05-31 天脉聚源(北京)传媒科技有限公司 A kind of image replacement method and device
US20170154450A1 (en) * 2015-11-30 2017-06-01 Le Shi Zhi Xin Electronic Technology (Tianjin) Limited Multimedia Picture Generating Method, Device and Electronic Device
CN107105310A (en) * 2017-05-05 2017-08-29 广州盈可视电子科技有限公司 Figure image replacement method, device and a kind of recording and broadcasting system in a kind of net cast

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170154450A1 (en) * 2015-11-30 2017-06-01 Le Shi Zhi Xin Electronic Technology (Tianjin) Limited Multimedia Picture Generating Method, Device and Electronic Device
CN106023063A (en) * 2016-05-09 2016-10-12 西安北升信息科技有限公司 Video transplantation face changing method
CN106792147A (en) * 2016-12-08 2017-05-31 天脉聚源(北京)传媒科技有限公司 A kind of image replacement method and device
CN107105310A (en) * 2017-05-05 2017-08-29 广州盈可视电子科技有限公司 Figure image replacement method, device and a kind of recording and broadcasting system in a kind of net cast

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968736A (en) * 2019-12-04 2020-04-07 深圳追一科技有限公司 Video generation method and device, electronic equipment and storage medium
CN110968736B (en) * 2019-12-04 2021-02-02 深圳追一科技有限公司 Video generation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2018126885A1 (en) Game data processing method
CN109462776A (en) A kind of special video effect adding method, device, terminal device and storage medium
CN108259788A (en) Video editing method, terminal and computer readable storage medium
CN106937039A (en) A kind of imaging method based on dual camera, mobile terminal and storage medium
CN108683852A (en) A kind of video recording method, terminal and computer readable storage medium
CN108259781A (en) image synthesizing method, terminal and computer readable storage medium
CN109525891A (en) Multi-user's special video effect adding method, device, terminal device and storage medium
CN107817897A (en) A kind of information intelligent display methods and mobile terminal
CN107943390A (en) A kind of word clone method and mobile terminal
CN107734376A (en) The method and device that a kind of multi-medium data plays
CN109271038A (en) Candidate words recommending method, terminal and computer readable storage medium
CN108038825A (en) A kind of image processing method and mobile terminal
CN108062390A (en) The method, apparatus and readable storage medium storing program for executing of recommended user
CN109600559A (en) A kind of special video effect adding method, device, terminal device and storage medium
CN106170094A (en) The live broadcasting method of panoramic video and device
CN109830248A (en) A kind of audio recording method and terminal device
CN107911812A (en) It is preferred that public land mobile network PPLMN lists method of adjustment and mobile terminal
CN109474787A (en) A kind of photographic method, terminal device and storage medium
CN108986026A (en) A kind of picture joining method, terminal and computer readable storage medium
CN107704828A (en) Methods of exhibiting, mobile terminal and the computer-readable recording medium of reading information
CN108197206A (en) Expression packet generation method, mobile terminal and computer readable storage medium
CN108965101A (en) Conversation message processing method, device, storage medium and computer equipment
CN107948714B (en) Video broadcasting method, equipment and storage medium under more people's video-see scenes
CN109739414A (en) A kind of image processing method, mobile terminal, computer readable storage medium
CN110022445A (en) A kind of content outputting method and terminal device

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: 20180601