CN106250084B - video recording method, device and mobile terminal - Google Patents

video recording method, device and mobile terminal Download PDF

Info

Publication number
CN106250084B
CN106250084B CN201610616036.1A CN201610616036A CN106250084B CN 106250084 B CN106250084 B CN 106250084B CN 201610616036 A CN201610616036 A CN 201610616036A CN 106250084 B CN106250084 B CN 106250084B
Authority
CN
China
Prior art keywords
visual angle
current shooting
image sensor
video recording
target
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.)
Expired - Fee Related
Application number
CN201610616036.1A
Other languages
Chinese (zh)
Other versions
CN106250084A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610616036.1A priority Critical patent/CN106250084B/en
Publication of CN106250084A publication Critical patent/CN106250084A/en
Application granted granted Critical
Publication of CN106250084B publication Critical patent/CN106250084B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Studio Devices (AREA)

Abstract

The present invention proposes a kind of video recording method, device and mobile terminal, when the video recording method is included in the visual angle of user's triggering locking video record, obtains the visual angle of scene to be recorded, and be used as aspect;Start timer timing, obtain timing time;Judge whether timing time reaches preset time threshold;If timing time reaches preset time threshold, current shooting visual angle is obtained;And according to aspect and the driving imaging sensor movement of current shooting viewing angle control MEMS so that current shooting visual angle is recovered to aspect.By MEMS imaging sensor can be driven to move by the present invention, visual angle is locked during user uses mobile terminal recorded video, strengthens video record effect, Consumer's Experience is lifted.

Description

Video recording method and device and mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a video recording method and device and a mobile terminal.
Background
When a user uses a video recording application program on the mobile terminal, the user needs to lock the video recording visual angle, for example, in a certain range, the user wants to rotate the video recording module of the mobile terminal no matter how, and the direction of the video recording visual angle of the mobile terminal is fixed.
In the related art, a function of locking a video recording view angle in a video recording application program of a mobile terminal is not realized.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, an object of the present invention is to provide a video recording method, which can lock a viewing angle during a process of recording a video by a user using a mobile terminal, enhance a video recording effect, and improve user experience.
Another object of the present invention is to provide a video recording apparatus.
Another object of the present invention is to provide a mobile terminal.
In order to achieve the above object, an embodiment of the present invention provides a video recording method, including: when a user triggers and locks a video recording visual angle, acquiring the visual angle of a scene to be recorded and using the visual angle as a target visual angle; starting a timer to time to obtain the timing time; judging whether the timing time reaches a preset time threshold value or not; if the timing time reaches the preset time threshold, acquiring a current shooting visual angle; and controlling a micro-electro-mechanical system to drive an image sensor to move according to the target visual angle and the current shooting visual angle so as to restore the current shooting visual angle to the target visual angle.
According to the video recording method provided by the embodiment of the first aspect of the invention, the visual angle of a scene to be recorded is acquired as the target visual angle, the micro-electro-mechanical system is controlled to drive the image sensor to move according to the target visual angle and the current shooting visual angle so as to restore the current shooting visual angle to the target visual angle, the image sensor can be driven to move through the micro-electro-mechanical system, the visual angle is locked in the process of recording a video by a user through the mobile terminal, the video recording effect is enhanced, and the user experience is improved.
In order to achieve the above object, a video recording apparatus according to a second aspect of the present invention includes: the first acquisition module is used for acquiring the visual angle of a scene to be recorded as a target visual angle when a user triggers and locks the visual angle of video recording; the starting module is used for starting a timer to time and acquiring the timing time; the judging module is used for judging whether the timing time reaches a preset time threshold value; the second acquisition module is used for acquiring the current shooting visual angle when the timing time reaches the preset time threshold; and the driving module is used for controlling the micro-electromechanical system to drive the image sensor to move according to the target visual angle and the current shooting visual angle so as to restore the current shooting visual angle to the target visual angle.
In the video recording device provided by the embodiment of the second aspect of the invention, the visual angle of the scene to be recorded is acquired as the target visual angle, the micro-electromechanical system is controlled to drive the image sensor to move according to the target visual angle and the current shooting visual angle so as to restore the current shooting visual angle to the target visual angle, the image sensor can be driven to move through the micro-electromechanical system, the visual angle is locked when a user records a video by using the mobile terminal, the video recording effect is enhanced, and the user experience is improved.
In order to achieve the above object, an embodiment of a third aspect of the present invention provides a mobile terminal, including: the imaging module comprises a shell and an imaging module; wherein, the formation of image module is located in the casing, the formation of image module includes: the camera comprises an imaging lens and an image sensor arranged on an imaging surface of the imaging lens; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing: when a user triggers and locks a video recording visual angle, acquiring the visual angle of a scene to be recorded and using the visual angle as a target visual angle; starting a timer to time to obtain the timing time; judging whether the timing time reaches a preset time threshold value or not; if the timing time reaches the preset time threshold, acquiring a current shooting visual angle; and controlling a micro-electro-mechanical system to drive an image sensor to move according to the target visual angle and the current shooting visual angle so as to restore the current shooting visual angle to the target visual angle.
According to the mobile terminal provided by the embodiment of the third aspect of the invention, the visual angle of the scene to be recorded is acquired as the target visual angle, the micro-electro-mechanical system is controlled to drive the image sensor to move according to the target visual angle and the current shooting visual angle so as to restore the current shooting visual angle to the target visual angle, the image sensor can be driven to move through the micro-electro-mechanical system, the visual angle is locked in the process of recording videos by a user through the mobile terminal, the video recording effect is enhanced, and the user experience is improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a video recording method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a video recording method according to another embodiment of the present invention;
fig. 3 is a schematic flowchart of a video recording method according to another embodiment of the present invention;
fig. 4 is a flowchart illustrating a video recording method according to another embodiment of the present invention;
fig. 5 is a flowchart illustrating a video recording method according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a video recording apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a video recording apparatus according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a flowchart illustrating a video recording method according to an embodiment of the present invention. In this embodiment, a mobile terminal (e.g., a mobile phone) with a shooting function is taken as an example, and an imaging module is disposed in the mobile terminal for shooting.
With the development of mobile terminals, hardware in the mobile terminals is also being upgraded, for example, Micro Electro Mechanical Systems (MEMS) is being adopted in the mobile terminals. MEMS can be used in a variety of modules.
When being applied to the formation of image module with MEMS, the formation of image module includes: MEMS, camera, etc.
In general, a MEMS is mounted with an image sensor in a camera, and the MEMS can be moved by mounting the image sensor with a driving voltage.
In this embodiment, the MEMS carries all other modules in the imaging module, so that the imaging module can move as a whole.
Referring to fig. 1, the video recording method includes:
s11: when a user triggers and locks a video recording visual angle, the visual angle of a scene to be recorded is obtained and is used as a target visual angle.
In the embodiment of the present invention, the scene to be recorded may be, for example, an object, a person, a scene, and the like, which are recorded by a user using a mobile terminal.
Optionally, when the user uses the video recording application program in the mobile terminal to record video, the user may trigger and lock the view angle of the video recording through a preset button on the screen of the mobile terminal, or may trigger and lock the view angle of the video recording through an external button of the mobile terminal (for example, a button on a selfie stick that fixes the mobile terminal), and when the user triggers and locks the view angle of the video recording, the user may automatically acquire the view angle of the scene to be recorded through an operating system of the mobile terminal, where the vertical view angle may be referred to as a target view angle.
The view angle of the scene to be recorded may be, for example, a spatial coordinate where a camera with an internal image sensor is located is used as a reference point, and the view angle of the spatial coordinate of the scene to be recorded relative to the reference point is not limited thereto.
In the embodiment of the invention, a micro-electromechanical system can be controlled to drive an image sensor to move through a target visual angle and a current shooting visual angle so as to restore the current shooting visual angle to the target visual angle.
S12: and starting a timer to time, and acquiring the timing time.
In the embodiment of the invention, the timer can be started to time while the target visual angle is collected, so that the timing time is obtained, the mobile terminal can drive the image sensor to move according to the judgment result of whether the timing time reaches the preset time threshold value, so that the current shooting visual angle is recovered to the target visual angle, and because the image sensor is not driven to move every moment, the memory consumption of the mobile terminal can be effectively saved, and the video recording efficiency is improved.
S13: and judging whether the timing time reaches a preset time threshold value.
In the embodiment of the present invention, the preset time threshold may be preset by a factory program of the mobile terminal, or the preset time threshold may also be set by a user, which is not limited to this.
Further, the preset time threshold may be determined according to a frame rate of the user recording the video.
S14: and if the timing time reaches a preset time threshold, acquiring the current shooting visual angle.
In the embodiment of the invention, when the timing time reaches the preset time threshold, the current shooting visual angle can be acquired, so that the micro-electro-mechanical system is controlled to drive the image sensor to move according to the target visual angle and the current shooting visual angle, and the current shooting visual angle is recovered to the target visual angle.
S15: and controlling the micro-electro-mechanical system to drive the image sensor to move according to the target visual angle and the current shooting visual angle so as to restore the current shooting visual angle to the target visual angle.
In the embodiment of the invention, the image sensor can be driven to move by the micro-electromechanical system so as to restore the current shooting visual angle to the target visual angle.
Optionally, when the timing time reaches a preset time threshold, a current shooting visual angle is obtained, the micro-electromechanical system is controlled to drive the image sensor to move according to the target visual angle and the current shooting visual angle so as to enable the image sensor to recover to the target visual angle, when the timing time does not reach the preset time threshold, no processing is performed, and as the mobile terminal does not shake greatly at every moment in the process of recording the video, the mobile terminal is triggered to move when the image sensor needs to be driven to move so as to enable the current shooting visual angle to recover to the target visual angle, so that the memory consumption of the mobile terminal is effectively saved, and the applicability of the method is improved.
Optionally, in some embodiments, referring to fig. 2, step S15 specifically includes:
s21: and marking the direction of the target visual angle by adopting a Z coordinate axis in a space rectangular coordinate system, wherein the space rectangular coordinate system comprises an X coordinate axis, a Y coordinate axis and a Z coordinate axis.
The spatial position of the image sensor may be marked by an X coordinate axis, a Y coordinate axis, and a Z coordinate axis in a rectangular spatial coordinate system, where the size of a horizontal front-back direction value of the position of the image sensor may be marked by the X coordinate axis, the size of a horizontal left-right direction value of the position of the image sensor may be marked by the Y coordinate axis, and the direction of a vertical viewing angle between the image sensor and a scene to be recorded may be marked by the Z axis, which is not limited to this.
In the embodiment of the present invention, the direction of the image sensor relative to the viewing angle of the scene to be recorded, that is, the direction of the target viewing angle, may be marked by using a Z coordinate axis in a spatial rectangular coordinate system.
S22: and controlling the micro-electro-mechanical system to drive the image sensor to move so as to restore the current shooting visual angle to the direction consistent with the direction of the target visual angle.
In the embodiment of the invention, the micro-electro-mechanical system can be controlled to drive the image sensor to move so as to restore the current shooting visual angle to the direction consistent with the direction of the target visual angle, so that the moved image sensor is adopted to record the scene to be recorded, the visual angle can be locked, and the user experience is improved.
In this embodiment, the direction of the target view angle is marked by using a Z coordinate axis in a spatial rectangular coordinate system, where the spatial rectangular coordinate system includes an X coordinate axis, a Y coordinate axis, and a Z coordinate axis, and the image sensor is driven to move so as to restore the current shooting view angle to the direction consistent with the direction of the target view angle, so that the view angle can be locked in the process of recording a video by a user using the mobile terminal.
In some embodiments, referring to fig. 3, step S15 is followed by:
s31: and acquiring a current shooting visual angle at a preset time threshold, and repeatedly controlling the micro-electro-mechanical system to drive the image sensor to move according to the target visual angle and the current shooting visual angle so as to restore the current shooting visual angle to the target visual angle.
Optionally, the current shooting visual angle can be obtained at intervals of a preset time threshold, and the micro-electromechanical system is controlled to drive the image sensor to move according to the target visual angle and the current shooting visual angle, so that the current shooting visual angle is recovered to the target visual angle, a scene to be recorded is recorded by adopting the moved image sensor, the mobile terminal can periodically move the image sensor in the whole video recording process, the current shooting visual angle is recovered to the target visual angle, the video recording stability is ensured, and the user experience is improved.
Optionally, in some embodiments, referring to fig. 4, after step S15, the method further includes:
s41: and acquiring the current space position of the image sensor after the current shooting visual angle is restored to the target visual angle.
Alternatively, the current spatial position of the image sensor may be marked by a rectangular spatial coordinate system, for example, the horizontal front-back direction numerical value of the position of the image sensor may be marked by the X coordinate axis, and the horizontal left-right direction numerical value of the position of the image sensor may be marked by the Y coordinate axis.
S42: and calculating a first numerical range which can be moved in the X coordinate axis direction and a second numerical range which can be moved in the Y coordinate axis direction of the image sensor according to the current space position.
It is understood that the mobile terminal may consider that the current viewing angle is not shifted within a slight shift range, for example, when the mobile terminal is shifted by 0.01 degrees. Therefore, in the embodiment of the present invention, a first numerical range that the image sensor can move in the X coordinate axis direction and a second numerical range that the image sensor can move in the Y coordinate axis direction may be calculated according to the current spatial position, wherein the first numerical range and the second numerical range may be marked by an angle range, and the first numerical range and the second numerical range are used to represent: when the mobile terminal generates displacement within the range, the current viewing angle of the mobile terminal may be considered as not being shifted, which is not limited.
Optionally, a first numerical range capable of moving in the X coordinate axis direction and a second numerical range capable of moving in the Y coordinate axis direction of the image sensor are calculated according to the current spatial position of the image sensor, so that the first numerical range and the second numerical range are displayed to a user, the user is prompted, and user experience can be effectively improved.
S43: and displaying the first numerical range and the second numerical range to a user so as to prompt the user.
Optionally, when a first numerical range that the image sensor can move in the X coordinate axis direction and a second numerical range that the image sensor can move in the Y coordinate axis direction are calculated, the first numerical range and the second numerical range are displayed to the user, and the user is prompted about the maximum movable range of the camera.
In the embodiment, the current spatial position of the image sensor is acquired, the first numerical range capable of moving in the X coordinate axis direction and the second numerical range capable of moving in the Y coordinate axis direction of the image sensor are calculated according to the current spatial position, and the first numerical range and the second numerical range are displayed for the user so as to prompt the user, so that the maximum movable range of the image sensor of the user mobile terminal can be prompted, and the user experience is effectively improved.
Optionally, in some embodiments, referring to fig. 5, after step S15, the method may further include:
s51: whether the user cancels the locking of the video recording visual angle or whether the user stops recording the video is detected.
Optionally, whether the user cancels the locking of the view angle of the video recording or whether the user stops recording the video is detected, and when the user cancels the locking of the view angle of the video recording or stops recording the video, the subsequent steps are triggered.
S52: and if the user cancels the locking of the video recording visual angle, or the user stops recording the video, stopping acquiring the current shooting visual angle.
Optionally, when the user cancels locking the visual angle of the video recording, or when the user stops recording the video, the user stops acquiring the current shooting visual angle, and the visual angle of the video recording can be canceled and locked according to the user's own requirements, so that the practicability of the video recording method of the mobile terminal is improved, and the user experience is improved.
In the embodiment, the visual angle of the scene to be recorded is acquired as the target visual angle, the micro-electromechanical system is controlled to drive the image sensor to move according to the target visual angle and the current shooting visual angle so that the current shooting visual angle is recovered to the target visual angle, the image sensor can be driven to move through the micro-electromechanical system, the visual angle is locked in the process that a user records videos by using the mobile terminal, the video recording effect is enhanced, and the user experience is improved.
Fig. 6 is a schematic structural diagram of a video recording apparatus according to an embodiment of the present invention. The video recording apparatus 600 may be implemented by software, hardware or a combination of both, and the video recording apparatus 600 may include: a first obtaining module 601, a starting module 602, a judging module 603, a second obtaining module 604, and a driving module 605. Wherein,
the first obtaining module 601 is configured to obtain a view of a scene to be recorded when a user triggers to lock a view of a video recording, and use the view as a target view.
The starting module 602 is configured to start a timer to time, and obtain a time.
The determining module 603 is configured to determine whether the timing time reaches a preset time threshold.
The second obtaining module 604 is configured to obtain the current shooting angle when the timing time reaches a preset time threshold.
The driving module 605 is configured to control the mems to drive the image sensor to move according to the target view angle and the current shooting view angle, so that the current shooting view angle is restored to the target view angle.
In some embodiments, referring to fig. 7, the video recording apparatus 600 may further include:
optionally, the second obtaining module 604 is further configured to: and acquiring a current visual angle at intervals of a preset time threshold, and repeatedly controlling the micro-electro-mechanical system to drive the image sensor to move according to the target visual angle and the current shooting visual angle so as to restore the current shooting visual angle to the target visual angle.
Optionally, the driving module 605 includes:
and a marking sub-module 6051 configured to mark a direction of the target view angle with a Z coordinate axis in a spatial rectangular coordinate system, where the spatial rectangular coordinate system includes an X coordinate axis, a Y coordinate axis, and a Z coordinate axis.
And a driving sub-module 6052, configured to control the mems to drive the image sensor to move, so that the current shooting viewing angle is restored to a direction consistent with the direction of the target viewing angle.
And an acquiring module 606, configured to acquire a current spatial position of the image sensor after the current shooting angle of view is restored to the target angle of view.
The calculating module 607 is configured to calculate a first numerical range that the image sensor can move in the X coordinate axis direction and a second numerical range that the image sensor can move in the Y coordinate axis direction according to the current spatial position.
The display module 608 is configured to display the first numerical range and the second numerical range to a user for prompting the user.
The detecting module 609 is configured to detect whether the user cancels the locking of the view angle of the video recording, or whether the user stops recording the video.
The stopping module 610 is configured to stop acquiring the current shooting view angle when the user cancels the locking of the view angle for video recording or stops recording the video.
The determining module 611 is configured to determine a preset time threshold according to a frame rate of a video recorded by a user.
It should be noted that the explanation of the embodiment of the video recording method for the mobile terminal in the foregoing embodiments of fig. 1 to fig. 5 is also applicable to the video recording apparatus for the mobile terminal in this embodiment, and the implementation principle is similar, and is not described herein again.
In the embodiment, the visual angle of the scene to be recorded is acquired as the target visual angle, the micro-electromechanical system is controlled to drive the image sensor to move according to the target visual angle and the current shooting visual angle so that the current shooting visual angle is recovered to the target visual angle, the image sensor can be driven to move through the micro-electromechanical system, the visual angle is locked in the process that a user records videos by using the mobile terminal, the video recording effect is enhanced, and the user experience is improved.
Fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Referring to fig. 8, the mobile terminal 80 includes: casing 81 and formation of image module 82, the formation of image module is located the casing, and the formation of image module includes: MEMS 821, camera 822, processor 823 and memory 824, memory 824 for storing executable program code; the processor 823 executes by reading executable program code stored in the memory 824:
s11': when a user triggers and locks a video recording visual angle, the visual angle of a scene to be recorded is obtained and is used as a target visual angle.
In the embodiment of the present invention, the scene to be recorded may be, for example, an object, a person, a scene, and the like, which are recorded by a user using a mobile terminal.
Optionally, when the user uses the video recording application program in the mobile terminal to record video, the user may trigger and lock the view angle of the video recording through a preset button on the screen of the mobile terminal, or may trigger and lock the view angle of the video recording through an external button of the mobile terminal (for example, a button on a selfie stick that fixes the mobile terminal), and when the user triggers and locks the view angle of the video recording, the user may automatically acquire the view angle of the scene to be recorded through an operating system of the mobile terminal, where the vertical view angle may be referred to as a target view angle.
The view angle of the scene to be recorded may be, for example, a spatial coordinate where a camera with an internal image sensor is located is used as a reference point, and the view angle of the spatial coordinate of the scene to be recorded relative to the reference point is not limited thereto.
In the embodiment of the invention, a micro-electromechanical system can be controlled to drive an image sensor to move through a target visual angle and a current shooting visual angle so as to restore the current shooting visual angle to the target visual angle.
S12': and starting a timer to time, and acquiring the timing time.
In the embodiment of the invention, the timer can be started to time while the target visual angle is collected, so that the timing time is obtained, the mobile terminal can drive the image sensor to move according to the judgment result of whether the timing time reaches the preset time threshold value, so that the current shooting visual angle is recovered to the target visual angle, and because the image sensor is not driven to move every moment, the memory consumption of the mobile terminal can be effectively saved, and the video recording efficiency is improved.
S13': and judging whether the timing time reaches a preset time threshold value.
In the embodiment of the present invention, the preset time threshold may be preset by a factory program of the mobile terminal, or the preset time threshold may also be set by a user, which is not limited to this.
Further, the preset time threshold may be determined according to a frame rate of the user recording the video.
S14': and if the timing time reaches a preset time threshold, acquiring the current shooting visual angle.
In the embodiment of the invention, when the timing time reaches the preset time threshold, the current shooting visual angle can be acquired, so that the micro-electro-mechanical system is controlled to drive the image sensor to move according to the target visual angle and the current shooting visual angle, and the current shooting visual angle is recovered to the target visual angle.
S15': and controlling the micro-electro-mechanical system to drive the image sensor to move according to the target visual angle and the current shooting visual angle so as to restore the current shooting visual angle to the target visual angle.
In the embodiment of the invention, the image sensor can be driven to move by the micro-electromechanical system so as to restore the current shooting visual angle to the target visual angle.
Optionally, when the timing time reaches a preset time threshold, a current shooting visual angle is obtained, the micro-electromechanical system is controlled to drive the image sensor to move according to the target visual angle and the current shooting visual angle so as to enable the image sensor to recover to the target visual angle, when the timing time does not reach the preset time threshold, no processing is performed, and as the mobile terminal does not shake greatly at every moment in the process of recording the video, the mobile terminal is triggered to move when the image sensor needs to be driven to move so as to enable the current shooting visual angle to recover to the target visual angle, so that the memory consumption of the mobile terminal is effectively saved, and the applicability of the method is improved.
In another embodiment, the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of:
s21': and marking the direction of the target visual angle by adopting a Z coordinate axis in a space rectangular coordinate system, wherein the space rectangular coordinate system comprises an X coordinate axis, a Y coordinate axis and a Z coordinate axis.
The spatial position of the image sensor may be marked by an X coordinate axis, a Y coordinate axis, and a Z coordinate axis in a rectangular spatial coordinate system, where the size of a horizontal front-back direction value of the position of the image sensor may be marked by the X coordinate axis, the size of a horizontal left-right direction value of the position of the image sensor may be marked by the Y coordinate axis, and the direction of a vertical viewing angle between the image sensor and a scene to be recorded may be marked by the Z axis, which is not limited to this.
In the embodiment of the present invention, the direction of the image sensor relative to the viewing angle of the scene to be recorded, that is, the direction of the target viewing angle, may be marked by using a Z coordinate axis in a spatial rectangular coordinate system.
S22': and controlling the micro-electro-mechanical system to drive the image sensor to move so as to restore the current shooting visual angle to the direction consistent with the direction of the target visual angle.
In the embodiment of the invention, the micro-electro-mechanical system can be controlled to drive the image sensor to move so as to restore the current shooting visual angle to the direction consistent with the direction of the target visual angle, so that the moved image sensor is adopted to record the scene to be recorded, the visual angle can be locked, and the user experience is improved.
In this embodiment, the direction of the target view angle is marked by using a Z coordinate axis in a spatial rectangular coordinate system, where the spatial rectangular coordinate system includes an X coordinate axis, a Y coordinate axis, and a Z coordinate axis, and the image sensor is driven to move so as to restore the current shooting view angle to the direction consistent with the direction of the target view angle, so that the view angle can be locked in the process of recording a video by a user using the mobile terminal.
In another embodiment, the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of:
s31': and acquiring a current shooting visual angle at a preset time threshold, and repeatedly controlling the micro-electro-mechanical system to drive the image sensor to move according to the target visual angle and the current shooting visual angle so as to restore the current shooting visual angle to the target visual angle.
Optionally, the current shooting visual angle can be obtained at intervals of a preset time threshold, and the micro-electromechanical system is controlled to drive the image sensor to move according to the target visual angle and the current shooting visual angle, so that the current shooting visual angle is recovered to the target visual angle, a scene to be recorded is recorded by adopting the moved image sensor, the mobile terminal can periodically move the image sensor in the whole video recording process, the current shooting visual angle is recovered to the target visual angle, the video recording stability is ensured, and the user experience is improved.
In another embodiment, the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of:
s41': and acquiring the current space position of the image sensor after the current shooting visual angle is restored to the target visual angle.
Alternatively, the current spatial position of the image sensor may be marked by a rectangular spatial coordinate system, for example, the horizontal front-back direction numerical value of the position of the image sensor may be marked by the X coordinate axis, and the horizontal left-right direction numerical value of the position of the image sensor may be marked by the Y coordinate axis.
S42': and calculating a first numerical range which can be moved in the X coordinate axis direction and a second numerical range which can be moved in the Y coordinate axis direction of the image sensor according to the current space position.
It is understood that the mobile terminal may consider that the current viewing angle is not shifted within a slight shift range, for example, when the mobile terminal is shifted by 0.01 degrees. Therefore, in the embodiment of the present invention, a first numerical range that the image sensor can move in the X coordinate axis direction and a second numerical range that the image sensor can move in the Y coordinate axis direction may be calculated according to the current spatial position, wherein the first numerical range and the second numerical range may be marked by an angle range, and the first numerical range and the second numerical range are used to represent: when the mobile terminal generates displacement within the range, the current viewing angle of the mobile terminal may be considered as not being shifted, which is not limited.
Optionally, a first numerical range capable of moving in the X coordinate axis direction and a second numerical range capable of moving in the Y coordinate axis direction of the image sensor are calculated according to the current spatial position of the image sensor, so that the first numerical range and the second numerical range are displayed to a user, the user is prompted, and user experience can be effectively improved.
S43': and displaying the first numerical range and the second numerical range to a user so as to prompt the user.
Optionally, when a first numerical range that the image sensor can move in the X coordinate axis direction and a second numerical range that the image sensor can move in the Y coordinate axis direction are calculated, the first numerical range and the second numerical range are displayed to the user, and the user is prompted about the maximum movable range of the camera.
In the embodiment, the current spatial position of the image sensor is acquired, the first numerical range capable of moving in the X coordinate axis direction and the second numerical range capable of moving in the Y coordinate axis direction of the image sensor are calculated according to the current spatial position, and the first numerical range and the second numerical range are displayed for the user so as to prompt the user, so that the maximum movable range of the image sensor of the user mobile terminal can be prompted, and the user experience is effectively improved.
In another embodiment, the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of:
s51': whether the user cancels the locking of the video recording visual angle or whether the user stops recording the video is detected.
Optionally, whether the user cancels the locking of the view angle of the video recording or whether the user stops recording the video is detected, and when the user cancels the locking of the view angle of the video recording or stops recording the video, the subsequent steps are triggered.
S52': and if the user cancels the locking of the video recording visual angle, or the user stops recording the video, stopping acquiring the current shooting visual angle.
Optionally, when the user cancels locking the visual angle of the video recording, or when the user stops recording the video, the user stops acquiring the current shooting visual angle, and the visual angle of the video recording can be canceled and locked according to the user's own requirements, so that the practicability of the video recording method of the mobile terminal is improved, and the user experience is improved.
In the embodiment, the visual angle of the scene to be recorded is acquired as the target visual angle, the micro-electromechanical system is controlled to drive the image sensor to move according to the target visual angle and the current shooting visual angle so that the current shooting visual angle is recovered to the target visual angle, the image sensor can be driven to move through the micro-electromechanical system, the visual angle is locked in the process that a user records videos by using the mobile terminal, the video recording effect is enhanced, and the user experience is improved.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (11)

1. A method for video recording, comprising the steps of:
when a user triggers and locks a video recording visual angle, acquiring the visual angle of a scene to be recorded and using the visual angle as a target visual angle;
starting a timer to time to obtain the timing time;
judging whether the timing time reaches a preset time threshold value or not;
if the timing time reaches the preset time threshold, acquiring a current shooting visual angle; and
controlling a micro-electro-mechanical system to drive an image sensor to move according to the target visual angle and the current shooting visual angle so as to restore the current shooting visual angle to the target visual angle;
the controlling the micro-electro-mechanical system to drive the image sensor to move according to the target view angle and the current shooting view angle so as to restore the current shooting view angle to the target view angle comprises the following steps:
marking the direction of the target visual angle by adopting a Z coordinate axis in a space rectangular coordinate system, wherein the space rectangular coordinate system comprises an X coordinate axis, a Y coordinate axis and the Z coordinate axis;
and controlling the micro-electro-mechanical system to drive the image sensor to move so as to restore the current shooting visual angle to the direction consistent with the direction of the target visual angle.
2. The video recording method of claim 1, further comprising:
and acquiring a current shooting visual angle every other preset time threshold, and repeatedly controlling a micro-electro-mechanical system to drive an image sensor to move according to the target visual angle and the current shooting visual angle so as to restore the current shooting visual angle to the target visual angle.
3. The video recording method of claim 1, further comprising:
acquiring the current spatial position of the image sensor after the current shooting visual angle is restored to the target visual angle;
calculating a first numerical range which can be moved in the X coordinate axis direction and a second numerical range which can be moved in the Y coordinate axis direction of the image sensor according to the current space position;
and displaying the first numerical range and the second numerical range to the user so as to prompt the user.
4. The video recording method of claim 2, further comprising:
detecting whether the user cancels the locking of the video recording visual angle or whether the user stops recording the video;
and if the user cancels the locking of the video recording visual angle, or the user stops recording the video, stopping acquiring the current shooting visual angle.
5. The video recording method according to claim 1 or 2, further comprising:
and determining the preset time threshold according to the frame rate of the video recorded by the user.
6. A video recording apparatus, comprising:
the first acquisition module is used for acquiring the visual angle of a scene to be recorded as a target visual angle when a user triggers and locks the visual angle of video recording;
the starting module is used for starting a timer to time and acquiring the timing time;
the judging module is used for judging whether the timing time reaches a preset time threshold value;
the second acquisition module is used for acquiring the current shooting visual angle when the timing time reaches the preset time threshold; and
the driving module is used for controlling the micro-electro-mechanical system to drive the image sensor to move according to the target visual angle and the current shooting visual angle so as to enable the current shooting visual angle to be recovered to the target visual angle;
the driving module includes:
the marking sub-module is used for marking the direction of the target visual angle by adopting a Z coordinate axis in a space rectangular coordinate system, wherein the space rectangular coordinate system comprises an X coordinate axis, a Y coordinate axis and the Z coordinate axis;
and the driving submodule is used for controlling the micro-electro-mechanical system to drive the image sensor to move so as to enable the current shooting visual angle to be restored to the direction consistent with the direction of the target visual angle.
7. The video recording device of claim 6, wherein the second obtaining module is further configured to:
and acquiring a current visual angle every other preset time threshold, and repeatedly controlling a micro-electro-mechanical system to drive an image sensor to move according to the target visual angle and the current shooting visual angle so as to restore the current shooting visual angle to the target visual angle.
8. The video recording device of claim 6, further comprising:
the acquisition module is used for acquiring the current spatial position of the image sensor after the current shooting visual angle is restored to the target visual angle;
the calculation module is used for calculating a first numerical range which can be moved in the X coordinate axis direction and a second numerical range which can be moved in the Y coordinate axis direction of the image sensor according to the current spatial position;
and the display module is used for displaying the first numerical range and the second numerical range to the user so as to prompt the user.
9. The video recording device of claim 7, further comprising:
the detection module is used for detecting whether the user cancels the locking of the video recording visual angle or whether the user stops recording the video;
and the stopping module is used for stopping acquiring the current shooting visual angle when the user cancels the locking of the visual angle of the video recording or stops recording the video.
10. The video recording apparatus of claim 6 or 7, further comprising:
and the determining module is used for determining the preset time threshold according to the frame rate of the video recorded by the user.
11. A mobile terminal, comprising: casing and formation of image module, the formation of image module is located in the casing, the formation of image module includes: the camera comprises an imaging lens, an image sensor arranged on an imaging surface of the imaging lens, a processor and a memory, wherein the memory is used for storing executable program codes; the processor executes by reading executable program code stored in the memory:
when a user triggers and locks a video recording visual angle, acquiring the visual angle of a scene to be recorded and using the visual angle as a target visual angle;
starting a timer to time to obtain the timing time;
judging whether the timing time reaches a preset time threshold value or not;
if the timing time reaches the preset time threshold, acquiring a current shooting visual angle; and
controlling a micro-electro-mechanical system to drive an image sensor to move according to the target visual angle and the current shooting visual angle so as to restore the current shooting visual angle to the target visual angle;
the controlling the micro-electro-mechanical system to drive the image sensor to move according to the target view angle and the current shooting view angle so as to restore the current shooting view angle to the target view angle comprises the following steps:
marking the direction of the target visual angle by adopting a Z coordinate axis in a space rectangular coordinate system, wherein the space rectangular coordinate system comprises an X coordinate axis, a Y coordinate axis and the Z coordinate axis;
and controlling the micro-electro-mechanical system to drive the image sensor to move so as to restore the current shooting visual angle to the direction consistent with the direction of the target visual angle.
CN201610616036.1A 2016-07-29 2016-07-29 video recording method, device and mobile terminal Expired - Fee Related CN106250084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610616036.1A CN106250084B (en) 2016-07-29 2016-07-29 video recording method, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610616036.1A CN106250084B (en) 2016-07-29 2016-07-29 video recording method, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN106250084A CN106250084A (en) 2016-12-21
CN106250084B true CN106250084B (en) 2017-08-08

Family

ID=57606014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610616036.1A Expired - Fee Related CN106250084B (en) 2016-07-29 2016-07-29 video recording method, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN106250084B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108337497B (en) * 2018-02-07 2020-10-16 刘智勇 Virtual reality video/image format and shooting, processing and playing methods and devices

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10139623B2 (en) * 2013-06-18 2018-11-27 Microsoft Technology Licensing, Llc Virtual object orientation and visualization
CN105704431B (en) * 2014-11-27 2019-02-12 浙江大华技术股份有限公司 A kind of video monitoring method and system
CN105141828A (en) * 2015-07-08 2015-12-09 成都西可科技有限公司 Method for carrying out recording of motion camera by automatically adjusting view angle after locking scene

Also Published As

Publication number Publication date
CN106250084A (en) 2016-12-21

Similar Documents

Publication Publication Date Title
US8072499B2 (en) Image capture device and method
JP4018695B2 (en) Method and apparatus for continuous focusing and exposure adjustment in a digital imaging device
US9875408B2 (en) Setting apparatus, output method, and non-transitory computer-readable storage medium
US20140354850A1 (en) Device and method for capturing images
US8928754B2 (en) Security system and method
US10061983B2 (en) Tracking apparatus, tracking method, and non-transitory storage medium storing tracking program
CN110771143B (en) Control method of handheld cloud deck, handheld cloud deck and handheld equipment
JP5428966B2 (en) Image display device, image display control method, and program
CN106161942B (en) Shoot the method and apparatus and mobile terminal of moving object
US11310422B2 (en) Imaging apparatus and control method thereof of with determining of driving range in which panning driver or tilting driver rotates imaging unit
US9154693B2 (en) Photographing control apparatus and photographing control method
CN106250084B (en) video recording method, device and mobile terminal
JP5691750B2 (en) Abandoned or taken away detection system and method for detecting a leaving or removed occurrence time in the detection system
CN104737530A (en) Preventing motion artifacts by intelligently disabling video stabilization
JP2015158648A (en) Container, image display system, image display method, image display program and recording medium
CN106101555B (en) The focusing process method, device and mobile terminal of mobile terminal
JP2011155461A (en) Imaging device, and method and program for controlling the same
JP2020108101A (en) Information processing unit, imaging apparatus, information processing method and control method of imaging apparatus
JP2009171362A (en) Photographing apparatus, and photographing method
KR101698864B1 (en) Media Being Recorded with the Program Executing Method for Detecting Image Using Metadata
CN102316256B (en) Portable device and reproduction display method
KR20070031079A (en) Apparatus and method for determining camera shock in digital video recorder
JP2014236284A (en) Imaging apparatus
JP2015126243A5 (en)
JP2018125729A5 (en)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170808