CN102843496A - Video collecting processing method and portable electronic device - Google Patents

Video collecting processing method and portable electronic device Download PDF

Info

Publication number
CN102843496A
CN102843496A CN2011101676107A CN201110167610A CN102843496A CN 102843496 A CN102843496 A CN 102843496A CN 2011101676107 A CN2011101676107 A CN 2011101676107A CN 201110167610 A CN201110167610 A CN 201110167610A CN 102843496 A CN102843496 A CN 102843496A
Authority
CN
China
Prior art keywords
respect
rotation
video
electronic equipment
frame
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
CN2011101676107A
Other languages
Chinese (zh)
Other versions
CN102843496B (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 CN201110167610.7A priority Critical patent/CN102843496B/en
Publication of CN102843496A publication Critical patent/CN102843496A/en
Application granted granted Critical
Publication of CN102843496B publication Critical patent/CN102843496B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The aim of the invention is to provide a video collecting processing method and a portable electronic device. The video collecting processing method is applied to an electronic device; and the electronic device comprises an image collecting unit for collecting a video and a detection unit for detecting a direction parameter of the electronic device. The method comprises the steps of: obtaining the direction parameter detected by the detection unit in a process of collecting the video of a target object by the collecting unit; judging whether current direction of the electronic device changes relatively to a reference direction according to the direction parameter, and obtaining a judgment result; and carrying out a collecting processing operation when the current direction changes relative to the reference direction, so that the change of a target object in a display picture, relatively to the display direction of the display picture, is lower than a preset threshold when a video file generated and stored according to the data collected by the image collecting unit is played. According to the invention, a user can conveniently view the video file generated after image collection.

Description

A kind of video acquisition processing method and portable electric appts
Technical field
The invention belongs to electronic applications, particularly a kind of video acquisition processing method and portable electric appts.
Background technology
At present camera has become and the standard configuration of portable electric appts, like notebook computer, mobile phone, PDA and panel computer etc.
Domestic consumer is when using digital camera, DV and mobile phone etc. to carry out video capture; Sometimes consider the problem of finding a view; Can electronic equipment be rotated and find a view, and this mode can cause the video file problem inconvenient to watch that obtains, and illustrates as follows.
As shown in Figure 1; Be a reference object-static human, suppose that the current hand-hold electronic equipments of user obtains a frame of video A1 at this static human of first direction photographs, and obtain frame of video A2 in second direction photographs perpendicular to first direction at next moment user's rotating electron equipment 90 degree; Take the frame of video of video when playing that obtains this moment at electronic equipment as shown in Figure 2; Can find that first frame of video is an endways human body with respect to display screen, second frame of video is a human body sidewards with respect to display screen, certainly; When this video file is play on small-sized electronic equipment such as mobile phone, digital camera; The user can rotating electron equipment adjusts and watches, but when being transferred to electronic equipments such as television set, desktop computer when video file and watching, if the electronic equipment anglec of rotation is excessive; It is extremely inconvenient to cause the user to watch, and user's deflection head significantly watches video.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of video acquisition processing method and portable electric appts, obtains the video file that is suitable for watching.
To achieve these goals; The embodiment of the invention provides a kind of video acquisition processing method; Be used for an electronic equipment, said electronic equipment has the image acquisition units and the detecting unit that is used to detect said electronic equipment directioin parameter that is used to gather video, and said method comprises:
In the process of the video of gathering a destination object through said collecting unit, obtain the directioin parameter of said detection;
Whether the current direction of obtaining said electronic equipment according to said directioin parameter changes with respect to a reference direction, obtains a judged result;
When said judged result indicates said current direction to change with respect to said reference direction; Carry out an acquisition process operation; So that the video file that the data that collect according to said image acquisition units generate and store is when playing, the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
Above-mentioned video acquisition processing method, wherein said when said judged result indicates said current direction to change with respect to said reference direction, carry out an acquisition process operation and specifically comprise:
Obtain the original video frame that data that image acquisition units collects obtain;
When said judged result indicates said current direction to change with respect to said reference direction, said original video frame carrying out rotary manipulation, obtain the target video frame, otherwise direct said original video frame is as the target video frame;
Wherein, all target video frames of forming said video file are when playing, and the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
Above-mentioned video acquisition processing method, wherein said when said judged result indicates said current direction to change with respect to said reference direction, carry out an acquisition process operation and specifically comprise:
Obtain the original video frame that data that image acquisition units collects obtain;
When said judged result indicates said current direction to change with respect to said reference direction; Write down the corresponding rotation information of said original video frame; Make playout software after receiving said original video frame; According to said rotation information said original video frame is carried out rotary manipulation; Obtain playing behind the target video frame, all target video frames that guarantee to form said video file are when playing, and the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
Above-mentioned video acquisition processing method, wherein, saidly judge that according to said directioin parameter whether the current direction of said electronic equipment changes with respect to a reference direction, obtains a judged result and is specially:
Calculate the anglec of rotation and the direction of rotation of the current direction of said electronic equipment according to said directioin parameter with respect to said reference direction; The said anglec of rotation was greater than 0 o'clock, and said judged result indicates said current direction to change with respect to said reference direction, otherwise indicated said current direction not change with respect to said reference direction;
Said rotary manipulation is specially:
With said original video frame said anglec of rotation of rotary manipulation on the direction opposite with said direction of rotation.
Above-mentioned video acquisition processing method, wherein, saidly judge that according to said directioin parameter whether the current direction of said electronic equipment changes with respect to a reference direction, obtains a judged result and is specially:
Calculate the anglec of rotation and the direction of rotation of the current direction of said electronic equipment according to said directioin parameter with respect to said reference direction;
According to anglec of rotation interval of writing down in advance and the corresponding relation between the angle on target, confirm the interval first corresponding angle on target of first anglec of rotation at said anglec of rotation place; The said anglec of rotation was greater than 0 o'clock, and said judged result indicates said current direction to change with respect to said reference direction, otherwise indicated said current direction not change with respect to said reference direction;
Said rotary manipulation is specially:
Said original video frame is rotated said first angle on target on the direction opposite with said direction of rotation.
Above-mentioned video acquisition processing method, wherein, said reference direction is:
Gravity direction; Or
When the video of gathering said destination object begins, the direction of said electronic equipment.
To achieve these goals, the embodiment of the invention provides a kind of electronic equipment, comprising:
Mainboard;
Preserve the unit, be electrically connected with said mainboard;
Image acquisition units is electrically connected with said mainboard, is used to gather the image acquisition units of video;
Detecting unit is electrically connected with said mainboard, is used to detect said electronic equipment directioin parameter;
Processor; Be electrically connected with said mainboard; Be used in the process of gathering the video of a destination object through said collecting unit; Obtain the directioin parameter of said detection, and whether change with respect to a reference direction, obtain a judged result according to the current direction that said directioin parameter obtains said electronic equipment; When said judged result indicates said current direction to change with respect to said reference direction; Carry out an acquisition process operation, so that the data that collect according to said image acquisition units generate and store the video file of said preservation unit when playing, the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
Above-mentioned electronic equipment, wherein, said processor specifically comprises:
The directioin parameter acquiring unit is used for the process of gathering the video of a destination object through said collecting unit, obtains the directioin parameter of said detection;
Judging unit, whether the current direction that is used for obtaining according to said directioin parameter said electronic equipment changes with respect to a reference direction, obtains a judged result;
The acquisition process unit; Be used for when said judged result indicates said current direction to change with respect to said reference direction; Carry out an acquisition process operation; So that the video file that the data that collect according to said image acquisition units generate and store is when playing, the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
Above-mentioned electronic equipment, wherein, said acquisition process unit specifically comprises:
The frame of video acquisition module is used to obtain the original video frame that data that image acquisition units collects obtain;
The rotation processing module; Be used for when said judged result indicates said current direction to change with respect to said reference direction; Said original video frame carrying out rotary manipulation, obtain the target video frame, otherwise direct said original video frame is as the target video frame;
Wherein, all target video frames of forming said video file are when playing, and the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
Above-mentioned electronic equipment, wherein, said acquisition process unit specifically comprises:
The frame of video acquisition module is used to obtain the original video frame that data that image acquisition units collects obtain;
Logging modle; Be used for when said judged result indicates said current direction to change with respect to said reference direction; Write down the corresponding rotation information of said original video frame; Make playout software after receiving said original video frame, said original video frame is carried out rotary manipulation, obtain playing behind the target video frame according to said rotation information; All target video frames that guarantee to form said video file are when playing, and the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
Above-mentioned electronic equipment; Wherein, Said judging unit specifically is used for calculating the anglec of rotation and the direction of rotation of the current direction of said electronic equipment with respect to said reference direction according to said directioin parameter; And in the said anglec of rotation greater than 0 o'clock, obtain the judged result that the said current direction of indication changes with respect to said reference direction, otherwise obtain the judged result that the said current direction of indication does not change with respect to said reference direction;
Said rotary manipulation is specially said original video frame said anglec of rotation of rotary manipulation on the direction opposite with said direction of rotation.
Above-mentioned electronic equipment; Wherein, Said judging unit specifically is used for calculating the anglec of rotation and the direction of rotation of the current direction of said electronic equipment with respect to said reference direction according to said directioin parameter; According to anglec of rotation interval of writing down in advance and the corresponding relation between the angle on target, confirm the interval first corresponding angle on target of first anglec of rotation at said anglec of rotation place; And in the said anglec of rotation greater than 0 o'clock, obtain the judged result that the said current direction of indication changes with respect to said reference direction, otherwise obtain the judged result that the said current direction of indication does not change with respect to said reference direction;
Said rotary manipulation is specially said original video frame is rotated said first angle on target on the direction opposite with said direction of rotation.
Above-mentioned electronic equipment, wherein, said reference direction is the direction of gravity direction or the video of gathering said destination object said electronic equipment when beginning.
The embodiment of the invention has following beneficial effect:
In specific embodiment of the present invention; In the process of the video of gathering a destination object; If when detecting current direction and changing with respect to said reference direction, then carry out an acquisition process operation, acquisition process operation can make the video file that generates and stores according to the data that collect when playing; Destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame; Therefore in the video file playing process, destination object can not take place significantly to change with respect to the rotation of display frame, and the user no longer needs adjustment significantly to watch attitude to adapt to the rotation of image in watching process.
Description of drawings
Shown in Figure 1 is the sketch map of reference object;
Effect sketch map when Fig. 2 is two presentation of video frames that obtain before and after user's rotating electron equipment;
Fig. 3 is the schematic flow sheet of the method for the embodiment of the invention;
Fig. 4 is the structural representation of processor of the electronic equipment of the embodiment of the invention.
Embodiment
In the video acquisition processing method and portable electric appts of the embodiment of the invention; The rotary manipulation of electronic equipment in shooting process more; Frame of video to the data that collect according to said image acquisition units generate is handled accordingly; Make the destination object in the display frame be lower than preset thresholding, make the user to adjust significantly and watch posture, be convenient to the user and watch with respect to the variation of the display direction of display frame.
The video acquisition processing method of the embodiment of the invention is used for an electronic equipment, and said electronic equipment has the image acquisition units and the detecting unit that is used to detect said electronic equipment directioin parameter that is used to gather video, and as shown in Figure 3, said method comprises:
Step 31 in the process of the video of gathering a destination object through said collecting unit, is obtained the directioin parameter of said detection;
Step 32 judges according to said directioin parameter whether the current direction of said electronic equipment changes with respect to a reference direction, obtains a judged result;
Step 33; When said judged result indicates said current direction to change with respect to said reference direction; Carry out an acquisition process operation; So that the video file that the data that collect according to said image acquisition units generate and store is when playing, the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
In specific embodiment of the present invention; This electronic equipment can be any portable electric appts with image acquisition units and direction detecting unit; Like mobile phone, digital camera, DV, PAD, panel computer etc., multi-form electronic equipment can't impact the realization of the specific embodiment of the invention.
In specific embodiment of the present invention; In the process of the video of gathering a destination object; If when detecting current direction and changing with respect to said reference direction, then carry out an acquisition process operation, acquisition process operation can make the video file that generates and stores according to the data that collect when playing; Destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame; Therefore in the video file playing process, destination object can not take place significantly to change with respect to the rotation of display frame, and the user no longer needs adjustment significantly to watch attitude to adapt to the rotation of image in watching process.
In specific embodiment of the present invention; Destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame; At this; This destination object should be a static object object, otherwise, if original object self rotates; This moment, this object just should take place to change significantly with respect to the display direction of display frame originally; And should not adjust, so in the process of the video of gathering a destination object through said collecting unit, obtain in the step of directioin parameter of said detection; This video acquisition is the video that comprises a static object object through said collecting unit collection, and to be lower than preset thresholding also be this static object object to the destination object in the follow-up display frame is lower than preset thresholding with respect to the variation of the display direction of display frame with respect to the variation of the display direction of display frame.
Should be understood that, this static object as far as as if to rotation, rather than other motion is a static object object like a destination object of coming up towards electronic equipment at this, and the blade of the windmill of rotation is not the static object object just.
In specific embodiment of the present invention, need control to make the destination object in the display frame be lower than preset thresholding with respect to the variation of the display direction of display frame, in specific embodiment of the present invention, can realize that explanation is as follows respectively through dual mode.
< mode one >
In mode one, the frame of video rotation situation more of forming video file is rotated processing.
In the mode one, said when said judged result indicates said current direction to change with respect to said reference direction, carry out an acquisition process operation and specifically comprise:
Obtain the original video frame that data that image acquisition units collects obtain;
When said judged result indicates said current direction to change with respect to said reference direction, said original video frame carrying out rotary manipulation, obtain the target video frame, otherwise direct said original video frame is as the target video frame;
Wherein, all target video frames of forming said video file are when playing, and the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
In the mode one; When said judged result indicates said current direction to change with respect to said reference direction; Said original video frame carrying out rotary manipulation, obtain the target video frame, otherwise direct said original video frame is as the target video frame; All target video frames of forming said video file are when playing, and the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.Because all target video frames of forming said video file in all frame of video are when playing; Destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame; So in the playing process of whole video file; The rotation of preset thresholding can not take place to surpass with respect to display frame in this destination object, makes the user conveniently to watch.
< mode two >
In mode one; Be the frame of video of forming video file to be carried out rotation processing in advance guarantee that the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame; This is the processing that forms the stage at file; But the destination object in the assurance display frame is lower than preset thresholding with respect to the variation of the display direction of display frame also can be realized in the broadcast stage; But need be at formation stage of video file rotation information of recording of video frame in advance, the rotation information that makes player to write down more in advance is rotated processing to frame of video, guarantees in the video file playing process; Destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame, specifies as follows.
In the mode two, said when said judged result indicates said current direction to change with respect to said reference direction, carry out an acquisition process operation and specifically comprise:
Obtain the original video frame that data that image acquisition units collects obtain;
When said judged result indicates said current direction to change with respect to said reference direction; Write down the corresponding rotation information of said original video frame; Make playout software after receiving said original video frame; According to said rotation information said original video frame is carried out rotary manipulation; Obtain playing behind the target video frame, all target video frames that guarantee to form said video file are when playing, and the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
In mode two; Through writing down the corresponding rotation information of said original video frame in advance; Make playout software original video frame to be carried out rotary manipulation, guarantee that the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame according to said rotation information.
For the record of this rotation information, can realize in several ways, as:
Generate a rotary information recording file corresponding to this original video files separately; Wherein write down the corresponding relation of rotation information and frame of video sequence number; Playout software searches whether there is corresponding rotation information according to frame number, if having from this log file when handling each two field picture; Then be rotated operation, get final product otherwise operate according to existing method according to rotation information.
Certainly; Can also in the form of existing frame of video, increase the field of a record rotation information; Whether playout software is that sky carries out subsequent operation in when decoding according to the field of record rotation information; In the field of record rotation information when be empty, then extraction and be rotated operation according to rotation information gets final product otherwise operate according to existing method.
Certainly, how to write down this rotation information and playout software and how to obtain this rotation information, can adopt alternate manner to realize fully, as long as this mode can be not limited to above implementation by the playout software realization.
In specific embodiment of the present invention; No matter be front-end processing (generating in the process of video file); Or back-end processing (playout software processing); All need carry out a rotary manipulation to frame of video, confirming of the anglec of rotation of this rotary manipulation and direction of rotation can be that multiple mode guarantees that the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
< destination object in the display frame is kept unanimity with respect to the display direction of display frame >
In specific embodiment of the present invention; Destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame; In implementation one, be to guarantee that the destination object in the display frame remains unchanged with respect to the display direction of display frame.
Under this implementation, saidly judge that according to said directioin parameter whether the current direction of said electronic equipment changes with respect to a reference direction, obtains a judged result and is specially:
Calculate the anglec of rotation and the direction of rotation of the current direction of said electronic equipment according to said directioin parameter with respect to said reference direction; The said anglec of rotation was greater than 0 o'clock, and said judged result indicates said current direction to change with respect to said reference direction, otherwise indicated said current direction not change with respect to said reference direction;
And when said judged result indicates said current direction to change with respect to said reference direction, said original video frame is carried out rotary manipulation be specially:
Said original video frame is rotated the said anglec of rotation on the direction opposite with said direction of rotation.
In the above-mentioned mode, when obtaining each two field picture, all judge the anglec of rotation and the direction of rotation of the current direction of electronic equipment with respect to said reference direction; When the anglec of rotation greater than 0 the time; Represent that then current direction changes with respect to said reference direction, at this moment, need rotate in the opposite direction the current frame of video that obtains; Influence so that the rotation of counteracting equipment brings illustrates as follows.
Suppose that when gathering the n frame electronic equipment has rotated 35 degree with respect to the reference direction clockwise, then the rotary manipulation to original video frame is with said original video frame inverse clock rotation 35.
Suppose that when gathering the n+1 frame electronic equipment has rotated 55 degree with respect to the reference direction clockwise, then the rotary manipulation to original video frame is with said original video frame inverse clock rotation 55.
Destination object in the display frame with respect to the display direction of display frame predetermined greater than 0 interval in
In the second way, guarantee in the display frame destination object with respect to the display direction of display frame predetermined greater than 0 interval in.
Under this mode; Certain interval is set, and the rotation in a certain interval all is converted into the identical angle of rotation, under this mode; Saidly judge that according to said directioin parameter whether the current direction of said electronic equipment changes with respect to a reference direction, obtains a judged result and is specially:
Calculate the anglec of rotation and the direction of rotation of the current direction of said electronic equipment according to said directioin parameter with respect to said reference direction; The said anglec of rotation was greater than 0 o'clock, and said judged result indicates said current direction to change with respect to said reference direction, otherwise indicated said current direction not change with respect to said reference direction;
Said rotary manipulation is specially:
With said original video frame said anglec of rotation of rotary manipulation on the direction opposite with said direction of rotation.
In the aforesaid way; At electronic equipment hour with respect to the rotation of reference direction; Can not cause follow-up follow-up frame of video being rotated operation or writing down the corresponding rotation information of said original video frame, practice thrift processor resource, the realization of this mode is illustrated as follows.
Suppose following corresponding relation be set in advance:
The interval angle on target of the anglec of rotation
Greater than 0, and be less than or equal to 30 0
Greater than 30, and be less than or equal to 60 30
Greater than 60, and be less than or equal to 90 60
...... ......
When the user takes; If the anglec of rotation is greater than 0; This moment, judged result indicated said current direction to change with respect to said reference direction; Can confirm the interval first corresponding angle on target of first anglec of rotation at the said anglec of rotation place this moment according to anglec of rotation interval of writing down in advance and the corresponding relation between the angle on target, and follow-up said original video frame is rotated said first angle on target on the direction opposite with said direction of rotation; Perhaps write down the corresponding rotation information of said original video frame, follow-uply control by playout software.
Illustrate as follows; When electronic equipment is less than or equal to 30 when spending with respect to the reference direction anglec of rotation; Can not carry out any other processing this moment, but when electronic equipment was spent with respect to reference direction clockwise rotation 45, this moment can be with said original video frame at inverse clock rotation 60 degree.
For above-mentioned example, the destination object in the display frame can not surpass 30 degree with respect to the variation of the display direction of display frame, so the user need not adjust significantly and watches posture.
Certainly, more than only illustrate, in order to reduce the amplitude of variation of display direction, can be provided with per 15 the degree interval, this depends on user's actual demand.
Mention before; Reference object is that electronic equipment rotates with respect to the reason of display frame rotation when causing video file to play, and therefore just need the rotation situation of recorded electronic equipment in order to eliminate/reduce influence that this rotation brings, but the rotation of recorded electronic equipment needs a reference direction; To compare current direction of electronic equipment and reference direction; Determine whether carrying out acquisition process operation and how to carry out acquisition process operation, in specific embodiment of the present invention, this reference direction can be an absolute direction that changes never; Also can be a relative direction that changes with different situations, explanation as follows respectively.
< reference direction is gravity direction >
Consider that the electronic equipment rotation can cause an object that was in static state originally in different frame of video, to rotate demonstration; Remain unchanged with respect to the display direction of said display frame and keep this static destination object if desired; Then need destination object in all frame of video to remain unchanged with respect to the display direction of display frame; And the acquisition process operation that realizes this purpose need be considered the rotation situation of electronic equipment, and in implementation one, gravity direction is set to reference direction; Follow-uply carry out handled based on the current direction of electronic equipment with respect to the variation of gravity direction, concrete processing procedure will be described in detail in the back.
This function of gravity sensing has obtained actual application on electronic equipments such as digital camera, mobile phone, flat board, when device orientation changed, the demonstration and the icon arrangement of screen changed thereupon.
Therefore; In specific embodiment of the present invention; Can be set to reference direction by gravity direction; Be that existing gravity sensor comes the present direction of perception mobile phone to determine whether to carry out acquisition process operation with respect to the variation of gravity direction in the electronic equipment capable of using, and how carry out acquisition process operation.
The direction of said electronic equipment when reference direction begins for the video of gathering said destination object
Describe the rotation situation of electronic equipment under first kind of mode as a reference with an absolute direction, and the current direction of electronic equipment is carried out handled with respect to the variation of gravity direction.
Yet; For video capture; Two sections different video files; Destination object remains unchanged with respect to the display direction of display frame in the video file that need not consider the video file of current shooting and take before two days, remains unchanged with respect to the display direction of display frame and gets final product and only need keep destination object in the video file that current shooting obtains.Therefore, this reference direction also can be a relative direction that changes with different situations, the direction of said electronic equipment when the video of promptly gathering said destination object begins.
When the homogeneous video acquisition does not begin; The direction of electronic equipment is all inequality; But need only the rotation situation of the direction of said electronic equipment when the electronic equipment direction begins with respect to this video in this video acquisition process of record; Just can carry out subsequent treatment, keep this and obtain video file when playing, the destination object in the display frame remains unchanged/perhaps changes in a thresholding with respect to the display direction of said display frame.
The rotation situation of the direction of said electronic equipment also has a lot of senser elements to realize when beginning for the current direction of recorded electronic equipment and this video in the prior art, does not specify at this.
The electronic equipment that the embodiment of the invention provides comprises:
Mainboard;
Preserve the unit, be electrically connected with said mainboard; It can be any built-in or external memory device, like hard disk, flash memory etc.;
Image acquisition units is electrically connected with said mainboard, is used to gather the image acquisition units of video;
Detecting unit is electrically connected with said mainboard, is used to detect said electronic equipment directioin parameter;
Processor; Be electrically connected with said mainboard; Be used in the process of gathering the video of a destination object through said collecting unit; Obtain the directioin parameter of said detection, and whether change with respect to a reference direction, obtain a judged result according to the current direction that said directioin parameter obtains said electronic equipment; When said judged result indicates said current direction to change with respect to said reference direction; Carry out an acquisition process operation, so that the data that collect according to said image acquisition units generate and store the video file of said preservation unit when playing, the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
Above-mentioned electronic equipment, wherein as shown in Figure 4, said processor specifically comprises:
The directioin parameter acquiring unit is used for the process of gathering the video of a destination object through said collecting unit, obtains the directioin parameter of said detection;
Judging unit, whether the current direction that is used for obtaining according to said directioin parameter said electronic equipment changes with respect to a reference direction, obtains a judged result;
The acquisition process unit; Be used for when said judged result indicates said current direction to change with respect to said reference direction; Carry out an acquisition process operation; So that the video file that the data that collect according to said image acquisition units generate and store is when playing, the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
Above-mentioned electronic equipment, wherein, said acquisition process unit specifically comprises:
The frame of video acquisition module is used to obtain the original video frame that data that image acquisition units collects obtain;
The rotation processing module; Be used for when said judged result indicates said current direction to change with respect to said reference direction; Said original video frame carrying out rotary manipulation, obtain the target video frame, otherwise direct said original video frame is as the target video frame;
Wherein, all target video frames of forming said video file are when playing, and the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
Above-mentioned electronic equipment, wherein, said acquisition process unit specifically comprises:
The frame of video acquisition module is used to obtain the original video frame that data that image acquisition units collects obtain;
Logging modle; Be used for when said judged result indicates said current direction to change with respect to said reference direction; Write down the corresponding rotation information of said original video frame; Make playout software after receiving said original video frame, said original video frame is carried out rotary manipulation, obtain playing behind the target video frame according to said rotation information; All target video frames that guarantee to form said video file are when playing, and the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
Above-mentioned electronic equipment; Wherein, Said judging unit specifically is used for calculating the anglec of rotation and the direction of rotation of the current direction of said electronic equipment with respect to said reference direction according to said directioin parameter; And in the said anglec of rotation greater than 0 o'clock, obtain the judged result that the said current direction of indication changes with respect to said reference direction, otherwise obtain the judged result that the said current direction of indication does not change with respect to said reference direction;
Said rotary manipulation is specially said original video frame said anglec of rotation of rotary manipulation on the direction opposite with said direction of rotation.
Above-mentioned electronic equipment; Wherein, Said judging unit specifically is used for calculating the anglec of rotation and the direction of rotation of the current direction of said electronic equipment with respect to said reference direction according to said directioin parameter; According to anglec of rotation interval of writing down in advance and the corresponding relation between the angle on target, confirm the interval first corresponding angle on target of first anglec of rotation at said anglec of rotation place; And in the said anglec of rotation greater than 0 o'clock, obtain the judged result that the said current direction of indication changes with respect to said reference direction, otherwise obtain the judged result that the said current direction of indication does not change with respect to said reference direction;
Said rotary manipulation is specially said original video frame is rotated said first angle on target on the direction opposite with said direction of rotation.
Above-mentioned electronic equipment, wherein, said reference direction is the direction of gravity direction or the video of gathering said destination object said electronic equipment when beginning.
Many functional parts described in this specification all are called as module, so that stress the independence of its implementation more especially.
In the embodiment of the invention, module can realize with software, so that carried out by various types of processors.For instance, the executable code module of a sign can comprise the one or more physics or the logical block of computer instruction, and for instance, it can be built as object, process or function.However, the executable code of institute's identification module need not to be physically located in together, but can comprise the different instruction on being stored in the coordination not, when combining on these command logics, and its composition module and realize the regulation purpose of this module.
In fact, executable code module can be individual instructions or many instructions, and even can be distributed on a plurality of different code segments, be distributed in the middle of the distinct program, and cross over a plurality of memory devices and distribute.Likewise, operating data can be identified in module, and can realize and be organized in the data structure of any suitable type according to any suitable form.Said operating data can be used as the individual data collection and is collected, and perhaps can be distributed on the diverse location (to be included on the different storage device), and can only be present on system or the network as electronic signal at least in part.
When module can utilize software to realize; Consider the level of existing hardware technology; So can be with the module of software realization; Do not considering under the condition of cost that those skilled in the art can build the corresponding hardware circuit and realize corresponding function, said hardware circuit comprises conventional ultra-large integrated (VLSI) circuit or gate array and the existing semiconductor such as logic chip, transistor or other discrete element.Module can also be used programmable hardware device, such as realizations such as field programmable gate array, programmable logic array, programmable logic devices.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (13)

1. a video acquisition processing method is used for an electronic equipment, and said electronic equipment has the image acquisition units and the detecting unit that is used to detect said electronic equipment directioin parameter that is used to gather video, it is characterized in that said method comprises:
In the process of the video of gathering a destination object through said collecting unit, obtain the directioin parameter of said detection;
Whether the current direction of obtaining said electronic equipment according to said directioin parameter changes with respect to a reference direction, obtains a judged result;
When said judged result indicates said current direction to change with respect to said reference direction; Carry out an acquisition process operation; So that the video file that the data that collect according to said image acquisition units generate and store is when playing, the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
2. video acquisition processing method according to claim 1 is characterized in that, and is said when said judged result indicates said current direction to change with respect to said reference direction, carries out an acquisition process operation and specifically comprises:
Obtain the original video frame that data that image acquisition units collects obtain;
When said judged result indicates said current direction to change with respect to said reference direction, said original video frame carrying out rotary manipulation, obtain the target video frame, otherwise direct said original video frame is as the target video frame;
Wherein, all target video frames of forming said video file are when playing, and the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
3. video acquisition processing method according to claim 1 is characterized in that, and is said when said judged result indicates said current direction to change with respect to said reference direction, carries out an acquisition process operation and specifically comprises:
Obtain the original video frame that data that image acquisition units collects obtain;
When said judged result indicates said current direction to change with respect to said reference direction; Write down the corresponding rotation information of said original video frame; Make playout software after receiving said original video frame; According to said rotation information said original video frame is carried out rotary manipulation; Obtain playing behind the target video frame, all target video frames that guarantee to form said video file are when playing, and the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
4. according to claim 2 or 3 described video acquisition processing methods, it is characterized in that, saidly judge that according to said directioin parameter whether the current direction of said electronic equipment changes with respect to a reference direction, obtains a judged result and is specially:
Calculate the anglec of rotation and the direction of rotation of the current direction of said electronic equipment according to said directioin parameter with respect to said reference direction; The said anglec of rotation was greater than 0 o'clock, and said judged result indicates said current direction to change with respect to said reference direction, otherwise indicated said current direction not change with respect to said reference direction;
Said rotary manipulation is specially:
With said original video frame said anglec of rotation of rotary manipulation on the direction opposite with said direction of rotation.
5. according to claim 2 or 3 described video acquisition processing methods, it is characterized in that, saidly judge that according to said directioin parameter whether the current direction of said electronic equipment changes with respect to a reference direction, obtains a judged result and is specially:
Calculate the anglec of rotation and the direction of rotation of the current direction of said electronic equipment according to said directioin parameter with respect to said reference direction;
According to anglec of rotation interval of writing down in advance and the corresponding relation between the angle on target, confirm the interval first corresponding angle on target of first anglec of rotation at said anglec of rotation place; The said anglec of rotation was greater than 0 o'clock, and said judged result indicates said current direction to change with respect to said reference direction, otherwise indicated said current direction not change with respect to said reference direction;
Said rotary manipulation is specially:
Said original video frame is rotated said first angle on target on the direction opposite with said direction of rotation.
6. according to any described video acquisition processing method in the claim 1,2 or 3, it is characterized in that said reference direction is:
Gravity direction; Or
When the video of gathering said destination object begins, the direction of said electronic equipment.
7. an electronic equipment is characterized in that, comprising:
Mainboard;
Preserve the unit, be electrically connected with said mainboard;
Image acquisition units is electrically connected with said mainboard, is used to gather the image acquisition units of video;
Detecting unit is electrically connected with said mainboard, is used to detect said electronic equipment directioin parameter;
Processor; Be electrically connected with said mainboard; Be used in the process of gathering the video of a destination object through said collecting unit; Obtain the directioin parameter of said detection, and whether change with respect to a reference direction, obtain a judged result according to the current direction that said directioin parameter obtains said electronic equipment; When said judged result indicates said current direction to change with respect to said reference direction; Carry out an acquisition process operation, so that the data that collect according to said image acquisition units generate and store the video file of said preservation unit when playing, the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
8. electronic equipment according to claim 7 is characterized in that, said processor specifically comprises:
The directioin parameter acquiring unit is used for the process of gathering the video of a destination object through said collecting unit, obtains the directioin parameter of said detection;
Judging unit, whether the current direction that is used for obtaining according to said directioin parameter said electronic equipment changes with respect to a reference direction, obtains a judged result;
The acquisition process unit; Be used for when said judged result indicates said current direction to change with respect to said reference direction; Carry out an acquisition process operation; So that the video file that the data that collect according to said image acquisition units generate and store is when playing, the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
9. electronic equipment according to claim 8 is characterized in that, said acquisition process unit specifically comprises:
The frame of video acquisition module is used to obtain the original video frame that data that image acquisition units collects obtain;
The rotation processing module; Be used for when said judged result indicates said current direction to change with respect to said reference direction; Said original video frame carrying out rotary manipulation, obtain the target video frame, otherwise direct said original video frame is as the target video frame;
Wherein, all target video frames of forming said video file are when playing, and the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
10. electronic equipment according to claim 8 is characterized in that, said acquisition process unit specifically comprises:
The frame of video acquisition module is used to obtain the original video frame that data that image acquisition units collects obtain;
Logging modle; Be used for when said judged result indicates said current direction to change with respect to said reference direction; Write down the corresponding rotation information of said original video frame; Make playout software after receiving said original video frame, said original video frame is carried out rotary manipulation, obtain playing behind the target video frame according to said rotation information; All target video frames that guarantee to form said video file are when playing, and the destination object in the display frame is lower than preset thresholding with respect to the variation of the display direction of display frame.
11. according to claim 9 or 10 described electronic equipments; It is characterized in that; Said judging unit specifically is used for calculating the anglec of rotation and the direction of rotation of the current direction of said electronic equipment with respect to said reference direction according to said directioin parameter; And in the said anglec of rotation greater than 0 o'clock, obtain the judged result that the said current direction of indication changes with respect to said reference direction, otherwise obtain the judged result that the said current direction of indication does not change with respect to said reference direction;
Said rotary manipulation is specially said original video frame said anglec of rotation of rotary manipulation on the direction opposite with said direction of rotation.
12. according to claim 9 or 10 described electronic equipments; It is characterized in that; Said judging unit specifically is used for calculating the anglec of rotation and the direction of rotation of the current direction of said electronic equipment with respect to said reference direction according to said directioin parameter; According to anglec of rotation interval of writing down in advance and the corresponding relation between the angle on target, confirm the interval first corresponding angle on target of first anglec of rotation at said anglec of rotation place; And in the said anglec of rotation greater than 0 o'clock, obtain the judged result that the said current direction of indication changes with respect to said reference direction, otherwise obtain the judged result that the said current direction of indication does not change with respect to said reference direction;
Said rotary manipulation is specially said original video frame is rotated said first angle on target on the direction opposite with said direction of rotation.
13., it is characterized in that said reference direction is the direction of gravity direction or the video of gathering said destination object said electronic equipment when beginning according to any described electronic equipment in the claim 7,8,9 or 10.
CN201110167610.7A 2011-06-21 2011-06-21 A kind of video acquisition processing method and portable electric appts Active CN102843496B (en)

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 true CN102843496A (en) 2012-12-26
CN102843496B 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)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347026A (en) * 2013-07-11 2013-10-09 合一网络科技(北京)有限公司 Self-adaptive rotation device and method of streaming media during playback
CN104202556A (en) * 2014-09-24 2014-12-10 北京智谷睿拓技术服务有限公司 Information acquisition method and device as well as user equipment
CN104935857A (en) * 2015-06-10 2015-09-23 联想(北京)有限公司 Video processing method and electronic equipment
CN105227963A (en) * 2015-08-31 2016-01-06 北京暴风科技股份有限公司 Streaming Media collection is carried out to terminal and automatically identifies direction and the method and system of adjustment
CN106527911A (en) * 2016-10-26 2017-03-22 广东小天才科技有限公司 Terminal player control method and apparatus
WO2017084100A1 (en) * 2015-11-20 2017-05-26 华为技术有限公司 Terminal operation method and terminal
CN106973331A (en) * 2017-03-17 2017-07-21 福建中金在线信息科技有限公司 A kind of video broadcasting method and device
CN107592446A (en) * 2016-07-06 2018-01-16 腾讯科技(深圳)有限公司 A kind of method of video image processing, apparatus and system
CN107613143A (en) * 2017-10-20 2018-01-19 深圳市普天宜通技术股份有限公司 A kind of video rotational display method, storage device and mobile terminal
CN108377322A (en) * 2017-01-30 2018-08-07 佳能株式会社 Photographic device with automated graphics display pattern and its control
WO2018214035A1 (en) * 2017-05-23 2018-11-29 华为技术有限公司 Method and apparatus for processing multimedia file
WO2018228021A1 (en) * 2017-06-16 2018-12-20 北京京东尚科信息技术有限公司 Method and apparatus for determining target rotation direction, computer readable medium and electronic device
CN110737336A (en) * 2019-10-12 2020-01-31 Oppo广东移动通信有限公司 video display direction adjusting method, device and computer readable storage medium
CN111263212A (en) * 2020-03-11 2020-06-09 北京弘远博学科技有限公司 Video recording tool based on Android system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534589A (en) * 2003-02-07 2004-10-06 �ձ�������ʽ���� Portable electronic apparatus, display direction converting method and recording medium
CN1617041A (en) * 2003-11-14 2005-05-18 联想(北京)有限公司 Method for correcting digital picture display
US20070085914A1 (en) * 2005-10-14 2007-04-19 Samsung Electronics Co., Ltd. Apparatus and method for photographing erect image in portable communication terminal
CN101068309A (en) * 2007-05-24 2007-11-07 中兴通讯股份有限公司 Method and device for automatic rotating mobile terminal camera head shooting results

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534589A (en) * 2003-02-07 2004-10-06 �ձ�������ʽ���� Portable electronic apparatus, display direction converting method and recording medium
CN1617041A (en) * 2003-11-14 2005-05-18 联想(北京)有限公司 Method for correcting digital picture display
US20070085914A1 (en) * 2005-10-14 2007-04-19 Samsung Electronics Co., Ltd. Apparatus and method for photographing erect image in portable communication terminal
CN101068309A (en) * 2007-05-24 2007-11-07 中兴通讯股份有限公司 Method and device for automatic rotating mobile terminal camera head shooting results

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347026A (en) * 2013-07-11 2013-10-09 合一网络科技(北京)有限公司 Self-adaptive rotation device and method of streaming media during playback
CN103347026B (en) * 2013-07-11 2017-02-08 合一网络技术(北京)有限公司 Self-adaptive rotation device and method of streaming media during playback
CN104202556A (en) * 2014-09-24 2014-12-10 北京智谷睿拓技术服务有限公司 Information acquisition method and device as well as user equipment
CN104935857A (en) * 2015-06-10 2015-09-23 联想(北京)有限公司 Video processing method and electronic equipment
CN105227963A (en) * 2015-08-31 2016-01-06 北京暴风科技股份有限公司 Streaming Media collection is carried out to terminal and automatically identifies direction and the method and system of adjustment
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
WO2017084100A1 (en) * 2015-11-20 2017-05-26 华为技术有限公司 Terminal operation method and terminal
CN107592446B (en) * 2016-07-06 2020-06-05 腾讯科技(深圳)有限公司 Video image processing method, device and system
CN107592446A (en) * 2016-07-06 2018-01-16 腾讯科技(深圳)有限公司 A kind of method of video image processing, apparatus and system
CN106527911A (en) * 2016-10-26 2017-03-22 广东小天才科技有限公司 Terminal player control method and apparatus
CN108377322A (en) * 2017-01-30 2018-08-07 佳能株式会社 Photographic device with automated graphics display pattern and its control
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
WO2018228021A1 (en) * 2017-06-16 2018-12-20 北京京东尚科信息技术有限公司 Method and apparatus for determining target rotation direction, computer readable medium and electronic device
US11120269B2 (en) 2017-06-16 2021-09-14 Beijing Jingdong Shangke Information Technology Co., Ltd. Method and apparatus for determining target rotation direction, computer readable medium and electronic device
CN107613143A (en) * 2017-10-20 2018-01-19 深圳市普天宜通技术股份有限公司 A kind of video rotational display method, storage device and mobile terminal
CN107613143B (en) * 2017-10-20 2020-05-01 深圳市普天宜通技术股份有限公司 Video rotation display method, storage device and mobile terminal
CN110737336A (en) * 2019-10-12 2020-01-31 Oppo广东移动通信有限公司 video display direction adjusting method, device and computer readable storage medium
CN111263212A (en) * 2020-03-11 2020-06-09 北京弘远博学科技有限公司 Video recording tool based on Android system

Also Published As

Publication number Publication date
CN102843496B (en) 2016-04-27

Similar Documents

Publication Publication Date Title
CN102843496B (en) A kind of video acquisition processing method and portable electric appts
US10129462B2 (en) Camera augmented reality based activity history tracking
CN104349044B (en) The image pickup method and electronic equipment of panoramic picture
CN108876854B (en) Method, device and equipment for relocating camera attitude tracking process and storage medium
US8300098B1 (en) Techniques for providing access to video data using a network attached storage device
EP2731371B1 (en) Method and device for user terminal pairing
US20110304688A1 (en) Panoramic camera and method for capturing panoramic photos
US9589321B2 (en) Systems and methods for animating a view of a composite image
US9854160B2 (en) Systems and methods for autonomously generating photo summaries
KR102659504B1 (en) Electronic device for capturing image based on difference between a plurality of images and method thereof
KR20130129458A (en) Dynamic template tracking
CN101068309A (en) Method and device for automatic rotating mobile terminal camera head shooting results
US20150002698A1 (en) Inclination angle compensation system and method for picture
US20070253682A1 (en) Video recording and playing system and signal pickup method for the same
CN107870999B (en) Multimedia playing method, device, storage medium and electronic equipment
US9805184B2 (en) Method of unlocking an electronic device based on motion recognitions, motion recognition unlocking system, and electronic device including the same
US20160295078A1 (en) Synchronizing wireless sensor data and video
US20120281888A1 (en) Electronic apparatus and image display method
JP5819488B2 (en) Adjusting a transmissive display with an image capture device
US20160127651A1 (en) Electronic device and method for capturing image using assistant icon
CN104267892A (en) Orientation adjustment method and device
US20130083194A1 (en) Video monitoring server and method
US20130094829A1 (en) Real-time image editing method and electronic device
US20140267806A1 (en) Device and method for processing video content
CN103823654A (en) Information processing method and electronic 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
C14 Grant of patent or utility model
GR01 Patent grant