Control Method of Electronic Device, Electronic Device and Storage Medium
The automated EIS control method in motion cameras adjusts EIS functionality based on sensor feedback, enhancing efficiency and stabilization performance in various motion scenarios without manual intervention.
Patent Information
- Application Number
- CN202111264342.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-08-29
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2038-08-29
AI Technical Summary
In sports scenarios, the switching efficiency of the electronic anti-shake (EIS) function of the motion camera or the motion camera is inefficient, and manual operation is required to cause delays.
The status information of the electronic device is obtained through the sensor, and the switches of the EIS function are automatically controlled, including gyroscope sensors, barometer sensors, GPS sensors and image sensors, and the scene type is judged based on the status information to automatically turn EIS on or off.
It improves the switching efficiency of EIS function, simplifies user operations, and ensures the stability and clarity of shooting effects in different scenarios.
Smart Images

Figure CN113938607B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic devices, and in particular, to a control method, apparatus, electronic device, and storage medium for an electronic device. Background Art
[0002] Currently, there are many sports scenarios where a sports camera or a sports camcorder is required to shoot videos. For example, in scenarios such as cycling, skydiving, skiing, surfing, and walking, the sports camera or the sports camcorder does not shoot statically, but needs to achieve sports shooting as the user moves. In these scenarios, the video images captured are prone to blurring and jitter problems.
[0003] To solve the problems of video image blurring and jitter, the currently adopted technologies include optical image stabilization, mechanical image stabilization, and electronic image stabilization. Among them, optical image stabilization includes corresponding lenses in the lens, and the position of the lenses is adjusted to reduce the blurring and jitter problems of the video image. Mechanical image stabilization means that the sports camera or the sports camcorder is mounted on a gimbal, and the gimbal is used to reduce the blurring and jitter problems of the video image. Electronic image stabilization (EIS) refers to using a fixed algorithm to determine the cropping ratio of the video image. The cropping ratio is a fixed value, and the video image is cropped according to the cropping ratio to reduce the blurring and jitter problems of the video image.
[0004] When the user needs to enable the EIS function, they need to manually click a button on the screen. However, in sports scenarios, it is usually necessary for the sports camera or the sports camcorder to quickly enter the EIS function, and this manual operation will inevitably cause the problem of low switching efficiency of the EIS function. Summary of the Invention
[0005] Embodiments of the present invention provide a control method, apparatus, electronic device, and storage medium for an electronic device, so as to improve the switching efficiency of the EIS function.
[0006] In a first aspect, an embodiment of the present invention provides a control method for an electronic device, including: obtaining status information of the electronic device through at least one sensor in the electronic device; controlling the electronic image stabilization (EIS) function of the electronic device to be in a closed or open state according to the status information.
[0007] In a second aspect, an embodiment of the present invention provides a control apparatus for an electronic device, including:
[0008] A first obtaining module, configured to obtain status information of the electronic device through at least one sensor in the electronic device;
[0009] A first control module, configured to control the electronic image stabilization (EIS) function of the electronic device to be in a closed or open state according to the status information.
[0010] In a third aspect, an embodiment of the present invention provides an electronic device, including: at least one sensor, a processor, and a memory;
[0011] The memory is used to store executable instructions of the processor;
[0012] The processor is configured to:
[0013] Obtain the status information of the electronic device through the at least one sensor;
[0014] Control the electronic image stabilization (EIS) function of the electronic device to be in a closed or open state according to the status information.
[0015] In a fourth aspect, an embodiment of the present invention provides a storage medium, including: computer instructions, where the instructions are used to implement the method described in the first aspect or the optional manner of the first aspect.
[0016] In a fifth aspect, an embodiment of the present invention provides a computer program product, including: computer instructions, where the instructions are used to implement the method described in the first aspect or the optional manner of the first aspect.
[0017] An embodiment of the present invention provides a control method, device, electronic device, and storage medium for an electronic device, including: obtaining the status information of the electronic device through at least one sensor in the electronic device; controlling the electronic image stabilization (EIS) function of the electronic device to be in a closed or open state according to the status information. Thus, it is possible to automatically control whether the EIS function of the electronic device is turned on or off, the user can simplify the operation process of camera shooting, provide an intelligent switching shooting scheme for the user to meet the shooting purposes pursued in various scenarios. At the same time, it also provides a video balance for achieving the optimal image quality and the best anti-shake picture during the dynamic random jitter shooting process. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0019] Figure 1 It is a flowchart of a control method for an electronic device provided by an embodiment of the present invention;
[0020] Figure 2A It is a flowchart of a control method for an electronic device provided by another embodiment of the present invention;
[0021] Figure 2BFlow chart of a control method for an electronic device provided in another embodiment of the present invention;
[0022] Figure 2C Flow chart of a control method for an electronic device provided in another embodiment of the present invention;
[0023] Figure 2D Flow chart of a control method for an electronic device provided in yet another embodiment of the present invention;
[0024] Figure 2E Flow chart of a control method for an electronic device provided in still another embodiment of the present invention;
[0025] Figure 2F Flow chart of a control method for an electronic device provided in still another embodiment of the present invention;
[0026] Figure 2G Flow chart of a control method for an electronic device provided in yet another embodiment of the present invention;
[0027] Figure 3 Flow chart of a control method for an electronic device provided in an embodiment of the present invention;
[0028] Figure 4 Flow chart of a control method for an electronic device provided in another embodiment of the present invention;
[0029] Figure 5 Flow chart of a control method for an electronic device provided in yet another embodiment of the present invention;
[0030] Figure 6 Flow chart of a control method for an electronic device provided in still another embodiment of the present invention;
[0031] Figure 7 Flow chart of a control method for an electronic device provided in yet another embodiment of the present invention;
[0032] Figure 8 Flow chart of a control method for an electronic device provided in still another embodiment of the present invention;
[0033] Figure 9 Schematic diagram of an edge area provided in an embodiment of the present invention;
[0034] Figure 10 Schematic structural diagram of a control device for an electronic device provided in an embodiment of the present invention;
[0035] Figure 11 Schematic structural diagram of an electronic device provided in an embodiment of the present invention. Detailed implementation manners
[0036] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0037] As described above, when a user needs to enable the EIS function, they need to manually click a button on the screen. However, in a sports scenario, a sports camera or a sports video camera usually needs to quickly enter the EIS function. Such manual operation will inevitably cause the problem of low EIS function switching efficiency. To solve the above technical problem, an embodiment of the present invention provides a control method, a device, an electronic device, and a storage medium for an electronic device.
[0038] Embodiment 1
[0039] Figure 1 The flowchart of a control method for an electronic device provided by an embodiment of the present invention. The execution subject of this method can be part or all of the electronic device. For example, it can be a processor in the electronic device or the electronic device itself. The electronic device can be a sports camera or a sports video camera, etc., as long as the electronic device has a photography function. The embodiments of the present invention do not limit this. The following will take the electronic device as the execution subject to illustrate the control method. As Figure 1 shown, the method includes the following steps:
[0040] Step S11: The electronic device obtains the status information of the electronic device through at least one sensor.
[0041] Step S12: The electronic device controls the EIS function of the electronic device to be in a closed or open state according to the status information.
[0042] Regarding Step S11, the description is as follows:
[0043] Optionally, the at least one sensor includes at least one of the following: a gyroscope sensor, a barometer sensor, a Global Positioning System (GPS) sensor, and an image sensor.
[0044] Among them, the gyroscope sensor is used to measure the acceleration information of the electronic device. The barometer sensor is used to measure the air pressure to obtain the height information of the electronic device. The GPS sensor is used to obtain the GPS information of the electronic device. The image sensor is used to obtain the video information of the electronic device. The video information can be the video captured by the electronic device or a certain frame image in the video, or the video information can be at least one pixel point in a certain frame image.
[0045] Correspondingly, the status information includes at least one of the following: the acceleration information of the electronic device measured by the gyroscope sensor, the altitude information of the electronic device sensed by the barometer, the GPS information of the electronic device obtained by the GPS sensor, and the video information of the electronic device obtained by the image sensor.
[0046] A description is given for step S12:
[0047] The electronic device determines whether it is in a dynamic scene or a static scene based on the status information, where the dynamic scene includes: a uniformly changing scene and a non-uniformly changing scene. Among them, if the electronic device is in a uniform motion state, this scene is called a uniformly changing scene. If the electronic device is in a non-uniform motion state, this scene is called a non-uniformly changing scene. If the electronic device is in a stationary state, this scene is called a static scene.
[0048] Further, when the electronic device is in a static scene or a uniformly changing scene, the electronic device can control its EIS function to be in the off state, that is, if the current EIS function of the electronic device is in the off state, the electronic device does not need to change the current state of the EIS function. If the current EIS function of the electronic device is in the on state, the electronic device controls the current state of the EIS function to switch from the on state to the off state. When the electronic device is in a non-uniformly changing scene, the electronic device can control its EIS function to be in the on state, that is, if the current EIS function of the electronic device is in the on state, the electronic device does not need to change the current state of the EIS function. If the current EIS function of the electronic device is in the off state, the electronic device controls the current state of the EIS function to switch from the off state to the on state.
[0049] An embodiment of the present invention provides a control method for an electronic device, including: the electronic device obtains the status information of the electronic device through at least one sensor. The electronic device controls the EIS function of the electronic device to be in the off or on state according to the status information. Thus, it realizes automatic control of whether the electronic device turns on or off the EIS function, and further improves the switching efficiency of the EIS function.
[0050] The following gives a detailed description of step S12:
[0051] Embodiment Two
[0052] Figure 2AThe flowchart of a control method for an electronic device provided by another embodiment of the present invention. The execution subject of this method can be part or all of the electronic device. For example, it can be a processor in the electronic device or the electronic device itself. The electronic device can be a motion sensing camera, a sports camera, etc., as long as the electronic device has a photography function. The embodiments of the present invention do not limit this. Hereinafter, the control method will be described taking the execution subject as the electronic device as an example. As Figure 2A shown, when the status information is the acceleration information of the electronic device, step S12 includes:
[0053] Step S121a: When the acceleration information of the electronic device is 0, control the EIS function of the electronic device to be in the off state.
[0054] Step S122a: When the acceleration information of the electronic device is not 0, control the EIS function of the electronic device to be in the on state.
[0055] Specifically, when the acceleration information of the electronic device is 0, it means that the electronic device is in a static scene or a uniformly changing scene. At this time, control the EIS function of the electronic device to be in the off state. That is, if the current EIS function of the electronic device is in the off state, the electronic device does not need to change the current state of the EIS function. If the current EIS function of the electronic device is in the on state, the electronic device controls the current state of the EIS function to switch from the on state to the off state.
[0056] When the acceleration information of the electronic device is not 0, it means that the electronic device is in a non-uniformly changing scene. At this time, control the EIS function of the electronic device to be in the on state. That is, if the current EIS function of the electronic device is in the on state, the electronic device does not need to change the current state of the EIS function. If the current EIS function of the electronic device is in the off state, the electronic device controls the current state of the EIS function to switch from the off state to the on state.
[0057] An embodiment of the present invention provides a control method for an electronic device, including: The electronic device obtains the acceleration information of the electronic device through a gyroscope sensor. When the acceleration information of the electronic device is 0, control the EIS function of the electronic device to be in the off state. When the acceleration information of the electronic device is not 0, control the EIS function of the electronic device to be in the on state. Thus, it realizes automatic control of whether the EIS function of the electronic device is turned on or off, and further improves the switching efficiency of the EIS function.
[0058] Embodiment III
[0059] Figure 2BThe flowchart of a control method for an electronic device provided by another embodiment of the present invention. The execution subject of this method can be part or all of the electronic device. For example, it can be a processor in the electronic device or the electronic device itself. The electronic device can be a sports action camera or a sports video camera, etc., as long as the electronic device has a photography function. The embodiments of the present invention do not limit this. Hereinafter, the control method will be described by taking the execution subject as the electronic device as an example. As Figure 2B shown, when the state information is the acceleration information of the electronic device, step S12 includes:
[0060] Step S121b: When the acceleration information of the electronic device is less than the acceleration preset threshold, control the EIS function of the electronic device to be in the off state.
[0061] Step S122b: When the acceleration information of the electronic device is greater than or equal to the acceleration preset threshold, control the EIS function of the electronic device to be in the on state.
[0062] The acceleration preset threshold can be set according to the actual situation. For example: the acceleration preset threshold can be 1m / s 2 or 2m / s 2 etc. The embodiments of the present invention do not limit this.
[0063] When the acceleration information of the electronic device is less than the acceleration preset threshold, it means that the scene where the electronic device is located is close to or equivalent to a static scene or a uniformly changing scene. At this time, control the EIS function of the electronic device to be in the off state. That is, if the current EIS function of the electronic device is in the off state, the electronic device does not need to change the current state of the EIS function. If the current EIS function of the electronic device is in the on state, the electronic device controls the current state of the EIS function to switch from the on state to the off state.
[0064] When the acceleration information of the electronic device is greater than the acceleration preset threshold, it means that the scene where the electronic device is located is close to or equivalent to a non-uniformly changing scene. At this time, control the EIS function of the electronic device to be in the on state. That is, if the current EIS function of the electronic device is in the on state, the electronic device does not need to change the current state of the EIS function. If the current EIS function of the electronic device is in the off state, the electronic device controls the current state of the EIS function to switch from the off state to the on state.
[0065] An embodiment of the present invention provides a control method for an electronic device, including: the electronic device obtains the acceleration information of the electronic device through a gyroscope sensor. When the acceleration information of the electronic device is less than the acceleration preset threshold, the EIS function of the electronic device is controlled to be in the off state. When the acceleration information of the electronic device is greater than or equal to the acceleration preset threshold, the EIS function of the electronic device is controlled to be in the on state. Thus, it is realized to automatically control whether the EIS function of the electronic device is turned on or off, and further improve the EIS function switching efficiency.
[0066] Embodiment 4
[0067] Figure 2C The flowchart of a control method for an electronic device provided by another embodiment of the present invention. The execution subject of this method can be part or all of the electronic device. For example, it can be a processor in the electronic device, or the electronic device. The electronic device can be a sports action camera or a sports video camera, etc., as long as the electronic device has a photography function. The embodiments of the present invention do not limit this. Hereinafter, the control method will be described by taking the execution subject as the electronic device as an example. As Figure 2C shown, when the status information is the height information of the electronic device, step S12 includes:
[0068] Step S121c: When the height information of the electronic device does not change or changes at a uniform speed within a preset time, the EIS function of the electronic device is controlled to be in the off state.
[0069] Step S122c: When the height information of the electronic device changes non-uniformly within a preset time, the EIS function of the electronic device is controlled to be in the on state.
[0070] Specifically, when the height information of the electronic device does not change within a preset time, it means that the electronic device is in a static scene. When the height information of the electronic device changes at a uniform speed within a preset time, it means that the electronic device is in a uniformly changing scene. At this time, the EIS function of the electronic device is controlled to be in the off state. That is, if the current EIS function of the electronic device is in the off state, the electronic device does not need to change the current state of the EIS function. If the current EIS function of the electronic device is in the on state, the electronic device controls the current state of the EIS function to switch from the on state to the off state.
[0071] When the height information of the electronic device changes non-uniformly within a preset time, it means that the electronic device is in a non-uniformly changing scene. At this time, the EIS function of the electronic device is controlled to be in the on state. That is, if the current EIS function of the electronic device is in the on state, the electronic device does not need to change the current state of the EIS function. If the current EIS function of the electronic device is in the off state, the electronic device controls the current state of the EIS function to switch from the off state to the on state.
[0072] An embodiment of the present invention provides a control method for an electronic device, including: the electronic device obtains the altitude information of the electronic device through a barometric pressure sensor. When the altitude information of the electronic device does not change or changes at a uniform speed within a preset time, the EIS function of the electronic device is controlled to be in a closed state. When the altitude information of the electronic device changes non-uniformly within the preset time, the EIS function of the electronic device is controlled to be in an open state. Thus, it is realized to automatically control whether the EIS function of the electronic device is turned on or off, and further improve the switching efficiency of the EIS function.
[0073] Embodiment Five
[0074] Figure 2D It is a flowchart of a control method for an electronic device provided by another embodiment of the present invention. The execution subject of this method can be part or all of the electronic device. For example, it can be a processor in the electronic device, or it can be the electronic device. The electronic device can be a sports action camera or a sports video camera, etc., as long as the electronic device has a photography function. The embodiments of the present invention do not limit this. Hereinafter, the control method will be described by taking the execution subject as the electronic device as an example. As Figure 2D shown, when the status information is the GPS information of the electronic device, step S12 includes:
[0075] Step S121d: When the GPS information of the electronic device does not change or changes at a uniform speed within a preset time, the EIS function of the electronic device is controlled to be in a closed state.
[0076] Step S122d: When the GPS information of the electronic device changes non-uniformly within the preset time, the EIS function of the electronic device is controlled to be in an open state.
[0077] Specifically, when the GPS information of the electronic device does not change within a preset time, it means that the electronic device is in a static scene. When the GPS information of the electronic device changes at a uniform speed within a preset time, it means that the electronic device is in a uniformly changing scene. At this time, the EIS function of the electronic device is controlled to be in a closed state. That is, if the current EIS function of the electronic device is in a closed state, the electronic device does not need to change the current state of the EIS function. If the current EIS function of the electronic device is in an open state, the electronic device controls the current state of the EIS function to switch from the open state to the closed state.
[0078] When the GPS information of the electronic device changes non-uniformly within a preset time, it indicates that the electronic device is in a non-uniform change scenario. At this time, the EIS function of the electronic device is controlled to be in the on state. That is, if the current EIS function of the electronic device is in the on state, the electronic device does not need to change the current state of the EIS function. If the current EIS function of the electronic device is in the off state, the electronic device controls the current state of the EIS function to switch from the off state to the on state.
[0079] An embodiment of the present invention provides a control method for an electronic device, including: the electronic device obtains the altitude information of the electronic device through a GPS sensor. When the GPS information of the electronic device does not change or changes uniformly within a preset time, the EIS function of the electronic device is controlled to be in the off state. When the GPS information of the electronic device changes non-uniformly within a preset time, the EIS function of the electronic device is controlled to be in the on state. Thus, it is realized to automatically control whether the EIS function of the electronic device is turned on or off, and further improve the switching efficiency of the EIS function.
[0080] Embodiment Six
[0081] Figure 2E It is a flowchart of a control method for an electronic device provided by another embodiment of the present invention. The execution subject of this method can be part or all of the electronic device. For example, it can be a processor in the electronic device, or it can be the electronic device. The electronic device can be a sports action camera or a sports video camera, etc., as long as the electronic device has a photography function. The embodiments of the present invention do not limit this. Hereinafter, the control method will be described by taking the execution subject as the electronic device as an example. As Figure 2E shown, when the status information is the video information of the electronic device, step S12 includes:
[0082] Step S121e: When the video information of the electronic device does not change or changes uniformly within a preset time, the EIS function of the electronic device is controlled to be in the off state.
[0083] Step S122e: When the video information of the electronic device changes non-uniformly within a preset time, the EIS function of the electronic device is controlled to be in the on state.
[0084] As described above, the video information may be a video captured by an electronic device or a frame image in the video, or the video information may be at least one pixel point in a frame image. Taking the video of the electronic device as an example, when the video of the electronic device does not change within a preset time, it indicates that the electronic device is in a static scene. When the video of the electronic device changes uniformly within a preset time, it indicates that the electronic device is in a uniformly changing scene. At this time, the EIS function of the electronic device is controlled to be in the off state. That is, if the current EIS function of the electronic device is in the off state, the electronic device does not need to change the current state of the EIS function. If the current EIS function of the electronic device is in the on state, the electronic device controls the current state of the EIS function to switch from the on state to the off state.
[0085] When the video of the electronic device changes non-uniformly within a preset time, it indicates that the electronic device is in a non-uniformly changing scene. At this time, the EIS function of the electronic device is controlled to be in the on state. That is, if the current EIS function of the electronic device is in the on state, the electronic device does not need to change the current state of the EIS function. If the current EIS function of the electronic device is in the off state, the electronic device controls the current state of the EIS function to switch from the off state to the on state.
[0086] An embodiment of the present invention provides a control method for an electronic device, including: the electronic device obtains height information of the electronic device through an image sensor. When the video information of the electronic device does not change or changes uniformly within a preset time, the EIS function of the electronic device is controlled to be in the off state. When the video information of the electronic device changes non-uniformly within a preset time, the EIS function of the electronic device is controlled to be in the on state. Thus, it is possible to automatically control whether the EIS function of the electronic device is turned on or off, thereby improving the switching efficiency of the EIS function.
[0087] Embodiment Seven
[0088] Figure 2F FIG. is a flowchart of a control method for an electronic device provided in another embodiment of the present invention. The execution subject of the method may be part or all of the electronic device. For example, it may be a processor in the electronic device or the electronic device. The electronic device may be an action camera or an action camcorder, etc., as long as the electronic device has a photography function. The embodiments of the present invention do not limit this. The following takes the execution subject as the electronic device as an example to illustrate the control method. As Figure 2F shown, when the state information includes at least two of the acceleration information of the electronic device, the height information of the electronic device, the GPS information of the electronic device, and the video information of the electronic device, controlling the electronic image stabilization (EIS) function of the electronic device to be in the off or on state according to the state information, step S12 includes:
[0089] Step S121f: The electronic device determines the respective priorities of the at least two items.
[0090] Step S122f: The electronic device controls the EIS function of the electronic device to be in an off or on state according to the item with the highest priority among the at least two items.
[0091] For example: When the status information includes the acceleration information of the electronic device, the altitude information of the electronic device, the GPS information of the electronic device, and the video information of the electronic device, and among the above status information, the acceleration information of the electronic device has the highest priority, at this time, the electronic device can control the EIS function to be in an off or on state according to the acceleration information of the electronic device. For details, reference can be made to Embodiment 2 or Embodiment 3.
[0092] When the altitude information of the electronic device has the highest priority among the above status information, at this time, the electronic device can control the EIS function to be in an off or on state according to the altitude information of the electronic device. For details, reference can be made to Embodiment 4.
[0093] When the GPS information of the electronic device has the highest priority among the above status information, at this time, the electronic device can control the EIS function to be in an off or on state according to the GPS information of the electronic device. For details, reference can be made to Embodiment 5.
[0094] When the video information of the electronic device has the highest priority among the above status information, at this time, the electronic device can control the EIS function to be in an off or on state according to the video information of the electronic device. For details, reference can be made to Embodiment 6.
[0095] An embodiment of the present invention provides a control method for an electronic device, including: when the status information includes at least two of the acceleration information of the electronic device, the altitude information of the electronic device, the GPS information of the electronic device, and the video information of the electronic device, the electronic device can determine the respective priorities of the at least two items, and control the EIS function of the electronic device to be in an off or on state according to the item with the highest priority among the at least two items, so as to automatically control whether the EIS function of the electronic device is turned on or off, and further improve the EIS function switching efficiency.
[0096] Embodiment 8
[0097] Figure 2GThe flowchart of a control method for an electronic device provided by another embodiment of the present invention. The execution subject of this method can be part or all of the electronic device. For example, it can be a processor in the electronic device or the electronic device itself. The electronic device can be a sports action camera or a sports video camera, etc., as long as the electronic device has a photography function. The embodiments of the present invention do not limit this. Hereinafter, the control method will be described by taking the execution subject as the electronic device as an example. As Figure 2G shown, when the status information includes at least two of the acceleration information of the electronic device, the height information of the electronic device, the GPS information of the electronic device, and the video information of the electronic device, the electronic image stabilization (EIS) function of controlling the electronic device according to the status information is in a closed or open state. Step S12 includes:
[0098] Step S121g: The electronic device determines whether to control the EIS function of the electronic device to be in an open state according to each of the at least two items.
[0099] Step S122a: When the electronic device determines that it is necessary to control the EIS function of the electronic device to be in an open state according to at least one of the at least two items, the EIS function of the electronic device is controlled to be in an open state.
[0100] For example: When the status information includes the acceleration information of the electronic device, the height information of the electronic device, the GPS information of the electronic device, and the video information of the electronic device, and it is determined according to the acceleration information of the electronic device that it is necessary to control the EIS function to be in an open state, the EIS function of the electronic device is controlled to be in an open state. Specifically, reference can be made to Embodiment 2 or Embodiment 3.
[0101] The embodiments of the present invention provide a control method for an electronic device, including: when the status information includes at least two of the acceleration information of the electronic device, the height information of the electronic device, the GPS information of the electronic device, and the video information of the electronic device, the electronic device determines whether to control the EIS function of the electronic device to be in an open state according to each of the at least two items. When the electronic device determines that it is necessary to control the EIS function of the electronic device to be in an open state according to at least one of the at least two items, the EIS function of the electronic device is controlled to be in an open state, so as to automatically control whether the EIS function of the electronic device is turned on or off, and further improve the switching efficiency of the EIS function.
[0102] Embodiment Nine
[0103] On the basis of any one of Embodiments 1 to 8, further, Figure 3The flowchart of a control method for an electronic device provided by an embodiment of the present invention. The execution subject of this method can be part or all of the electronic device. For example, it can be a processor in the electronic device or the electronic device itself. The electronic device can be an action camera or a sports camera, etc., as long as the electronic device has a photography function. The embodiments of the present invention do not limit this. Hereinafter, the control method will be described by taking the execution subject as the electronic device as an example. As Figure 3 shown, after step S12, the method further includes:
[0104] Step S23a: When the electronic device determines that the EIS function is in the off state, at least one parameter among the shutter parameter, sensitivity, and exposure value of the electronic device.
[0105] Step S24a: The electronic device performs video shooting according to at least one parameter among the shutter parameter, sensitivity, and exposure value of the electronic device.
[0106] Specifically, when the EIS function is in the off or on state, the corresponding shutter parameters can be the same or different. Similarly, when the EIS function is in the off or on state, the corresponding sensitivity parameters can be the same or different. When the EIS function is in the off or on state, the corresponding exposure values can be the same or different.
[0107] Further, at least one parameter among the shutter parameter, sensitivity, and exposure value of the electronic device has been pre-configured.
[0108] It should be noted that the parameters of the electronic device are not limited to the above-mentioned shutter parameter, sensitivity, and exposure value.
[0109] Furthermore, the electronic device performs video shooting according to at least one parameter among the shutter parameter, sensitivity, and exposure value of the electronic device, that is, the electronic device adjusts the parameters according to the at least one parameter, and then performs video shooting after adjustment.
[0110] An embodiment of the present invention provides a control method for an electronic device, including: when the electronic device determines that the EIS function is in the off state, at least one parameter among the shutter parameter, sensitivity, and exposure value of the electronic device. The electronic device performs video shooting according to at least one parameter among the shutter parameter, sensitivity, and exposure value of the electronic device. That is to say, the electronic device has parameters matching the state in the off or on state respectively. Based on this, the video effect captured by the electronic device is better.
[0111] Embodiment Ten
[0112] Based on any one of Embodiments 1 to 8, further, Figure 4The flowchart of a control method for an electronic device provided by another embodiment of the present invention. The execution subject of this method can be part or all of the electronic device. For example, it can be a processor in the electronic device or the electronic device itself. The electronic device can be a motion sensing camera, a motion video camera, etc., as long as the electronic device has a photography function. The embodiments of the present invention do not limit this. Hereinafter, the control method will be described taking the execution subject as the electronic device as an example. As Figure 4 shown, after step S12, the method further includes:
[0113] Step S23b: When the electronic device determines that the EIS function is in the on state, at least one parameter among the shutter parameter, the sensitivity, and the exposure value of the electronic device.
[0114] Step S24b: The electronic device performs video shooting according to at least one parameter among the shutter parameter, the sensitivity, and the exposure value of the electronic device.
[0115] Specifically, when the EIS function is in the off or on state, the corresponding shutter parameters can be the same or different. Similarly, when the EIS function is in the off or on state, the corresponding sensitivity parameters can be the same or different. When the EIS function is in the off or on state, the corresponding exposure values can be the same or different.
[0116] Further, at least one parameter among the shutter parameter, the sensitivity, and the exposure value of the electronic device has been pre-configured.
[0117] It should be noted that the parameters of the electronic device are not limited to the above-mentioned shutter parameter, sensitivity, and exposure value.
[0118] Furthermore, the electronic device performs video shooting according to at least one parameter among the shutter parameter, the sensitivity, and the exposure value of the electronic device, that is, the electronic device adjusts the parameters according to the at least one parameter, and then performs video shooting after adjustment.
[0119] An embodiment of the present invention provides a control method for an electronic device, including: when the electronic device determines that the EIS function is in the on state, at least one parameter among the shutter parameter, the sensitivity, and the exposure value of the electronic device. The electronic device performs video shooting according to at least one parameter among the shutter parameter, the sensitivity, and the exposure value of the electronic device. That is to say, the electronic device has parameters matching the state in both the off and on states. Based on this, the video shooting effect of the electronic device is better.
[0120] Embodiment XI
[0121] On the basis of Embodiment X, further, Figure 5A flowchart of a control method for an electronic device provided in another embodiment of the present invention. The execution subject of this method can be part or all of the electronic device. For example, it can be a processor in the electronic device or the electronic device itself. The electronic device can be a sports action camera or a sports video camera, etc., as long as the electronic device has a photography function. The embodiments of the present invention do not limit this. Hereinafter, the control method will be described by taking the execution subject as the electronic device as an example. As Figure 5 shown, before step S24b, the method further includes:
[0122] Step S25: The electronic device obtains acceleration information of the electronic device in each direction through a gyroscope sensor.
[0123] Step S26: The electronic device determines the EIS level of the electronic device according to the acceleration information of the electronic device in each direction.
[0124] Correspondingly, step S24b includes:
[0125] Step S241: The electronic device performs video shooting according to the EIS level of the electronic device and the at least one parameter.
[0126] Regarding the description of step S25, each direction includes at least one of the following: the first direction, the second direction, and the third direction. Among them, the first direction can be the Roll direction, the second direction can be the Pitch direction, and the third direction can be the Yaw direction.
[0127] Regarding the description of step S26: If the acceleration information of the electronic device in the first direction is greater than the first preset threshold and less than or equal to the second preset threshold, the acceleration information of the electronic device in the second direction is greater than the third preset threshold and less than or equal to the fourth preset threshold, and the acceleration information of the electronic device in the third direction is greater than the fifth preset threshold and less than or equal to the sixth preset threshold, then it is determined that the EIS level of the electronic device is the first EIS level.
[0128] If the acceleration information of the electronic device in the first direction is greater than the second preset threshold and less than or equal to the seventh preset threshold, the acceleration information of the electronic device in the second direction is greater than the fourth preset threshold and less than or equal to the eighth preset threshold, and the acceleration information of the electronic device in the third direction is greater than the sixth preset threshold and less than or equal to the ninth preset threshold, then it is determined that the EIS level of the electronic device is the second EIS level.
[0129] If the acceleration information of the electronic device in the first direction is greater than the seventh preset threshold, the acceleration information of the electronic device in the second direction is greater than the eighth preset threshold, and the acceleration information of the electronic device in the third direction is greater than the ninth preset threshold, then it is determined that the EIS level of the electronic device is the third EIS level.
[0130] The first preset threshold is less than the second preset threshold, the second preset threshold is less than the seventh preset threshold, the third preset threshold is less than the fourth preset threshold, the fourth preset threshold is less than the eighth preset threshold, the fifth preset threshold is less than the sixth preset threshold, and the sixth preset threshold is less than the ninth preset threshold.
[0131] Among them, the first preset threshold, the second preset threshold, the third preset threshold, the fourth preset threshold, the fifth preset threshold, the sixth preset threshold, the seventh preset threshold, the eighth preset threshold, and the ninth preset threshold can all be set according to the actual situation.
[0132] The third EIS level is higher than the second EIS level, and the second EIS level is higher than the first EIS level. The higher the EIS level, the more adaptable it is to non-uniform motion scenarios.
[0133] It should be noted that more EIS levels can also be set in the embodiments of the present application, and the embodiments of the present application do not limit this.
[0134] Regarding step S241: The electronic device adjusts the parameters according to the at least one parameter, and adjusts the EIS level to the EIS level determined according to step S26, and then performs video shooting after the adjustment.
[0135] Optionally, after the electronic device obtains the captured video, an interpolation algorithm can also be adopted for each frame of the image, so as to improve the resolution of the video.
[0136] Among them, the interpolation algorithm involved in the embodiments of the present invention is the prior art, and the embodiments of the present invention do not limit this.
[0137] The embodiments of the present invention provide a control method for an electronic device. The electronic device obtains the acceleration information of the electronic device in each direction through a gyroscope sensor. The electronic device determines the EIS level of the electronic device according to the acceleration information of the electronic device in each direction. The electronic device performs video shooting according to the EIS level of the electronic device and the at least one parameter. Since the electronic device can determine the EIS level in a timely manner and perform video shooting according to the EIS level, based on this, the video effect captured by the electronic device is better.
[0138] Embodiment Twelve
[0139] On the basis of Embodiment Eleven, further, Figure 6The flowchart of a control method for an electronic device provided by another embodiment of the present invention. The execution subject of this method can be part or all of the electronic device. For example, it can be a processor in the electronic device or the electronic device itself. The electronic device can be an action camera or a sports camera, etc., as long as the electronic device has a photography function. The embodiments of the present invention do not limit this. Hereinafter, the control method will be described by taking the execution subject as the electronic device as an example. As Figure 6 shown, after determining that the EIS level of the electronic device is the third EIS level, the method further includes:
[0140] Step S27: If the acceleration information of the electronic device in the first direction is greater than the second preset threshold and less than or equal to the seventh preset threshold, the acceleration information of the electronic device in the second direction is greater than the fourth preset threshold and less than or equal to the eighth preset threshold, and the acceleration information of the electronic device in the third direction is greater than the sixth preset threshold and less than or equal to the ninth preset threshold, then adjust the EIS level from the third EIS level to the second EIS level.
[0141] Step S28: If the acceleration information of the electronic device in the first direction is greater than the first preset threshold and less than or equal to the second preset threshold, the acceleration information of the electronic device in the second direction is greater than the third preset threshold and less than or equal to the fourth preset threshold, and the acceleration information of the electronic device in the third direction is greater than the fifth preset threshold and less than or equal to the sixth preset threshold, then adjust the EIS level from the second EIS level to the first EIS level.
[0142] Step S29: If the acceleration information of the electronic device in the first direction is less than or equal to the first preset threshold, the acceleration information of the electronic device in the second direction is less than or equal to the third preset threshold, and the acceleration information of the electronic device in the third direction is less than or equal to the fifth preset threshold, then control the EIS function of the electronic device to be in the off state.
[0143] It should be noted that the embodiments of the present invention are directed to the situation where the electronic device gradually changes from a non-uniform motion scene to a uniform motion scene or a static scene. Based on this, the EIS level first enters the second EIS level from the third EIS level, then enters the first EIS level from the second EIS level, and finally enters the EIS function off state from the first EIS level.
[0144] Optionally, after determining that the EIS level of the electronic device is the third EIS level, the EIS level can also be adjusted in the following manner:
[0145] If the acceleration information of the electronic device in the first direction is greater than the second preset threshold and less than or equal to the seventh preset threshold, the acceleration information of the electronic device in the second direction is greater than the fourth preset threshold and less than or equal to the eighth preset threshold, and the acceleration information of the electronic device in the third direction is greater than the sixth preset threshold and less than or equal to the ninth preset threshold, then adjust the EIS level from the third EIS level to the second EIS level.
[0146] If the acceleration information of the electronic device in the first direction is greater than the first preset threshold and less than or equal to the second preset threshold, the acceleration information of the electronic device in the second direction is greater than the third preset threshold and less than or equal to the fourth preset threshold, and the acceleration information of the electronic device in the third direction is greater than the fifth preset threshold and less than or equal to the sixth preset threshold, then adjust the EIS level from the third EIS level to the first EIS level.
[0147] If the acceleration information of the electronic device in the first direction is less than or equal to the first preset threshold, the acceleration information of the electronic device in the second direction is less than or equal to the third preset threshold, and the acceleration information of the electronic device in the third direction is less than or equal to the fifth preset threshold, then adjust the EIS level from the third EIS level to the state where the EIS function is turned off.
[0148] In summary, the embodiments of the present invention provide a control method for an electronic device. The electronic device can collect the acceleration information in each direction in real time and adjust the EIS level according to the relationship between the acceleration information and the corresponding preset threshold, thereby improving the reliability of the electronic device.
[0149] Embodiment Thirteen
[0150] On the basis of Embodiment Eleven or Embodiment Twelve, further, Figure 7 FIG. is a flowchart of a control method for an electronic device provided by another embodiment of the present invention. The execution subject of this method can be part or all of the electronic device. For example, it can be a processor in the electronic device or the electronic device itself. The electronic device can be a motion sensing camera or a motion video camera, etc., as long as the electronic device has a photography function. The embodiments of the present invention do not limit this. Hereinafter, the control method will be described by taking the execution subject as the electronic device as an example. As Figure 7 shown, after step S241, the method further includes:
[0151] Step S30: The electronic device crops the video frame captured by the electronic device according to the EIS level of the electronic device.
[0152] Optionally, the electronic device can pre - establish the corresponding relationship between each EIS level and each cropping ratio. As shown in Table 1:
[0153] Table 1
[0154] EIS level Cutting ratio First EIS level First cutting ratio Second EIS level Second cutting ratio Third EIS level Third cutting ratio
[0155] The electronic device can determine the cropping ratio corresponding to the current EIS level of the electronic device according to the current EIS level of the electronic device and the corresponding relationship between each EIS level and each cropping ratio; and then crop the video picture according to the cropping ratio.
[0156] It should be noted that how to crop the video picture according to the cropping ratio can be implemented according to the methods of the prior art, and the embodiments of the present invention do not limit this.
[0157] The embodiments of the present invention provide a control method for an electronic device, wherein the electronic device can crop the video picture captured by the electronic device according to the EIS level of the electronic device. Instead of cropping the video picture with a fixed cropping ratio, the display effect of the video picture can be improved.
[0158] Embodiment Fourteen
[0159] On the basis of Embodiment Thirteen, further, Figure 8 As shown in the flowchart of a control method for an electronic device provided in another embodiment of the present invention, the execution subject of this method can be part or all of the electronic device. For example, it can be a processor in the electronic device or the electronic device itself. The electronic device can be an action camera or an action camcorder, etc., as long as the electronic device has a photography function. The embodiments of the present invention do not limit this. The control method will be described below taking the execution subject as the electronic device as an example. As Figure 8 shown, after step S30, the method further includes:
[0160] Step S31: The electronic device determines a preset area and the resolution of the preset area in the video picture captured by the electronic device.
[0161] Step S32: When the resolution of the preset area is less than the preset resolution, the EIS level of the electronic device is adjusted to an EIS level higher than the current EIS level.
[0162] Among them, step S31 and step S32 are equivalent to a verification process for the EIS level.
[0163] Optionally, the preset area is the edge area in the video picture. For example: Figure 9 As shown in the schematic diagram of the edge area provided in an embodiment of the present invention, as Figure 9 shown, the shape of the video picture is rectangular, and the edge area may include at least one of the following: the left edge area 1, the right edge area 2, the upper edge area 3, and the lower edge area 4 in the video picture.
[0164] Regarding the description of step S32: The preset resolution can be set according to the actual situation, and the embodiments of the present invention do not limit this.
[0165] The so-called "adjusting the EIS level of the electronic device to an EIS level higher than the EIS level" means that when the current EIS level of the electronic device is the first EIS level, the current EIS level is adjusted to the second EIS level or the third EIS level. When the current EIS level of the electronic device is the second EIS level, the current EIS level is adjusted to the third EIS level. Of course, if the current EIS level of the electronic device is the third EIS level, since the third EIS level is the highest EIS level, the electronic device does not need to adjust the EIS level.
[0166] An embodiment of the present invention provides a control method for an electronic device, where the electronic device determines a preset area and the resolution of the preset area in the video picture captured by the electronic device. When the resolution of the preset area is less than the preset resolution, the EIS level of the electronic device is adjusted to an EIS level higher than the EIS level. Thus, further calibration of the EIS level is achieved. Based on this, the video picture effect obtained when the electronic device performs video shooting according to the EIS level is better, or the display effect of the video picture obtained when the electronic device performs video cropping according to the EIS level is better.
[0167] Embodiment Fifteen
[0168] Figure 10 is a schematic structural diagram of a control device for an electronic device provided in an embodiment of the present invention, as Figure 10 shown. The device includes:
[0169] A first acquisition module 101, configured to acquire the status information of the electronic device through at least one sensor in the electronic device;
[0170] A first control module 102, configured to control the electronic image stabilization (EIS) function of the electronic device to be in an off or on state according to the status information.
[0171] Optionally, the at least one sensor includes at least one of the following: a gyroscope sensor, a barometer sensor, a global positioning system (GPS) sensor, and an image sensor; correspondingly, the status information includes at least one of the following: the acceleration information of the electronic device measured by the gyroscope sensor, the altitude information of the electronic device sensed by the barometer sensor, the GPS information of the electronic device obtained by the GPS sensor, and the video information of the electronic device obtained by the image sensor.
[0172] Optionally, when the status information is the acceleration information of the electronic device, the first control module 102 is specifically configured to: when the acceleration information of the electronic device is 0, control the EIS function of the electronic device to be in the off state; when the acceleration information of the electronic device is not 0, control the EIS function of the electronic device to be in the on state.
[0173] Optionally, when the status information is the acceleration information of the electronic device, the first control module 102 is specifically configured to: when the acceleration information of the electronic device is less than the acceleration preset threshold, control the EIS function of the electronic device to be in the off state; when the acceleration information of the electronic device is greater than or equal to the acceleration preset threshold, control the EIS function of the electronic device to be in the on state.
[0174] Optionally, when the status information is the height information of the electronic device, the first control module 102 is specifically configured to: when the height information of the electronic device does not change or changes at a uniform speed within a preset time, control the EIS function of the electronic device to be in the off state; when the height information of the electronic device changes non-uniformly within a preset time, control the EIS function of the electronic device to be in the on state.
[0175] Optionally, when the status information is the GPS information of the electronic device, the first control module 102 is specifically configured to: when the GPS information of the electronic device does not change or changes at a uniform speed within a preset time, control the EIS function of the electronic device to be in the off state; when the GPS information of the electronic device changes non-uniformly within a preset time, control the EIS function of the electronic device to be in the on state.
[0176] Optionally, when the status information is the video information of the electronic device, the first control module 102 is specifically configured to: when the video information of the electronic device does not change or changes at a uniform speed within a preset time, control the EIS function of the electronic device to be in the off state; when the video information of the electronic device changes non-uniformly within a preset time, control the EIS function of the electronic device to be in the on state.
[0177] Optionally, when the status information includes at least two of the acceleration information, the height information, the GPS information, and the video information of the electronic device, the first control module 102 is specifically configured to: determine the respective priorities of the at least two items; control the EIS function of the electronic device to be in the off or on state according to the item with the highest priority among the at least two items.
[0178] Optionally, when the status information includes at least two of the acceleration information of the electronic device, the height information of the electronic device, the GPS information of the electronic device, and the video information of the electronic device, the first control module 102 is specifically configured to: determine whether to control the EIS function of the electronic device to be in an on state according to each of the at least two items; when it is determined according to at least one of the at least two items that the EIS function of the electronic device needs to be controlled to be in an on state, control the EIS function of the electronic device to be in an on state.
[0179] Optionally, the device further includes:
[0180] A first determination module 103, configured to determine at least one parameter among the shutter parameter, the sensitivity, and the exposure value of the electronic device when the EIS function is in an off state;
[0181] A first shooting module 104, configured to perform video shooting according to at least one parameter among the shutter parameter, the sensitivity, and the exposure value of the electronic device.
[0182] Optionally, the device further includes:
[0183] A second determination module 105, configured to determine at least one parameter among the shutter parameter, the sensitivity, and the exposure value of the electronic device when the EIS function is in an on state;
[0184] A second shooting module 106, configured to perform video shooting according to at least one parameter among the shutter parameter, the sensitivity, and the exposure value of the electronic device.
[0185] Optionally, the device further includes:
[0186] A second acquisition module 107, configured to acquire the acceleration information of the electronic device in each direction through a gyroscope sensor;
[0187] A third determination module 108, configured to determine the EIS level of the electronic device according to the acceleration information of the electronic device in each direction;
[0188] Correspondingly, the second shooting module 106 is specifically configured to: perform video shooting according to the EIS level of the electronic device and the at least one parameter.
[0189] Optionally, the device further includes:
[0190] A cropping module 109, configured to crop the video picture captured by the electronic device according to the EIS level of the electronic device.
[0191] Optionally, each direction includes a first direction, a second direction, and a third direction;
[0192] Correspondingly, the third determination module 108 is specifically configured to: if the acceleration information of the electronic device in the first direction is greater than a first preset threshold and less than or equal to a second preset threshold, the acceleration information of the electronic device in the second direction is greater than a third preset threshold and less than or equal to a fourth preset threshold, and the acceleration information of the electronic device in the third direction is greater than a fifth preset threshold and less than or equal to a sixth preset threshold, determine that the EIS level of the electronic device is the first EIS level; if the acceleration information of the electronic device in the first direction is greater than the second preset threshold and less than or equal to a seventh preset threshold, the acceleration information of the electronic device in the second direction is greater than the fourth preset threshold and less than or equal to an eighth preset threshold, and the acceleration information of the electronic device in the third direction is greater than the sixth preset threshold and less than or equal to a ninth preset threshold, determine that the EIS level of the electronic device is the second EIS level; if the acceleration information of the electronic device in the first direction is greater than the seventh preset threshold, the acceleration information of the electronic device in the second direction is greater than the eighth preset threshold, and the acceleration information of the electronic device in the third direction is greater than the ninth preset threshold, determine that the EIS level of the electronic device is the third EIS level.
[0193] Optionally, the cropping module 109 is specifically configured to: determine a cropping ratio of the video frame according to the EIS level of the electronic device; crop the video frame according to the cropping ratio.
[0194] Optionally, the apparatus further includes: a establishing module 110, configured to establish a correspondence between each EIS level and each cropping ratio.
[0195] Optionally, the apparatus further includes: a fourth determination module 111, configured to determine a preset area in the video frame captured by the electronic device and a resolution of the preset area;
[0196] a first adjustment module 112, configured to adjust the EIS level of the electronic device to an EIS level higher than the EIS level when the resolution of the preset area is less than a preset resolution.
[0197] Optionally, the preset area is an edge area in the video frame.
[0198] Optionally, the device further includes: a second adjustment module 113, configured to adjust the EIS level from the third EIS level to the second EIS level if the acceleration information of the electronic device in the first direction is greater than the second preset threshold and less than or equal to the seventh preset threshold, the acceleration information of the electronic device in the second direction is greater than the fourth preset threshold and less than or equal to the eighth preset threshold, and the acceleration information of the electronic device in the third direction is greater than the sixth preset threshold and less than or equal to the ninth preset threshold.
[0199] A third adjustment module 114, configured to adjust the EIS level from the second EIS level to the first EIS level if the acceleration information of the electronic device in the first direction is greater than the first preset threshold and less than or equal to the second preset threshold, the acceleration information of the electronic device in the second direction is greater than the third preset threshold and less than or equal to the fourth preset threshold, and the acceleration information of the electronic device in the third direction is greater than the fifth preset threshold and less than or equal to the sixth preset threshold;
[0200] A second control module 115, configured to control the EIS function of the electronic device to be in a closed state if the acceleration information of the electronic device in the first direction is less than or equal to the first preset threshold, the acceleration information of the electronic device in the second direction is less than or equal to the third preset threshold, and the acceleration information of the electronic device in the third direction is less than or equal to the fifth preset threshold.
[0201] The control device of the electronic device provided in the embodiment of the present invention can be used to execute the control method of the above-mentioned electronic device, and its content and effects can be referred to the method part. The embodiment of the present invention does not limit this.
[0202] Embodiment XVI
[0203] Figure 11 FIG. is a schematic structural diagram of an electronic device provided in an embodiment of the present invention. As Figure 11 shown, the electronic device includes: at least one sensor 120 ( Figure 11 taking one sensor 120 as an example), a processor 130, and a memory 140.
[0204] Optionally, the memory 140 is used to store the executable instructions of the processor.
[0205] The processor 130 is configured to: obtain the status information of the electronic device through the at least one sensor; control the electronic image stabilization (EIS) function of the electronic device to be in a closed or open state according to the status information.
[0206] Optionally, at least one sensor includes at least one of the following: a gyroscope sensor, a barometer sensor, a Global Positioning System (GPS) sensor, and an image sensor;
[0207] Correspondingly, the status information includes at least one of the following: the acceleration information of the electronic device measured by the gyroscope sensor, the altitude information of the electronic device sensed by the barometer sensor, the GPS information of the electronic device obtained by the GPS sensor, and the video information of the electronic device obtained by the image sensor.
[0208] Optionally, when the status information is the acceleration information of the electronic device, the processor 130 is specifically configured to: when the acceleration information of the electronic device is 0, control the EIS function of the electronic device to be in a closed state; when the acceleration information of the electronic device is not 0, control the EIS function of the electronic device to be in an open state.
[0209] Optionally, when the status information is the acceleration information of the electronic device, the processor 130 is specifically configured to: when the acceleration information of the electronic device is less than the acceleration preset threshold, control the EIS function of the electronic device to be in a closed state; when the acceleration information of the electronic device is greater than or equal to the acceleration preset threshold, control the EIS function of the electronic device to be in an open state.
[0210] Optionally, when the status information is the altitude information of the electronic device, the processor 130 is specifically configured to: when the altitude information of the electronic device does not change or changes at a uniform speed within a preset time, control the EIS function of the electronic device to be in a closed state; when the altitude information of the electronic device changes non-uniformly within a preset time, control the EIS function of the electronic device to be in an open state.
[0211] Optionally, when the status information is the GPS information of the electronic device, the processor 130 is specifically configured to: when the GPS information of the electronic device does not change or changes at a uniform speed within a preset time, control the EIS function of the electronic device to be in a closed state; when the GPS information of the electronic device changes non-uniformly within a preset time, control the EIS function of the electronic device to be in an open state.
[0212] Optionally, when the status information is the video information of the electronic device, the processor 130 is specifically configured to: when the video information of the electronic device does not change or changes at a uniform speed within a preset time, control the EIS function of the electronic device to be in a closed state; when the video information of the electronic device changes non-uniformly within a preset time, control the EIS function of the electronic device to be in an open state.
[0213] Optionally, when the status information includes at least two of the acceleration information of the electronic device, the height information of the electronic device, the GPS information of the electronic device, and the video information of the electronic device, the processor 130 is specifically configured to: determine the respective priorities of the at least two items; control the EIS function of the electronic device to be in a closed or open state according to the item with the highest priority among the at least two items.
[0214] Optionally, when the status information includes at least two of the acceleration information of the electronic device, the height information of the electronic device, the GPS information of the electronic device, and the video information of the electronic device, the processor 130 is specifically configured to: determine whether to control the EIS function of the electronic device to be in an open state according to each of the at least two items; when it is determined according to at least one of the at least two items that the EIS function of the electronic device needs to be controlled to be in an open state, control the EIS function of the electronic device to be in an open state.
[0215] Optionally, the processor 130 is further configured to: determine at least one parameter among the shutter parameter, the sensitivity, and the exposure value of the electronic device when the EIS function is in a closed state; perform video shooting according to at least one parameter among the shutter parameter, the sensitivity, and the exposure value of the electronic device.
[0216] Optionally, the processor 130 is further configured to: determine at least one parameter among the shutter parameter, the sensitivity, and the exposure value of the electronic device when the EIS function is in an open state; perform video shooting according to at least one parameter among the shutter parameter, the sensitivity, and the exposure value of the electronic device.
[0217] Optionally, the processor 130 is further configured to: obtain the acceleration information of the electronic device in each direction through a gyroscope sensor; determine the EIS level of the electronic device according to the acceleration information of the electronic device in each direction; correspondingly, the processor 130 is specifically configured to: perform video shooting according to the EIS level of the electronic device and the at least one parameter.
[0218] Optionally, the processor 130 is further configured to: crop the video picture captured by the electronic device according to the EIS level of the electronic device.
[0219] Optionally, each direction includes a first direction, a second direction, and a third direction; correspondingly, the processor 130 is specifically configured to: if the acceleration information of the electronic device in the first direction is greater than a first preset threshold and less than or equal to a second preset threshold, the acceleration information of the electronic device in the second direction is greater than a third preset threshold and less than or equal to a fourth preset threshold, and the acceleration information of the electronic device in the third direction is greater than a fifth preset threshold and less than or equal to a sixth preset threshold, determine that the EIS level of the electronic device is a first EIS level; if the acceleration information of the electronic device in the first direction is greater than the second preset threshold and less than or equal to a seventh preset threshold, the acceleration information of the electronic device in the second direction is greater than the fourth preset threshold and less than or equal to an eighth preset threshold, and the acceleration information of the electronic device in the third direction is greater than the sixth preset threshold and less than or equal to a ninth preset threshold, determine that the EIS level of the electronic device is a second EIS level; if the acceleration information of the electronic device in the first direction is greater than the seventh preset threshold, the acceleration information of the electronic device in the second direction is greater than the eighth preset threshold, and the acceleration information of the electronic device in the third direction is greater than the ninth preset threshold, determine that the EIS level of the electronic device is a third EIS level.
[0220] Optionally, the processor 130 is specifically configured to: determine a cropping ratio for the video frame according to the EIS level of the electronic device; crop the video frame according to the cropping ratio.
[0221] Optionally, the processor 130 is further configured to: establish a correspondence between each EIS level and each cropping ratio.
[0222] Optionally, the processor 130 is further configured to: determine a preset area in the video frame captured by the electronic device and the resolution of the preset area; when the resolution of the preset area is less than a preset resolution, adjust the EIS level of the electronic device to an EIS level higher than the EIS level.
[0223] Optionally, the preset area is an edge area in the video frame.
[0224] Optionally, the processor 130 is further configured to: if the acceleration information of the electronic device in the first direction is greater than the second preset threshold and less than or equal to the seventh preset threshold, the acceleration information of the electronic device in the second direction is greater than the fourth preset threshold and less than or equal to the eighth preset threshold, and the acceleration information of the electronic device in the third direction is greater than the sixth preset threshold and less than or equal to the ninth preset threshold, adjust the EIS level from the third EIS level to the second EIS level; if the acceleration information of the electronic device in the first direction is greater than the first preset threshold and less than or equal to the second preset threshold, the acceleration information of the electronic device in the second direction is greater than the third preset threshold and less than or equal to the fourth preset threshold, and the acceleration information of the electronic device in the third direction is greater than the fifth preset threshold and less than or equal to the sixth preset threshold, adjust the EIS level from the second EIS level to the first EIS level; if the acceleration information of the electronic device in the first direction is less than or equal to the first preset threshold, the acceleration information of the electronic device in the second direction is less than or equal to the third preset threshold, and the acceleration information of the electronic device in the third direction is less than or equal to the fifth preset threshold, control the EIS function of the electronic device to be in the off state.
[0225] The electronic device provided by the embodiment of the present invention can be used to execute the control method of the above-mentioned electronic device, and its content and effects can be referred to the method part. The embodiment of the present invention does not make any limitations thereto.
[0226] Embodiment XVII
[0227] The embodiment of the present invention provides a storage medium, including: computer instructions, and the instructions are used to implement the control method of the above-mentioned electronic device, and its content and effects can be referred to the method part. The embodiment of the present invention does not make any limitations thereto.
[0228] Embodiment XVIII
[0229] The embodiment of the present invention provides a computer program product, including: computer instructions, and the instructions are used to implement the control method of the above-mentioned electronic device, and its content and effects can be referred to the method part. The embodiment of the present invention does not make any limitations thereto.
[0230] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments; and the foregoing storage medium includes: various media such as ROM, RAM, magnetic disk or optical disk that can store program codes.
[0231] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A control method for an electronic device, characterized in that, Including: Obtaining status information of the electronic device through at least one sensor in the electronic device, where the status information at least includes acceleration information of the electronic device, altitude information of the electronic device, GPS information of the electronic device, and video information of the electronic device; Controlling the electronic image stabilization function of the electronic device to be in a closed or open state according to the status information, where when the status information includes at least two items, the controlling the electronic image stabilization function of the electronic device to be in a closed or open state according to the status information includes: Determining the respective priorities of the at least two items; Controlling the electronic image stabilization function of the electronic device to be in a closed or open state according to the respective priorities of the at least two items; In response to the electronic image stabilization function being in a closed state, controlling the electronic device to take pictures with first shooting parameters; In response to the electronic image stabilization function being in an open state, controlling the electronic device to take pictures with second shooting parameters; Wherein, the first shooting parameters and the second shooting parameters include at least one of shutter parameters, ISO, and exposure values, and there is at least one parameter different between the first shooting parameters and the second shooting parameters.
2. The method according to claim 1, wherein The method further includes: when the electronic image stabilization function is in an open state, determining at least one parameter in the predetermined configuration parameters of the electronic device; Obtaining acceleration information of the electronic device in each direction; Determining the EIS level of the electronic device according to the acceleration information of the electronic device in each direction; Performing video shooting according to the EIS level of the electronic device and the at least one parameter; and Cropping the video frame captured by the electronic device according to the EIS level of the electronic device.
3. The method according to claim 2, wherein Each direction includes a first direction, a second direction, and a third direction; The determining the EIS level of the electronic device according to the acceleration information of the electronic device in each direction includes: If the acceleration information of the electronic device in the first direction is greater than a first preset threshold and less than or equal to a second preset threshold, the acceleration information of the electronic device in the second direction is greater than a third preset threshold and less than or equal to a fourth preset threshold, and the acceleration information of the electronic device in the third direction is greater than a fifth preset threshold and less than or equal to a sixth preset threshold, then determining that the EIS level of the electronic device is a first EIS level; or If the acceleration information of the electronic device in the first direction is greater than the second preset threshold and less than or equal to a seventh preset threshold, the acceleration information of the electronic device in the second direction is greater than the fourth preset threshold and less than or equal to an eighth preset threshold, and the acceleration information of the electronic device in the third direction is greater than the sixth preset threshold and less than or equal to a ninth preset threshold, then determining that the EIS level of the electronic device is a second EIS level; or If the acceleration information of the electronic device in the first direction is greater than the seventh preset threshold, the acceleration information of the electronic device in the second direction is greater than the eighth preset threshold, and the acceleration information of the electronic device in the third direction is greater than the ninth preset threshold, then it is determined that the EIS level of the electronic device is the third EIS level.
4. The method according to claim 2, characterized in that, Cropping the video frame captured by the electronic device according to the EIS level of the electronic device includes: Determining the cropping ratio of the video frame according to the EIS level of the electronic device; Cropping the video frame according to the cropping ratio, and / or The acceleration information of the electronic device in each direction is obtained by a gyroscope sensor.
5. The method according to claim 4, wherein Before determining the cropping ratio of the video frame according to the EIS level of the electronic device, it further includes: Establishing a correspondence between each EIS level and each cropping ratio.
6. The method according to claim 2, wherein After cropping the video frame captured by the electronic device according to the EIS level of the electronic device, it further includes: Determining a preset area in the video frame captured by the electronic device and the resolution of the preset area; When the resolution of the preset area is less than the preset resolution, adjusting the EIS level of the electronic device to an EIS level higher than the EIS level.
7. The method according to claim 6, wherein The preset area is the edge area in the video frame.
8. The method according to claim 3, characterized in that After determining that the EIS level of the electronic device is the third EIS level, it further includes: If the acceleration information of the electronic device in the first direction is greater than the second preset threshold and less than or equal to the seventh preset threshold, the acceleration information of the electronic device in the second direction is greater than the fourth preset threshold and less than or equal to the eighth preset threshold, and the acceleration information of the electronic device in the third direction is greater than the sixth preset threshold and less than or equal to the ninth preset threshold, then adjusting the EIS level from the third EIS level to the second EIS level; or If the acceleration information of the electronic device in the first direction is greater than the first preset threshold and less than or equal to the second preset threshold, the acceleration information of the electronic device in the second direction is greater than the third preset threshold and less than or equal to the fourth preset threshold, and the acceleration information of the electronic device in the third direction is greater than the fifth preset threshold and less than or equal to the sixth preset threshold, then adjusting the EIS level from the second EIS level to the first EIS level; or If the acceleration information of the electronic device in the first direction is less than or equal to the first preset threshold, the acceleration information of the electronic device in the second direction is less than or equal to the third preset threshold, and the acceleration information of the electronic device in the third direction is less than or equal to the fifth preset threshold, then controlling the electronic image stabilization function of the electronic device to be in the off state.
9. An electronic device, characterized in that, It includes: At least one sensor, a processor, and a memory; The memory is used to store the executable instructions of the processor; The processor is used to execute the method according to any one of claims 1-8.
10. A storage medium, characterized in that, It includes: Computer instructions for implementing the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Camera cellphone with tremble prevention function and tremble prevention method in photographing process thereof
CN101729665A
Terminal
CN104780312A
Image processing device, image processing method, and program
JP2014207507A
Image reproducer, control method thereof, program, and storage medium
JP2017212550A