CN110365896B - Control method and electronic equipment - Google Patents

Control method and electronic equipment Download PDF

Info

Publication number
CN110365896B
CN110365896B CN201910581768.5A CN201910581768A CN110365896B CN 110365896 B CN110365896 B CN 110365896B CN 201910581768 A CN201910581768 A CN 201910581768A CN 110365896 B CN110365896 B CN 110365896B
Authority
CN
China
Prior art keywords
camera
target
posture
video recording
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910581768.5A
Other languages
Chinese (zh)
Other versions
CN110365896A (en
Inventor
杨双新
赵婷婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201910581768.5A priority Critical patent/CN110365896B/en
Publication of CN110365896A publication Critical patent/CN110365896A/en
Priority to US16/914,168 priority patent/US11409434B2/en
Application granted granted Critical
Publication of CN110365896B publication Critical patent/CN110365896B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a control method and electronic equipment, wherein the control method comprises the following steps: acquiring a trigger instruction, wherein the trigger instruction is used for indicating that a plurality of acquired images are acquired continuously; obtaining a posture of the electronic equipment; selecting a target camera from a first camera and a second camera of the electronic device based on the gesture; and acquiring images by using the target camera, and storing the images acquired by the target camera as target images.

Description

Control method and electronic equipment
Technical Field
The invention relates to the field of electronic equipment, in particular to a control method and electronic equipment.
Background
At present, when electronic equipment takes a picture or records a video, an image acquired in a vertical screen posture can only be a vertical screen image, and an image acquired in a horizontal screen posture can only be a horizontal screen image. Moreover, when the image collected in the vertical screen posture is played in the horizontal screen posture, the image cannot be displayed in a full screen mode, and the viewing effect is seriously influenced.
Disclosure of Invention
The embodiment of the application provides a control method and electronic equipment, which at least can realize transverse screen image acquisition or vertical screen image acquisition irrelevant to the transverse screen or vertical screen posture of the electronic equipment.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a control method, which comprises the following steps:
acquiring a trigger instruction, wherein the trigger instruction is used for indicating that a plurality of acquired images are acquired continuously;
obtaining a posture of the electronic equipment;
selecting a target camera from a first camera and a second camera of the electronic device based on the gesture;
and acquiring images by using the target camera, and storing the images acquired by the target camera as target images.
In the foregoing scheme, optionally, the method further includes:
closing a non-target camera in the first camera and the second camera while acquiring images by using the target camera; or
And ignoring the collected images collected by the non-target cameras in the first camera and the second camera.
In the foregoing solution, optionally, the first camera and the second camera have the same constituent elements and optical parameters, and a long side of the photosensitive array of the first camera and a long side of the photosensitive array of the second camera in the electronic device are perpendicular to each other; the long edge of the photosensitive array of the first camera corresponds to the long edge of the electronic equipment; the long side of the photosensitive array of the second camera corresponds to the short side of the electronic device.
In the foregoing scheme, optionally, the trigger instruction is a recording instruction, and the target camera is determined once every time the posture of the electronic device is changed during the recording process.
In the foregoing scheme, optionally, the method further includes:
acquiring a first operation before recording is started, wherein the first operation is used for a user to designate a video recording mode;
determining a target video recording mode based on the first operation;
selecting a target camera from the first camera and the second camera according to the target video recording mode;
the target video recording mode comprises a horizontal screen video recording mode and a vertical screen video recording mode.
In the foregoing solution, optionally, when the designated video recording mode is a horizontal screen video recording mode, the selecting a target camera from the first camera and the second camera according to the target video recording mode includes:
when the posture is a landscape screen posture, selecting the first camera as a target camera, wherein the first camera can realize landscape screen video recording when the electronic equipment is in the landscape screen posture, and can realize vertical screen video recording when the electronic equipment is in the vertical screen posture;
and when the posture is the vertical screen posture, selecting the second camera as a target camera, wherein the second camera can realize horizontal screen video recording when the electronic equipment is in the vertical screen posture, and can realize vertical screen video recording when the electronic equipment is in the horizontal screen posture.
In the foregoing solution, optionally, when the designated video recording mode is a vertical screen video recording mode, the selecting a target camera from the first camera and the second camera according to the target video recording mode includes:
when the posture is a landscape screen posture, selecting the second camera as a target camera, wherein the second camera can realize landscape screen video recording when the electronic equipment is in a portrait screen posture, and can realize portrait screen video recording when the electronic equipment is in a landscape screen posture;
and when the gesture is a vertical screen gesture, selecting the first camera as a target camera, wherein the first camera can realize horizontal screen video recording when the electronic equipment is in the horizontal screen gesture, and can realize vertical screen video recording when the electronic equipment is in the vertical screen gesture.
In the foregoing solution, optionally, the trigger instruction is a panoramic shooting instruction, and the method further includes:
obtaining a motion direction of the electronic device;
the selecting a target camera from a first camera and a second camera of the electronic device based on the gesture includes:
and selecting a target camera from the first camera and the second camera based on the current posture and the motion direction under the current posture, and closing a non-target camera in the first camera and the second camera.
An embodiment of the present application further provides an electronic device, including:
a first camera;
a second camera;
a display screen for displaying an image;
the processor is used for obtaining a trigger instruction, and the trigger instruction is used for indicating that a plurality of collected images are collected continuously; obtaining a posture of the electronic equipment; selecting a target camera from the first camera and the second camera based on the pose; and acquiring images by using the target camera, and storing the images acquired by the target camera as target images.
In the foregoing scheme, optionally, the processor is further configured to:
closing a non-target camera in the first camera and the second camera while acquiring images by using the target camera; or
And ignoring the collected images collected by the non-target cameras in the first camera and the second camera.
In the foregoing solution, optionally, the first camera and the second camera have the same constituent elements and optical parameters, and a long side of the photosensitive array of the first camera and a long side of the photosensitive array of the second camera in the electronic device are perpendicular to each other; the long edge of the photosensitive array of the first camera corresponds to the long edge of the electronic equipment; the long side of the photosensitive array of the second camera corresponds to the short side of the electronic device.
In the foregoing scheme, optionally, when the trigger instruction is a recording instruction, the processor is further configured to: and in the recording process, determining the target camera once when the posture of the electronic equipment is changed once.
In the foregoing scheme, optionally, the processor is further configured to:
acquiring a first operation before recording is started, wherein the first operation is used for a user to designate a video recording mode;
determining a target video recording mode based on the first operation;
selecting a target camera from the first camera and the second camera according to the target video recording mode;
the target video recording mode comprises a horizontal screen video recording mode and a vertical screen video recording mode.
In the foregoing solution, optionally, when the designated video recording mode is the horizontal screen video recording mode, the processor is further configured to:
when the posture is a landscape screen posture, selecting the first camera as a target camera, wherein the first camera can realize landscape screen video recording when the electronic equipment is in the landscape screen posture, and can realize vertical screen video recording when the electronic equipment is in the vertical screen posture;
and when the posture is the vertical screen posture, selecting the second camera as a target camera, wherein the second camera can realize horizontal screen video recording when the electronic equipment is in the vertical screen posture, and can realize vertical screen video recording when the electronic equipment is in the horizontal screen posture.
In the foregoing solution, optionally, when the designated video recording mode is the vertical screen video recording mode, the processor is further configured to:
when the posture is a landscape screen posture, selecting the second camera as a target camera, wherein the second camera can realize landscape screen video recording when the electronic equipment is in a portrait screen posture, and can realize portrait screen video recording when the electronic equipment is in a landscape screen posture;
and when the gesture is a vertical screen gesture, selecting the first camera as a target camera, wherein the first camera can realize horizontal screen video recording when the electronic equipment is in the horizontal screen gesture, and can realize vertical screen video recording when the electronic equipment is in the vertical screen gesture.
In the foregoing solution, optionally, the trigger instruction is a panoramic shooting instruction, and the processor is further configured to:
obtaining a motion direction of the electronic device;
and selecting a target camera from the first camera and the second camera based on the current posture and the motion direction under the current posture, and closing a non-target camera in the first camera and the second camera.
The embodiment of the present application further provides a computer storage medium, where computer-executable instructions are stored in the computer storage medium, and when the computer-executable instructions are executed by a processor, the processor is enabled to execute the steps of the control method according to the embodiment of the present application.
By adopting the technical scheme of the embodiment of the application, a trigger instruction is obtained, and the trigger instruction is used for indicating that a plurality of collected images are collected continuously; obtaining a posture of the electronic equipment; selecting a target camera from a first camera and a second camera of the electronic device based on the gesture; acquiring images by using the target camera, and storing the images acquired by the target camera as target images; therefore, the target camera is selected by combining the current posture of the electronic equipment, and at least transverse screen image acquisition or vertical screen image acquisition irrelevant to the transverse screen posture or the vertical screen posture of the electronic equipment can be realized.
Drawings
Fig. 1 is a schematic view of an arrangement relationship between a first camera and a second camera in an electronic device according to an embodiment of the present disclosure;
fig. 2 is a first schematic flow chart illustrating an implementation process of a control method according to an embodiment of the present application;
fig. 3 is a schematic flow chart illustrating an implementation process of the method according to the embodiment of the present application;
fig. 4 is a schematic diagram illustrating that horizontal screen video recording and vertical screen video recording are performed when the electronic device is in the vertical screen posture according to the embodiment of the present application;
fig. 5 is a schematic diagram illustrating that cross-screen video recording is performed when the electronic device is in the cross-screen posture according to the embodiment of the present application;
fig. 6 is a schematic diagram illustrating that the electronic device performs cross-screen video recording during a process of rotating from a cross-screen state to a vertical-screen state according to the embodiment of the present application;
fig. 7 is a schematic flow chart illustrating an implementation process of the control method according to the embodiment of the present application;
fig. 8 is a schematic view illustrating an electronic device entering a panoramic shooting mode when the electronic device erects a screen according to an embodiment of the present application;
fig. 9 is a schematic view illustrating an electronic device entering a panorama shooting mode when being displayed on a landscape screen according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
So that the manner in which the features and aspects of the present application can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
In the following embodiments of the control method and the electronic device provided by the present application, the electronic device includes a first camera and a second camera.
Specifically, the first camera and the second camera have the same components and optical parameters, and the long side of the photosensitive array of the first camera and the long side of the photosensitive array of the second camera in the electronic device are perpendicular to each other; the long edge of the photosensitive array of the first camera corresponds to the long edge of the electronic equipment; the long side of the photosensitive array of the second camera corresponds to the short side of the electronic device.
For example, the first camera and the second camera have the same optical parameters such as resolution, aperture, focal length, etc., and the lens and the focusing motor have the same components.
That is, in the design of camera hardware of an electronic device, two cameras which are identical in structure and have long sides arranged perpendicular to each other are introduced, as shown in fig. 1, the long side of the photosensitive array of the first camera is perpendicular to the long side of the photosensitive array of the second camera; the long edge of the photosensitive array of the first camera corresponds to the long edge of the electronic equipment; the long side of the photosensitive array of the second camera corresponds to the short side of the electronic device.
In the following embodiments of the control method and the electronic device provided by the present application, the electronic device includes, but is not limited to: the device supports image acquisition, such as a notebook computer, a tablet computer, a mobile phone or a television.
Based on the camera hardware design of the electronic device, the following various control methods related to image acquisition are proposed.
The technical solution of the present application is further elaborated below with reference to the drawings and the specific embodiments.
Example one
The embodiment provides a control method, which is applied to an electronic device, and as shown in fig. 1, the access method mainly includes the following steps:
step 101: and obtaining a trigger instruction, wherein the trigger instruction is used for indicating that a plurality of collected images are collected continuously.
In some optional embodiments, when the electronic device receives a trigger operation input by a user, a trigger instruction is generated based on the trigger operation.
Illustratively, the electronic device opens a camera application, and generates a trigger instruction when receiving a trigger operation input by a user and indicating that a plurality of acquired images are acquired continuously.
Step 102: the pose of the electronic device is obtained.
Here, the postures include at least a landscape posture and a portrait posture.
In some optional embodiments, the electronic device obtains a first parameter detected by its gravity sensor, and determines whether the electronic device is currently in the landscape screen posture or the portrait screen posture based on the first parameter.
For example, the first parameter may be a voltage level. Specifically, the gravity sensor calculates the horizontal direction according to the voltage generated in the two orthogonal directions, and then judges whether the electronic device is currently in the horizontal screen posture or the vertical screen posture.
Step 103: selecting a target camera from a first camera and a second camera of the electronic device based on the gesture.
In this way, the target camera is selected from the first camera and the second camera based on the posture of the electronic device, so that the image collected by the target camera is adapted to the posture of the electronic device.
Step 104: and acquiring images by using the target camera, and storing the images acquired by the target camera as target images.
Therefore, the image collected by the target camera can be used as partial data of the target file.
In the foregoing scheme, optionally, the method further includes:
closing a non-target camera in the first camera and the second camera while acquiring images by using the target camera; or
And ignoring the collected images collected by the non-target cameras in the first camera and the second camera.
Therefore, the image collected by the non-target camera cannot be stored as a target image or used as partial data of a target file.
By adopting the control method of the embodiment of the application, a trigger instruction for indicating continuous acquisition of a plurality of acquired images is obtained; obtaining a posture of the electronic equipment; selecting a target camera from a first camera and a second camera of the electronic device based on the gesture; acquiring images by using the target camera, and storing the images acquired by the target camera as target images; therefore, the target camera is selected by combining the current posture of the electronic equipment, the image collected by the target camera is stored, the image collected by the target camera can be used as partial data of the target file, and the displayed target image is adaptive to the collected posture when the target file is played.
Example two
The present embodiment provides a control method, which is applied to an electronic device, and as shown in fig. 3, the control method mainly includes the following steps:
step 201: and acquiring a trigger instruction, wherein the trigger instruction is a recording instruction.
Step 202: the pose of the electronic device is obtained.
Here, the postures include at least a landscape posture and a portrait posture.
Step 203: and selecting a target camera from the first camera and the second camera based on the gesture, and determining the target camera once when the gesture of the electronic equipment is changed once in the recording process.
Therefore, the target camera is adjusted in real time based on the posture of the electronic equipment, so that the image acquired by the target camera is adaptive to the posture of the electronic equipment.
Step 204: and acquiring images by using the target camera, and storing the images acquired by the target camera as target images, wherein the target images are used as partial data of a target file.
Therefore, the target image collected by the target camera can be used as the image data of the video file.
In some optional embodiments, when the electronic device obtains a trigger instruction representing that recording starts, a target camera is selected based on a current posture of the electronic device, that is, a target camera adapted to the posture is automatically selected for a user based on the posture of the electronic device when the trigger instruction is obtained; in the recording process, when the gesture of the electronic equipment is detected to be changed once by the user, the target camera is determined once, so that the electronic equipment records the target file which is consistent with the preview effect displayed when the trigger instruction is acquired. In the foregoing scheme, optionally, the method further includes:
acquiring a first operation before recording is started, wherein the first operation is used for a user to designate a video recording mode;
determining a target video recording mode based on the first operation;
selecting a target camera from the first camera and the second camera according to the target video recording mode;
the target video recording mode comprises a horizontal screen video recording mode and a vertical screen video recording mode.
Here, the target video recording mode may be understood as a display effect presented by a target image when a target file is played.
Thus, before recording is started, the target camera can be determined according to the video recording mode specified by the user, so that the recorded image is consistent with the video recording mode specified by the user.
In some optional embodiments, before obtaining the first operation, the method comprises:
when entering a video preview interface, calling a default camera for previewing and prompting a video button corresponding to the current preview effect; wherein the current preview effect is adapted to the current posture of the electronic equipment;
and calling the non-default camera to preview when the operation of switching the video recording key is received.
In some optional embodiments, the current preview effect is adapted to the current posture of the electronic device, including:
when the screen is in the vertical screen posture, the corresponding preview interface is a vertical screen image interface;
and the corresponding preview interface in the landscape posture is a landscape image interface.
In some alternative embodiments, when the designated video recording mode is a landscape video recording mode, selecting a target camera from the first camera and the second camera based on the gesture includes:
when the posture is a landscape screen posture, selecting the first camera as a target camera, wherein the first camera can realize landscape screen video recording when the electronic equipment is in the landscape screen posture, and can realize vertical screen video recording when the electronic equipment is in the vertical screen posture;
when the posture is a vertical screen posture, selecting the second camera as a target camera, wherein the second camera can realize horizontal screen video recording when the electronic equipment is in the vertical screen posture, and can realize vertical screen video recording when the electronic equipment is in the horizontal screen posture;
when the posture is rotated from the horizontal screen posture to the vertical screen posture, selecting the second camera as a target camera;
and when the gesture is rotated from the vertical screen gesture to the horizontal screen gesture, selecting the first camera as a target camera.
Therefore, the images in the video files recorded by the electronic equipment are adapted to the appointed horizontal screen video recording mode by instantly switching the target camera.
In some optional embodiments, when the designated video recording mode is a portrait video recording mode, selecting a target camera from the first camera and the second camera based on the gesture includes:
when the posture is a landscape screen posture, selecting the second camera as a target camera, wherein the second camera can realize landscape screen video recording when the electronic equipment is in a portrait screen posture, and can realize portrait screen video recording when the electronic equipment is in a landscape screen posture;
when the posture is a vertical screen posture, selecting the first camera as a target camera, wherein the first camera can realize horizontal screen video recording when the electronic equipment is in the horizontal screen posture, and can realize vertical screen video recording when the electronic equipment is in the vertical screen posture;
when the posture is rotated from the horizontal screen posture to the vertical screen posture, selecting the first camera as a target camera;
and when the posture is rotated from the vertical screen posture to the horizontal screen posture, selecting the second camera as a target camera.
Therefore, the images in the video files recorded by the electronic equipment are adapted to the appointed vertical screen video recording mode by instantly switching the target camera.
By adopting the control method of the embodiment of the application, a trigger instruction for indicating recording is obtained; obtaining a posture of the electronic equipment; selecting a target camera from a first camera and a second camera of the electronic equipment based on the gesture, and determining the target camera once when the gesture of the electronic equipment is changed once in the recording process; acquiring images by using the target camera, and storing the images acquired by the target camera as target images, wherein the target images are used as partial data of a target file; therefore, the target camera is selected by combining the current posture of the electronic equipment, the image collected by the target camera is stored, the image collected by the target camera can be used as partial data of the target file, and the displayed target image is adaptive to the collected posture when the target file is played.
FIG. 4 is a diagram illustrating horizontal screen recording and vertical screen recording performed while the electronic device is in a vertical screen position; specifically, fig. 4(a) shows selecting a first camera for vertical screen recording, and fig. 4(b) shows selecting a second camera for horizontal screen recording.
For example, when the electronic device is in a vertical screen state, a user may turn on a first camera (camera a) for vertical screen recording, and at the same time, an option is provided to allow the user to turn on a second camera (camera B) for horizontal screen recording. Specifically, entering a video preview interface in the vertical screen posture, calling a camera A for preview by default through a viewing frame, and clicking a left button to start vertical screen video recording; and if the user wants to perform horizontal screen video recording, the user directly clicks the right button and uses the camera B to perform horizontal screen video recording.
It is to be understood that the above-described interaction means are only exemplary and can be set or adjusted according to user requirements or design requirements.
FIG. 5 is a diagram illustrating a cross-screen recording being performed while the electronic device is in a cross-screen position; specifically, when the electronic device is in a landscape state, a user may turn on a first camera (camera a) to perform landscape recording.
Fig. 6 shows a schematic diagram of an electronic device performing horizontal screen video recording in a process of rotating from a horizontal screen state to a vertical screen state, after the electronic device performs horizontal screen video recording in the horizontal screen state, a user can adjust the electronic device to a vertical screen state to facilitate hand holding, fig. 6(a) shows a schematic diagram of a process of rotating from the horizontal screen state to the vertical screen state, the video recording process is automatically switched to a camera B by the camera a, the video recording is uninterrupted, fig. 6(B) shows a schematic diagram of performing horizontal screen video recording in a process of rotating to the vertical screen state, the camera B takes over the video recording, and the camera a stops the video recording.
Exemplarily, when a user holds the electronic equipment in a horizontal screen, the user uses a camera A to perform horizontal screen video recording; after the video begins, when the user changes the electronic equipment from a horizontal screen to a vertical screen, the camera B automatically takes over the video, so that the fatigue of the user is relieved, and the recording experience is not reduced; similarly, when the user changes the vertical screen posture of the electronic equipment into the horizontal screen posture, the camera A takes over the video again, and the horizontal screen video irrelevant to the posture of the electronic equipment is realized.
According to the technical scheme, the problem that in the related art, when the video recorded by the vertical screen is played in the horizontal screen device, the full screen display cannot be carried out, and the viewing effect is seriously influenced can be solved. This embodiment technical scheme, owing to can realize erecting horizontal screen under the screen gesture and record the effect, the user uses one hand can realize that horizontal screen records the effect, can avoid among the correlation technique "must hold electronic equipment with the horizontal screen mode and just can realize that horizontal screen records the both hands that occupy that the effect caused, the frame is looked after in the palm shelters from easily, and the arm is ache more easily when recording for a long time" scheduling problem.
EXAMPLE III
The present embodiment provides a control method, which is applied to an electronic device, and as shown in fig. 7, the control method mainly includes the following steps:
step 301: and acquiring a trigger instruction, wherein the trigger instruction is a panoramic shooting instruction.
Step 302: the pose of the electronic device is obtained.
Here, the postures include at least a landscape posture and a portrait posture.
Step 303: obtaining a motion direction of the electronic device.
Step 304: selecting a target camera from a first camera and a second camera based on the current posture and the motion direction under the current posture, and closing a non-target camera in the first camera and the second camera.
In this way, the target camera is selected from the first camera and the second camera based on the posture of the electronic device and the motion direction in the current posture, so that the image acquired by the target camera is adapted to the posture of the electronic device and the motion direction in the current posture.
Step 305: and acquiring images by using the target camera, and storing the images acquired by the target camera as target images, wherein the target images are used as partial data of a target file.
In some optional embodiments, when the electronic device acquires a trigger instruction representing panoramic shooting, a target camera is selected based on the current posture of the electronic device; in the shooting process, the motion direction or shooting moving direction of the electronic equipment is obtained; and selecting a target camera by combining the current equipment motion direction or shooting moving direction based on the posture of the electronic equipment when the electronic equipment acquires the trigger instruction.
Based on the hardware layout of the electronic device shown in fig. 1, when a user takes a panorama, four-way wide-frame shooting can be realized according to the rule combination shown in table 1.
Figure BDA0002113354080000121
TABLE 1
Illustratively, when the electronic device is in the vertical screen posture and enters the panoramic shooting mode, the view finder defaults to adopt the preview data of the camera a. In the vertical screen posture, when the shooting moving direction or the equipment moving direction changes in the shooting process of the electronic equipment, selecting a target camera according to the current shooting moving direction or the equipment moving direction, specifically, when the moving direction is leftward or rightward, still selecting the camera A as the target camera, and still keeping the camera B in a closed state; when the moving direction is upward or downward, the camera B is selected as a target camera, shooting is carried out by using the camera B, and meanwhile, the camera A is closed.
Fig. 8 is a schematic diagram illustrating entering a panoramic shooting mode when the electronic device is in a vertical screen mode, and as shown in fig. 8, when the electronic device is in a vertical screen mode, the view finder defaults to preview data by using the camera a, and can support leftward movement, rightward movement, upward movement and downward movement in a vertical screen posture.
Illustratively, when the electronic device is in the landscape posture and enters the panoramic shooting mode, the view finder defaults to adopt the preview data of the camera B. In the landscape posture, when the shooting moving direction or the equipment moving direction changes in the shooting process of the electronic equipment, selecting a target camera according to the current shooting moving direction or the equipment moving direction, specifically, when the moving direction is towards the left or the right, still selecting a camera B as the target camera, and still enabling the camera A to be in a closed state; when the moving direction is upward or downward, the camera A is selected as a target camera, shooting is carried out by using the camera A, and meanwhile, the camera B is closed.
Fig. 9 is a schematic diagram illustrating entering a panoramic shooting mode when the electronic device is landscape-oriented, and as shown in fig. 9, when the electronic device is landscape-oriented, the view finder previews data by default using the camera B; meanwhile, the horizontal screen posture can be supported to move leftwards, rightwards, upwards and downwards.
In the related art, as wide-screen mobile phones are increasingly popularized, in order to pursue visual effects, many manufacturers tend to adopt a preview frame with a high aspect ratio so as to fill the full screen. However, the higher the aspect ratio of the preview frame is, the larger the frame loss is when the panorama is shot in the narrow frame direction.
According to the technical scheme, under the condition of a preview frame with any length-width ratio, wide-frame shooting can be carried out in four directions.
Compared with narrow-frame shooting, wide-frame shooting can obtain more scene information, and the method specifically comprises the following steps:
when the aspect ratio of the preview frame is 4:3, the picture size can be increased by 33.3%;
77.7% frame size may be increased when the preview box aspect ratio is 16: 9;
when the preview frame aspect ratio is 21:9, the frame size can be increased by 133%.
By adopting the control method of the embodiment of the application, a trigger instruction for indicating panoramic shooting is obtained; obtaining a posture of the electronic equipment; obtaining a motion direction of the electronic device; selecting a target camera from the first camera and the second camera based on the current posture and the motion direction under the current posture, and closing a non-target camera in the first camera and the second camera; acquiring images by using the target camera, and storing the images acquired by the target camera as target images, wherein the target images are used as partial data of a target file; therefore, the panoramic shooting device can support the panoramic shooting of wide frames in the up, down, left and right directions.
Example four
An embodiment of the present application further provides an electronic device, including: a first camera 10, a second camera 20, a display screen 30 and a processor 40; wherein,
the display screen 30 is used for displaying images;
the processor 40 is configured to obtain a trigger instruction, where the trigger instruction is used to instruct to continuously acquire a plurality of acquired images; obtaining a posture of the electronic equipment; selecting a target camera from the first camera and the second camera based on the pose; and acquiring images by using the target camera, and storing the images acquired by the target camera as target images.
In some optional embodiments, the processor 40 is further configured to:
closing a non-target camera in the first camera and the second camera while acquiring images by using the target camera; or
And ignoring the collected images collected by the non-target cameras in the first camera and the second camera.
In the above solution, the first camera and the second camera have the same components and optical parameters, and the long side of the photosensitive array of the first camera and the long side of the photosensitive array of the second camera in the electronic device are perpendicular to each other; the long edge of the photosensitive array of the first camera corresponds to the long edge of the electronic equipment; the long side of the photosensitive array of the second camera corresponds to the short side of the electronic device.
In some optional embodiments, when the triggering instruction is a recording instruction, the processor 40 is further configured to: and in the recording process, determining the target camera once when the posture of the electronic equipment is changed once.
In some optional embodiments, the processor 40 is further configured to:
acquiring a first operation before recording is started, wherein the first operation is used for a user to designate a video recording mode;
determining a target video recording mode based on the first operation;
selecting a target camera from the first camera and the second camera according to the target video recording mode;
the target video recording mode comprises a horizontal screen video recording mode and a vertical screen video recording mode.
In some optional embodiments, when the designated video recording mode is the cross-screen video recording mode, the processor 40 is further configured to:
when the posture is a landscape screen posture, selecting the first camera as a target camera, wherein the first camera can realize landscape screen video recording when the electronic equipment is in the landscape screen posture, and can realize vertical screen video recording when the electronic equipment is in the vertical screen posture;
and when the posture is the vertical screen posture, selecting the second camera as a target camera, wherein the second camera can realize horizontal screen video recording when the electronic equipment is in the vertical screen posture, and can realize vertical screen video recording when the electronic equipment is in the horizontal screen posture.
In some optional embodiments, when the designated video recording mode is a vertical screen video recording mode, the processor 40 is further configured to:
when the posture is a landscape screen posture, selecting the second camera as a target camera, wherein the second camera can realize landscape screen video recording when the electronic equipment is in a portrait screen posture, and can realize portrait screen video recording when the electronic equipment is in a landscape screen posture;
and when the gesture is a vertical screen gesture, selecting the first camera as a target camera, wherein the first camera can realize horizontal screen video recording when the electronic equipment is in the horizontal screen gesture, and can realize vertical screen video recording when the electronic equipment is in the vertical screen gesture.
In some optional embodiments, the triggering instruction is a panorama shooting instruction, and the processor 40 is further configured to:
obtaining a motion direction of the electronic device;
and selecting a target camera from the first camera and the second camera based on the current posture and the motion direction under the current posture, and closing a non-target camera in the first camera and the second camera.
The electronic equipment can select the target camera by combining the posture of the electronic equipment, and the target camera is used for collecting images, so that transverse screen image collection or vertical screen image collection irrelevant to the transverse screen posture or the vertical screen posture of the electronic equipment is realized; the problem that the video recorded by the vertical screen cannot be displayed in a full screen mode when played in the horizontal screen equipment and the viewing effect is seriously influenced in the related technology can be solved, and the horizontal screen recording effect irrelevant to the posture of the electronic equipment is realized; and the panoramic shooting of wide frames in the up, down, left and right directions can be supported.
EXAMPLE five
The embodiment of the application provides a control device, is applied to electronic equipment, and this control device includes:
the device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring a trigger instruction, and the trigger instruction is used for indicating that a plurality of acquired images are acquired continuously;
a second acquisition unit for acquiring a posture of the electronic device;
a determination unit configured to select a target camera from a first camera and a second camera of the electronic device based on the gesture;
and the control unit is used for acquiring images by using the target camera and storing the images acquired by the target camera as target images.
In the foregoing scheme, optionally, the control unit is further configured to:
closing a non-target camera in the first camera and the second camera while acquiring images by using the target camera; or
And ignoring the collected images collected by the non-target cameras in the first camera and the second camera.
In an optional implementation manner, the triggering instruction is a recording instruction, and the determining unit is further configured to: and in the recording process, determining the target camera once when the posture of the electronic equipment is changed once.
In an optional implementation manner, the first obtaining unit is further configured to obtain a first operation before recording is started, where the first operation is used for a user to specify a video recording mode, where the trigger instruction is a recording instruction; the determining unit is further configured to determine a target video recording mode based on the first operation; selecting a target camera from the first camera and the second camera according to the target video recording mode; the target video recording mode comprises a horizontal screen video recording mode and a vertical screen video recording mode.
In some optional embodiments, when the designated video recording mode is a landscape video recording mode, the determining unit is further configured to:
when the posture is a landscape screen posture, selecting the first camera as a target camera, wherein the first camera can realize landscape screen video recording when the electronic equipment is in the landscape screen posture, and can realize vertical screen video recording when the electronic equipment is in the vertical screen posture;
and when the posture is the vertical screen posture, selecting the second camera as a target camera, wherein the second camera can realize horizontal screen video recording when the electronic equipment is in the vertical screen posture, and can realize vertical screen video recording when the electronic equipment is in the horizontal screen posture.
In some optional embodiments, when the designated video recording mode is a vertical screen video recording mode, the determining unit is further configured to:
when the posture is a landscape screen posture, selecting the second camera as a target camera, wherein the second camera can realize landscape screen video recording when the electronic equipment is in a portrait screen posture, and can realize portrait screen video recording when the electronic equipment is in a landscape screen posture;
and when the gesture is a vertical screen gesture, selecting the first camera as a target camera, wherein the first camera can realize horizontal screen video recording when the electronic equipment is in the horizontal screen gesture, and can realize vertical screen video recording when the electronic equipment is in the vertical screen gesture.
In some optional embodiments, the trigger instruction is a panoramic shooting instruction, and the second obtaining unit is further configured to obtain a motion direction of the electronic device; the determining unit is further configured to select a target camera from the first camera and the second camera based on a current posture and a motion direction in the current posture, and simultaneously close a non-target camera in the first camera and the second camera.
Those skilled in the art will understand that, in some alternative embodiments, the functions implemented by the processing modules in the control device can be understood by referring to the related description of the control method in the foregoing embodiments.
It will be appreciated by those skilled in the art that in some alternative embodiments, the functions of the processing units in the control device may be implemented by a program running on a processor, or by specific logic circuits.
In practical applications, the specific structures of the first obtaining unit, the second obtaining unit, the determining unit and the controlling unit may all correspond to a processor. The specific structure of the processor may be a Central Processing Unit (CPU), a Micro Controller Unit (MCU), a Digital Signal Processor (DSP), a Programmable Logic Controller (PLC), or other electronic components or a collection of electronic components having a Processing function. The processor includes executable codes, the executable codes are stored in a storage medium, the processor can be connected with the storage medium through a communication interface such as a bus, and when the corresponding functions of specific units are executed, the executable codes are read from the storage medium and executed. The portion of the storage medium used to store the executable code is preferably a non-transitory storage medium.
The control device provided by the embodiment of the application can select the target camera by combining the posture of the electronic equipment, and the target camera is used for collecting images, so that the transverse screen image collection or the vertical screen image collection which is irrelevant to the transverse screen posture or the vertical screen posture of the electronic equipment is realized; the problem that the video recorded by the vertical screen cannot be displayed in a full screen mode when played in the horizontal screen equipment and the viewing effect is seriously influenced in the related technology can be solved, and the horizontal screen recording effect irrelevant to the posture of the electronic equipment is realized; and the panoramic shooting of wide frames in the up, down, left and right directions can be supported.
EXAMPLE six
The present embodiments provide a computer storage medium having stored thereon computer-executable instructions that, when executed by a processor, implement: acquiring a trigger instruction, wherein the trigger instruction is used for indicating that a plurality of acquired images are acquired continuously; obtaining a posture of the electronic equipment; selecting a target camera from a first camera and a second camera of the electronic device based on the gesture; and acquiring images by using the target camera, and storing the images acquired by the target camera as target images.
It should be understood by those skilled in the art that the functions of the programs in the computer storage medium of the present embodiment can be understood by referring to the related descriptions of the control methods described in the foregoing embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed server and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A control method, comprising:
acquiring a trigger instruction, wherein the trigger instruction is used for indicating that a plurality of acquired images are acquired continuously; the triggering instruction is a recording instruction;
obtaining a posture of the electronic equipment;
selecting a target camera from a first camera and a second camera of the electronic device based on the gesture; the long edge of the photosensitive array of the first camera is perpendicular to the long edge of the photosensitive array of the second camera in the electronic equipment;
acquiring images by using the target camera, and storing the images acquired by the target camera as target images;
the selecting a target camera from a first camera and a second camera of the electronic device based on the gesture includes:
and when the trigger instruction is a panoramic shooting instruction, selecting the target camera from the first camera and the second camera based on the attitude of the electronic equipment and the motion direction of the electronic equipment in the attitude.
2. The method of claim 1, further comprising:
closing a non-target camera in the first camera and the second camera while acquiring images by using the target camera; or
And ignoring the collected images collected by the non-target cameras in the first camera and the second camera.
3. The method according to claim 2, wherein the first camera and the second camera have the same components and optical parameters, and the long side of the photosensitive array of the first camera corresponds to the long side of the electronic device; the long side of the photosensitive array of the second camera corresponds to the short side of the electronic device.
4. The method of claim 3, wherein the target camera is determined once per pose change of the electronic device during the recording.
5. The method of claim 4, further comprising:
acquiring a first operation before recording is started, wherein the first operation is used for a user to designate a video recording mode;
determining a target video recording mode based on the first operation;
selecting a target camera from the first camera and the second camera according to the target video recording mode;
the target video recording mode comprises a horizontal screen video recording mode and a vertical screen video recording mode.
6. The method of claim 5, wherein selecting a target camera from the first camera and the second camera according to the target video recording mode when the designated video recording mode is a landscape video recording mode comprises:
when the posture is a landscape screen posture, selecting the first camera as a target camera, wherein the first camera can realize landscape screen video recording when the electronic equipment is in the landscape screen posture, and can realize vertical screen video recording when the electronic equipment is in the vertical screen posture;
and when the posture is the vertical screen posture, selecting the second camera as a target camera, wherein the second camera can realize horizontal screen video recording when the electronic equipment is in the vertical screen posture, and can realize vertical screen video recording when the electronic equipment is in the horizontal screen posture.
7. The method of claim 5, wherein selecting a target camera from the first camera and the second camera according to the target video recording mode when the designated video recording mode is a portrait video recording mode comprises:
when the posture is a landscape screen posture, selecting the second camera as a target camera, wherein the second camera can realize landscape screen video recording when the electronic equipment is in a portrait screen posture, and can realize portrait screen video recording when the electronic equipment is in a landscape screen posture;
and when the gesture is a vertical screen gesture, selecting the first camera as a target camera, wherein the first camera can realize horizontal screen video recording when the electronic equipment is in the horizontal screen gesture, and can realize vertical screen video recording when the electronic equipment is in the vertical screen gesture.
8. The method of claim 3, wherein the triggering instruction is a pan instruction, the method further comprising:
obtaining a motion direction of the electronic device;
and when a target camera is selected from the first camera and the second camera based on the current posture and the motion direction under the current posture, closing a non-target camera in the first camera and the second camera.
9. An electronic device, comprising:
a first camera;
a second camera; the long edge of the photosensitive array of the first camera is perpendicular to the long edge of the photosensitive array of the second camera in the electronic equipment;
a display screen for displaying an image;
the processor is used for obtaining a trigger instruction, the trigger instruction is used for indicating that a plurality of collected images are collected continuously, and the trigger instruction is a recording instruction; obtaining a posture of the electronic equipment; selecting a target camera from the first camera and the second camera based on the pose; acquiring images by using the target camera, and storing the images acquired by the target camera as target images;
the selecting a target camera from a first camera and a second camera of the electronic device based on the gesture includes:
and when the trigger instruction is a panoramic shooting instruction, selecting the target camera from the first camera and the second camera based on the attitude of the electronic equipment and the motion direction of the electronic equipment in the attitude.
10. The electronic device of claim 9, wherein the first camera and the second camera have the same components and optical parameters, and the long side of the photosensitive array of the first camera corresponds to the long side of the electronic device; the long side of the photosensitive array of the second camera corresponds to the short side of the electronic device.
CN201910581768.5A 2019-06-30 2019-06-30 Control method and electronic equipment Active CN110365896B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910581768.5A CN110365896B (en) 2019-06-30 2019-06-30 Control method and electronic equipment
US16/914,168 US11409434B2 (en) 2019-06-30 2020-06-26 Image collection and processing method, apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910581768.5A CN110365896B (en) 2019-06-30 2019-06-30 Control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN110365896A CN110365896A (en) 2019-10-22
CN110365896B true CN110365896B (en) 2021-05-18

Family

ID=68216745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910581768.5A Active CN110365896B (en) 2019-06-30 2019-06-30 Control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110365896B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955793A (en) * 2019-11-26 2020-04-03 维沃移动通信有限公司 Display control method and electronic equipment
CN112019686A (en) * 2020-09-15 2020-12-01 维沃移动通信(杭州)有限公司 Display method and device and electronic equipment
US11297260B1 (en) * 2020-11-20 2022-04-05 Donald Siu Techniques for capturing video in landscape mode by a handheld device
CN113612907B (en) * 2021-07-30 2023-11-28 维沃移动通信(杭州)有限公司 Shooting method and electronic equipment
CN115848388B (en) * 2021-09-22 2024-10-29 比亚迪股份有限公司 Vehicle-mounted central control system, camera adaptation method thereof and computer readable storage medium
WO2023173315A1 (en) * 2022-03-16 2023-09-21 Intel Corporation Methods, system, and apparatus to select among image sensors based on device orientation

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237556A (en) * 2008-03-03 2008-08-06 宇龙计算机通信科技(深圳)有限公司 Realization method, image display method and communication terminal for terminal with dual cameras
CN107222671A (en) * 2017-06-30 2017-09-29 上海创功通讯技术有限公司 Dual camera module and the mobile terminal comprising it

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237556A (en) * 2008-03-03 2008-08-06 宇龙计算机通信科技(深圳)有限公司 Realization method, image display method and communication terminal for terminal with dual cameras
CN107222671A (en) * 2017-06-30 2017-09-29 上海创功通讯技术有限公司 Dual camera module and the mobile terminal comprising it

Also Published As

Publication number Publication date
CN110365896A (en) 2019-10-22

Similar Documents

Publication Publication Date Title
CN110365896B (en) Control method and electronic equipment
US10447874B2 (en) Display control device and display control method for automatic display of an image
JP5967473B2 (en) Imaging apparatus and imaging system
US8817134B2 (en) Imaging control device, subject detection method, and program
US20100134641A1 (en) Image capturing device for high-resolution images and extended field-of-view images
JP5991514B2 (en) Imaging apparatus and imaging system
US9838609B2 (en) Image capturing apparatus, control apparatus and control method for controlling zooming function
JP2013013063A (en) Imaging apparatus and imaging system
WO2007045714A1 (en) A method and a device for reducing motion distortion in digital imaging
CN114125179B (en) Shooting method and device
CN111385470A (en) Electronic device, control method of electronic device, and computer-readable medium
KR102477993B1 (en) Display control apparatus, imaging apparatus, control method, and computer readable medium
US20090135244A1 (en) Method for capturing convergent-type multi-view image
JP2009230635A (en) Image data generating device, image data generating method and image data generating program
CN116489504A (en) Control method of camera module, camera module and electronic equipment
JP2009177226A (en) Display control apparatus and imaging apparatus with the same, image display system, and image display method
JP6071492B2 (en) REPRODUCTION CONTROL DEVICE AND ITS CONTROL METHOD
JP2012124614A (en) Imaging apparatus and imaging apparatus control method
JP2022015597A (en) Electronic apparatus and method for controlling the same
JP6393296B2 (en) IMAGING DEVICE AND ITS CONTROL METHOD, IMAGING CONTROL DEVICE, PROGRAM, AND STORAGE MEDIUM
JP6824061B2 (en) Imaging apparatus, control methods, programs, and storage media executed by the imaging apparatus.
JP2013168909A (en) Imaging device, image generation method, and program
CN110881102B (en) Image capturing apparatus, control method of image capturing apparatus, and computer readable medium
JP7443100B2 (en) Electronic devices, control methods for electronic devices, programs and storage media
JP2018125729A (en) Imaging controller, control method and program thereof, and recording medium

Legal Events

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