WO2020093371A1 - 拍摄控制方法、电子设备及计算机可读存储介质 - Google Patents
拍摄控制方法、电子设备及计算机可读存储介质 Download PDFInfo
- Publication number
- WO2020093371A1 WO2020093371A1 PCT/CN2018/114839 CN2018114839W WO2020093371A1 WO 2020093371 A1 WO2020093371 A1 WO 2020093371A1 CN 2018114839 W CN2018114839 W CN 2018114839W WO 2020093371 A1 WO2020093371 A1 WO 2020093371A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- camera
- electronic device
- use state
- shooting mode
- shooting
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
Definitions
- the present invention relates to the field of camera control of electronic terminals, and in particular, to a shooting control method, electronic equipment, and computer-readable storage media.
- the technical problem to be solved by the present invention is to provide an easy-to-operate shooting control method, electronic equipment, and computer-readable storage medium.
- a first aspect of an embodiment of the present invention provides a shooting control method.
- the method includes:
- the shooting mode includes a first shooting mode and a second shooting mode.
- the camera unit Acquires an image in the first direction of, in the second shooting mode, the camera unit acquires the image in a second direction relative to the user;
- the use state of the electronic device includes the first use state and the second use state;
- the camera unit is controlled to keep acquiring images in the recognized shooting mode.
- a second aspect of an embodiment of the invention provides an electronic device, including:
- the processor is used to identify the current shooting mode of the camera unit and the current use state of the electronic device, wherein the shooting mode includes a first shooting mode and a second shooting mode.
- the shooting mode includes a first shooting mode and a second shooting mode.
- the first shooting mode the The camera unit acquires an image in a first direction relative to the user
- the second shooting mode the camera unit acquires an image in a second direction relative to the user
- the use state of the electronic device includes a first use state and a second use state ;
- the processor is also used to determine whether the use state of the electronic device has changed; when the use state of the electronic device has changed, the processor is used to control the camera unit to maintain the identified shooting mode Get the image.
- a third aspect of the embodiments of the present invention provides a computer-readable storage medium and computer instructions, where, when the computer instructions are executed by a processor, some or all of the steps described in any method of the first aspect of the embodiments of the present invention are implemented .
- the embodiments of the present invention provide a shooting control method, an electronic device, and a computer-readable storage medium, by judging whether the use state of the electronic device has changed, and selecting after the use state of the electronic device has changed
- the corresponding camera does not require the user to manually switch the camera, which is conducive to improving the user experience.
- FIG. 1 is a flowchart of steps in a shooting control method in an embodiment of the invention.
- FIG. 2 is a schematic diagram of an electronic device in the first embodiment of the present invention.
- FIG. 3 is a schematic diagram of an electronic device in a second embodiment of the invention.
- FIG. 4 is a schematic diagram of an electronic device in a third embodiment of the invention.
- FIG. 5 is a schematic diagram of the electronic device in FIG. 4 in another state.
- FIG. 6 is a schematic diagram of an electronic device in a fourth embodiment of the invention.
- FIG. 7 is a schematic diagram of the electronic device in FIG. 6 in another state.
- FIG. 8 is a block diagram of a hardware structure of an electronic device in an embodiment of the invention.
- FIG. 1 shows a flowchart of steps in a shooting control method according to an embodiment of the present invention.
- the shooting control method includes the following steps:
- Step 100 Identify the current shooting mode of the camera unit and the current use state of the electronic device.
- the shooting mode of the camera unit includes a first shooting mode and a second shooting mode; in the first shooting mode, the camera unit acquires images in a first direction relative to the user; in the second shooting mode, the camera unit Acquire images in the second direction relative to the user.
- the first direction and the second direction are opposite directions relative to the user.
- the first shooting mode is the self-timer mode
- the second shooting mode is the other-shooting mode
- the first direction is the direction toward the user.
- the direction is the direction away from the user.
- the electronic device 50 includes a body 570 and two display screens disposed on the body 570, such as a first display screen 560 and a second display screen 562.
- the first display screen 560 is disposed on the first surface 572 of the body 570
- the second display screen 562 is disposed on the second surface 574 of the body 570, wherein the first surface 572 is disposed opposite to the second surface 574.
- the first side 572 is the front side of the electronic device 50 and the second side 574 is the back side of the electronic device 50.
- the use state of the electronic device includes a first use state and a second use state. In the first use state, the first surface 572 of the electronic device 50 faces the user; in the second use state, the second surface 574 of the electronic device 50 faces the user.
- the electronic device 50 also includes an imaging unit 580.
- the camera unit 580 includes two cameras, such as a first camera 582 and a second camera 584.
- the first camera 582 is disposed on the first surface 572 of the body 570.
- the shooting direction of the first camera 582 is the direction that the first surface 572 faces, for example, the direction perpendicular to the first surface 572 and pointing forward of the first surface 572.
- the second camera 584 is disposed on the second surface 574 of the body 570.
- the shooting direction of the second camera 584 is the direction that the second surface 574 faces, for example, the direction perpendicular to the second surface 574 and pointing in front of the second surface 574.
- the shooting direction of the first camera 582 is the direction pointing to the user, that is, relative to the user's first direction
- the shooting direction of the second camera 584 is the direction facing away from the user, ie The second direction relative to the user.
- the first camera 582 and the second camera 584 can be fixedly disposed at the top position of the body 570.
- the first camera 582 and the second camera 584 may be lift cameras, and are accommodated in the body 570. When the camera needs to be taken, the lifting camera can be controlled to rise to complete the corresponding camera action.
- both the first display screen 560 and the second display screen 562 are touch display screens.
- different touch areas can be formed on the first display screen 560 and the second display screen 562.
- the first touch area is formed when the left thumb touches the first touch surface
- the second touch area is formed when the other four fingers of the left hand touch the second touch surface. Therefore, the electronic device 50 can determine the current usage state of the electronic device 50 according to the touch areas formed on the first display screen 560 and the second display screen 562.
- the first touch area is smaller than the second touch area, it may be determined that the first display screen 560 is facing the user, indicating that the first surface 572 of the electronic device 50 is facing the user, that is, the electronic device 50 is currently in the first use state;
- One touch area is larger than the second touch area, and it can be determined that the second display screen 562 is facing the user, indicating that the second surface 574 of the electronic device 50 is facing the user, that is, the electronic device 50 is currently in the second use state.
- a photographing mode in which the shooting direction is directed to the user is defined as a self-timer mode, that is, a mode in which the user holds the electronic device 50 to shoot himself; a photograph in which the shooting direction is directed away from the user is defined as another shooting mode, in which the user holds the electronic device Patterns of surrounding scenery or others.
- the display interface of the camera application can be displayed on the display screen of the electronic device 50, and the user can select the corresponding shooting mode by clicking the corresponding function icon in the shooting interface, such as selecting the self-timer mode or the other-shooting mode, in turn, the electronic device 50 can obtain
- the settings in the shooting interface identify the current shooting mode, and control the shooting direction of the camera unit 580 according to the current shooting mode.
- Step 102 Determine whether the use status of the electronic device has changed; if yes, perform step 104; if no, the process ends.
- the electronic device 50 can determine whether the use state of the electronic device has changed by determining whether the face facing the user has changed.
- whether the use state of the electronic device has changed may be determined according to the gesture held by the user.
- the electronic device can determine whether the first touch area on the first touch surface of the electronic device and the second touch area on the second touch surface of the electronic device have changed synchronously within a preset time; if so, the electronic device can be determined Has changed.
- the user touches the first touch surface with the thumb of the left hand, and the other four fingers of the user's left hand touch the second touch surface.
- the first value of the first contact area formed on the first touch surface Less than the second value of the second contact area formed on the second touch surface.
- the first surface of the electronic device faces the user, and the electronic device is in the first use state.
- the user touches the second touch surface with the thumb of the left hand, and the other four fingers of the user's left hand touch the first touch surface.
- the third value of the first contact area formed on the first touch surface is greater than the third The fourth value of the second contact area formed on the two touch surfaces.
- the change value of the first contact area on the first touch surface (the difference between the first value and the third value) and the change value of the second contact area on the second touch surface (the difference between the second value and the fourth value) are Basically the same or consistent, which means that the first touch area on the first touch surface of the electronic device and the second touch area on the second touch surface of the electronic device change synchronously.
- the second surface of the electronic device Facing the user the electronic device is in the second use state. Since the side of the electronic device facing the user changes from the first side of the electronic device to the second side, it can be determined that the use state of the electronic device has changed. In other embodiments, the electronic device 50 may determine whether the use state has changed according to the provided sensors.
- Step 104 according to controlling the camera unit to keep acquiring the image in the identified shooting mode.
- the electronic device 50 controls the first camera 582 to acquire an image. If the shooting direction of the camera 582 is toward the user, the current shooting mode of the electronic device 50 is the self-timer mode.
- the use state of the electronic device 50 changes, if the electronic device 50 is in the second use state, that is, the second surface 572 of the electronic device 50 faces the user, the electronic device 50 selects to turn on the second camera 584 to acquire an image and turn off the first camera 582 That is, the electronic device 50 remains in the self-timer mode. In this way, regardless of whether the electronic device 50 is in the first use state or the second use state, the camera unit 580 is in the same shooting mode.
- the electronic device 50 controls the second camera 584 to acquire an image.
- the shooting direction is the direction away from the user, and the current shooting mode of the electronic device 50 is the other shooting mode.
- the use state of the electronic device 50 changes, for example, the electronic device 50 is in the second use state, that is, the second surface 572 of the electronic device 50 faces the user, at this time, the electronic device 50 selects to turn on the first camera 582 to acquire an image and turn off the first
- the second camera 584 that is, the electronic device 50 remains in the other shooting mode. In this way, regardless of whether the electronic device 50 is in the first use state or the second use state, the camera unit 580 is still in the same shooting mode.
- the electronic device 50 controls the second camera 584 to acquire an image. If the shooting direction of the camera 584 faces the user, the current shooting mode of the electronic device 50 is the self-timer mode.
- the use state of the electronic device 50 changes, if the electronic device 50 is in the first use state, that is, the first side 572 of the electronic device faces the user, the electronic device 50 selects to turn on the first camera 582 to acquire images and turn off the second camera 584 That is, the electronic device 50 remains in the self-timer mode. In this way, regardless of whether the electronic device 50 is in the first use state or the second use state, the camera unit 580 is in the same shooting mode.
- the electronic device 50 controls the first camera 582 to acquire an image.
- the shooting direction is the direction facing away from the user, which means that the current shooting mode of the electronic device 50 is the other shooting mode.
- the use state of the electronic device 50 changes, if the electronic device 50 is in the first use state, that is, the first side 572 of the electronic device 50 faces the user, the electronic device 50 selects to turn on the second camera 584 to acquire an image and turn off the first camera 582 That is, the electronic device 50 remains in the mode in which he shoots. In this way, regardless of whether the electronic device 50 is in the first use state or the second use state, the camera unit 580 is in the same shooting mode.
- FIG. 3 is a schematic diagram of an electronic device in a second embodiment provided by the present invention.
- the electronic device 50 includes a display screen 564 disposed on the first surface 572 of the body 570 of the electronic device 50.
- the electronic device 50 in this embodiment includes a camera 586, where the camera 586 may be a rotary camera.
- the electronic device 50 controls the shooting direction of the camera 586 to be the direction that the first surface 572 faces, that is, controls the shooting of the camera 586
- the direction is a direction perpendicular to the first face 572 and pointing forward of the first face 572.
- FIG. 4 is a schematic diagram of an electronic device in a third embodiment of the present invention.
- the electronic device 50 includes a flexible display screen 590 that is disposed on the first surface 572 of the body 570 of the electronic device 50.
- the camera unit 580 includes a first camera 581 disposed at a first position on the first surface 572 of the body 570 and a second camera 583 disposed at a second position on the first surface 572, and the first camera 581 and the second camera 583 take pictures
- the directions can all be expressed as a direction perpendicular to the first surface 572 and pointing forward of the first surface 572.
- the first side 572 is the front side of the electronic device 50
- the second side 574 is the back side of the electronic device 50.
- the first camera 581 may be represented as a first front camera
- the second camera 583 may be represented as a second front camera.
- the body 570 includes a folding member 571.
- the folding member 571 is provided at the middle position of the body 570.
- the electronic device 50 can be folded around the folding member 571 and is in a folded state.
- the first camera 581 and the second camera 583 may be disposed on the second surface 574 of the electronic device 50, that is, the back surface. Second rear camera.
- FIG. 5 is a schematic diagram of the electronic device in FIG. 4 in another state.
- the body 570 includes a first housing 576 and a second housing 578.
- the flexible display screen 590 includes a first display area 592 directly opposite to the first housing 576, a second display area 594 directly opposite to the second housing 578, and a screen located between the first display area 592 and the second display area 594 The third display area 596 directly opposite to the folded piece.
- the first housing 576 and the second housing 578 are close to each other, and the electronic device 50 is in a folded state.
- the first camera 581 and the first display area 592 are located on the electronic device 50.
- the shooting direction of the first camera 581 can be expressed as a direction perpendicular to the first housing 576 and pointing in front of the first housing 576; the second camera 583 and the second display area 594 are located on the electronic device 50 On the same surface, and the shooting direction of the second camera 583 can be expressed as a direction perpendicular to the second housing 578 and pointing in front of the second housing 578.
- the first housing 576 of the electronic device 50 faces the user; in the second use state, the second housing 578 of the electronic device 50 faces the user.
- a first touch area can be formed on the first display area 592 and a second touch area can be formed on the second display area 594. Therefore, if the first touch area is larger than the second touch area, the second The display area 594 is facing the user.
- the second casing 578 of the electronic device 50 faces the user, that is, the electronic device 50 is currently in the second use state; if the first touch area is smaller than the second touch area, it means the first display The area 594 is facing the user.
- the first housing 576 of the electronic device 50 faces the user, that is, the electronic device 50 is currently in the first use state.
- the electronic device 50 controls the first camera 581 to acquire an image. If the shooting direction of the camera 581 is toward the user, the current shooting mode of the electronic device 50 is the self-timer mode.
- the use state of the electronic device 50 changes, for example, the electronic device 50 is in the second use state
- the second housing 578 of the electronic device 50 faces the user, and the electronic device 50 selects to turn on the second camera 583 to acquire images and close the first camera 581 That is, the electronic device 50 remains in the self-timer mode. In this way, regardless of whether the electronic device 50 is in the first use state or the second use state, the camera unit 580 is in the same shooting mode.
- the first camera 581 and the second camera 583 may be lift cameras. If the first camera 581 and the second camera 583 are set on the second surface 574, if the current shooting mode is the other shooting mode, and The electronic device 50 is in the first use state, that is, the first housing 576 of the electronic device 50 faces the user, and at this time, the electronic device 50 selects the first camera 581 to pop up to acquire an image.
- the electronic device 50 selects to pop up the second camera 583 to acquire an image and retract the first camera From 581 to the body 570, that is, the electronic device 50 remains in the other shooting mode. In this way, regardless of whether the electronic device 50 is in the first use state or the second use state, the camera unit 580 is in the same shooting mode.
- FIG. 6 is a schematic diagram of the electronic device in the first state in the fourth embodiment of the present invention.
- the electronic device 50 includes a flexible display screen 590, and the flexible display screen 590 is disposed on the first surface 572, that is, the front surface, of the body 570 of the electronic device 50.
- the flexible display screen 590 is a flexible touch screen.
- the body 570 includes a folding member 571 around which the electronic device 50 can be folded and in a folded state.
- the body 570 includes a first housing 576 and a second housing 578.
- the flexible display screen 590 includes a first display area 592 directly opposite to the first housing 576, a second display area 594 directly opposite to the second housing 578, and a screen located between the first display area 592 and the second display area 594 The third display area 596 directly opposite to the folded piece.
- the first housing 576 includes the first housing 576 The first camera 581 at the position and the third camera 585 at the third position
- the second housing 578 includes a second camera 583 at the second position and a fourth camera 587 at the fourth position, wherein the first camera 581 is The first front camera, the second camera 583 is the second front camera, the third camera 585 is the first rear camera, and the fourth camera 587 is the second rear camera.
- FIG. 7 is a schematic diagram of the electronic device in FIG. 6 in the second state.
- the electronic device 50 When the electronic device 50 is folded around the folded piece 571, the electronic device 50 is in a folded state.
- the shooting directions of the first camera 581 and the fourth camera 587 can be expressed as directions perpendicular to the first surface 572 and pointing forward of the first surface 572, and the shooting directions of the second camera 583 and the third camera 585 can be expressed as vertical
- the second surface 574 is directed toward the front of the second surface 574.
- the electronic device 50 controls the first camera 581 or the fourth camera 587 to acquire images, Since the shooting direction of the first camera 581 or the fourth camera 587 is the direction toward the user at this time, the current shooting mode of the electronic device 50 is the self-timer mode.
- the electronic device 50 When the use state of the electronic device 50 changes, if the electronic device 50 is in the second use state, that is, the second housing 578 of the electronic device 50 faces the user, the electronic device 50 selects to turn on the second camera 583 or the third camera 585 to acquire images The first camera 581 and the fourth camera 587 are turned off, that is, the electronic device 50 remains in the self-timer mode. In this way, regardless of whether the electronic device 50 is in the first use state or the second use state, the camera unit 580 is in the same shooting mode.
- the electronic device 50 controls the second camera 583 or the third camera 585 to acquire images, Since the shooting direction of the second camera 583 or the third camera 585 is the direction away from the user, the current shooting mode of the electronic device 50 is the other shooting mode.
- the use state of the electronic device 50 changes, for example, the electronic device 50 is in the second use state
- the second housing 578 of the electronic device 50 faces the user, and the electronic device 50 selects to turn on the first camera 581 or the fourth camera 587 to acquire images and Turn off the third camera 585 and the second camera 583, that is, the electronic device 50 remains in the other shooting mode.
- the camera unit 580 is in the same shooting mode. Other situations are similar, so I will not repeat them here.
- the electronic device 50 also determines whether the shooting mode of the camera unit 580 is locked; when the shooting mode of the camera unit 580 is locked, the electronic device 50 determines whether the usage state has changed.
- the electronic device 50 may receive the user's preset operation during the process of shooting the image by the camera unit to lock the shooting mode of the camera unit.
- the user can trigger an instruction to lock the shooting mode by touching a preset function icon or key during the shooting of the image.
- the function icon is an icon on the camera application interface or a system default icon, and the button may be a physical button on the electronic device.
- the user in the process of capturing an image, the user may also apply the instruction to lock the shooting mode through a preset gesture operation.
- the electronic device when the use state of the electronic device becomes the second use state, the electronic device can control the preset screen displayed on the display screen relative to the user to operate with the user.
- the preset screen may include a screen for displaying camera switching or a video for displaying camera rotation to prompt the user that the current camera has been switched.
- the above-mentioned shooting control method can determine whether the use state of the electronic device has changed, and select the corresponding camera after the use state of the electronic device changes, so that the user does not need to manually switch the camera, which is beneficial to improve the user experience.
- the above-mentioned shooting control method can also select the corresponding camera according to the change of the flexible display screen from the expanded mode to the folded mode, so that the user does not need to manually switch the camera, which is beneficial to improve the user experience.
- FIG. 8 is a block diagram of a hardware structure of an electronic device in an embodiment provided by the present invention.
- the electronic device 50 may further include a processor 500, a storage device 502, a camera unit 580, and a display screen 504, and computer programs (instructions) stored in the storage device 502 and running on the processor 500, the electronic device 50 may also include other hardware parts, such as keys, fingerprint collection module, communication The device, etc., will not be repeated here.
- the processor 500 may exchange data with the storage device 502, the camera unit 580, and the display screen 504 via the bus 506.
- the processor 500 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
- the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
- the processor is the control center of the electronic device 50, and uses various interfaces and lines to connect the various parts of the entire electronic device 50 .
- the storage device 502 may be used to store the computer program and / or module.
- the processor 500 executes or executes the computer program and / or module stored in the storage device 502 and calls the storage device 502. Data to realize various functions of the above shooting control method.
- the storage device 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for at least one function, and the like.
- the storage device 502 may include a high-speed random access storage device, and may also include a non-volatile storage device, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart, Media, Card, SMC), and a secure digital (Secure Digital) , SD) card, flash memory card (Flash Card), at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
- a non-volatile storage device such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart, Media, Card, SMC), and a secure digital (Secure Digital) , SD) card, flash memory card (Flash Card), at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
- a non-volatile storage device such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart, Media, Card, SMC), and a secure digital
- the display screen 504 may display a user interface (UI) or a graphical user interface (GUI) including data such as photos, videos, chat contents, etc.
- UI user interface
- GUI graphical user interface
- the display screen 30 may also be used as an input device and an output device, and the display device may include a liquid crystal display At least one of (LCD), thin-film transistor LCD (TFT-LCD), organic light-emitting diode (OLED) touch display, flexible touch display, three-dimensional (3D) touch display, ink screen display, and the like.
- the display screen 504 may include one or more display screens.
- the processor 500 executes the computer program, the steps in the shooting control method in the foregoing embodiments are implemented, for example, steps 100-104 shown in FIG. 1.
- the processor 500 implements the functions of each module / unit when executing the computer program.
- the computer program may be divided into one or more modules / units, and the one or more modules / units are stored in the storage device 502 and executed by the processor 500 to complete this invention.
- the one or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device 50.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Telephone Function (AREA)
Abstract
本申请提供了一种拍摄控制方法、电子设备(50)及计算机可读存储介质。该方法包括:识别摄像单元当前的拍摄模式及电子设备当前的使用状态(100);判断所述电子设备的使用状态是否发生改变(102);当所述电子设备的使用状态发生改变时,控制摄像单元保持以所识别的所述拍摄模式获取图像(104)。本申请可判断电子设备的使用状态是否发生变化,并在电子设备的使用状态发生变化后选择对应的摄像头,如此无需用户手动进行摄像头的切换,有利于提高用户体验。
Description
本发明涉及电子终端的摄像控制领域,尤其涉及一种拍摄控制方法、电子设备及计算机可读存储介质。
随着科技的发展,电子设备的拍照功能越来越丰富,给人们的生活带来了便利,例如,用户可通过电子设备可通过前置拍摄头或后置拍摄头进行拍摄。因此,电子设备的拍照功能将成为终端设备如手机、平板电脑中不可或缺的部分。
然而,在使用具有多个摄像头或多个拍摄角度的摄像头的电子设备进行拍照时,用户需要手动在多个摄像头之间进行切换,操作不方便且耗时。
发明内容
本发明所要解决的技术问题在于,提供一种方便操作的拍摄控制方法、电子设备及计算机可读存储介质。
本发明实施例第一方面提供一种拍摄控制方法,所述方法包括:
识别所述摄像单元当前的拍摄模式及所述电子设备当前的使用状态,其中,所述拍摄模式包括第一拍摄模式及第二拍摄模式,在第一拍摄模式下,所述摄像单元以相对用户的第一方向获取图像,在第二拍摄模式下,所述摄像单元以相对用户的第二方向获取图像;所述电子设备的使用状态包括第一使用状态及第二使用状态;
判断所述电子设备的使用状态是否发生改变;
当所述电子设备的使用状态发生改变时,控制所述摄像单元保持以所识别的所述拍摄模式获取图像。
发明实施例第二方面提供一种电子设备,包括:
摄像单元;
处理器,用于识别所述摄像单元当前的拍摄模式及所述电子设备当前的使用状态,其中,所述拍摄模式包括第一拍摄模式及第二拍摄模式,在第一拍摄模式下,所述摄像单元以相对用户的第一方向获取图像,在第二拍摄模式下,所述摄像单元以相对用户的第二方向获取图像;所述电子设备的使用状态包括第一使用状态及第二使用状态;
所述处理器还用于判断所述电子设备的使用状态是否发生改变;当所述电子设备的使用状 态发生改变时,所述处理器用于控制所述摄像单元保持以所识别的所述拍摄模式获取图像。
本发明实施例第三方面提供一种计算机可读存储介质,计算机指令,其中,所述计算机指令被处理器执行时实现如本发明实施例第一方面任一方法中所描述的部分或全部步骤。
相较于现有技术,本发明实施方式提供了一种拍摄控制方法、电子设备及计算机可读存储介质,通过判断电子设备的使用状态是否发生变化,并在电子设备的使用状态发生变化后选择对应的摄像头,如此无需用户手动进行摄像头的切换,有利于提高用户体验。
为了更清楚地说明本发明实施方式或现有技术中的技术方案,下面将对实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本发明一实施例中的拍摄控制方法的步骤流程图。
图2是本发明第一实施例中的电子设备的示意图。
图3是本发明第二实施例中的电子设备的示意图。
图4是本发明第三实施例中的电子设备的示意图。
图5是图4中的电子设备在另一状态的示意图。
图6是本发明第四实施例中的电子设备的示意图。
图7是图6中的电子设备在另一状态的示意图。
图8是本发明一实施例的中的电子设备的硬件结构框图。
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、***、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
下面对本发明实施例进行详细介绍。
请参阅图1,所示为本发明提供的一实施例中的拍摄控制方法的步骤流程图。该拍摄控制方法包括如下步骤:
步骤100,识别摄像单元当前的拍摄模式及电子设备当前的使用状态。
在本实施方式中,摄像单元的拍摄模式包括第一拍摄模式及第二拍摄模式;在第一拍摄模式下,摄像单元以相对用户的第一方向获取图像;在第二拍摄模式下,摄像单元以相对用户的第二方向获取图像。其中,第一方向与第二方向为相对用户相反的方向,例如,所述第一拍摄模式为自拍模式,所述第二拍摄模式为他拍模式,第一方向为朝向用户的方向,第二方向则为背离用户的方向。
请一并参阅图2,所示为本发明第一实施例中的电子设备的立体结构的示意图。电子设备50包括本体570及设置与本体570上的两显示屏,如第一显示屏560及第二显示屏562。第一显示屏560设置于本体570的第一面572,第二显示屏562设置于本体570的第二面574,其中,第一面572与第二面574相背设置。在一实施方式中,第一面572为电子设备50的正面,第二面574为电子设备50的背面。电子设备的使用状态包括第一使用状态和第二使用状态。在第一使用状态下,该电子设备50的第一面572朝向用户;在第二使用状态下,该电子设备50的第二面574朝向用户。
电子设备50还包括摄像单元580。本实施例中,摄像单元580包括二个摄像头,如第一摄像头582及第二摄像头584。第一摄像头582设置于本体570的第一面572,第一摄像头582的拍摄方向为第一面572所朝向的方向,例如为垂直第一面572并指向第一面572的前方的方向。第二摄像头584设置于本体570的第二面574,第二摄像头584的拍摄方向为第二面574所朝向的方向,例如为垂直于第二面574并指向第二面574前方的方向。也即,当用户面朝第一显示屏560时,第一摄像头582的拍摄方向是指向用户的方向,即相对用户的第一方向,第二摄像头584的拍摄方向是背向用户的方向,即相对用户的第二方向。
第一摄像头582及第二摄像头584可固定设置于本体570的顶端位置处。在一实施例中,第一摄像头582及第二摄像头584可为升降式摄像头,并收容于本体570内。当需要进行摄像时,可控制升降式摄像头的升起来完成对应的摄像动作。
在本实施例中,该第一显示屏560及第二显示屏562均为触控显示屏。用户握持电子设备50时,可在该第一显示屏560及第二显示屏562形成不同的触摸面积。如,当用户用左手握持该电子设备50时,左手的大拇指触摸于第一触摸面时形成第一触摸面积,左手的其他四个手指触摸于第二触摸面时形成第二触摸面积,故此,电子设备50可根据在该第一显示屏560及第二显示屏562上形成的触摸面积来确定电子设备50当前的使用状态。
例如,若第一触摸面积小于第二触摸面积,可确定第一显示屏560正对用户,表示电子设备50的第一面572朝向用户,也即电子设备50当前处于第一使用状态;若第一触摸面积大于第二触摸面积,可确定第二显示屏562正对用户,表示电子设备50的第二面574朝向用户,也即电子设备50当前处于第二使用状态。
在本实施方式中,将拍摄方向指向用户的拍照模式定义为自拍模式,即用户手持电子设备50拍摄自己的模式;将拍摄方向背向用户的拍照定义为他拍模式,即用户手持电子设备拍摄周围景物或他人的模式。电子设备50的显示屏内可显示摄像应用程序的拍摄界面,用户可在拍摄界面内通过点击相应的功能图标选择相应的拍摄模式,如选择自拍模式或他拍模式,进而,电子设备50可获取拍摄界面内的设定来识别当前的拍摄模式,并根据当前的拍摄模式控制摄像单元580的拍摄方向。
步骤102,判断电子设备的使用状态是否发生改变;若是,执行步骤104;若否,本流程结束。
本实施例中,电子设备50可通过判断朝向用户的面是否发生改变来确定电子设备的使用状态是否发生变化。
在一实施例中,可根据用户握持的姿势判断电子设备的使用状态是否发生变化。电子设备可判断预设时间内所述电子设备第一触摸面上的第一触摸面积及所述电子设备第二触摸面上的第二触摸面积是否同步发生变化;若是,可确定所述电子设备的使用状态发生变化。
例如,在第一时间,用户通过左手的大拇指触摸第一触摸面,用户左手的其他四个手指触摸第二触摸面,此时,第一触摸面上形成的第一接触面积的第一值小于第二触摸面上形成的第二接触面积的第二值,此时,电子设备的第一面朝向用户,则电子设备处于第一使用状态。在第二时间,用户通过左手的大拇指触摸第二触摸面,用户左手的其他四个手指触摸第一触摸面,此时,第一触摸面上形成的第一接触面积的第三值大于第二触摸面上形成的第二接触面积的第四值。因此,第一触摸面上第一接触面积的变化值(第一值与第三值之差)与第二触摸面上第二接触面积的变化值(第二值与第四值之差)是基本相同或相一致,即表示所述电子设备第一触摸面上的第一触摸面积及所述电子设备第二触摸面上的第二触摸面积同步发生变化,此时,电子设备的第二面朝向用户,则电子设备处于第二使用状态,由于电子设备朝向用户的面由电 子设备的第一面变为第二面,因此,可确定电子设备的使用状态发生改变。在其他实施方式中,电子设备50可根据设置的传感器来判断使用状态是否发生变化。
步骤104,根据控制摄像单元保持以所识别的所述拍摄模式获取图像。
例如,当电子设备50的第一面572朝向用户时,即处于第一使用状态时,若识别到当前的拍摄模式为自拍模式,电子设备50控制第一摄像头582获取图像,由于此时第一摄像头582的拍摄方向为朝向用户的方向,则电子设备50当前的拍摄模式为自拍模式。当电子设备50的使用状态发生改变时,如电子设备50处于第二使用状态,即电子设备50的第二面572朝向用户,电子设备50选择开启第二摄像头584获取图像并关闭第一摄像头582,也即电子设备50保持处于自拍模式下。如此,无论电子设备50处于第一使用状态还是第二使用状态时,摄像单元580处于相同的拍摄模式。
当电子设备50的第一面572朝向用户时,即处于第一使用状态时,若识别到当前的拍摄模式为他拍模式,电子设备50控制第二摄像头584获取图像,由于第二摄像头584的拍摄方向为背离用户的方向,则电子设备50的当前的拍摄模式为他拍模式。当电子设备50的使用状态发生改变时,如电子设备50处于第二使用状态,即电子设备50的第二面572朝向用户,此时,电子设备50选择开启第一摄像头582获取图像并关闭第二摄像头584,也即电子设备50保持处于他拍模式下。如此,无论电子设备50处于第一使用状态还是第二使用状态时,摄像单元580仍处于相同的拍摄模式。
又例如,当电子设备50的第二面574朝向用户时,即处于第二使用状态,若识别到当前的拍摄模式为自拍模式,电子设备50控制第二摄像头584获取图像,由于此时第二摄像头584的拍摄方向朝向用户,则电子设备50的当前的拍摄模式为自拍模式。当电子设备50的使用状态发生改变时,如电子设备50处于第一使用状态,即电子设备的第一面572朝向用户,电子设备50选择开启第一摄像头582获取图像并关闭第二摄像头584,也即电子设备50保持处于自拍模式下。如此,无论电子设备50处于第一使用状态还是第二使用状态时,摄像单元580处于相同的拍摄模式。
当电子设备50的第二面574朝向用户时,即处于第二使用状态,若识别当前的拍摄模式为他拍模式,电子设备50控制第一摄像头582获取图像,由于此时第一摄像头582的拍摄方向为背向用户的方向,则表示电子设备50的当前的拍摄模式为他拍模式。当电子设备50的使用状态发生改变时,如电子设备50处于第一使用状态,即电子设备50的第一面572朝向用户,电子设备50选择开启第二摄像头584获取图像并关闭第一摄像头582,也即电子设备50保持处于他拍的模式下。如此,无论电子设备50处于第一使用状态还是第二使用状态时,摄像单元580处于相同的拍摄模式。
请一并参阅图3,所示为本发明提供的第二实施例中的电子设备的示意图。电子设备50包括一个显示屏564,显示屏564设置于电子设备50的本体570的第一面572。本实施例中的电子设备50包括一个摄像头586,其中,摄像头586可为旋转式摄像头。
在电子设备50的第一面572朝向用户时,若识别当前的拍摄模式为自拍模式,电子设备50控制摄像头586的拍摄方向为所述第一面572所朝向的方向,即控制摄像头586的拍摄方向沿垂直于第一面572且指向第一面572的前方的方向。当电子设备50的使用状态发生改变时,如电子设备50处于第二使用状态,电子设备50的第二面572朝向用户,电子设备50控制摄像头586旋转180°后获取图像,也即电子设备50保持处于自拍的模式下。如此,无论电子设备50处于第一使用状态还是第二使用状态时,摄像单元580处于相同的拍摄模式。其他情况类似,故在此不再赘述。
请一并参阅图4,所示为本发明第三实施例中的电子设备的示意图。电子设备50包括一个柔性显示屏590,柔性显示屏590设置于电子设备50的本体570的第一面572。摄像单元580包括设置于本体570的第一面572上第一位置的第一摄像头581及设置于第一面572上第二位置的第二摄像头583,第一摄像头581及第二摄像头583的拍摄方向均可表示为垂直于第一面572并指向第一面572的前方的方向。第一面572为电子设备50的正面,第二面574为电子设备50的背面。第一摄像头581可表示为第一前置摄像头,第二摄像头583可表示为第二前置摄像头。本体570包括一折叠件571。在本实施方式中,该折叠件571设置于本体570的中间位置。电子设备50可绕折叠件571折叠并处于折叠状态。在其他实施例中,第一摄像头581及第二摄像头583可设置于电子设备50的第二面574即背面上,此时,第一摄像头581为第一后置摄像头,第二摄像头583为第二后置摄像头。
请一并参阅图5,所示为图4中的电子设备在另一状态的示意图。本体570包括第一壳体576及第二壳体578。柔性显示屏590包括与第一壳体576正对的第一显示区592、与第二壳体578正对的第二显示区594及位于第一显示区592及第二显示区594之间的与折叠件正对的第三显示区596。当电子设备50绕折叠件571折叠时,第一壳体576与第二壳体578相互靠近,电子设备50处于折叠状态,此时,第一摄像头581与第一显示区592位于电子设备50的相同的面上,且第一摄像头581的拍摄方向可表示为垂直于第一壳体576并指向第一壳体576的前方的方向;第二摄像头583与第二显示区594位于电子设备50的相同的面上,且第二摄像头583的拍摄方向可表示为垂直于第二壳体578并指向第二壳体578的前方的方向。
在一实施例中,在第一使用状态下,电子设备50的第一壳体576朝向用户;在第二使用状态下,该电子设备50的第二壳体578朝向用户。用户握持电子设备时,可在第一显示区592 形成第一触摸面积,在第二显示区594上形成第二触摸面积,因此,若第一触摸面积大于第二触摸面积,可确定第二显示区594正对用户,此时,电子设备50的第二壳体578朝向用户,,也即电子设备50当前处于第二使用状态;若第一触摸面积小于第二触摸面积,表示第一显示区594正对用户,此时,电子设备50的第一壳体576朝向用户,也即电子设备50当前处于第一使用状态。
例如,当电子设备50的第一壳体576朝向用户时,即处于第一使用状态时,若识别到当前的拍摄模式为自拍模式,电子设备50控制第一摄像头581获取图像,由于此时第一摄像头581的拍摄方向为朝向用户的方向,则电子设备50当前的拍摄模式为自拍模式。当电子设备50的使用状态发生改变时,如电子设备50处于第二使用状态,电子设备50的第二壳体578朝向用户,电子设备50选择开启第二摄像头583获取图像并关闭第一摄像头581,也即电子设备50保持处于自拍模式下。如此,无论电子设备50处于第一使用状态还是第二使用状态时,摄像单元580处于相同的拍摄模式。
在一实施例中,第一摄像头581及第二摄像头583可为升降式摄像头,若第一摄像头581及第二摄像头583设置于第二面574时,若当前的拍摄模式为他拍模式,且电子设备50处于第一使用状态,即电子设备50的第一壳体576朝向用户,此时,电子设备50选择第一摄像头581弹出获取图像。当电子设备50的使用状态发生改变时,如电子设备50处于第二使用状态,即电子设备50的第二壳体578朝向用户,电子设备50选择弹出第二摄像头583获取图像并收回第一摄像头581到本体570,也即电子设备50保持处于他拍模式下。如此,无论电子设备50处于第一使用状态还是第二使用状态时,摄像单元580处于相同的拍摄模式。
请一并参阅图6,所示为本发明第四实施例中的电子设备的在第一状态的示意图。电子设备50包括一个柔性显示屏590,柔性显示屏590设置于电子设备50的本体570的第一面572即正面上。柔性显示屏590为柔性触控屏。本体570包括折叠件571,电子设备50可绕折叠件571折叠并处于折叠状态。本体570包括第一壳体576及第二壳体578。柔性显示屏590包括与第一壳体576正对的第一显示区592、与第二壳体578正对的第二显示区594及位于第一显示区592及第二显示区594之间的与折叠件正对的第三显示区596。当电子设备50绕折叠件571折叠时,第一壳体576与第二壳体578相互靠近,第一面572与第二面574相背设置,此时,第一壳体576包括位于第一位置的第一摄像头581及位于第三位置的第三摄像头585,第二壳体578包括位于第二位置的第二摄像头583及位于第四位置的第四摄像头587,其中,第一摄像头581为第一前置摄像头,第二摄像头583为第二前置摄像头,第三摄像头585为第一后置摄像头,第四摄像头587为第二后置摄像头。
请一并参阅图7,所示为图6中的电子设备在第二状态的示意图。当电子设备50绕折 叠件571折叠时,电子设备50处于折叠状态。第一摄像头581及第四摄像头587的拍摄方向均可表示为垂直于第一面572并指向第一面572的前方的方向,第二摄像头583及第三摄像头585的拍摄方向均可表示为垂直于第二面574并指向第二面574的前方的方向。
例如,当电子设备50的第一壳体576朝向用户时,即处于第一使用状态,若识别到当前的拍摄模式为自拍模式,电子设备50控制第一摄像头581或第四摄像头587获取图像,由于此时第一摄像头581或第四摄像头587的拍摄方向为朝向用户的方向,则电子设备50当前的拍摄模式为自拍模式。当电子设备50的使用状态发生改变时,如电子设备50处于第二使用状态,即电子设备50的第二壳体578朝向用户,电子设备50选择开启第二摄像头583或第三摄像头585获取图像并关闭第一摄像头581及第四摄像头587,也即电子设备50保持处于自拍模式下。如此,无论电子设备50处于第一使用状态还是第二使用状态时,摄像单元580处于相同的拍摄模式。
当电子设备50的第一壳体576朝向用户时,即处于第一使用状态时,若识别到当前的拍摄模式为他拍模式,电子设备50控制第二摄像头583或第三摄像头585获取图像,由于第二摄像头583或第三摄像头585的拍摄方向为背离用户的方向,则电子设备50的当前的拍摄模式为他拍模式。当电子设备50的使用状态发生改变时,如电子设备50处于第二使用状态,电子设备50的第二壳体578朝向用户,电子设备50选择开启第一摄像头581或第四摄像头587获取图像并关闭第三摄像头585及第二摄像头583,也即电子设备50保持处于他拍模式下。如此,无论电子设备50处于第一使用状态还是第二使用状态时,摄像单元580处于相同的拍摄模式。其他情况类似,故在此不再赘述。
在一实施例中,电子设备50还判断摄像单元580的拍摄模式是否锁定;当拍摄单元580的拍摄模式锁定时,电子设备50再判断使用状态是否发生变化。
为方便用户在不同使用状态下保持识别的拍摄模式不变,电子设备50可在摄像单元拍摄图像的过程中,可接收到用户的预设的操作,以对摄像单元的拍摄模式进行锁定。例如,当需要对拍摄模式进行锁定,在拍摄图像的过程中,用户可通过触摸预设的功能图标或按键来触发锁定拍摄模式的指令。其中,该功能图标为拍照应用界面上的一图标或***默认的图标,该按键可为电子设备上的实体按键。在一实施例中,在拍摄图像的过程中,用户还可通过预设的手势操作来施加所述锁定拍摄模式的指令。
本实施例中,当电子设备的使用状态变为第二使用状态时,电子设备可控制相对于用户的显示屏内显示预设画面,以与用户进行操作。预设画面可包括显示摄像头切换的画面或显示摄像头旋转的视频,以提示用户当前的摄像头已经切换。
上述拍摄控制方法可通过判断电子设备的使用状态是否发生变化,并在电子设备的使用状 态发生变化后选择对应的摄像头,如此无需用户手动进行摄像头的切换,有利于提高用户体验。上述拍摄控制方法还可根据柔性显示屏由展开模式变化为折叠模式时选择对应的摄像头,如此无需用户手动进行摄像头的切换,有利于提高用户体验。
请参阅图8,所示为本发明提供的一实施例中的电子设备的硬件结构框图。如图8所示,所述电子设备可应用上述的各实施方式,下面对本发明所提供的电子设备50进行描述,电子设备50还可包括处理器500、存储装置502、摄像单元580及显示屏504,以及存储在所述存储装置502中并可向所述处理器500上运行的计算机程序(指令),所述电子设备50还可以包括其他的硬件部分,例如按键、指纹采集模组、通信装置等,在此不再赘述。所述处理器500可通过总线506与存储装置502、摄像单元580及显示屏504进行数据交换。
所述处理器500可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器是所述电子设备50的控制中心,利用各种接口和线路连接整个电子设备50的各个部分。
所述存储装置502可用于存储所述计算机程序和/或模块,所述处理器500通过运行或执行存储在所述存储装置502内的计算机程序和/或模块,以及调用存储在存储装置502内的数据,实现上述拍摄控制方法的各种功能。所述存储装置502可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序等。此外,存储装置502可以包括高速随机存取存储装置,还可以包括非易失性存储装置,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储装置件、闪存器件、或其他易失性固态存储装置件。
所述显示屏504,可以显示用户界面(UI)或图形用户界面(GUI)具体包括照片、视频、聊天内容等数据,显示屏30还可以用作输入装置和输出装置,显示装置可以包括液晶显示器(LCD)、薄膜晶体管LCD(TFT-LCD)、有机发光二极管(OLED)触摸显示器、柔性触摸显示器、三维(3D)触摸显示器、墨水屏显示器等中的至少一种。所述显示屏504可包括一个或多个显示屏。
所述处理器500执行所述计算机程序时实现上述各个实施例中拍摄控制方法中的步骤,例如图1所示的步骤100-104。或者,所述处理器500执行所述计算机程序时实现各模块/单元的功能。
示例性的,所述计算机程序可以被分割成一个或多个模块/单元,所述一个或者多个模 块/单元被存储在所述存储装置502中,并由所述处理器500执行,以完成本发明。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序在所述电子设备50中的执行过程。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。
Claims (20)
- 一种拍摄控制方法,应用于电子设备,所述电子设备包括摄像单元,其特征在于,所述拍摄控制方法包括:识别所述摄像单元当前的拍摄模式及所述电子设备当前的使用状态,其中,所述拍摄模式包括第一拍摄模式及第二拍摄模式,在第一拍摄模式下,所述摄像单元以相对用户的第一方向获取图像,在第二拍摄模式下,所述摄像单元以相对用户的第二方向获取图像;所述电子设备的使用状态包括第一使用状态及第二使用状态;判断所述电子设备的使用状态是否发生改变;当所述电子设备的使用状态发生改变时,控制摄像单元保持以所识别的所述拍摄模式获取图像。
- 如权利要求1所述的拍摄控制方法,其特征在于,所述第一使用状态为所述电子设备的第一面朝向用户,所述第二使用状态为所述电子设备的第二面朝向用户,所述第一面与所述第二面相背设置,所述第一拍摄模式为自拍模式;所述第二拍摄模式为他拍模式。
- 如权利要求2所述的拍摄控制方法,其特征在于,所述摄像单元为旋转式摄像头,所述控制所述摄像单元以所识别的所述拍摄模式获取图像,具体包括:控制所述旋转式摄像头旋转180°后获取图像。
- 如权利要求2所述的拍摄控制方法,其特征在于,所述摄像单元包括第一摄像头及第二摄像头,所述第一摄像头及第二摄像头之一为前置摄像头,所述第一摄像头及第二摄像头之另一为后置摄像头;所述控制所述摄像单元保持以所识别的所述拍摄模式获取图像,具体包括:若所述电子设备的使用状态改变之前,所述第一摄像头处于拍摄状态,则当所述电子设备的使用状态改变后,控制关闭所述第一摄像头并启动所述第二摄像头获取图像;或若所述电子设备的使用状态改变之前,所述第二摄像头处于拍摄状态,则当所述电子设备的使用状态改变后,控制关闭所述第二摄像头并启动所述第一摄像头获取图像。
- 如权利要求2所述的拍摄控制方法,其特征在于,所述电子设备为可折叠电子设备,包括第一壳体、第二壳体以及连接第一壳体与第二壳体的折叠件,所述摄像单元包括设置于所述第一壳体上的第一摄像头及设置于所述第二壳体上的第二摄像头,所述第一摄像头及所述第二摄像头同为前置拍摄头或同为后置拍摄头;所述控制所述摄像单元保持以所识别的所述拍摄模式获取图像,具体包括:在所述电子设备处于折叠状态时,且所述电子设备的使用状态更改之前,所述第一壳体上的第一摄像头开启并获取图像,其中,所述折叠状态为所述第一壳体与所述第二壳体相互靠近;当所述电子设备的使用状态更改后,控制所述第二壳体上的第二摄像头开启并获取图像。
- 如权利要求5所述的拍摄控制方法,其特征在于,所述第一壳体上设置有第一前置拍摄头及第一后置拍摄头,所述第二壳体上设置有第二前置拍摄头及第二后置拍摄头,所述当前的拍摄模式为控制所述第一前置拍摄头进行拍摄,当所述状态发生改变时,所述控制所述摄像单元保持以所识别的所述拍摄模式获取图像,包括:控制所述第二前置拍摄头或第一后置拍摄头开启并拍摄图像。
- 如权利要求6所述的拍摄控制方法,其特征在于,所述当前的拍摄模式为控制所述第一后置拍摄头进行拍摄,当所述状态发生改变时,所述控制所述摄像单元保持以所识别的所述拍摄模式获取图像,具体为:控制所述第二后置拍摄头或第一前置拍摄头开启并拍摄图像。
- 如权利要求7所述的拍摄控制方法,其特征在于,所述电子设备包括柔性触摸显示屏,所述柔性触摸屏包括与所述折叠件正对的可弯折触摸显示区、与所述第一壳体正对的第一触摸显示区及与所述第二壳体正对的第二触摸显示区。
- 如权利要求8所述的拍摄控制方法,其特征在于,所述识别所述电子设备当前的使用状态,具体包括:获取用户握持所述电子设备时与所述电子设备的第一触摸面的第一触摸面积;获取用户握持所述电子设备时与所述电子设备的第二触摸面的第二触摸面积;对所述第一触摸面积与所述第二触摸面积执行比较操作;若所述第一触摸面积大于所述第二触摸面积;确定所述电子设备当前的使用状态为第一使用状态;若所述第一触摸面积小于所述第二触摸面积,确定所述电子设备当前的使用状态为第二使用状态。
- 如权利要求9所述的拍摄控制方法,其特征在于,所述第一触摸面为第一触摸显示区,所述第二触摸面为第二触摸显示区。
- 如权利要求1所述的拍摄控制方法,其特征在于,所述判断所述电子设备的使用状态是否发生改变之前,还具体包括:判断所述摄像单元的拍摄模式是否锁定,其中,所述锁定为所述电子设备处于第一使用状态及第二使用状态时所述摄像单元均处于相同的拍摄模式;当所述摄像单元的拍摄模式锁定时,执行所述判断所述电子设备的使用状态是否发生改变。
- 如权利要求11所述的拍摄控制方法,其特征在于,所述判断判断所述摄像单元的拍摄模式是否锁定具体为:当在所述摄像单元拍摄图像的过程中接收到预设的操作时,确定所述摄像单元的拍摄模式锁定,其中,所述预设的操作为预设的手势操作或触摸了预设的功能图标或按键。
- 如权利要求1所述的拍摄控制方法,其特征在于,所述拍摄控制方法还包括:显示摄像头切换的画面或显示摄像头旋转的视频。
- 一种电子设备,其特征在于,所述电子设备包括:摄像单元;处理器,用于识别所述摄像单元当前的拍摄模式及所述电子设备当前的使用状态,其中,所述拍摄模式包括第一拍摄模式及第二拍摄模式,在第一拍摄模式下,所述摄像单元以相对用户的第一方向获取图像,在第二拍摄模式下,所述摄像单元以相对用户的第二方向获取图像;所述电子设备的使用状态包括第一使用状态及第二使用状态;所述处理器还用于判断所述电子设备的使用状态是否发生改变;当所述电子设备的使用状态发生改变时,所述处理器用于控制所述摄像单元保持以所识别的所述拍摄模式获取图像。
- 如权利要求14所述的电子设备,其特征在于,所述第一使用状态为所述电子设备的第一面朝向用户,所述第二使用状态为所述电子设备的第二面朝向用户,所述第一面与所述第二面相背设置,所述第一拍摄模式为自拍模式;所述第二拍摄模式为他拍模式。
- 如权利要求15所述的电子设备,其特征在于,所述摄像单元包括第一摄像头及第二摄像头,所述第一摄像头及第二摄像头之一为前置摄像头,所述第一摄像头及第二摄像头之另一为后置摄像头;当所述电子设备的使用状态改变之前,所述第一摄像头处于拍摄状态,当所述电子设备的使用状态改变后,所述处理器用于控制关闭所述第一摄像头并启动所述第二摄像头拍摄图像;或当所述电子设备的使用状态改变之前,所述第二摄像头处于拍摄状态,当所述电子设备的使用状态改变后,所述处理器用于控制关闭所述第二摄像头并启动所述第一摄像头拍摄图像。
- 如权利要求15所述的电子设备,其特征在于,所述电子设备为可折叠电子设备,包括第一壳体、第二壳体以及连接第一壳体与第二壳体的折叠件,所述摄像单元包括设置与所述第一壳体上的第一摄像头及设置与所述第二壳体上的第二摄像头,所述第一摄像头及所述第二摄像头同为前置拍摄头或同为后置拍摄头;在所述电子设备处于折叠状态时,且所述电子设备的使用状态更改之前,所述第一壳体上的第一摄像头开启并获取图像,其中,所述折叠状态为所述第一壳体与所述第二壳体相互靠近;当所述电子设备的使用状态更改后,所述处理器控制所述第二壳体上的第二摄像头开启并获取 图像。
- 如权利要求17所述的电子设备,其特征在于,所述第一壳体上设置有第一前置拍摄头及第一后置拍摄头,所述第二壳体上设置有第二前置拍摄头及第二后置拍摄头;若当前的拍摄模式为控制所述第一前置拍摄头进行拍摄,当所述状态发生改变时,所述处理器用于控制所述第二前置拍摄头或第一后置拍摄头开启并拍摄图像;或若当前的拍摄模式为控制所述第一后置拍摄头进行拍摄,当所述状态发生改变时,所述处理器用于控制所述第二后置拍摄头或第一前置拍摄头开启并拍摄图像。
- 如权利要求1所述的电子设备,其特征在于,所述处理器还用于判断所述摄像单元的拍摄模式是否锁定,其中,所述锁定为所述电子设备处于第一使用状态及第二使用状态时所述摄像单元均处于相同的拍摄模式;当所述摄像单元的拍摄模式锁定时,所述处理器用于判断所述电子设备的使用状态是否发生改变。
- 一种计算机可读存储介质,存储有计算机指令,其特征在于,所述计算机指令被处理器执行时实现如权利要求1至13中任意一项所述的拍摄控制方法。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/114839 WO2020093371A1 (zh) | 2018-11-09 | 2018-11-09 | 拍摄控制方法、电子设备及计算机可读存储介质 |
CN201880096012.5A CN112689990A (zh) | 2018-11-09 | 2018-11-09 | 拍摄控制方法、电子设备及计算机可读存储介质 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/114839 WO2020093371A1 (zh) | 2018-11-09 | 2018-11-09 | 拍摄控制方法、电子设备及计算机可读存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020093371A1 true WO2020093371A1 (zh) | 2020-05-14 |
Family
ID=70610777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/114839 WO2020093371A1 (zh) | 2018-11-09 | 2018-11-09 | 拍摄控制方法、电子设备及计算机可读存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112689990A (zh) |
WO (1) | WO2020093371A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115484390A (zh) * | 2021-06-16 | 2022-12-16 | 荣耀终端有限公司 | 一种拍摄视频的方法及电子设备 |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113727001B (zh) * | 2021-08-31 | 2023-06-13 | 维沃移动通信(杭州)有限公司 | 拍摄方法、装置及电子设备 |
CN116048436B (zh) * | 2022-06-17 | 2024-03-08 | 荣耀终端有限公司 | 应用界面显示方法、电子设备及存储介质 |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1744623A (zh) * | 2004-09-03 | 2006-03-08 | 乐金电子(中国)研究开发中心有限公司 | 一种具有相机的移动通信终端的相机控制装置及方法 |
EP2672695A2 (en) * | 2012-06-08 | 2013-12-11 | Samsung Electronics Co., Ltd | Continuous video capture during switch between video capture devices |
CN103795864A (zh) * | 2014-01-29 | 2014-05-14 | 华为技术有限公司 | 移动终端前后摄像头的选择方法和移动终端 |
CN105282432A (zh) * | 2014-07-21 | 2016-01-27 | 联想(新加坡)私人有限公司 | 基于环境的摄像头模式选择 |
US20160241783A1 (en) * | 2015-01-28 | 2016-08-18 | Kyocera Corporation | Portable terminal |
CN106231087A (zh) * | 2016-07-27 | 2016-12-14 | 努比亚技术有限公司 | 一种正反面双屏显示设备防误触的方法和装置 |
CN106572299A (zh) * | 2016-10-31 | 2017-04-19 | 北京小米移动软件有限公司 | 摄像头开启方法及装置 |
CN107105160A (zh) * | 2017-04-25 | 2017-08-29 | 维沃移动通信有限公司 | 一种启动摄像头的方法、***及移动终端 |
CN107682635A (zh) * | 2017-10-19 | 2018-02-09 | 广东欧珀移动通信有限公司 | 图像拍摄方法、装置、终端及存储介质 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106469038A (zh) * | 2016-09-26 | 2017-03-01 | 南京酷派软件技术有限公司 | 基于多屏终端的显示屏切换方法及装置 |
CN106803891A (zh) * | 2017-03-13 | 2017-06-06 | 奇酷互联网络科技(深圳)有限公司 | 控制摄像头的方法以及移动终端 |
CN106998428B (zh) * | 2017-04-21 | 2019-04-12 | 维沃移动通信有限公司 | 一种移动终端的拍摄方法及移动终端 |
CN107948360B (zh) * | 2017-11-29 | 2020-11-03 | 努比亚技术有限公司 | 柔性屏终端的拍摄方法、终端和计算机可读存储介质 |
CN108076292A (zh) * | 2017-12-28 | 2018-05-25 | 努比亚技术有限公司 | 拍摄方法、移动终端及存储介质 |
-
2018
- 2018-11-09 CN CN201880096012.5A patent/CN112689990A/zh active Pending
- 2018-11-09 WO PCT/CN2018/114839 patent/WO2020093371A1/zh active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1744623A (zh) * | 2004-09-03 | 2006-03-08 | 乐金电子(中国)研究开发中心有限公司 | 一种具有相机的移动通信终端的相机控制装置及方法 |
EP2672695A2 (en) * | 2012-06-08 | 2013-12-11 | Samsung Electronics Co., Ltd | Continuous video capture during switch between video capture devices |
CN103795864A (zh) * | 2014-01-29 | 2014-05-14 | 华为技术有限公司 | 移动终端前后摄像头的选择方法和移动终端 |
CN105282432A (zh) * | 2014-07-21 | 2016-01-27 | 联想(新加坡)私人有限公司 | 基于环境的摄像头模式选择 |
US20160241783A1 (en) * | 2015-01-28 | 2016-08-18 | Kyocera Corporation | Portable terminal |
CN106231087A (zh) * | 2016-07-27 | 2016-12-14 | 努比亚技术有限公司 | 一种正反面双屏显示设备防误触的方法和装置 |
CN106572299A (zh) * | 2016-10-31 | 2017-04-19 | 北京小米移动软件有限公司 | 摄像头开启方法及装置 |
CN107105160A (zh) * | 2017-04-25 | 2017-08-29 | 维沃移动通信有限公司 | 一种启动摄像头的方法、***及移动终端 |
CN107682635A (zh) * | 2017-10-19 | 2018-02-09 | 广东欧珀移动通信有限公司 | 图像拍摄方法、装置、终端及存储介质 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115484390A (zh) * | 2021-06-16 | 2022-12-16 | 荣耀终端有限公司 | 一种拍摄视频的方法及电子设备 |
CN115484390B (zh) * | 2021-06-16 | 2023-12-19 | 荣耀终端有限公司 | 一种拍摄视频的方法及电子设备 |
Also Published As
Publication number | Publication date |
---|---|
CN112689990A (zh) | 2021-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018192390A1 (zh) | 一种移动终端的拍摄方法及移动终端 | |
US11128802B2 (en) | Photographing method and mobile terminal | |
US10701273B1 (en) | User terminal apparatus and control method thereof | |
US10136069B2 (en) | Apparatus and method for positioning image area using image sensor location | |
US11012639B2 (en) | Apparatus and method for processing an image in device | |
TWI441072B (zh) | 觸控螢幕解鎖方法及其具有攝像功能之電子裝置 | |
CN107390990B (zh) | 一种图像的调整方法和移动终端 | |
CN111418202B (zh) | 相机缩放级别和图像帧捕获控制 | |
EP2814234A1 (en) | Apparatus for controlling camera modes and associated methods | |
US20200053283A1 (en) | Photographing method and terminal | |
EP3001247B1 (en) | Method and terminal for acquiring panoramic image | |
WO2018153074A1 (zh) | 一种预览图像的显示方法及终端设备 | |
TWI588682B (zh) | 處理握持感測器之方法、通訊裝置及電腦可讀取儲存媒體 | |
WO2019001152A1 (zh) | 拍照方法及移动终端 | |
US20170212609A1 (en) | Method and Apparatus for Presenting Panoramic Photo in Mobile Terminal, and Mobile Terminal | |
WO2020093371A1 (zh) | 拍摄控制方法、电子设备及计算机可读存储介质 | |
TWI633499B (zh) | 全景影像的顯示方法及其電子裝置 | |
WO2019062431A1 (zh) | 拍摄方法及移动终端 | |
CN106162150B (zh) | 一种拍照方法及移动终端 | |
CN106200912B (zh) | 一种自拍杆拍照的处理方法及移动终端 | |
WO2017049916A1 (zh) | 一种实现图像拍摄的方法及终端 | |
KR20100088248A (ko) | 사용자 인터페이스 제어 방법 및 그를 이용한 이동 단말기 | |
US11284003B2 (en) | User terminal apparatus and control method thereof | |
JP2016200898A (ja) | 携帯型情報処理装置、その撮影方法、及びコンピュータが実行可能なプログラム | |
WO2020087504A1 (zh) | 基于截屏的交互方法、电子设备及计算机可读存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18939577 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18939577 Country of ref document: EP Kind code of ref document: A1 |