CN103686048B - Terminal device and video generation method - Google Patents

Terminal device and video generation method Download PDF

Info

Publication number
CN103686048B
CN103686048B CN201210335867.3A CN201210335867A CN103686048B CN 103686048 B CN103686048 B CN 103686048B CN 201210335867 A CN201210335867 A CN 201210335867A CN 103686048 B CN103686048 B CN 103686048B
Authority
CN
China
Prior art keywords
video
picture
person taken
processing unit
person
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210335867.3A
Other languages
Chinese (zh)
Other versions
CN103686048A (en
Inventor
彭世峰
杨振奕
张柳新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210335867.3A priority Critical patent/CN103686048B/en
Publication of CN103686048A publication Critical patent/CN103686048A/en
Application granted granted Critical
Publication of CN103686048B publication Critical patent/CN103686048B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Terminal device and video generation method, the terminal device include:Processing unit is configured to obtain the first video, and is handled first video, wherein whether the processing unit is to there is the presence of person taken picture in the picture of the picture of the first video described in preset frequency monitoring and determining first video;If the processing unit determines that the presence for having person taken picture in the picture of first video, parameter of the processing unit based on the person taken picture judge whether to need to generate the second video;If the processing unit determination needs to generate the second video, parameter of the processing unit based on the person taken picture generates the second video.

Description

Terminal device and video generation method
Technical field
The present invention relates to a kind of terminal device and video generation methods.
Background technology
Currently, with video conference or the development of Video chat technology, the terminal device with camera module is used (Such as, smart mobile phone, tablet computer or smart television)The scene for carrying out Video chat or video conference becomes increasingly prevalent.When Before, due to the use of local terminal carry out the home of Video chat or video conference often not camera module most Good camera site, thus user distance camera module farther out in the case of, the video that user obtains in camera module is drawn Ratio in face is too small, thus with the user of the other side of the user's communication(The other user)Often see that user only accounts for video picture Small part in face.Home has to adjust the position of oneself to adapt to camera camera site, to reach Preferable shooting angle so that by the other side user(The other user)It can be seen that preferable video pictures.Adjustment is certainly Own position brings trouble with the camera site for adapting to camera to home, cannot meet the use habit of user.In addition, To by the other side user(The other user)For, if home does not adjust the position of oneself to adapt to camera Camera site, then the user for the other side conversed(The other user)The local terminal from home can only passively be received Acquire video pictures(That is, bad video pictures).User in the other side of call(The other user)It can not adjust to meet Its demand watched.The user of strong influence terminal device carries out the impression of Video chat or video conference.
Invention content
In order to solve above-mentioned technical problem in the prior art, according to an aspect of the present invention, a kind of terminal device is provided, Including:Processing unit is configured to obtain the first video, and is handled first video, wherein the processing unit Whether to have depositing for person taken picture in the picture of the picture of the first video described in preset frequency monitoring and determining first video ;If the processing unit determines that the presence for having person taken picture in the picture of first video, the processing unit are based on The parameter of the person taken picture judges whether to need to generate the second video;If the processing unit determination needs generation second to regard Frequently, then quantity, position and size of the processing unit based on the person taken picture generate the second video.
In addition, according to one embodiment of present invention, wherein if the processing unit determines the quantity of the person taken picture For a people, then the processing unit intercepts institute based on position of the person taken picture in the picture of first video and size At least part of the first video is stated to generate the second video;And ratio of the person taken picture in the picture of second video Example is more than ratio of the person taken picture in the picture of first video.
In addition, according to one embodiment of present invention, wherein if the processing unit determines the quantity of the person taken picture For more people, then the processing unit is cut based on position and size of the whole person taken pictures in the picture of first video At least part of first video is taken to generate the second video;And include whole quilts in the picture of second video The person of taking the photograph, and ratio of the person taken picture in the picture of second video is more than the person taken picture in first video Ratio in picture.
In addition, according to one embodiment of present invention, wherein the processing unit determines specific shot person is in the first video Picture time whether be more than first threshold;If the time is more than the first threshold, processing unit generate the Include the specific shot person in two videos;And if the time is no more than the first threshold, processing unit generates The second video in do not include the specific shot person.
In addition, according to one embodiment of present invention, wherein the terminal device further comprises:Communication unit, configuration Carry out other terminal equipment in communication with distal end, wherein the processing unit by the communication unit to other terminal devices Send second video.
In addition, according to another aspect of the present invention, providing a kind of video generation method, it is applied to terminal device, it is described to regard Frequency generating method includes:Obtain the first video;With the picture of the first video described in preset frequency monitoring and determine described first Whether the presence of person taken picture is had in the picture of video;And if it is determined that there is depositing for person taken picture in the picture of first video Judge whether to need to generate the second video in, the then parameter based on the person taken picture;And if it is determined that generation second is needed to regard Frequently, then the parameter based on the person taken picture generates the second video.
In addition, according to one embodiment of present invention, wherein the parameter based on the person taken picture generates the step of the second video Suddenly further comprise:If it is determined that the quantity of the person taken picture is a people, then based on the person taken picture in first video Position and size in picture intercept at least part of first video to generate the second video, wherein the person taken picture exists Ratio in the picture of second video is more than ratio of the person taken picture in the picture of first video.
In addition, according to one embodiment of present invention, wherein the parameter based on the person taken picture generates the step of the second video Suddenly further comprise:If it is determined that the quantity of the person taken picture is more people, then it is based on whole person taken pictures and is regarded described first Position and size in the picture of frequency intercept at least part of first video to generate the second video, wherein described Comprising whole person taken pictures in the picture of two videos, and ratio of the person taken picture in the picture of second video is big Ratio in picture of the person taken picture in first video.
In addition, according to one embodiment of present invention, wherein the method further includes:The person that determines specific shot is Whether the time of the picture of one video is more than first threshold;If the time is more than the first threshold, in the second video In include the specific shot person;And if the time is no more than the first threshold, do not include in the second video The specific shot person.
In addition, according to one embodiment of present invention, the method further includes:It is sent to other terminal devices Second video.
The embodiment provided through the invention, home can be under the situations for not changing oneself(For example, with Family accumbency is on sofa), by determining the person of being taken in the picture that is acquired of camera(I.e. oneself)Parameter(For example, region, The parameters such as direction)It can be realized as adjusting the picture of camera acquisition in the case where not changing the position of oneself.To ensure certainly Oneself sees and is transferred to the other side user of call(The other user)For best video pictures.In addition, institute through the invention Video pictures are transferred to by the embodiment of offer even if home does not make any adjustments under the situation for not changing oneself Other side user(The other user), the other user also can on its corresponding terminal device to the video pictures of reception according to quilt The parameter of photographer is adjusted.To realize in the other user on its corresponding terminal device it is seen that oneself wanting to regard Frequency picture.User to greatly improve terminal device carries out the impression of Video chat or video conference.
Description of the drawings
Fig. 1 is the schematic block diagram for illustrating terminal device according to an embodiment of the invention;And
Fig. 2 is the flow chart for illustrating video generation method according to an embodiment of the invention.
Specific implementation mode
It will be described in detail with reference to the accompanying drawings each embodiment according to the present invention.Here it is to be noted that it in the accompanying drawings, It assigns identical reference numeral to the substantially component part with same or like structure and function, and will omit about it Repeated description.
Terminal device according to the ... of the embodiment of the present invention is described next, with reference to attached drawing.Here, according to the ... of the embodiment of the present invention Terminal device may include the terminal device of mobile phone, tablet computer and smart television such as with camera module etc.
As shown in Figure 1, terminal device 1 according to the ... of the embodiment of the present invention may include camera unit 11 and processing unit 12。
Here, camera unit 11 can be realized by arbitrary camera module.Camera unit 11 can make in user Image or video are obtained when being shot with terminal device 1.According to an embodiment of the invention, user's using terminal equipment 1 into When row video conference or Video chat, camera unit 11 can obtain the first video when shooting.Here, the first video refers to It is the original video data that camera unit 11 is obtained.
Processing unit 12 can be realized by arbitrary processor or microprocessor, and be based on preset program(Using)It holds The scheduled processing of row.According to an embodiment of the invention, processing unit 12 can be handled the first video.For example, can be When user opens Video chat application or video conference application, according to Video chat application or the setting of video conference application, certainly Dynamic control process unit 12 handles the first video.Further, it is also possible to open Video chat application or video council in user View switchs in application, providing specific video processing function in Video chat application or video conference application, and in video When processing function switch is opened by user, 12 pair of first video is handled through the processing unit.Specifically, processing unit 12 with Whether the presence of person taken picture is had in the picture of the picture of the first video of preset frequency monitoring and determining first video.Specifically, Processing unit 12 can by obtaining the picture of the first video with scheduled frequency, and by arbitrary human body recognition technology or Mode identification technology, which determines, whether there is person taken picture in the picture of first video(User)Presence.If processing unit 12 is true There is the presence of person taken picture in the picture of fixed first video, then parameter of the processing unit 12 based on person taken picture judges whether to need to generate Second video.Here, in the presence of having person taken picture in the picture that processing unit 12 determines the first video, processing unit 12 may further determine that quantity of the person taken picture in the picture of the first video(Number), position(Region)And size(It is accounted for The ratio of the picture of first video).For example, if processing unit 12 determines that person taken picture is a people, processing unit 12 determines quilt Position of the person of taking the photograph in the picture of the first video(Region)And size.If processing unit 12 determines person taken picture in the first video Picture in position(Region)And size is suitable, then processing unit 12 judges without generating the second video.For example, if by Position of the person of taking the photograph in the picture of the first video(Region)Positioned at the middle section of the picture of the first video, and person taken picture's is big The small picture for being more than the first video 1/3 when, processing unit 12 judgement can not generate the second video.In addition, if processing is single Member 12 determines that the quantity of person taken picture is more people, then position of the processing unit 12 based on whole person taken pictures in the picture of the first video (Region)And size determines the need for generating the second video.For example, processing unit 12 determines that the quantity of person taken picture is more people, Then processing unit 12 determines a box based on position of whole person taken pictures in the picture of the first video and size, here, side The size and location of frame can be by the position of whole person taken pictures(Such as, it is located at the position of the person taken picture at edge)And size(Such as, exist The size of maximum person taken picture in picture)It determines.Then processing unit 12 can be based on the size and location of identified box To determine the need for generating the second video.For example, if the box of whole person taken picture's compositions is in the picture of the first video Position(Region)Positioned at the picture of the first video middle section and its size be more than the first video picture 1/3 when, place The reason judgement of unit 12 can not generate the second video.Here it is to be noted that it the size of the size and box of person taken picture Threshold value is not limited to 1/3 described before.For example, the threshold value of the size of the size and box of person taken picture may be 1/4,1/2 Or other ratios.In the case where the determination of processing unit 12 need not generate the second video, processing unit 12 can will be produced The first raw video sends another party of video conference or Video chat to.In this case, since processing unit 12 executes Processing similarly to the prior art, which is not described herein again.
In addition, if processing unit 12 determines that position and size of the person taken picture in the picture of the first video are improper, then The determination of processing unit 12 needs to generate the second video.
In this case, if the determination of processing unit 12 needs to generate the second video, processing unit 12 is based on shot Quantity, position and the size of person generates the second video.
For example, if processing unit 12 determines that the quantity of person taken picture is a people, position of the processing unit 12 based on person taken picture It sets and size intercepts at least part of the first video to generate the second video.For example, if the position of person taken picture is located at the The left side of the picture of one video, then processing unit 12 is with the position of person taken picture(Such as, the axis of person taken picture or central area)It determines The picture to be intercepted is located at the left side of the picture of the first video.In addition, size interception the of the processing unit 12 also according to person taken picture At least part of one video generates the second video.Here, if size of the person taken picture in the picture of the first video(It is accounted for The ratio of picture)Too small, then processing unit 12 intercepts the picture of the presumptive area around the person taken picture and uses the presumptive area Picture generate the second video(Such as, it intercepts a part for each frame of the first video and the second video is generated based on the part). Here it is possible to determine the presumptive area according to the size of person taken picture, and the presumptive area be more than the size of person taken picture with comprising Entire person taken picture.Furthermore, it is possible to the relationship of the presumptive area size and the size of person taken picture be determined according to experiment value, for example, should Presumptive area can be less than or equal to twice of person taken picture's size.In this case, since the picture of the second video is first A part for the picture of video, thus ratio of the person taken picture in the picture of the second video be more than person taken picture the first video picture Ratio in face.In addition, according to another embodiment of the invention, if the size of person taken picture is suitable(More than the first video The 1/3 of picture), and when position is improper, the position that processing unit 12 can also be based only upon person taken picture intercepts the one of the first video Part is used as the second video.In addition, the size in person taken picture is improper(Less than the 1/3 of the picture of the first video), and position is closed It is suitable(Picture center)When, the size that processing unit 12 can also be based only upon person taken picture intercepts a part for the first video as second Video.
By the above-mentioned means, even if the position of person taken picture or size are improper in the first video, can also be generated newly The second video picture(Larger ratio is simultaneously occupied in the centrally located region of person taken picture)In effectively protrude person taken picture, regard in this way The each side of frequency meeting or Video chat will not be by unnecessary gibberish(Such as, furniture, all kinds of articles)It takes sb's mind off sth, thus The use feeling of video conference or Video chat each side can be improved.
In addition, if processing unit 12 determines that the quantity of person taken picture is more people, then processing unit 12 can be based on whole quilts The position for the person of taking the photograph and size intercept at least part of the first video to generate the second video.Here, in the picture of the second video Comprising whole person taken pictures in face, and ratio of the person taken picture in the picture of the second video be more than person taken picture the first video picture Ratio in face.Specifically, processing unit 12 can determine a box based on the position of whole person taken pictures and size, here, Similar to the previous description, the size and location of box can be by the position of whole person taken pictures(Such as, it is located at the person taken picture's at edge Position)And size(Such as, in picture maximum person taken picture size)It determines.In this case, if whole person taken pictures (Box)Position be located at the first video picture left side, then processing unit 12 is with the position of whole person taken pictures(Such as, box Axis or central area)The determination picture to be intercepted is located at the left side of the picture of the first video.In addition, processing unit 12 also according to Whole person taken pictures(Box)Size intercept at least part of the first video and generate the second video.Here, if whole quilts Size of the person of taking the photograph in the picture of the first video(It accounts for the ratio of picture)Too small, then processing unit 12 intercepts whole person taken pictures (Box)The picture of the presumptive area of surrounding simultaneously generates the second video using the picture of the presumptive area.Here it is possible to according to complete Portion person taken picture(Box)Size determine the presumptive area, and the presumptive area is more than whole person taken pictures(Box)Size with Including whole person taken pictures.Furthermore, it is possible to determine the relationship of the presumptive area size and the size of whole person taken pictures according to experiment value To provide suitable picture, for example, the presumptive area can be less than or equal to whole person taken pictures(Box)Twice of size.At this In the case of kind, since the picture of the second video is a part for the picture of the first video, whole person taken pictures are in the second video Picture in ratio be more than ratio of whole person taken pictures in the picture of the first video.In addition, it is according to the present invention another Embodiment, if whole person taken pictures(Box)Size it is suitable(More than the 1/3 of the picture of the first video), and position is improper When, the position that processing unit 12 can also be based only upon whole person taken pictures intercepts a part for the first video as the second video.This Outside, improper in the size of whole person taken pictures(Less than the 1/3 of the picture of the first video), and position suitable(Picture center)When, The size that processing unit 12 can also be based only upon whole person taken pictures intercepts a part for the first video as the second video.
By the above-mentioned means, even if the position of whole person taken pictures or size are improper in the first video, it can also be new The picture of the second video generated(Larger ratio is simultaneously occupied in the centrally located region of person taken picture)In it is effectively prominent all shot Person so that another party of video conference or Video chat will not disperse energy by other information, it is possible thereby to improve video conference Or the use feeling of Video chat each side.
In addition, when carrying out video conference or Video chat, it might have other people and accidentally pass by terminal device The coverage of camera unit 11, in this case, if the people that this is passed by is determined as person taken picture by processing unit 12, Generated second video may then be had adverse effect on.In this case, according to one embodiment of present invention, Wherein processing unit 12 further determine that the specific shot person in the first video the picture of the first video time whether be more than First threshold.Include specific shot person if the time is more than the first threshold, in the second video that processing unit 12 generates.This Outside, if the time is no more than first threshold, specific shot person is not included in the second video that processing unit generates.Specifically, Each person taken picture that processing unit 12 can be directed in the picture of the first video calculates its time present in the first video, Whether and it is more than first threshold to calculate it in the time of the picture of the first video.If processing unit 12 determines in all person taken pictures Some person taken picture be less than first threshold in the time of the picture of the first video, then processing unit 12 is based on other shot Quantity, position and the size of person come determine the need for generate the second video and need generate the second video when generate this second Video.In addition, if processing unit 12 determine some person taken picture in all person taken pictures the picture of the first video time More than first threshold, then quantity, position and size of the processing unit 12 based on specific shot person and other person taken pictures come It determines the need for generating the second video and the when of generating the second video is being needed to generate second video.Here, first threshold can To be determined based on experiment value, and can be in the range of 1~5 second.
By the above-mentioned means, avoiding since the personnel unrelated with video conference or video calling are taken into account and being based on It generates the case where the second video.
After producing the second video, terminal device 1 generated second video can be sent to video conference or Another party of video calling.In this case, terminal device 1 can also include communication unit(It is not shown).Here, communication unit Member can be by arbitrary wired(Such as, ethernet module)Or it is wireless(Such as, wifi, 2G, 3G)The realization of the communication modules such as module, and Communication unit can be with other terminal equipment in communication of distal end.In this case, processing unit 12 can pass through the communication unit Member sends generated second video to carry out video conference or video calling to other terminal devices.
The first video is described above to be generated by the camera unit 11 of terminal device 1, and processing unit 12 is to taking the photograph The case where being handled as the first video of the generation of head unit 11 to generate the second video.However, the invention is not limited thereto.Example Such as, the first video can also be the chat or meeting that terminal device is obtained from other terminal devices in Video chat or video conference Discuss video.In this case, for example, when user opens Video chat application or video conference application, according to Video chat Using or video conference application setting, processing unit can handle the first video from other terminal devices.This In, carry out processing and according to scheduled condition generation second since the first video of terminal device pair being described in detail above The case where video, therefore which is not described herein again.In this case, it can not only make to carry out video conference with terminal device or regard Other terminal devices of frequency call obtain the second video with better effect, and can make the user of terminal device local Also second video with more preferable effect is obtained.
Video generation method according to the ... of the embodiment of the present invention is described below with reference to Fig. 2.Here, the method for Fig. 2 can answer It uses on the terminal device shown in FIG. 1 with camera unit.
As shown in Fig. 2, in step S201, the first video is obtained.
Specifically, in user's using terminal equipment 1 video conference is carried out or when Video chat, camera unit 11 can be The first video is obtained when shooting.Here, the first video refers to the original video data that camera unit 11 is obtained.Except this it Outside, the first video can also be from other terminal devices with the progress video calling of terminal device 1 or video conference.
In step S202, whether to have in the picture of the picture of the first video of preset frequency monitoring and determining first video The presence of person taken picture.
Specifically, processing unit 12 is in the picture of the picture of the first video of preset frequency monitoring and determining first video Whether the presence of person taken picture is had.For example, processing unit 12 can by with scheduled frequency obtain the first video picture, and It is determined by arbitrary human body recognition technology or mode identification technology and whether there is person taken picture in the picture of first video(With Family)Presence.
In step S203, if it is determined that have the presence of person taken picture in the picture of the first video, then the parameter based on person taken picture Judge whether to need to generate the second video.
Specifically, if having the presence of person taken picture, processing unit 12 in the picture of the first video of determination of processing unit 12 Parameter based on person taken picture(Such as, quantity, position and size etc.)Judge whether to need to generate the second video.For example, if Processing unit 12 determines that person taken picture is a people, then processing unit 12 determines position of the person taken picture in the picture of the first video(Area Domain)And size.If processing unit 12 determines position of the person taken picture in the picture of the first video(Region)And size is closed Suitable, then processing unit 12 judges without generating the second video.For example, if position of the person taken picture in the picture of the first video (Region)Positioned at the middle section of the picture of the first video, and when the size of person taken picture is more than the 1/3 of the picture of the first video, The judgement of processing unit 12 can not generate the second video.In addition, if processing unit 12 determines that the quantity of person taken picture is more people, then Position and size of the processing unit 12 based on whole person taken pictures determine the need for generating the second video.For example, processing unit 12 determine that the quantity of person taken picture is more people, then processing unit 12 determines a box based on the position of whole person taken pictures and size, Here, the size and location of box can be by the position of whole person taken pictures(Such as, it is located at the position of the person taken picture at edge)And it is big It is small(Such as, in picture maximum person taken picture size)It determines.Then processing unit 12 can be based on the big of identified box Small and position determines the need for generating the second video.For example, if the box of whole person taken picture's compositions is in the first video Position in picture(Region)Positioned at the picture of the first video middle section and its size be more than the picture of first video When 1/3, the judgement of processing unit 12 can not generate the second video.Here it is to be noted that it the size and box of person taken picture The threshold value of size be not limited to 1/3 described before.For example, the threshold value of the size of the size and box of person taken picture may be 1/4,1/2 or other ratio.In the case where the determination of processing unit 12 need not generate the second video, processing unit 12 can be with Generated first video is sent to another party of video conference or Video chat.In this case, due to processing unit Similarly to the prior art, which is not described herein again for 12 processing executed.In addition, if processing unit 12 determines that person taken picture regards first Position and size in the picture of frequency is improper, then the determination of processing unit 12 needs to generate the second video.
In step S204, if it is determined that need to generate the second video, then the parameter based on person taken picture generates the second video.
Specifically, if the determination of processing unit 12 needs to generate the second video, ginseng of the processing unit 12 based on person taken picture Number(Such as, quantity, position and size)Generate the second video.For example, step S204 may include:If it is determined that the number of person taken picture Amount is that a people, the then position based on person taken picture and size intercept at least part of the first video to generate the step of the second video Suddenly.For example, if the position of person taken picture is located at the left side of the picture of the first video, processing unit 12 is with the position of person taken picture (Such as, the axis of person taken picture or central area)The determination picture to be intercepted is located at the left side of the picture of the first video.In addition, processing Unit 12 intercepts at least part of the first video to generate the second video also according to the size of person taken picture.Here, if it is shot Size of the person in the picture of the first video(It accounts for the ratio of picture)Too small, then processing unit 12 intercepts around the person taken picture The picture of presumptive area simultaneously generates the second video using the picture of the presumptive area(Such as, the one of each frame of the first video of interception Part simultaneously generates the second video based on the part).Here it is possible to the presumptive area is determined according to the size of person taken picture, and should Presumptive area is more than the size of person taken picture to include entire person taken picture.Furthermore, it is possible to determine that the presumptive area is big according to experiment value The small relationship with the size of person taken picture, for example, the presumptive area can be less than or equal to twice of person taken picture's size.In this feelings Under condition, since the picture of the second video is a part for the picture of the first video, person taken picture is in the picture of the second video Ratio be more than ratio of the person taken picture in the picture of the first video.In addition, according to another embodiment of the invention, if by The size for the person of taking the photograph is suitable(More than the 1/3 of the picture of the first video), and when position is improper, processing unit 12 can also be based only upon The position of person taken picture intercepts a part for the first video as the second video.In addition, the size in person taken picture is improper(Less than The 1/3 of the picture of one video), and position suitable(Picture center)When, processing unit 12 can also be based only upon the size of person taken picture A part for the first video is intercepted as the second video.
By the above-mentioned means, even if the position of person taken picture or size are improper in the first video, can also be generated newly The second video picture(Larger ratio is simultaneously occupied in the centrally located region of person taken picture)In effectively protrude person taken picture, regard in this way The each side of frequency meeting or Video chat will not be by unnecessary gibberish(Such as, furniture, all kinds of articles)It takes sb's mind off sth, thus The use feeling of video conference or Video chat each side can be improved.
In addition, step S204 can also include:If it is determined that the quantity of person taken picture is more people, then can be based on all shot The position of person and size intercept at least part of the first video come the step of generating the second video.Here, in the second video Picture in comprising whole person taken pictures, and ratio of the person taken picture in the picture of the second video is more than person taken picture in the first video Picture in ratio.Specifically, processing unit 12 can determine a box based on the position of whole person taken pictures and size, this In, similar to the previous description, the size and location of box can be by the position of whole person taken pictures(Such as, it is located at the shot of edge The position of person)And size(Such as, in picture maximum person taken picture size)It determines.In this case, if whole quilts The person of taking the photograph(Box)Position be located at the first video picture left side, then processing unit 12 is with the position of whole person taken pictures(Such as, side The axis of frame or central area)The determination picture to be intercepted is located at the left side of the picture of the first video.In addition, processing unit 12 is also According to whole person taken pictures(Box)Size intercept at least part of the first video and generate the second video.Here, if entirely Size of the portion person taken picture in the picture of the first video(It accounts for the ratio of picture)Too small, then processing unit 12 intercepts all shot Person(Box)The picture of the presumptive area of surrounding simultaneously generates the second video using the picture of the presumptive area.Here it is possible to according to Whole person taken pictures(Box)Size determine the presumptive area, and the presumptive area is more than whole person taken pictures(Box)Size To include whole person taken pictures.Furthermore, it is possible to determine the pass of the presumptive area size and the size of whole person taken pictures according to experiment value System is to provide suitable picture, for example, the presumptive area can be less than or equal to whole person taken pictures(Box)Twice of size. In this case, since the picture of the second video is a part for the picture of the first video, whole person taken pictures regard second Ratio in the picture of frequency is more than ratio of whole person taken pictures in the picture of the first video.In addition, according to the present invention another A embodiment, if whole person taken pictures(Box)Size it is suitable(More than the 1/3 of the picture of the first video), and position is improper When, the position that processing unit 12 can also be based only upon whole person taken pictures intercepts a part for the first video as the second video.This Outside, improper in the size of whole person taken pictures(Less than the 1/3 of the picture of the first video), and position suitable(Picture center)When, The size that processing unit 12 can also be based only upon whole person taken pictures intercepts a part for the first video as the second video.Here, For example, can be by way of intercepting a part for each frame for the first video and generating the second video based on the part from first The second video is generated in video.
In addition, when carrying out video conference or Video chat, it might have other people and accidentally pass by terminal device The coverage of camera unit 11 in this case, may be to institute if the people that this is passed by is determined as person taken picture The second video generated has adverse effect on.In this case, according to one embodiment of present invention, the method for Fig. 2 is also May include:Further determine that specific shot person in the first video the picture of the first video time whether more than the first threshold Value;Include specific shot person if the time is more than the first threshold, in the second video generated;And if the time be no more than First threshold does not include specific shot person in the second video then generated.
Specifically, each person taken picture that processing unit 12 can be directed in the picture of the first video calculates it and is regarded first Time present in frequency, and whether calculate it in the time of the picture of the first video is more than first threshold.If processing unit 12 Determine that some person taken picture in all person taken pictures is less than first threshold in the time of the picture of the first video, then processing unit 12 are determined the need for generating the second video and are being needed generation second based on the quantity of other person taken pictures, position and size Second video is generated when video.In addition, if processing unit 12 determines some person taken picture in all person taken pictures first The time of the picture of video is more than first threshold, then number of the processing unit 12 based on specific shot person and other person taken pictures Amount, position and size determine the need for generating the second video and the when of generating the second video are being needed to generate second video. Here, first threshold can be determined based on experiment value, and can be in the range of 1~5 second.
By the above-mentioned means, avoiding since the personnel unrelated with video conference or video calling are taken into account and being based on It generates the case where the second video.
In addition, the method for Fig. 2 can also include:After producing the second video, generated second video is sent To video conference or another party of video calling.Specifically, processing unit 12 can pass through the communication unit of terminal device 1(Not It shows)Generated second video is sent to carry out video conference or video calling to other terminal devices.
Each embodiment of the present invention has been described in detail above.However, it should be appreciated by those skilled in the art that not taking off In the case of from the principle and spirit of the invention, these embodiments can be carry out various modifications, combination or sub-portfolio, and in this way Modification should fall within the scope of the present invention.

Claims (8)

1. a kind of terminal device, including:
Processing unit is configured to obtain the first video, and is handled first video,
The wherein described processing unit is with the picture of the first video described in preset frequency monitoring and the picture of determining first video Whether the presence of person taken picture is had in face;
If the processing unit determines that the presence for having person taken picture in the picture of first video, the processing unit are based on The parameter of the person taken picture judges whether to need to generate the second video, wherein the parameter includes the quantity of the person taken picture, position It sets and size;
If the processing unit determination needs to generate the second video, parameter production of the processing unit based on the person taken picture Raw second video, wherein
Whether the processing unit determines specific shot person is more than first threshold in the time of the picture of the first video;
Include the specific shot if the time is more than the first threshold, in the second video that processing unit generates Person;And
If the time is no more than the first threshold, the specific quilt is not included in the second video that processing unit generates The person of taking the photograph.
2. terminal device as described in claim 1, wherein
If the processing unit determines that the quantity of the person taken picture is a people, the processing unit is existed based on the person taken picture Position in picture and size in first video intercept at least part of first video to generate the second video;With And
Ratio of the person taken picture in the picture of second video be more than the person taken picture first video picture In ratio.
3. terminal device as described in claim 1, wherein
If the processing unit determines that the quantity of the person taken picture is more people, the processing unit is based on whole person taken pictures and exists Position in picture and size in first video intercept at least part of first video to generate the second video;With And
Comprising whole person taken pictures in the picture of second video, and the person taken picture is in the picture of second video Ratio be more than ratio of the person taken picture in the picture of first video.
4. terminal device as described in claim 1, wherein the terminal device further comprises:
Communication unit, configuration carry out other terminal equipment in communication with distal end,
The wherein described processing unit sends second video by the communication unit to other terminal devices.
5. a kind of video generation method, is applied to terminal device, the video generation method includes:
Obtain the first video;
Whether to have person taken picture in the picture of the picture of the first video described in preset frequency monitoring and determining first video Presence;And
If it is determined that there is the presence of person taken picture in the picture of first video, then the parameter judgement based on the person taken picture is It is no to need to generate the second video, wherein the parameter includes quantity, position and the size of the person taken picture;
If it is determined that needing to generate the second video, then the parameter based on the person taken picture generates the second video;
Whether the person that determines specific shot is more than first threshold in the time of the picture of the first video;
Include the specific shot person in the second video if the time is more than the first threshold;And
If the time is no more than the first threshold, the specific shot person is not included in the second video.
6. method as claimed in claim 5, wherein the parameter based on the person taken picture is further the step of generating the second video Including:
If it is determined that the quantity of the person taken picture is a people, then the position based on the person taken picture in the picture of first video It sets and intercepts at least part of first video with size to generate the second video,
Ratio of the wherein described person taken picture in the picture of second video is more than the person taken picture in first video Ratio in picture.
7. method as claimed in claim 5, wherein the parameter based on the person taken picture is further the step of generating the second video Including:
If it is determined that the quantity of the person taken picture is more people, then the position based on whole person taken pictures in the picture of first video It sets and intercepts at least part of first video with size to generate the second video, wherein
Comprising whole person taken pictures in the picture of second video, and the person taken picture is in the picture of second video Ratio in face is more than ratio of the person taken picture in the picture of first video.
8. method as claimed in claim 5, further comprises:
Second video is sent to other terminal devices.
CN201210335867.3A 2012-09-11 2012-09-11 Terminal device and video generation method Active CN103686048B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210335867.3A CN103686048B (en) 2012-09-11 2012-09-11 Terminal device and video generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210335867.3A CN103686048B (en) 2012-09-11 2012-09-11 Terminal device and video generation method

Publications (2)

Publication Number Publication Date
CN103686048A CN103686048A (en) 2014-03-26
CN103686048B true CN103686048B (en) 2018-08-10

Family

ID=50322170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210335867.3A Active CN103686048B (en) 2012-09-11 2012-09-11 Terminal device and video generation method

Country Status (1)

Country Link
CN (1) CN103686048B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105163059B (en) * 2015-08-21 2019-01-04 深圳创维-Rgb电子有限公司 A kind of video call method and video call system based on smart home device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6297846B1 (en) * 1996-05-30 2001-10-02 Fujitsu Limited Display control system for videoconference terminals
JP2005242502A (en) * 2004-02-25 2005-09-08 Oki Electric Ind Co Ltd Face image processor
CN102063258A (en) * 2010-12-31 2011-05-18 山东大学 Self-adaptive display method for image on display terminals with different sizes
CN102411783A (en) * 2010-10-14 2012-04-11 微软公司 Automatically tracking user movement in a video chat application

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6297846B1 (en) * 1996-05-30 2001-10-02 Fujitsu Limited Display control system for videoconference terminals
JP2005242502A (en) * 2004-02-25 2005-09-08 Oki Electric Ind Co Ltd Face image processor
CN102411783A (en) * 2010-10-14 2012-04-11 微软公司 Automatically tracking user movement in a video chat application
CN102063258A (en) * 2010-12-31 2011-05-18 山东大学 Self-adaptive display method for image on display terminals with different sizes

Also Published As

Publication number Publication date
CN103686048A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
Zhao et al. QoE in video transmission: A user experience-driven strategy
CN107302663B (en) Image brightness adjusting method, terminal and computer readable storage medium
CN106161219B (en) Message treatment method and device
CN103945121B (en) A kind of information processing method and electronic equipment
CN101572886B (en) Mobile communication monitoring method and device
CN106101072A (en) For transmitting the system and method for video data on network
CN112995566B (en) Sound source positioning method based on display device, display device and storage medium
CN103002349A (en) Adaptive adjustment method and device for video playing
KR20160085877A (en) Video transmission
CN105100368B (en) Information processing method and device
CN106791915A (en) A kind of method and apparatus for showing video image
US9357173B2 (en) Method and terminal for transmitting information
CN105007415B (en) A kind of image preview method and apparatus
CN103686048B (en) Terminal device and video generation method
CN105979286A (en) Composite-resolution video transmitting-playing system and method
US9094574B2 (en) Information processing apparatus, conference system, and computer program products
CN103716577B (en) A kind of image processing method based on video communication and electronic equipment
CN105472245A (en) Photographing method and electronic device
CN103475945A (en) Image obtaining method and system
CN108234978B (en) A kind of image processing method and mobile terminal
CN104065913B (en) A kind of instant communication client
CN103593873B (en) face image adjusting system and method
JP6681917B2 (en) Image synthesizing method and apparatus, instant communication method, and image synthesizing server
WO2019062318A1 (en) Synchronous response method and system for interactive multi-screen control
CN105491320A (en) Video conference bandwidth management method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant