CN102843496B - A kind of video acquisition processing method and portable electric appts - Google Patents
A kind of video acquisition processing method and portable electric appts Download PDFInfo
- Publication number
- CN102843496B CN102843496B CN201110167610.7A CN201110167610A CN102843496B CN 102843496 B CN102843496 B CN 102843496B CN 201110167610 A CN201110167610 A CN 201110167610A CN 102843496 B CN102843496 B CN 102843496B
- Authority
- CN
- China
- Prior art keywords
- rotation
- electronic equipment
- relative
- video
- reference direction
- 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
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The object of the present invention is to provide a kind of video acquisition processing method and electronic equipment, this video acquisition processing method, for an electronic equipment, electronic equipment has the image acquisition units for gathering video and the detecting unit for detecting described electronic equipment directioin parameter, described method comprises: in the process of video being gathered a destination object by described collecting unit, obtains the directioin parameter that described detecting unit detects; Whether the current direction obtaining described electronic equipment according to described directioin parameter changes relative to a reference direction, obtains a judged result; When described current direction changes relative to reference direction, perform an acquisition process operation, with make the data genaration that collects according to image acquisition units and the video file stored when playing, the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold.The video file generated after the invention enables IMAQ is convenient to user's viewing more.
Description
Technical field
The invention belongs to electronic applications, particularly a kind of video acquisition processing method and portable electric appts.
Background technology
Current camera has become and the standard configuration of portable electric appts, as notebook computer, mobile phone, PDA and panel computer etc.
Domestic consumer is when using digital camera, Digital Video and mobile phone etc. to carry out video capture, sometimes consider the problem of finding a view, electronic equipment can be carried out rotation to find a view, and the problem that this mode can cause the video file that obtains inconvenient to watch, illustrate as follows.
As shown in Figure 1, it is a reference object-static human, assuming that this static human taken in a first direction by user's current handheld electronic equipment obtain a frame of video A1, and take in a second direction perpendicular to the first direction subsequent time user rotating electronic device 90 degree and obtain frame of video A2, now take the video that the obtains frame of video when playing at electronic equipment as shown in Figure 2, can find that first frame of video is an endways human body relative to display screen, second frame of video is a human body sidewards relative to display screen, certainly, this video file is at mobile phone, when the electronic equipment that digital camera etc. are small-sized is play, user can adjust viewing by rotating electronic device, but when video file transfer is to television set, when the electronic equipments such as desktop computer are watched, if the electronic equipment anglec of rotation is excessive, user will be caused to watch extremely inconvenient, user needs significantly to deflect head to watch video.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of video acquisition processing method and portable electric appts, obtains the video file being suitable for watching.
To achieve these goals, embodiments provide a kind of video acquisition processing method, for an electronic equipment, described electronic equipment has the image acquisition units for gathering video and the detecting unit for detecting described electronic equipment directioin parameter, and described method comprises:
In the process of video being gathered a destination object by described collecting unit, obtain the directioin parameter that described detecting unit detects;
Whether the current direction obtaining described electronic equipment according to described directioin parameter changes relative to a reference direction, obtains a judged result;
When the described current direction of described judged result instruction changes relative to described reference direction, perform an acquisition process operation, with make the data genaration that collects according to described image acquisition units and the video file stored when playing, the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold.
Above-mentioned video acquisition processing method, wherein, described when the described current direction of described judged result instruction changes relative to described reference direction, perform an acquisition process operation and specifically comprise:
The original video frame that the data that acquisition image acquisition units collects obtain;
When the described current direction of described judged result instruction changes relative to described reference direction, by described original video frame at execution rotation process, obtain target video frame, otherwise direct described original video frame is as target video frame;
Wherein, all target video frames forming described video file when playing, the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold.
Above-mentioned video acquisition processing method, wherein, described when the described current direction of described judged result instruction changes relative to described reference direction, perform an acquisition process operation and specifically comprise:
The original video frame that the data that acquisition image acquisition units collects obtain;
When the described current direction of described judged result instruction changes relative to described reference direction, record the rotation information that described original video frame is corresponding, make playout software after receiving described original video frame, according to described rotation information, described original video frame is performed rotation process, play after obtaining target video frame, ensure that all target video frames of the described video file of composition are when playing, the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold.
According to described directioin parameter, above-mentioned video acquisition processing method, wherein, describedly judges whether the current direction of described electronic equipment changes relative to a reference direction, obtains a judged result and be specially:
The current direction calculating described electronic equipment according to described directioin parameter is relative to the anglec of rotation of described reference direction and direction of rotation; When the described anglec of rotation is greater than 0, the described current direction of described judged result instruction changes relative to described reference direction, otherwise indicates described current direction not change relative to described reference direction;
Described rotation process is specially:
By described original video frame anglec of rotation described in rotation process on the direction contrary with described direction of rotation.
According to described directioin parameter, above-mentioned video acquisition processing method, wherein, describedly judges whether the current direction of described electronic equipment changes relative to a reference direction, obtains a judged result and be specially:
The current direction calculating described electronic equipment according to described directioin parameter is relative to the anglec of rotation of described reference direction and direction of rotation;
According to the corresponding relation between pre-recorded anglec of rotation interval and angle on target, determine the interval corresponding first object angle of first anglec of rotation at described anglec of rotation place; When the described anglec of rotation is greater than 0, the described current direction of described judged result instruction changes relative to described reference direction, otherwise indicates described current direction not change relative to described reference direction;
Described rotation process is specially:
Described original video frame is rotated up described first object angle in the side contrary with described direction of rotation.
Above-mentioned video acquisition processing method, wherein, described reference direction is:
Gravity direction; Or
When the video gathering described destination object starts, the direction of described electronic equipment.
To achieve these goals, embodiments provide a kind of electronic equipment, comprising:
Mainboard;
Storage unit, is electrically connected with described mainboard;
Image acquisition units, is electrically connected with described mainboard, for gathering the image acquisition units of video;
Detecting unit, is electrically connected with described mainboard, for detecting described electronic equipment directioin parameter;
Processor, be electrically connected with described mainboard, for in the process of video being gathered a destination object by described collecting unit, obtain the directioin parameter that described detecting unit detects, and whether change relative to a reference direction according to the current direction that described directioin parameter obtains described electronic equipment, obtain a judged result, when the described current direction of described judged result instruction changes relative to described reference direction, perform an acquisition process operation, with make the data genaration that collects according to described image acquisition units and the video file being stored into described storage unit when playing, destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold.
Above-mentioned electronic equipment, wherein, described processor specifically comprises:
Directioin parameter acquiring unit, in the process of video being gathered a destination object by described collecting unit, obtains the directioin parameter that described detecting unit detects;
Whether judging unit, change relative to a reference direction for the current direction obtaining described electronic equipment according to described directioin parameter, obtain a judged result;
Acquisition process unit, for when the described current direction of described judged result instruction changes relative to described reference direction, perform an acquisition process operation, with make the data genaration that collects according to described image acquisition units and the video file stored when playing, the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold.
Above-mentioned electronic equipment, wherein, described acquisition process unit specifically comprises:
Frame of video acquisition module, the original video frame that the data collected for obtaining image acquisition units obtain;
Rotate processing module, for when the described current direction of described judged result instruction changes relative to described reference direction, by described original video frame at execution rotation process, obtain target video frame, otherwise direct described original video frame is as target video frame;
Wherein, all target video frames forming described video file when playing, the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold.
Above-mentioned electronic equipment, wherein, described acquisition process unit specifically comprises:
Frame of video acquisition module, the original video frame that the data collected for obtaining image acquisition units obtain;
Logging modle, for when the described current direction of described judged result instruction changes relative to described reference direction, record the rotation information that described original video frame is corresponding, make playout software after receiving described original video frame, according to described rotation information, described original video frame is performed rotation process, play after obtaining target video frame, ensure that all target video frames of the described video file of composition are when playing, the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold.
Above-mentioned electronic equipment, wherein, described judging unit specifically for the current direction that calculates described electronic equipment according to described directioin parameter relative to the anglec of rotation of described reference direction and direction of rotation, and when the described anglec of rotation is greater than 0, obtain the judged result that the described current direction of instruction changes relative to described reference direction, otherwise obtain the judged result indicating described current direction not change relative to described reference direction;
Described rotation process is specially described original video frame anglec of rotation described in rotation process on the direction contrary with described direction of rotation.
Above-mentioned electronic equipment, wherein, described judging unit specifically for the current direction that calculates described electronic equipment according to described directioin parameter relative to the anglec of rotation of described reference direction and direction of rotation, according to the corresponding relation between pre-recorded anglec of rotation interval and angle on target, determine the interval corresponding first object angle of first anglec of rotation at described anglec of rotation place; And when the described anglec of rotation is greater than 0, obtains the judged result that the described current direction of instruction changes relative to described reference direction, otherwise obtain the judged result indicating described current direction not change relative to described reference direction;
Described rotation process is specially and described original video frame is rotated up described first object angle in the side contrary with described direction of rotation.
Above-mentioned electronic equipment, wherein, described reference direction is the direction of gravity direction or the video gathering described destination object described electronic equipment when starting.
The embodiment of the present invention has following beneficial effect:
In a particular embodiment of the present invention, in the process of the video of collection one destination object, if when detecting that current direction changes relative to described reference direction, then perform an acquisition process operation, acquisition process operation can make the video file also stored according to the data genaration collected when playing, destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold, therefore in video file playing process, destination object can not occur significantly to change relative to the rotation of display frame, user no longer needs significantly to adjust viewing attitude to adapt to the rotation of image in viewing process.
Accompanying drawing explanation
Figure 1 shows that the schematic diagram of reference object;
Effect schematic diagram when Fig. 2 is two presentation of video frames obtained before and after user's rotating electronic device;
Fig. 3 is the schematic flow sheet of the method for the embodiment of the present invention;
Fig. 4 is the structural representation of the processor of the electronic equipment of the embodiment of the present invention.
Embodiment
In the video acquisition processing method of the embodiment of the present invention and portable electric appts, the rotation process of electronic equipment in shooting process more, the frame of video of the data genaration collected according to described image acquisition units is processed accordingly, make the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold, make user need not significantly adjust viewing posture, be convenient to user's viewing.
The video acquisition processing method of the embodiment of the present invention, for an electronic equipment, described electronic equipment has the image acquisition units for gathering video and the detecting unit for detecting described electronic equipment directioin parameter, and as shown in Figure 3, described method comprises:
Step 31, in the process of video being gathered a destination object by described collecting unit, obtains the directioin parameter that described detecting unit detects;
According to described directioin parameter, step 32, judges whether the current direction of described electronic equipment changes relative to a reference direction, obtains a judged result;
Step 33, when the described current direction of described judged result instruction changes relative to described reference direction, perform an acquisition process operation, with make the data genaration that collects according to described image acquisition units and the video file stored when playing, the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold.
In a particular embodiment of the present invention, this electronic equipment can be any portable electric appts with image acquisition units and angle detecting unit, as mobile phone, digital camera, Digital Video, PAD, panel computer etc., multi-form electronic equipment can't impact the realization of the specific embodiment of the invention.
In a particular embodiment of the present invention, in the process of the video of collection one destination object, if when detecting that current direction changes relative to described reference direction, then perform an acquisition process operation, acquisition process operation can make the video file also stored according to the data genaration collected when playing, destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold, therefore in video file playing process, destination object can not occur significantly to change relative to the rotation of display frame, user no longer needs significantly to adjust viewing attitude to adapt to the rotation of image in viewing process.
In a particular embodiment of the present invention, destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold, at this, this destination object should be a static object object, otherwise, if original object self rotates, now this object natively should occur significantly to change relative to the display direction of display frame, and should not adjust, so in the process of video being gathered a destination object by described collecting unit, obtain in the step of the directioin parameter that described detecting unit detects, this video acquisition is the video being comprised a static object object by described collecting unit collection, destination object in follow-up display frame is also that the change of this static object object relative to the display direction of display frame is lower than pre-determined threshold relative to the change of the display direction of display frame lower than pre-determined threshold.
Should be understood that, this static object for as if for rotation, instead of other motion, if a destination object of coming up towards electronic equipment is a static object object at this, and the blade of the windmill rotated is not just static object object.
In a particular embodiment of the present invention, need to control to make the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold, in a particular embodiment of the present invention, can be realized by two kinds of modes, be respectively described below.
< mode one >
In mode one, to composition video file frame of video more rotational case carry out rotations process.
In mode one, described when the described current direction of described judged result instruction changes relative to described reference direction, perform an acquisition process operation and specifically comprise:
The original video frame that the data that acquisition image acquisition units collects obtain;
When the described current direction of described judged result instruction changes relative to described reference direction, by described original video frame at execution rotation process, obtain target video frame, otherwise direct described original video frame is as target video frame;
Wherein, all target video frames forming described video file when playing, the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold.
In mode one, when the described current direction of described judged result instruction changes relative to described reference direction, by described original video frame at execution rotation process, obtain target video frame, otherwise direct described original video frame is as target video frame, the all target video frames forming described video file when playing, the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold.Owing to forming all target video frames of described video file in all frame of video when playing, destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold, so in the playing process of whole video file, this destination object can not exceed the rotation of pre-determined threshold relative to display frame, user can conveniently be watched.
< mode two >
In mode one, rotate process in advance to the frame of video of composition video file to ensure that the change of the destination object in display frame relative to the display direction of display frame is lower than pre-determined threshold, this is the process at file formation stages, but the destination object in guarantee display frame also can realize in the broadcasting stage lower than pre-determined threshold relative to the change of the display direction of display frame, but need the rotation information in the pre-recorded frame of video of the formation stages of video file, the rotation information that player can be more pre-recorded is made to carry out rotation process to frame of video, ensure in video file playing process, destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold, be described in detail as follows.
In mode two, described when the described current direction of described judged result instruction changes relative to described reference direction, perform an acquisition process operation and specifically comprise:
The original video frame that the data that acquisition image acquisition units collects obtain;
When the described current direction of described judged result instruction changes relative to described reference direction, record the rotation information that described original video frame is corresponding, make playout software after receiving described original video frame, according to described rotation information, described original video frame is performed rotation process, play after obtaining target video frame, ensure that all target video frames of the described video file of composition are when playing, the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold.
In mode two, by the rotation information that pre-recorded described original video frame is corresponding, make playout software according to described rotation information, original video frame can be performed rotation process, ensure that the change of the destination object in display frame relative to the display direction of display frame is lower than pre-determined threshold.
For the record of this rotation information, can realize in several ways, as:
Correspond to separately this original video files and generate a rotary information recording file, wherein record the corresponding relation of rotation information and frame of video sequence number, playout software is when processing each two field picture, from this log file, search whether there is corresponding rotation information according to frame number, if had, then carry out rotation process according to rotation information, otherwise carry out operating according to existing method.
Certainly, the field of a record rotation information can also be increased in the form of existing frame of video, playout software decode time according to record rotation information field whether be that sky carries out subsequent operation, when the field recording rotation information is not empty, then extract and carry out rotation process according to rotation information, otherwise carrying out operating according to existing method.
Certainly, how to record this rotation information and how playout software obtains this rotation information, completely can adopt alternate manner to realize, as long as which can be played software simulating, be not limited to above implementation.
In a particular embodiment of the present invention, no matter be in front-end processing (in the process of generating video file), or back-end processing (playout software process), all need to perform a rotation process to frame of video, the anglec of rotation of this rotation process and the determination of direction of rotation can be that various ways is to ensure that the change of the destination object in display frame relative to the display direction of display frame is lower than pre-determined threshold.
Destination object in < display frame maintains consistent > relative to the display direction of display frame
In a particular embodiment of the present invention, destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold, in implementation one, be ensure that the destination object in display frame remains unchanged relative to the display direction of display frame.
Under this implementation, describedly judge whether the current direction of described electronic equipment changes relative to a reference direction according to described directioin parameter, obtain a judged result and be specially:
The current direction calculating described electronic equipment according to described directioin parameter is relative to the anglec of rotation of described reference direction and direction of rotation; When the described anglec of rotation is greater than 0, the described current direction of described judged result instruction changes relative to described reference direction, otherwise indicates described current direction not change relative to described reference direction;
And when the described current direction of described judged result instruction changes relative to described reference direction, described original video frame is performed rotation process and is specially:
Described original video frame is rotated up the described anglec of rotation in the side contrary with described direction of rotation.
In above-mentioned mode, when obtaining each two field picture, all judge that the current direction of electronic equipment is relative to the anglec of rotation of described reference direction and direction of rotation, when the anglec of rotation is greater than 0, then represent that current direction changes relative to described reference direction, now, need to rotate in the opposite direction the current frame of video obtained, rotate the impact brought with counteracting equipment, illustrate as follows.
Assuming that when collection the n-th frame, electronic equipment have rotated 35 degree relative to reference direction clockwise, be then that described original video frame inverse clock is rotated 35 to the rotation process of original video frame.
Assuming that when collection the (n+1)th frame, electronic equipment have rotated 55 degree relative to reference direction clockwise, be then that described original video frame inverse clock is rotated 55 to the rotation process of original video frame.
Destination object in < display frame is relative to display direction > in the predetermined interval being greater than 0 of display frame
In the second way, ensure that the destination object in display frame is greater than in the interval of 0 in predetermined relative to the display direction of display frame.
Under this mode, arrange certain interval, the rotation in a certain interval is all converted into and rotates identical angle, under this mode, describedly judge whether the current direction of described electronic equipment changes relative to a reference direction according to described directioin parameter, obtain a judged result and be specially:
The current direction calculating described electronic equipment according to described directioin parameter is relative to the anglec of rotation of described reference direction and direction of rotation; When the described anglec of rotation is greater than 0, the described current direction of described judged result instruction changes relative to described reference direction, otherwise indicates described current direction not change relative to described reference direction;
Described rotation process is specially:
By described original video frame anglec of rotation described in rotation process on the direction contrary with described direction of rotation.
In aforesaid way, when electronic equipment is less relative to the rotation of reference direction, can not cause follow-up follow-uply carry out rotation process to frame of video or recording rotation information corresponding to described original video frame, save processor resource, illustrated as follows to the realization of this mode.
Assuming that pre-set following corresponding relation:
Anglec of rotation section space aim angle
Be greater than 0, and be less than or equal to 300
Be greater than 30, and be less than or equal to 6030
Be greater than 60, and be less than or equal to 9060
............
When user takes, if the anglec of rotation is greater than 0, the described current direction of now judged result instruction changes relative to described reference direction, now can according to the corresponding relation between pre-recorded anglec of rotation interval and angle on target, determine the interval corresponding first object angle of first anglec of rotation at described anglec of rotation place, and follow-up, described original video frame is rotated up described first object angle in the side contrary with described direction of rotation, or record the rotation information that described original video frame is corresponding, follow-uply to be controlled by playout software.
Illustrate as follows, when electronic equipment is less than or equal to 30 degree relative to the reference direction anglec of rotation, now can not carry out any other process, but when electronic equipment rotates 45 degree relative to reference direction clockwise, now described original video frame can be rotated 60 degree at inverse clock.
For above-mentioned example, the destination object in display frame can not more than 30 degree relative to the change of the display direction of display frame, and therefore user need not significantly adjust viewing posture.
Certainly, only to illustrate above, in order to reduce the amplitude of variation of display direction, can arrange every 15 degree of intervals, this depends on the actual demand of user.
Mention before, when causing video file to play, reference object is that electronic equipment rotates relative to the reason that display frame rotates, therefore the impact brought to eliminate/reducing this rotation just needs the rotational case of recorded electronic equipment, but the rotation of recorded electronic equipment needs a reference direction, to compare the current direction of electronic equipment and reference direction, determine whether carrying out acquisition process operation and how carrying out acquisition process operation, in a particular embodiment of the present invention, this reference direction can be an absolute direction changed never, also can be a relative direction changed with different situations, be respectively described below.
< reference direction is gravity direction >
Consider that electronic equipment rotation can cause one to be originally in static object rotational display in different frame of video, if and need the destination object maintaining this static state to remain unchanged relative to the display direction of described display frame, destination object in all frame of video is then needed to remain unchanged relative to the display direction of display frame, and the acquisition process operation realizing this object needs the rotational case considering electronic equipment, in implementation one, gravity direction is set to reference direction, follow-uply carry out respective handling based on the current direction of electronic equipment relative to the change of gravity direction, concrete processing procedure will be described in detail later.
This function of gravity sensing has obtained actual application on the electronic equipments such as digital camera, mobile phone, flat board, and when device orientation change, display and the icon arrangement of screen change thereupon.
Therefore, in a particular embodiment of the present invention, gravity direction can be set to reference direction, existing gravity sensor in electronic equipment can be utilized to come the current direction of perception mobile phone determine whether to carry out acquisition process operation relative to the change of gravity direction, and how to carry out acquisition process operation.
< reference direction is the direction > of the video gathering described destination object described electronic equipment when starting
Describe the rotational case of electronic equipment under first kind of way as a reference with an absolute direction, and respective handling is carried out relative to the change of gravity direction in the current direction of electronic equipment.
But, for video capture, two sections of different video files, do not need to consider that the video file of current shooting remains unchanged relative to the display direction of display frame with destination object in the video file taken before two days, and in the video file only needing maintenance current shooting to obtain, destination object remains unchanged relative to the display direction of display frame.Therefore, this reference direction also can be a relative direction changed with different situations, the direction of described electronic equipment when the video namely gathering described destination object starts.
When homogeneous video acquisition does not start, the direction of electronic equipment is not identical, as long as but the rotational case in the direction of described electronic equipment when recording that in this video acquisition process, electronic equipment direction starts relative to this video, just subsequent treatment can be carried out, maintain this obtain video file play time, the destination object in display frame relative to the display direction of described display frame remain unchanged/or change in a thresholding.
The rotational case in the direction of described electronic equipment when starting for the current direction of recorded electronic equipment and this video, also has a lot of senser elements to realize, does not describe in detail at this in prior art.
The electronic equipment that the embodiment of the present invention provides, comprising:
Mainboard;
Storage unit, is electrically connected with described mainboard; It can be any built-in or external memory device, as hard disk, flash memory etc.;
Image acquisition units, is electrically connected with described mainboard, for gathering the image acquisition units of video;
Detecting unit, is electrically connected with described mainboard, for detecting described electronic equipment directioin parameter;
Processor, be electrically connected with described mainboard, for in the process of video being gathered a destination object by described collecting unit, obtain the directioin parameter that described detecting unit detects, and whether change relative to a reference direction according to the current direction that described directioin parameter obtains described electronic equipment, obtain a judged result, when the described current direction of described judged result instruction changes relative to described reference direction, perform an acquisition process operation, with make the data genaration that collects according to described image acquisition units and the video file being stored into described storage unit when playing, destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold.
Above-mentioned electronic equipment, wherein, as shown in Figure 4, described processor specifically comprises:
Directioin parameter acquiring unit, in the process of video being gathered a destination object by described collecting unit, obtains the directioin parameter that described detecting unit detects;
Whether judging unit, change relative to a reference direction for the current direction obtaining described electronic equipment according to described directioin parameter, obtain a judged result;
Acquisition process unit, for when the described current direction of described judged result instruction changes relative to described reference direction, perform an acquisition process operation, with make the data genaration that collects according to described image acquisition units and the video file stored when playing, the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold.
Above-mentioned electronic equipment, wherein, described acquisition process unit specifically comprises:
Frame of video acquisition module, the original video frame that the data collected for obtaining image acquisition units obtain;
Rotate processing module, for when the described current direction of described judged result instruction changes relative to described reference direction, by described original video frame at execution rotation process, obtain target video frame, otherwise direct described original video frame is as target video frame;
Wherein, all target video frames forming described video file when playing, the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold.
Above-mentioned electronic equipment, wherein, described acquisition process unit specifically comprises:
Frame of video acquisition module, the original video frame that the data collected for obtaining image acquisition units obtain;
Logging modle, for when the described current direction of described judged result instruction changes relative to described reference direction, record the rotation information that described original video frame is corresponding, make playout software after receiving described original video frame, according to described rotation information, described original video frame is performed rotation process, play after obtaining target video frame, ensure that all target video frames of the described video file of composition are when playing, the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold.
Above-mentioned electronic equipment, wherein, described judging unit specifically for the current direction that calculates described electronic equipment according to described directioin parameter relative to the anglec of rotation of described reference direction and direction of rotation, and when the described anglec of rotation is greater than 0, obtain the judged result that the described current direction of instruction changes relative to described reference direction, otherwise obtain the judged result indicating described current direction not change relative to described reference direction;
Described rotation process is specially described original video frame anglec of rotation described in rotation process on the direction contrary with described direction of rotation.
Above-mentioned electronic equipment, wherein, described judging unit specifically for the current direction that calculates described electronic equipment according to described directioin parameter relative to the anglec of rotation of described reference direction and direction of rotation, according to the corresponding relation between pre-recorded anglec of rotation interval and angle on target, determine the interval corresponding first object angle of first anglec of rotation at described anglec of rotation place; And when the described anglec of rotation is greater than 0, obtains the judged result that the described current direction of instruction changes relative to described reference direction, otherwise obtain the judged result indicating described current direction not change relative to described reference direction;
Described rotation process is specially and described original video frame is rotated up described first object angle in the side contrary with described direction of rotation.
Above-mentioned electronic equipment, wherein, described reference direction is the direction of gravity direction or the video gathering described destination object described electronic equipment when starting.
Many functional parts described in this specification are all called as module, specifically to emphasize the independence of its implementation.
In the embodiment of the present invention, module can use software simulating, to be performed by various types of processor.For example, the executable code module of a mark can comprise one or more physics or the logical block of computer instruction, and for example, it can be built as object, process or function.However, the executable code of institute's identification module is does not have to be physically positioned at together, but can comprise the different instruction be stored in not coordination, when these command logics combine, and its composition module and realize the regulation object of this module.
In fact, executable code module can be individual instructions or many bar instructions, and even can be distributed on multiple different code segment, is distributed in the middle of distinct program, and crosses over the distribution of multiple memory devices.Similarly, operating data can be identified in module, and can realize according to any suitable form and be organized in the data structure of any suitable type.Described operating data can be collected as individual data collection, or can be distributed on diverse location and (be included in different storage device), and can only be present on system or network as electronic signal at least in part.
When module can utilize software simulating, consider the level of existing hardware technique, so can with the module of software simulating, when not considering cost, those skilled in the art can build corresponding hardware circuit and realize corresponding function, and described hardware circuit comprises existing semiconductor or other discrete element of conventional ultra-large integrated (VLSI) circuit or gate array and such as logic chip, transistor and so on.Module can also use programmable hardware device, the realizations such as such as field programmable gate array, programmable logic array, programmable logic device.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. a video acquisition processing method, for an electronic equipment, described electronic equipment has the image acquisition units for gathering video and the detecting unit for detecting described electronic equipment directioin parameter, it is characterized in that, described method comprises:
In the process of video being gathered a destination object by described collecting unit, obtain the directioin parameter that described detecting unit detects;
Whether the current direction obtaining described electronic equipment according to described directioin parameter changes relative to a reference direction, obtains a judged result;
When the described current direction of described judged result instruction changes relative to described reference direction, perform an acquisition process operation, with make the data genaration that collects according to described image acquisition units and the video file stored when playing, the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold;
Described when the described current direction of described judged result instruction changes relative to described reference direction, perform an acquisition process operation and specifically comprise:
The original video frame that the data that acquisition image acquisition units collects obtain;
When the described current direction of described judged result instruction changes relative to described reference direction, record the rotation information that described original video frame is corresponding, make playout software after receiving described original video frame, according to described rotation information, described original video frame is performed rotation process, play after obtaining target video frame, ensure that all target video frames of the described video file of composition are when playing, the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold.
2. video acquisition processing method according to claim 1, is characterized in that, described when the described current direction of described judged result instruction changes relative to described reference direction, performs an acquisition process operation and specifically comprises:
The original video frame that the data that acquisition image acquisition units collects obtain;
When the described current direction of described judged result instruction changes relative to described reference direction, by described original video frame at execution rotation process, obtain target video frame, otherwise direct described original video frame is as target video frame;
Wherein, all target video frames forming described video file when playing, the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold.
3. video acquisition processing method according to claim 1, is characterized in that, describedly judges whether the current direction of described electronic equipment changes relative to a reference direction according to described directioin parameter, obtains a judged result and is specially:
The current direction calculating described electronic equipment according to described directioin parameter is relative to the anglec of rotation of described reference direction and direction of rotation; When the described anglec of rotation is greater than 0, the described current direction of described judged result instruction changes relative to described reference direction, otherwise indicates described current direction not change relative to described reference direction;
Described rotation process is specially:
By described original video frame anglec of rotation described in rotation process on the direction contrary with described direction of rotation.
4. video acquisition processing method according to claim 1, is characterized in that, describedly judges whether the current direction of described electronic equipment changes relative to a reference direction according to described directioin parameter, obtains a judged result and is specially:
The current direction calculating described electronic equipment according to described directioin parameter is relative to the anglec of rotation of described reference direction and direction of rotation;
According to the corresponding relation between pre-recorded anglec of rotation interval and angle on target, determine the interval corresponding first object angle of first anglec of rotation at described anglec of rotation place; When the described anglec of rotation is greater than 0, the described current direction of described judged result instruction changes relative to described reference direction, otherwise indicates described current direction not change relative to described reference direction;
Described rotation process is specially:
Described original video frame is rotated up described first object angle in the side contrary with described direction of rotation.
5. according to the video acquisition processing method in claim 1 or 2 described in any one, it is characterized in that, described reference direction is:
Gravity direction; Or
When the video gathering described destination object starts, the direction of described electronic equipment.
6. an electronic equipment, is characterized in that, comprising:
Mainboard;
Storage unit, is electrically connected with described mainboard;
Image acquisition units, is electrically connected with described mainboard, for gathering the image acquisition units of video;
Detecting unit, is electrically connected with described mainboard, for detecting described electronic equipment directioin parameter;
Processor, be electrically connected with described mainboard, for in the process of video being gathered a destination object by described collecting unit, obtain the directioin parameter that described detecting unit detects, and whether change relative to a reference direction according to the current direction that described directioin parameter obtains described electronic equipment, obtain a judged result, when the described current direction of described judged result instruction changes relative to described reference direction, perform an acquisition process operation, with make the data genaration that collects according to described image acquisition units and the video file being stored into described storage unit when playing, destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold,
Described processor specifically comprises:
Directioin parameter acquiring unit, in the process of video being gathered a destination object by described collecting unit, obtains the directioin parameter that described detecting unit detects;
Whether judging unit, change relative to a reference direction for the current direction obtaining described electronic equipment according to described directioin parameter, obtain a judged result;
Acquisition process unit, for when the described current direction of described judged result instruction changes relative to described reference direction, perform an acquisition process operation, with make the data genaration that collects according to described image acquisition units and the video file stored when playing, the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold;
Described acquisition process unit specifically comprises:
Frame of video acquisition module, the original video frame that the data collected for obtaining image acquisition units obtain;
Logging modle, for when the described current direction of described judged result instruction changes relative to described reference direction, record the rotation information that described original video frame is corresponding, make playout software after receiving described original video frame, according to described rotation information, described original video frame is performed rotation process, play after obtaining target video frame, ensure that all target video frames of the described video file of composition are when playing, the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold.
7. electronic equipment according to claim 6, is characterized in that, described acquisition process unit specifically comprises:
Frame of video acquisition module, the original video frame that the data collected for obtaining image acquisition units obtain;
Rotate processing module, for when the described current direction of described judged result instruction changes relative to described reference direction, by described original video frame at execution rotation process, obtain target video frame, otherwise direct described original video frame is as target video frame;
Wherein, all target video frames forming described video file when playing, the destination object in display frame relative to the change of the display direction of display frame lower than pre-determined threshold.
8. the electronic equipment according to claim 6 or 7, it is characterized in that, described judging unit specifically for the current direction that calculates described electronic equipment according to described directioin parameter relative to the anglec of rotation of described reference direction and direction of rotation, and when the described anglec of rotation is greater than 0, obtain the judged result that the described current direction of instruction changes relative to described reference direction, otherwise obtain the judged result indicating described current direction not change relative to described reference direction;
Described rotation process is specially described original video frame anglec of rotation described in rotation process on the direction contrary with described direction of rotation.
9. the electronic equipment according to claim 6 or 7, it is characterized in that, described judging unit specifically for the current direction that calculates described electronic equipment according to described directioin parameter relative to the anglec of rotation of described reference direction and direction of rotation, according to the corresponding relation between pre-recorded anglec of rotation interval and angle on target, determine the interval corresponding first object angle of first anglec of rotation at described anglec of rotation place; And when the described anglec of rotation is greater than 0, obtains the judged result that the described current direction of instruction changes relative to described reference direction, otherwise obtain the judged result indicating described current direction not change relative to described reference direction;
Described rotation process is specially and described original video frame is rotated up described first object angle in the side contrary with described direction of rotation.
10. according to the electronic equipment in claim 6 or 7 described in any one, it is characterized in that, described reference direction is the direction of gravity direction or the video gathering described destination object described electronic equipment when starting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110167610.7A CN102843496B (en) | 2011-06-21 | 2011-06-21 | A kind of video acquisition processing method and portable electric appts |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110167610.7A CN102843496B (en) | 2011-06-21 | 2011-06-21 | A kind of video acquisition processing method and portable electric appts |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102843496A CN102843496A (en) | 2012-12-26 |
CN102843496B true CN102843496B (en) | 2016-04-27 |
Family
ID=47370533
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110167610.7A Active CN102843496B (en) | 2011-06-21 | 2011-06-21 | A kind of video acquisition processing method and portable electric appts |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102843496B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103347026B (en) * | 2013-07-11 | 2017-02-08 | 合一网络技术(北京)有限公司 | Self-adaptive rotation device and method of streaming media during playback |
CN104202556B (en) * | 2014-09-24 | 2018-05-08 | 北京智谷睿拓技术服务有限公司 | Information acquisition method, information acquisition device and user equipment |
CN104935857A (en) * | 2015-06-10 | 2015-09-23 | 联想(北京)有限公司 | Video processing method and electronic equipment |
CN105227963B (en) * | 2015-08-31 | 2018-05-01 | 暴风集团股份有限公司 | Streaming Media collection automatic identification direction and the method and system adjusted are carried out to terminal |
CN107534698A (en) * | 2015-11-20 | 2018-01-02 | 华为技术有限公司 | Terminal operation method and terminal |
CN107592446B (en) * | 2016-07-06 | 2020-06-05 | 腾讯科技(深圳)有限公司 | Video image processing method, device and system |
CN106527911A (en) * | 2016-10-26 | 2017-03-22 | 广东小天才科技有限公司 | Terminal player control method and device |
JP6949500B2 (en) * | 2017-01-30 | 2021-10-13 | キヤノン株式会社 | Imaging device |
CN106973331A (en) * | 2017-03-17 | 2017-07-21 | 福建中金在线信息科技有限公司 | A kind of video broadcasting method and device |
WO2018214035A1 (en) * | 2017-05-23 | 2018-11-29 | 华为技术有限公司 | Method and apparatus for processing multimedia file |
CN109145681B (en) * | 2017-06-16 | 2021-02-26 | 北京京东尚科信息技术有限公司 | Method and device for judging target rotation direction |
CN107613143B (en) * | 2017-10-20 | 2020-05-01 | 深圳市普天宜通技术股份有限公司 | Video rotation display method, storage device and mobile terminal |
CN110737336B (en) * | 2019-10-12 | 2022-05-13 | Oppo广东移动通信有限公司 | Video display direction adjusting method and device and computer readable storage medium |
CN111263212A (en) * | 2020-03-11 | 2020-06-09 | 北京弘远博学科技有限公司 | Video recording tool based on Android system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004240878A (en) * | 2003-02-07 | 2004-08-26 | Nec Corp | Portable electronic appliance, display direction switching method and program |
CN100399181C (en) * | 2003-11-14 | 2008-07-02 | 联想(北京)有限公司 | Method for correcting digital picture display |
KR100726215B1 (en) * | 2005-10-14 | 2007-06-11 | 삼성전자주식회사 | Portable terminal and method of photographing upright images |
CN101068309A (en) * | 2007-05-24 | 2007-11-07 | 中兴通讯股份有限公司 | Method and device for automatic rotating mobile terminal camera head shooting results |
-
2011
- 2011-06-21 CN CN201110167610.7A patent/CN102843496B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN102843496A (en) | 2012-12-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102843496B (en) | A kind of video acquisition processing method and portable electric appts | |
CN110012209B (en) | Panoramic image generation method, device, storage medium and electronic device | |
CN104349044B (en) | The image pickup method and electronic equipment of panoramic picture | |
US20180020158A1 (en) | Camera Augmented Reality Based Activity History Tracking | |
US20100088574A1 (en) | Data storage system and device with randomizer/de-randomizer | |
US20110304688A1 (en) | Panoramic camera and method for capturing panoramic photos | |
CN108024079A (en) | Record screen method, apparatus, terminal and storage medium | |
US20100131997A1 (en) | Systems, methods and apparatuses for media integration and display | |
KR20130129458A (en) | Dynamic template tracking | |
US8300098B1 (en) | Techniques for providing access to video data using a network attached storage device | |
US20070253682A1 (en) | Video recording and playing system and signal pickup method for the same | |
US20080002963A1 (en) | Systems and methods for capturing images of objects | |
US20090006337A1 (en) | Method and apparatus for automatic detection and identification of unidentified video signals | |
CN107870999B (en) | Multimedia playing method, device, storage medium and electronic equipment | |
US20110073651A1 (en) | Method for multi-type barcode recognition, computer readable medium, and barcode recognition apparatus | |
TWI698117B (en) | Generating method and playing method of multimedia file, multimedia file generation apparatus and multimedia file playback apparatus | |
US8244005B2 (en) | Electronic apparatus and image display method | |
CN105763897A (en) | Method and apparatus for identifying a broadcasting server | |
CN114143568A (en) | Method and equipment for determining augmented reality live image | |
US20160127651A1 (en) | Electronic device and method for capturing image using assistant icon | |
US20190356854A1 (en) | Portable electronic device and image capturing method thereof | |
CN103856701A (en) | Display apparatus and control method thereof | |
CN101923844A (en) | Method and system for correcting image presentation direction | |
US20140267806A1 (en) | Device and method for processing video content | |
US9977946B2 (en) | Fingerprint sensor apparatus and method for sensing fingerprint |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |