CN105208296A - Method for processing video data - Google Patents

Method for processing video data Download PDF

Info

Publication number
CN105208296A
CN105208296A CN201510613331.7A CN201510613331A CN105208296A CN 105208296 A CN105208296 A CN 105208296A CN 201510613331 A CN201510613331 A CN 201510613331A CN 105208296 A CN105208296 A CN 105208296A
Authority
CN
China
Prior art keywords
sliding trace
trace data
texture image
image
display screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510613331.7A
Other languages
Chinese (zh)
Other versions
CN105208296B (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 CN201510613331.7A priority Critical patent/CN105208296B/en
Publication of CN105208296A publication Critical patent/CN105208296A/en
Application granted granted Critical
Publication of CN105208296B publication Critical patent/CN105208296B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Studio Devices (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method for processing a video and electronic equipment. The method includes the steps that sliding locus data on a touch display screen of the electronic equipment at the present moment are acquired; a frame of video image recorded by a camera of the electronic equipment at the present moment is acquired; the sliding locus data are merged into the frame of video image; the frame of video image with the sliding locus data merged is displayed on the touch display screen in real time. By the adoption of the method, a user enables the sliding locus specific to the touch display screen to be merged into the currently-recorded video in the camera shooting process, real-time interaction of the user and the video is realized, and therefore user experience is improved.

Description

A kind of processing method of video data
Technical field
The present invention relates to technical field of image processing, relate to a kind of processing method of video data in particular.
Background technology
At present, a lot of electronic equipment has camera function, as mobile phone, dull and stereotyped electroplax or the video camera being specifically designed to shooting etc.In actual application, user often can to some scene recording video data, and in order to reach certain specific visual effect, need to process video data.
The existing process to video data all adopts the mode of post-processed, and namely user adopts process software to edit the video file recorded, as added picture, word etc.
Obviously, the mode of post-processed lacks real-time, interactive, as a sports tournament, if can be fused in video data by explanation tactics in live process, explanation so will be made more clear.Therefore, how in shooting process, the real-time, interactive realizing video and user becomes those skilled in the art's technical problem urgently to be resolved hurrily.
Summary of the invention
In view of this, the invention provides a kind of processing method and electronic equipment of video data, with in shooting process, realize video and user's real-time, interactive.
For achieving the above object, the invention provides following technical scheme:
A kind of method for processing video frequency, be applied in electronic equipment, described electronic equipment has camera and touch display screen, and the method comprises:
Sliding trace data under acquisition current time on described touch display screen;
Obtain the frame video image that described camera is recorded under described current time;
Described sliding trace data are merged in a described frame video image;
On described touch display screen, display is associated with a frame video image of described sliding trace data in real time.
Preferably, described described sliding trace data to be merged in a described frame video image, to comprise:
Described sliding trace data are processed, generates first texture image with sliding trace data;
Described one-frame video data is processed into the second texture image;
Described first texture image and described second texture image are merged, generates the texture image with sliding trace data.
Preferably, described described first texture image and described second texture image to be merged, generate the texture image with sliding trace data, be specially:
Determine the primary importance of described sliding trace data on described touch display screen;
The phase position of described first texture image and described second texture image is determined based on the viewing area size of described primary importance, predetermined described touch display screen and the size of a described frame video image;
Based on described phase position, described first texture image and described second texture image are superposed, thus there is described in being merged into the texture image of sliding trace data.
Preferably, described described first texture image and described second texture image to be integrated, generate after there is the texture image of sliding trace data, also comprise:
The described texture image with sliding trace data is stored in frame buffer;
Described on described touch display screen in real time display be associated with a frame video image of described sliding trace data, be specially:
Utilize function interface to call described frame buffer, there is described in being converted to by the described texture image with sliding trace data a frame video image of sliding trace data, and show.
Preferably, the sliding trace data of user on described touch display screen under described acquisition current time, are specially:
Determine that described camera records the time span of a described frame video image;
Under obtaining current time, the sliding trace data of the user corresponding with described time span on described touch display screen.
Preferably, after described sliding trace data being merged in a described frame video image, also comprise,
Other Computer Vision that the video image and described camera that are associated with described sliding trace data are recorded are become video file;
Preserve described video file.
A kind of electronic equipment, described electronic equipment comprises:
Obtain data cell, under obtaining current time described electronic equipment touch display screen on sliding trace data;
Obtain elementary area, for obtaining the frame video image that described camera is recorded under described current time;
First merge cells, for being merged in a described frame video image by described sliding trace data;
First display unit, is associated with a frame video image of described sliding trace data for display in real time on described touch display screen.
Preferably, described first merge cells, comprising:
First processing module, for processing described sliding trace data, generates first texture image with sliding trace data;
Second processing module, for being processed into the second texture image by described one-frame video data;
First merges module, for described first texture image and described second texture image being merged, generates the texture image with sliding trace data.
Preferably, described first merges module, specifically for determining the primary importance of described sliding trace data on described touch display screen; The phase position of described first texture image and described second texture image is determined based on the viewing area size of described primary importance, predetermined described touch display screen and the size of a described frame video image; Based on described phase position, described first texture image and described second texture image are superposed, thus there is described in being merged into the texture image of sliding trace data.
Preferably, also comprise:
First memory cell, for being stored in frame buffer by the described texture image with sliding trace data;
Described first display unit, specifically for utilizing function interface to call described frame buffer, having a frame video image of sliding trace data, and showing described in being converted to by the described texture image with sliding trace data.
Preferably, described acquisition data cell, comprising:
First determination module, for determining that described camera records the time span of a described frame video image;
First acquisition module, under obtaining current time, the sliding trace data of the user corresponding with described time span on described touch display screen.
Preferably, also comprise,
First processing unit, becomes video file for other Computer Vision video image and described camera that are associated with described sliding trace data recorded;
First storage unit, for preserving described video file.
Known via above-mentioned technical scheme, compared with prior art, the embodiment of the invention discloses a kind of method for processing video frequency, concrete, obtain the sliding trace data on the touch display screen of electronic equipment under current time, and the frame video image that the camera obtaining electronic equipment is recorded under described current time, then sliding trace data are merged in a frame video image, and display is in real time associated with a frame video image of sliding trace data on touch display screen, as can be seen here, the present invention can in shooting process, user is fused in the video of current recording for the sliding trace of touch display screen, achieve the real-time, interactive of user and video, improve Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The schematic flow sheet of Fig. 1 a kind of method for processing video frequency disclosed in the embodiment of the present invention one;
Fig. 2 is a schematic diagram of the touch display screen displaying video picture of electronic equipment disclosed by the invention;
Fig. 3 schematic diagram that the first texture image and the second texture image merge disclosed in the embodiment of the present invention three;
The part run schematic diagram of Fig. 4 a kind of method for processing video frequency disclosed in the embodiment of the present invention four;
The schematic flow sheet of Fig. 5 a kind of method for processing video frequency disclosed in the embodiment of the present invention five;
The schematic flow sheet of Fig. 6 a kind of method for processing video frequency disclosed in the invention process six;
The structural representation of Fig. 7 a kind of electronic equipment disclosed in the embodiment of the present invention seven;
The structural representation of Fig. 8 first merge cells disclosed in the embodiment of the present invention nine;
The structural representation of Fig. 9 a kind of electronic equipment disclosed in the embodiment of the present invention ten;
The structural representation of Figure 10 a kind of electronic equipment disclosed in the embodiment of the present invention 11.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of method for processing video frequency, be applied in electronic equipment, electronic equipment has camera and touch display screen, the method comprises: the sliding trace data under acquisition current time on touch display screen, and the frame video image that acquisition camera is recorded under described current time, sliding trace data are merged in a described frame video image, touch described frame video image display showing in real time and merges by described sliding trace data; User in shooting process, can be fused in the video of current recording for the sliding trace of touch display screen, achieves the real-time, interactive of user and video, improve Consumer's Experience by the present invention.
Below in conjunction with specific embodiment, technical scheme of the present invention is described in detail.
The embodiment of the present invention one discloses a kind of method for processing video frequency, and the method is applied to electronic equipment, and wherein, described electronic equipment can be the various equipment possessing camera function such as mobile phone, panel computer, video camera.
Concrete, this electronic equipment has camera and touch display screen.
As shown in Figure 1, the method comprises following process:
Step 101: the sliding trace data under acquisition current time on touch display screen;
It should be noted that, method for processing video frequency of the present invention is applied in electronic equipment to use in the process of camera recorded video, in this process, electronic equipment is while by camera recorded video, while play recorded video in real time by display screen, and user is when watching the video of real-time recording, when certain part of video being marked as needed, then on touch display screen, can carry out slide by correspondence position, electronic equipment can to get under current time user for the sliding trace data of touch display screen.
Step 102: obtain the frame video image that described camera is recorded under described current time;
It should be noted that, the video pictures that people are seen by display screen, be actually the static video image by the width width shown according to certain refreshing frequency with certain contact, usually by " frame " unit as video image.Because the eyes of people have " persistence of vision " function, therefore, by multiple discrete video image according to the display of certain frequency, just continuous print video pictures can be seen.Accordingly, in the camera recorded video process of electronic equipment, be also the video image obtained one by one.
That is, when user is while carrying out slide to touch display screen, camera also in the recording carrying out video image, therefore, can obtain camera with obtain the synchronization of sliding trace data under the frame video image recorded.
Step 103: sliding trace data are merged in a described frame video image;
After getting the described frame video image that camera records, and before the described frame video image of touch display screen display, need first sliding trace data are merged in a described frame video image, to realize the fusion of sliding trace data and video image.
Step 104: display is associated with a frame video image of described sliding trace data in real time on touch display screen.
Touch display screen can show the frame frame video image that camera is recorded successively, namely the video image that camera is recorded has certain continuity, and after the video image be positioned at before the video image being associated with sliding trace data recorded by camera when touch display screen shown, then take turns to the display of the video image being associated with sliding trace data, because this video image is associated with sliding trace data, therefore, the video image being associated with described sliding trace data can be shown in real time on touch display screen.
As can be seen here, in the present embodiment, by the sliding trace data on the touch display screen of electronic equipment under acquisition current time, and the frame video image that the camera obtaining electronic equipment is recorded under described current time, then sliding trace data are merged in a frame video image, and display is in real time associated with a frame video image of sliding trace data on touch display screen, as can be seen here, the present invention can in shooting process, user is fused in the video of current recording for the sliding trace of touch display screen, achieve the real-time, interactive of user and video, improve Consumer's Experience.
In the present invention, recording each video image due to camera needs the regular hour, and e.g., the frame per second arranging camera is 30 frames/second, and so, the time that camera records a frame video image is 1/30 second.Therefore, in order to ensure that touch display screen display is associated with the continuity of the video image of sliding trace data, the embodiment of the present invention two discloses a kind of method for processing video frequency, with embodiment one unlike, in step 101 " under acquisition current time the sliding trace data of user on described touch display screen ", comprise following process:
First, determine that described camera records the time span of a described frame video image;
The time span that camera records a frame video image is determined by the frame per second of camera, and e.g., the frame per second of camera is 30 frames/second, and so, the time span that camera records a frame video image is 1/30 second; For another example, the frame per second of camera is 60 frames/second, and so, the time span that camera records a frame video image is 1/60 second.
Secondly, under obtaining current time, the sliding trace data of the user corresponding with described time span on described touch display screen.
It should be noted that, when user is when touching the sliding trace data in display and being longer than described time span, then the sliding trace data of the user that successional acquisition is multiple and described time span is corresponding on described touch display screen.
In follow-up merging process, sliding trace data corresponding with it for each frame video image need be merged, and being associated with the video image of sliding trace data by touch display screen successively display in real time, user can be seen, and the fusion of broadcasting has the video pictures of sliding trace.
For the ease of understanding, be described with an instantiation, suppose that the time span that camera records a frame video image is T, suppose that user starts in the enterprising line slip touch operation of touch display screen at the first moment t1, so, electronic equipment can obtain sliding trace data from the first moment t1, concrete, obtain with the first moment t1 to sliding trace data data1 corresponding to second this period of time of moment t2, obtain from the second moment t2 to slip data track data2 corresponding to the 3rd this period of time of moment t3, obtain from the 3rd moment t3 to slip data track data3 corresponding to the 4th this period of time of moment t4, obtain from the 4th moment t4 to slip data track data4 corresponding to the 5th this period of time of moment t5, obtain from the 5th moment t5 to slip data track data5 corresponding to the 6th this period of time of moment t6.Wherein, except the time span between latter two moment may not be except T, time span between other two moment is T, namely, time span between first moment t1 to the second moment t2 is T, time span between second moment t2 to the 3rd moment t2 is T, and the time span between the 3rd moment t3 to the 4th moment t4 is T, and the time span between the 4th moment t4 to the 5th moment t5 is T.And the 5th moment t5 depends on the total time of the touch slide of user on touch display screen to the time span of the 6th this period of time of moment t6, suppose that total time is TS, if total time, TS equaled 5T, so, 5th moment t5 is T to the time span of the 6th this period of time of moment t6, and TS is greater than 4T and is less than 5T excessively, so, the 5th moment t5 is less than T to the time span of the 6th this period of time of moment t6.
And carry out in real time due to the process of camera recorded video image, therefore, user is while the enterprising line slip operation of touch display screen, corresponding with it, camera is recorded under the first moment t1 a frame video image P1, and recording under the second moment t2 has a frame video image P2, and recording under the 3rd moment t3 has a frame video image P3, record under the 4th moment t4 and have a frame video image P4, recording under the 5th moment t5 has a frame video image P5.
Electronic equipment can get the frame video image P1 that camera is recorded, and itself and sliding trace data data1 is merged; Get the frame video image P2 that camera is recorded, and itself and sliding trace data data2 are merged; Get the frame video image P3 that camera is recorded, and itself and sliding trace data data3 are merged; Get the frame video image P4 that camera is recorded, and itself and sliding trace data data4 are merged; Get the frame video image P5 that camera is recorded, and itself and sliding trace data data5 are merged.
When touch display screen be shown to above-mentioned be associated with the video image of sliding trace data time, show the frame video image P1 being associated with sliding trace data data1, the frame video image P2 being associated with sliding trace data data2 successively, be associated with a frame video image P3 of sliding trace data data3, be associated with a frame video image P4 of sliding trace data data4, be associated with a frame video image P5 of sliding trace data data5, thus play the video pictures merging and have complete slip track data.
It should be noted that, because the process of camera recorded video image and touch display screen displaying video image is carried out all in real time, therefore electronic equipment merged the sliding trace data of the video image in a upper moment and sliding trace data and acquisition subsequent time and video image can carry out simultaneously.
As can be seen from above-mentioned example, the number of times that electronic equipment obtains sliding trace data records the time span of a frame video image by camera and user determines the time of carrying out slip touch operation on touch display screen jointly, accordingly, the frame number being associated with the video image of sliding trace is identical with the number of times that electronic equipment obtains sliding trace data.
It is emphasized that, above-mentioned method for processing video frequency is applied in electronic equipment limit by the process of camera recorded video limit by display screen displaying video, so, user while carrying out touch operation on touch display screen, camera is just at recorded video image, therefore, electronic equipment can get touch slip data under synchronization and video image.And be quickly because touch display screen refreshes the speed of display video image, therefore, after user carries out touch slide on touch display screen, in the extremely short time, just can see the video pictures being associated with sliding trace data that touch display screen shows.So in fact, from the visual angle of user, if the time of the touch slide that user carries out on touch display screen is longer, just while user carries out touching slide, touch display screen can present the effect play and merge and have the video touching sliding trace.
It should be noted that, core of the present invention is that the touch track data of user on touch display screen are merged in video and play, this be different from prior art, touch display screen itself has the function of display touch track.
Fig. 2 is the present invention's concrete schematic diagram in actual applications, and wherein, electronic equipment is in by camera recorded video while by the state of touch display screen displaying video.As shown in Figure 2, while user carries out touching slide on the touch display screen of electronic equipment, touch display screen presents the video pictures merging and have and touch sliding trace, concrete, merge just like the bold portion in Fig. 2 in the video pictures of the current broadcasting of touch display screen, and the position (in fact touch display screen does not show this dotted portion) that the dotted portion in Fig. 2 is user's actual touch on touch display screen to be slided into.That is, under current time, the final position Point2 that user carries out touching slide on touch display screen differs certain distance with the final position Point1 of the sliding trace merged in touch display screen displaying video, and this distance carries out Video processing by electronic equipment needs the regular hour to cause.But, it should be noted that, due to electronic equipment processing speed quickly, therefore in actual play process, the distance differed between Point1 and Point2 may be shorter.
The embodiment of the present invention three discloses a kind of method for processing video frequency, with embodiment one unlike, " described sliding trace data being merged in a described frame video image " in embodiment, comprises following process:
(1), to described sliding trace data process, generate first texture image with sliding trace data;
(2), described one-frame video data is processed into the second texture image;
Concrete, can method of video image processing be adopted, respectively sliding trace data are processed into first texture image with sliding trace data with, one-frame video data is processed into the second texture image.
It should be noted that, the present invention does not limit the priority execution sequence of step (1) and step (2), first can perform step (1) and perform step (2) again, also first can perform step (2) and perform step (1) again, also can perform step (1) and step (2) simultaneously.
(3), by described first texture image and described second texture image merge, generate the texture image with sliding trace data.
As an application example, Fig. 3 can be participated in, it is the schematic diagram that the first texture image and the second texture image merge, S100 is the first texture image, S200 is the second texture image, and S300 is the texture image with sliding trace data generated after the first texture image and the second texture image being merged.
When merging first texture image and the second texture image, as a kind of implementation, directly merge by the first texture image and the second texture image, adopt this implementation, if the image of the image size of the first texture image and the second texture image is in the same size, so, the texture image after merging meets the requirements; And if the image of the image size of the first texture image and the second texture image is not of uniform size causes, so, will there is mistake in the texture image after merging.
Because, in order to solve this problem, the embodiment of the present invention four discloses a kind of method for processing video frequency, with embodiment three unlike, in embodiment three, described first texture image and described second texture image " merge; generate the texture image with sliding trace data " by step, as shown in Figure 4, comprise following process:
Step 401: determine the primary importance of described sliding trace data on described touch display screen;
Step 402: the phase position determining described first texture image and described second texture image based on the viewing area size of described primary importance, predetermined described touch display screen and the size of a described frame video image;
Concrete, the size of the viewing area of touch display screen can prestore in the electronic device, and certainly, electronic equipment also by obtaining the attribute information of touch display screen, can determine the size of the viewing area of touch display screen in dependency information.
As a kind of implementation of relative position determining the first texture image and the second texture image, the relative position of primary importance and a frame video image can be determined by primary importance, as supposed, viewing area is identical with the width of video image, length is different, and primary importance is positioned at 1/3 place of the length of touch display screen, so, primary importance also should be positioned at 1/3 place of a frame video image, thus can determine the relative position of the first texture image and the second texture image by the size of viewing area and the size of a frame video image.
Step 403: based on described phase position, superposes described first texture image and described second texture image, thus has the texture image of sliding trace data described in being merged into.
By determined relative position, the first texture image and the second texture image are superposed, sliding trace data can be ensured to be merged on the tram of video image.
The embodiment of the present invention five discloses a kind of method for processing video frequency, and as shown in Figure 5, the method comprises following process:
Step 501: the sliding trace data under acquisition current time on touch display screen;
Step 502: obtain the frame video image that described camera is recorded under described current time;
Step 503: process described sliding trace data, generates first texture image with sliding trace data;
Step 504: described one-frame video data is processed into the second texture image;
Step 505: described first texture image and described second texture image are integrated, generates the texture image with sliding trace data;
Step 506: the described texture image with sliding trace data is stored in frame buffer;
Because electronic equipment is utilizing in touch display screen displaying video image process, need first tool texture image to be converted to video image, expend the regular hour, therefore frame buffer can be utilized temporarily to store the current texture image do not play of touch display screen, namely need the texture image with sliding trace data to be stored in successively in frame buffer.
It should be noted that, for other video images that camera of electronic equipment is recorded, even if do not need the merging carrying out sliding trace data, also first can be processed into texture image, and be stored in successively in frame buffer.
Step 507: utilize function interface to call described frame buffer, has a frame video image of sliding trace data, and shows described in being converted to by the described texture image with sliding trace data.
Electronic equipment, when being play the video image that camera is recorded by touch display screen, can be utilized function interface bar call frame buffer memory, successively the texture image in frame buffer is converted to video image, and show.After the texture image before the texture image with sliding trace data is converted to video image, then take turns to the conversion to the texture image with sliding trace data, by being converted into video image, and show, make touch display screen to play out the video pictures merging and have sliding trace data.
As can be seen here, in the present embodiment, by the sliding trace data on the touch display screen of electronic equipment under acquisition current time, and the frame video image that the camera obtaining electronic equipment is recorded under described current time, then sliding trace data are merged in a frame video image, and display is in real time associated with a frame video image of sliding trace data on touch display screen, as can be seen here, the present invention can in shooting process, user is fused in the video of current recording for the sliding trace of touch display screen, achieve the real-time, interactive of user and video, improve Consumer's Experience.
The embodiment of the present invention six discloses a kind of method for processing video frequency, and as shown in Figure 6, the method comprises following process:
Step 601: the sliding trace data under acquisition current time on touch display screen;
Step 602: obtain the frame video image that described camera is recorded under described current time;
Step 603: sliding trace data are merged in a described frame video image;
Step 604: display is associated with a frame video image of described sliding trace data in real time on touch display screen;
Step 605: other Computer Vision that the video image and described camera that are associated with sliding trace data are recorded are become video file;
Concrete, other video images that the video image and camera that are associated with sliding trace data are recorded can be encoded, thus generating video file.
It should be noted that, the present invention does not limit the priority execution sequence of step 604 and step 605.
Step 606: preserve described video file.
Other Computer Vision that the video image and camera that are associated with sliding trace data are recorded are become video file by electronic equipment, and preserve, so that user is in follow-up viewing process, directly can view the video pictures merging and have sliding trace data.
The embodiment of the present invention seven discloses a kind of electronic equipment, and as shown in Figure 7, this electronic equipment comprises: obtain data cell 701, obtain elementary area 702, first merge cells 703 and the first display unit 704; Wherein:
Obtain data cell 701, under obtaining current time described electronic equipment touch display screen on sliding trace data;
Obtain elementary area 702, for obtaining the frame video image that described camera is recorded under described current time;
First merge cells 703, for being merged in a described frame video image by described sliding trace data;
After getting the described frame video image that camera records, and before the described frame video image of touch display screen display, need first sliding trace data are merged in a described frame video image, to realize the fusion of sliding trace data and video image.
First display unit 704, is associated with a frame video image of described sliding trace data for display in real time on described touch display screen.
Touch display screen can show the frame frame video image that camera is recorded successively, namely the video image that camera is recorded has certain continuity, and after the video image be positioned at before the video image being associated with sliding trace data recorded by camera when touch display screen shown, then take turns to the display of the video image being associated with sliding trace data, because this video image is associated with sliding trace data, therefore, the video image being associated with described sliding trace data can be shown in real time on touch display screen.
As can be seen here, in the present embodiment, by the sliding trace data on the touch display screen of electronic equipment under acquisition current time, and the frame video image that the camera obtaining electronic equipment is recorded under described current time, then sliding trace data are merged in a frame video image, and display is in real time associated with a frame video image of sliding trace data on touch display screen, as can be seen here, the present invention can in shooting process, user is fused in the video of current recording for the sliding trace of touch display screen, achieve the real-time, interactive of user and video, improve Consumer's Experience.
In the present invention, recording each video image due to camera needs the regular hour, and e.g., the frame per second arranging camera is 30 frames/second, and so, the time that camera records a frame video image is 1/30 second.Therefore, in order to ensure that touch display screen display is associated with the continuity of the video image of sliding trace data, the embodiment of the present invention eight discloses a kind of electronic equipment, with embodiment seven unlike, obtain data cell comprise: the first determination module and the first acquisition module.Concrete:
First determination module, for determining that described camera records the time span of a described frame video image;
The time span that camera records a frame video image is determined by the frame per second of camera.
First acquisition module, under obtaining current time, the sliding trace data of the user corresponding with described time span on described touch display screen.
The embodiment of the present invention nine discloses a kind of electronic equipment, with embodiment seven unlike, as shown in Figure 8, the first merge cells comprises: first processing module 801, second processing module 802, first merge module 803, wherein:
First processing module 801, for processing described sliding trace data, generates first texture image with sliding trace data;
Second processing module 802, for being processed into the second texture image by described one-frame video data;
First merges module 803, for described first texture image and described second texture image being merged, generates the texture image with sliding trace data.
When merging first texture image and the second texture image, as a kind of implementation, directly merge by the first texture image and the second texture image, adopt this implementation, if the image of the image size of the first texture image and the second texture image is in the same size, so, the texture image after merging meets the requirements; And if the image of the image size of the first texture image and the second texture image is not of uniform size causes, so, will there is mistake in the texture image after merging.
Alternatively, first merges module, specifically for determining the primary importance of described sliding trace data on described touch display screen; The phase position of described first texture image and described second texture image is determined based on the viewing area size of described primary importance, predetermined described touch display screen and the size of a described frame video image; Based on described phase position, described first texture image and described second texture image are superposed, thus there is described in being merged into the texture image of sliding trace data.
By determined relative position, the first texture image and the second texture image are superposed, sliding trace data can be ensured to be merged on the tram of video image.
The embodiment of the present invention ten discloses a kind of electronic equipment, and as shown in Figure 9, this electronic equipment comprises: obtain data cell 901, obtain elementary area 902, first merge cells 903, first display unit 904 and the first memory cell 905; Wherein:
Obtain data cell 901, under obtaining current time described electronic equipment touch display screen on sliding trace data;
Obtain elementary area 902, for obtaining the frame video image that described camera is recorded under described current time;
First merge cells 903 comprises the first processing module 9031, second processing module 9032, first and merges module 9033, concrete:
First processing module 9031, for processing described sliding trace data, generates first texture image with sliding trace data;
Second processing module 9032, for being processed into the second texture image by described one-frame video data;
First merges module 93033, for described first texture image and described second texture image being merged, generates the texture image with sliding trace data;
First memory cell 905, for being stored in frame buffer by the described texture image with sliding trace data;
First display unit 904, specifically for utilizing function interface to call described frame buffer, having a frame video image of sliding trace data, and showing described in being converted to by the described texture image with sliding trace data.
As can be seen here, in the present embodiment, by the sliding trace data on the touch display screen of electronic equipment under acquisition current time, and the frame video image that the camera obtaining electronic equipment is recorded under described current time, then sliding trace data are merged in a frame video image, and display is in real time associated with a frame video image of sliding trace data on touch display screen, as can be seen here, the present invention can in shooting process, user is fused in the video of current recording for the sliding trace of touch display screen, achieve the real-time, interactive of user and video, improve Consumer's Experience.
The embodiment of the present invention 11 discloses a kind of electronic equipment, as shown in Figure 10, this electronic equipment comprises: obtain data cell 1001, obtain elementary area 1002, first merge cells 1003, first display unit 1004, first processing unit 1005 and the first storage unit 1006; Wherein:
Obtain data cell 1001, under obtaining current time described electronic equipment touch display screen on sliding trace data;
Obtain elementary area 1002, for obtaining the frame video image that described camera is recorded under described current time;
First merge cells 1003, for being merged in a described frame video image by described sliding trace data;
First display unit 1004, is associated with a frame video image of described sliding trace data for display in real time on described touch display screen;
First processing unit 1005, becomes video file for other Computer Vision video image and described camera that are associated with described sliding trace data recorded;
First storage unit 1006, for preserving described video file.
Other Computer Vision that the video image and camera that are associated with sliding trace data are recorded are become video file by electronic equipment, and preserve, so that user is in follow-up viewing process, directly can view the video pictures merging and have sliding trace data.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For device disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (12)

1. a method for processing video frequency, is characterized in that, is applied in electronic equipment, and described electronic equipment has camera and touch display screen, and the method comprises:
Sliding trace data under acquisition current time on described touch display screen;
Obtain the frame video image that described camera is recorded under described current time;
Described sliding trace data are merged in a described frame video image;
On described touch display screen, display is associated with a frame video image of described sliding trace data in real time.
2. method according to claim 1, is characterized in that, describedly described sliding trace data is merged in a described frame video image, comprising:
Described sliding trace data are processed, generates first texture image with sliding trace data;
Described one-frame video data is processed into the second texture image;
Described first texture image and described second texture image are merged, generates the texture image with sliding trace data.
3. method according to claim 2, is characterized in that, describedly described first texture image and described second texture image is merged, and generates the texture image with sliding trace data, is specially:
Determine the primary importance of described sliding trace data on described touch display screen;
The phase position of described first texture image and described second texture image is determined based on the viewing area size of described primary importance, predetermined described touch display screen and the size of a described frame video image;
Based on described phase position, described first texture image and described second texture image are superposed, thus there is described in being merged into the texture image of sliding trace data.
4. method according to claim 2, is characterized in that, describedly described first texture image and described second texture image is integrated, and generates after having the texture image of sliding trace data, also comprises:
The described texture image with sliding trace data is stored in frame buffer;
Described on described touch display screen in real time display be associated with a frame video image of described sliding trace data, be specially:
Utilize function interface to call described frame buffer, there is described in being converted to by the described texture image with sliding trace data a frame video image of sliding trace data, and show.
5. method according to claim 1, is characterized in that, the sliding trace data of user on described touch display screen under described acquisition current time, are specially:
Determine that described camera records the time span of a described frame video image;
Under obtaining current time, the sliding trace data of the user corresponding with described time span on described touch display screen.
6. method according to claim 1, is characterized in that, after described sliding trace data being merged in a described frame video image, also comprises,
Other Computer Vision that the video image and described camera that are associated with described sliding trace data are recorded are become video file;
Preserve described video file.
7. an electronic equipment, is characterized in that, described electronic equipment comprises:
Obtain data cell, under obtaining current time described electronic equipment touch display screen on sliding trace data;
Obtain elementary area, for obtaining the frame video image that described camera is recorded under described current time;
First merge cells, for being merged in a described frame video image by described sliding trace data;
First display unit, is associated with a frame video image of described sliding trace data for display in real time on described touch display screen.
8. electronic equipment according to claim 7, is characterized in that, described first merge cells, comprising:
First processing module, for processing described sliding trace data, generates first texture image with sliding trace data;
Second processing module, for being processed into the second texture image by described one-frame video data;
First merges module, for described first texture image and described second texture image being merged, generates the texture image with sliding trace data.
9. electronic equipment according to claim 7, is characterized in that, described first merges module, specifically for determining the primary importance of described sliding trace data on described touch display screen; The phase position of described first texture image and described second texture image is determined based on the viewing area size of described primary importance, predetermined described touch display screen and the size of a described frame video image; Based on described phase position, described first texture image and described second texture image are superposed, thus there is described in being merged into the texture image of sliding trace data.
10. electronic equipment according to claim 8, is characterized in that, also comprises:
First memory cell, for being stored in frame buffer by the described texture image with sliding trace data;
Described first display unit, specifically for utilizing function interface to call described frame buffer, having a frame video image of sliding trace data, and showing described in being converted to by the described texture image with sliding trace data.
11. electronic equipments according to claim 7, is characterized in that, described acquisition data cell, comprising:
First determination module, for determining that described camera records the time span of a described frame video image;
First acquisition module, under obtaining current time, the sliding trace data of the user corresponding with described time span on described touch display screen.
12. electronic equipments according to claim 7, is characterized in that, also comprise,
First processing unit, becomes video file for other Computer Vision video image and described camera that are associated with described sliding trace data recorded;
First storage unit, for preserving described video file.
CN201510613331.7A 2015-09-23 2015-09-23 A kind of processing method of video data Active CN105208296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510613331.7A CN105208296B (en) 2015-09-23 2015-09-23 A kind of processing method of video data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510613331.7A CN105208296B (en) 2015-09-23 2015-09-23 A kind of processing method of video data

Publications (2)

Publication Number Publication Date
CN105208296A true CN105208296A (en) 2015-12-30
CN105208296B CN105208296B (en) 2018-07-06

Family

ID=54955699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510613331.7A Active CN105208296B (en) 2015-09-23 2015-09-23 A kind of processing method of video data

Country Status (1)

Country Link
CN (1) CN105208296B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11890703B2 (en) 2010-02-10 2024-02-06 Illinois Tool Works Inc. Aluminum alloy welding wire

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080309632A1 (en) * 2007-06-13 2008-12-18 Apple Inc. Pinch-throw and translation gestures
CN102073415A (en) * 2010-11-29 2011-05-25 广东威创视讯科技股份有限公司 Touch system, auxiliary device and input method thereof
CN102857617A (en) * 2011-06-28 2013-01-02 希姆通信息技术(上海)有限公司 Mobile terminal equipment with handwriting function and functions of camera
CN104318570A (en) * 2014-10-29 2015-01-28 沈阳建筑大学 Self-adaptation camouflage design method based on background

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080309632A1 (en) * 2007-06-13 2008-12-18 Apple Inc. Pinch-throw and translation gestures
CN102073415A (en) * 2010-11-29 2011-05-25 广东威创视讯科技股份有限公司 Touch system, auxiliary device and input method thereof
CN102857617A (en) * 2011-06-28 2013-01-02 希姆通信息技术(上海)有限公司 Mobile terminal equipment with handwriting function and functions of camera
CN104318570A (en) * 2014-10-29 2015-01-28 沈阳建筑大学 Self-adaptation camouflage design method based on background

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11890703B2 (en) 2010-02-10 2024-02-06 Illinois Tool Works Inc. Aluminum alloy welding wire

Also Published As

Publication number Publication date
CN105208296B (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN106210861B (en) Method and system for displaying bullet screen
CN106358036B (en) A kind of method that virtual reality video is watched with default visual angle
CN106331732B (en) Generate, show the method and device of panorama content
CN104219584A (en) Reality augmenting based panoramic video interaction method and system
CN109509146A (en) Image split-joint method and device, storage medium
CN104469179A (en) Method for combining dynamic pictures into mobile phone video
CN107911737A (en) Methods of exhibiting, device, computing device and the storage medium of media content
US11769231B2 (en) Methods and apparatus for applying motion blur to overcaptured content
CN104822077B (en) The operation method and client of client
CN103634555A (en) Panoramic video communication method and system
CN110941332A (en) Expression driving method and device, electronic equipment and storage medium
US20170150212A1 (en) Method and electronic device for adjusting video
CN105554430A (en) Video call method, system and device
WO2017185761A1 (en) Method and device for playing back 2d video
CN105100923A (en) Video playing method and device
CN104427230A (en) Reality enhancement method and reality enhancement system
CN107318008A (en) Panoramic video player method and playing device
CN104866261A (en) Information processing method and device
CN105100870A (en) Screenshot method and terminal equipment
CN106598250A (en) VR display method and apparatus, and electronic device
CN111583348A (en) Image data encoding method and device, display method and device, and electronic device
CN105407313A (en) Video calling method, equipment and system
CN105208296A (en) Method for processing video data
CN106454480A (en) Video playing control method and apparatus
CN104469338B (en) A kind of control method and device

Legal Events

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