WO2019001152A1 - 拍照方法及移动终端 - Google Patents
拍照方法及移动终端 Download PDFInfo
- Publication number
- WO2019001152A1 WO2019001152A1 PCT/CN2018/086698 CN2018086698W WO2019001152A1 WO 2019001152 A1 WO2019001152 A1 WO 2019001152A1 CN 2018086698 W CN2018086698 W CN 2018086698W WO 2019001152 A1 WO2019001152 A1 WO 2019001152A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- camera
- display screen
- screen
- display
- folding
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1615—Constructional details or arrangements for portable computers with several enclosures having relative motions, each enclosure supporting at least one I/O or computing function
- G06F1/1616—Constructional details or arrangements for portable computers with several enclosures having relative motions, each enclosure supporting at least one I/O or computing function with folding flat displays, e.g. laptop computers or notebooks having a clamshell configuration, with body parts pivoting to an open position around an axis parallel to the plane they define in closed position
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1633—Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
- G06F1/1675—Miscellaneous details related to the relative movement between the different enclosures or enclosure parts
- G06F1/1677—Miscellaneous details related to the relative movement between the different enclosures or enclosure parts for detecting open or closed state or particular intermediate positions assumed by movable parts of the enclosure, e.g. detection of display lid position with respect to main body in a laptop, detection of opening of the cover of battery compartment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1633—Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
- G06F1/1684—Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
- G06F1/1686—Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being an integrated camera
-
- 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/57—Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
-
- 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
- H04N23/62—Control of parameters via user interfaces
-
- 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
- H04N23/667—Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
Definitions
- the present disclosure relates to the field of mobile terminal technologies, and in particular, to a photographing method and a mobile terminal.
- an embodiment of the present disclosure provides a photographing method, which is applied to a mobile terminal, and the method includes:
- Detecting a preset folding operation dividing the foldable screen into a first display screen and a second display screen, wherein the first camera is disposed on the first display screen and the second camera is disposed on the second display screen And the first camera and the second camera are located within a preset distance of the double shot when the foldable screen is not folded;
- the second display screen displays a framing screen of the first camera, and the first display screen displays a framing picture of the second camera.
- an embodiment of the present disclosure further provides a mobile terminal, including:
- a folding detection module configured to detect a preset folding operation, and divide the foldable screen into a first display screen and a second display screen, wherein the first camera is disposed on the first display screen and the second camera is disposed on The second display screen, and the first camera and the second camera are located within a preset distance of the double shot when the foldable screen is not folded;
- the framing screen display module is configured to display a framing screen of the first camera when the photographing application is detected to be activated, and the first display screen displays a framing screen of the second camera.
- an embodiment of the present disclosure further provides a mobile terminal, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing the computer The steps of the above photographing method are implemented in the program.
- an embodiment of the present disclosure further provides a computer readable storage medium, where a computer program is stored thereon, and when the program is executed by the processor, the steps of the photographing method are implemented.
- the foldable screen is divided into a first display screen and a second display screen by detecting a preset folding operation, wherein the first display screen is provided with a first camera and the first display screen
- the second display screen is provided with a second camera; if it is detected that the shooting application is activated, the second display screen displays a framing screen of the first camera, and the first display screen displays the framing of the second camera Picture.
- the distance between the first camera and the second camera is within a preset distance that can achieve double shooting; when folded, the first camera and the second camera are used as front cameras and rear respectively Use the camera.
- FIG. 1 shows a flow chart of a photographing method in some embodiments of the present disclosure.
- FIG. 2 shows a flow chart of a photographing method in other embodiments of the present disclosure
- FIG. 2A shows a schematic view of a folding screen folding operation in some embodiments of the present disclosure
- FIG. 3 illustrates a structural block diagram of a mobile terminal in accordance with some embodiments of the present disclosure
- FIG. 4 is a block diagram showing the structure of a mobile terminal in accordance with further embodiments of the present disclosure.
- FIG. 5 shows a structural block diagram of a mobile terminal in accordance with further embodiments of the present disclosure
- FIG. 6 shows a schematic structural diagram of a mobile terminal in accordance with further embodiments of the present disclosure.
- the embodiments of the present disclosure provide a photographing method and a mobile terminal, so as to solve the problem that the front and rear camera or the multi-camera of the mobile terminal device meets the shooting requirements of the user, which results in occupying too much device space of the mobile terminal.
- Embodiments of the present disclosure are applied to a mobile terminal including a foldable screen provided with a first camera and a second camera.
- FIG. 1 a flowchart of a photographing method of some embodiments of the present disclosure is shown, which may specifically include the following steps 110 and 120.
- Step 110 detecting a preset folding operation, dividing the foldable screen into a first display screen and a second display screen, wherein the first camera is disposed on the first display screen and the second camera is disposed in the first Two display screens, and the first camera and the second camera are located within a preset distance of the double shot when the foldable screen is not folded.
- the folding line of the folding screen is used as a reference, and the folding screen is folded.
- the flat screen is divided into two screens, a first screen and a second screen, wherein the first camera is located on the first screen and the second camera is located on the second screen, so usually the folding line on the folding screen is usually located in the setting. Between the two cameras.
- At least two cameras can be set on the folding screen, and the folding line is located between the two cameras. If more than two cameras are set, the position of the folding line can be set to separate the camera on the first screen. And the second screen, and the two cameras are located within a preset distance of the double shot when the foldable screen is not folded, and the specific set distance is different according to different mobile terminal setting parameters, and the embodiment of the present disclosure is not limited thereto.
- Step 120 If it is detected that the shooting application is activated, the second display screen displays a framing screen of the first camera, and the first display screen displays a framing picture of the second camera.
- the shooting application on the current mobile terminal is started.
- whether the activity of the application is displayed on the interface is a core factor that determines whether the application is opened or closed.
- An application has only one activity and does not support horizontal screen.
- the onstart and onstop methods of this activity determine whether the application is open or closed, so you can see the application by looking at the return values of the functions onstart() and onstop().
- Start state Specifically, when the shooting state is detected by using the method described above, the first camera configured on the first screen is the rear camera of the second screen in the folded state according to the preset parameter in the shooting application. Similarly, the second camera configured on the second screen is the rear camera of the first screen, and the framing picture of the first camera is displayed on the second display screen, and the framing picture of the second camera is displayed on the first display screen.
- the distance between the first camera and the second camera is within a preset distance that can achieve double shooting, and when folded, the first camera and the second camera respectively Used as a front camera and a rear camera, it realizes two front cameras that can realize dual shooting on the mobile terminal, and realizes front and rear camera functions by folding operation.
- FIG. 2 a flowchart of a photographing method according to further embodiments of the present disclosure is shown, which may specifically include the following steps 201 to 205.
- Step 201 Acquire folding sensing data of the folding sensor in the preset direction in the foldable screen, and calculate a folding angle of the foldable screen.
- a folding sensor is generally disposed at a folding line of the folding screen, which can sense the direction and angle of folding the folding screen.
- the folding sensing is performed by the two screens respectively.
- the data acquired by the component further determines the folding direction of the folding screen and the folding angle.
- Step 202 If the folding angle exceeds a preset threshold, divide the foldable screen into a first display screen and a second display screen.
- the relative distances of the preset sensing points on the first display screen and the second display screen are further acquired, and then according to the above The relative distance and the distance of the sensing point from the folding line can further calculate the folding angle between the first display screen and the second display screen.
- the folding angle between the first display screen and the second display screen For example, in the side view of the folding screen depicted in FIG.
- A is a preset sensing point on the first display screen
- B is a preset sensing point on the second display screen
- the sensing elements disposed on the two display screens can be
- the relative distance AB between point A and point B is measured, and the distance AC of point A from the point C of the folding line can also be calculated.
- the distance BC from the point C of the folding line can also be known, and AB and AC are known.
- the value of BC can be calculated by the triangular cosine theorem, and then the folding angle between the first display screen and the second display screen is the difference obtained by the value of 180 degrees and the angle C.
- the preset threshold can be set to any value between 120° and 180°.
- the value of the angle C can be further calculated as 0, and the folding angle between the first display screen and the second display screen is 180°. It is determined that the first display screen and the second display screen are folded and connected, and the back sides between them are completely overlapped.
- the preset angle determined by the preset folding operation is not necessarily 180°, and may be a user setting or a foldable angle set by a related technician, which is not limited by the embodiment of the present disclosure.
- Step 203 If it is detected that the shooting application is activated, the second display screen displays a framing screen of the first camera, and the first display screen displays a framing picture of the second camera.
- the display content on the first display screen is the screen captured by the second camera according to the preset display, and the second display screen is displayed on the second display screen. A picture taken by a camera.
- the preset display screens on the first display screen and the second display screen may be changed according to the needs of the user.
- the second camera may be displayed on the first display screen every time the camera is enabled.
- the screen displays the first camera shooting screen on the second display screen.
- the viewfinder screen when the last shot application is closed may also be displayed, which is not limited by the embodiment of the present disclosure.
- Step 204 if the closing operation of the shooting application is detected, recording display parameters of the first display screen and the second display screen; the display parameters include: a first display screen and a second display screen and The correspondence between a camera and a second camera.
- the parameters of the camera corresponding to the viewfinder screen in the folding dual screen are recorded.
- the shooting application is turned off, the display screen in the first display screen is captured by the second camera, and the display screen of the first display screen is captured by the first camera, then the corresponding relationship is recorded, and the camera framing parameters are recorded.
- the focus parameter, the special effect selection, and the like, and the display parameter specifically includes the corresponding relationship between the display screen and the camera, and the framing parameters specifically included may be set according to the user's requirements, and the embodiment of the present disclosure is not limited.
- Step 205 If the re-opening operation of the photographing application is detected, displaying a screen photographed by the corresponding camera in the first display screen and the second display screen according to the display parameter.
- the shooting application when it is detected that the shooting application is turned on, if the display parameters of the camera of the first display screen and the second display screen are monitored, then according to the corresponding relationship between the display screen and the camera recorded in the display parameter of the camera, And the framing parameter of the camera, respectively displaying the framing picture of the corresponding camera in the first display screen and the second display screen.
- the photographing method further includes steps 203A-203C and 206-210.
- Step 203A collecting face information by using the first camera and the second camera respectively;
- the main application of the face recognition when photographing the mobile phone is: detecting and locating the face in the scene, and in the face detection method based on the geometric feature, first determining the face from the eyes, the nose, the mouth, the chin, and the like.
- the composition because of the various differences in the shape, size and structure of these components, makes every face in the world vary widely, so the geometric description of the shape and structural relationship of these components can be an important feature of face recognition. Roughly, a number of salient points are first determined from the contour curve, and a set of feature metrics for identification such as distance, angle, etc. derived from the integral projections near the midline of the front grayscale map are derived from these salient points.
- a contour curve conforming to the recognition feature is found during the photographing process, it can be quickly positioned and marked to quickly recognize the facial features in the photographed image.
- Step 203B Acquire a target camera that does not collect face information in the first camera and the second camera;
- the face feature information is not extracted in the captured image of the first camera or the second camera by the face feature collection technology, it is determined that the camera does not collect the face information, and the second camera is not
- the face information is collected as an example for further explanation.
- Step 203C Close the display screen corresponding to the target camera.
- the camera that does not collect the facial feature information is turned off to save power consumption of the mobile terminal. Since the second camera does not collect the face information, the user is not on the side of the second camera. Since the second camera corresponds to the second display, the second display is turned off, and only the first display is retained for display. To the user's use.
- Step 206 If a camera switching operation on the first display screen is received, and a framing picture in the first display screen is captured by the first camera, displaying the The picture taken by the second camera.
- the screen displayed on the first display screen is captured by the second camera, and at this time, if the screen displayed in the second display screen is also photographed by the second camera, then the screen is immediately converted.
- the picture taken by the first camera is displayed on the second display screen.
- the CameraInfo class can be called, and the first display and the second display can be determined by using BACK_FACING_CAMERA and FRONT_FACING_CAMERA.
- the screens displayed by the first camera or the second camera are respectively displayed on the display screen. If the same camera shooting picture is displayed on the two display screens, the screen displayed in one of the display screens is switched according to the preset user habit.
- the viewfinder screen is switched to the second camera shooting. Picture.
- the second frame is displayed on the second display at this time, the picture captured by the first camera is simultaneously switched.
- Step 207 If a camera switching operation on the first display screen is received, and the framing picture in the first display screen is captured by the second camera, the displaying is performed on the first display screen. The picture taken by the first camera.
- the viewfinder screen is switched to the first camera.
- the picture taken if the picture taken by the first camera is displayed on the second display at this time, it is simultaneously switched to the picture taken by the second camera.
- Step 208 if a camera switching operation on the second display screen is received, and the framing picture in the second display screen is captured by the second camera, the displaying is performed on the second display screen. The picture taken by the first camera.
- the viewfinder screen is switched to the first camera.
- the picture taken if the picture taken by the first camera is displayed on the first display at this time, the picture captured by the second camera is simultaneously switched.
- Step 209 if a camera switching operation on the second display screen is received, and the framing picture in the second display screen is captured by the first camera, the displaying is performed on the second display screen. The picture taken by the second camera.
- the viewfinder screen is switched to the second camera.
- the second frame is displayed on the second display at this time, the picture captured by the first camera is simultaneously switched.
- Step 210 Detect a shooting operation on any of the display screens, and acquire images corresponding to the framing screens on the first display screen and the second display screen, and store them in a preset storage directory.
- the volume key can be set to, for example, when the shooting application is started.
- the button for quick shooting so when it is detected that the user clicks any of the preset shooting buttons, the pictures displayed on the first display screen and the second display screen are simultaneously captured and stored in the directory respectively.
- the pictures displayed on the two display screens may be combined into one picture for storage, and the user may modify the settings in the shooting application, which is not limited in the embodiment of the present disclosure.
- the corresponding screen is divided into a first screen and a second screen by a folding operation of the foldable screen on the mobile terminal, and when the two screens are folded, and the shooting application is turned on, respectively,
- the cameras on the two screens are the first camera and the second camera, and when the camera is switched on one display screen, the other screen also switches the camera and displays the captured image of the camera after switching, thereby realizing the mobile terminal.
- the front and rear camera functions are realized by folding the folding screen.
- FIG. 3 a block diagram of a structure of a mobile terminal of some embodiments of the present disclosure is shown.
- the mobile terminal 400 includes a fold detection module 401 and a framing screen display module 402.
- the folding detection module 401 is configured to detect a preset folding operation, and divide the foldable screen into a first display screen and a second display screen, wherein the first camera is disposed on the first display screen and the second camera Provided on the second display screen, and the first camera and the second camera are located within a preset distance of the double shot when the foldable screen is not folded.
- the finder screen display module 402 is configured to display a framing screen of the first camera, and the first display screen displays a framing screen of the second camera, if the shooting application is detected to be activated .
- the folding detection module 401 specifically includes:
- a folding sensing data acquisition sub-module configured to acquire folding sensing data of the folding sensor in the preset direction in the foldable screen, and calculate a folding angle of the foldable screen
- the folding screen dividing sub-module is configured to divide the foldable screen into a first display screen and a second display screen if the folding angle exceeds a preset threshold.
- the framing screen display module 402 is configured to display a framing screen of the first camera when the photographing application is detected to be activated, and the first display screen displays a framing screen of the second camera.
- the method further includes:
- a display parameter recording module 403 if the closing operation of the shooting application is detected, recording display parameters of the first display screen and the second display screen;
- the display parameters include: a first display screen and a second display Correspondence between the screen and the first camera and the second camera;
- the display module 404 is configured to display a picture taken by the corresponding camera in the first display screen and the second display screen according to the display parameter if the re-opening operation of the photographing application is detected.
- the mobile terminal 400 further includes:
- a face information collecting module configured to collect face information by using the first camera and the second camera respectively
- a target camera determining module configured to acquire a target camera that does not collect face information in the first camera and the second camera
- the display close module is configured to close the display corresponding to the target camera.
- the mobile terminal 400 further includes:
- a first display conversion module configured to: if receiving a camera conversion operation on the first display screen, and the framing picture in the first display screen is captured by the first camera, then at the first Displaying a picture taken by the second camera on the display screen;
- a first display screen conversion module configured to: if receiving a camera switching operation on the first display screen, and the framing screen in the first display screen is captured by the second camera, Displaying a picture taken by the first camera on a display screen;
- the second display screen conversion module is configured to: if receiving a camera switching operation on the second display screen, and the framing picture in the second display screen is captured by the second camera, Displaying a picture taken by the first camera on the second display screen;
- a second display conversion module configured to: if a camera switching operation on the second display screen is received, and a viewfinder image in the second display screen is captured by the first camera, then in the second The screen shot by the second camera is displayed on the display screen.
- the mobile terminal 400 further includes:
- a dual-screen shooting module configured to detect a shooting operation on any of the display screens, and simultaneously acquire images corresponding to the framing screens on the first display screen and the second display screen, and store the images in a preset storage directory under.
- the corresponding screen is divided into a first screen and a second screen by a folding operation of the foldable screen on the mobile terminal, two screen folding is detected, and the shooting application is turned on, on one display screen
- the other screen also switches the camera and displays the captured image of the camera after switching, thereby realizing the beneficial effect of the front and rear camera functions by folding the folding operation of the screen on the mobile terminal.
- FIG. 5 a block diagram of a structure of a mobile terminal in still another embodiment of the present disclosure is shown.
- the mobile terminal 500 shown in FIG. 5 includes at least one processor 501, a memory 502, at least one network interface 504 and a user interface 503, and a photographing component 506.
- the various components in mobile terminal 500 are coupled together by a bus system 505.
- bus system 505 is used to implement connection communication between these components.
- the bus system 505 includes a power bus, a control bus, and a status signal bus in addition to the data bus.
- various buses are labeled as bus system 505 in FIG.
- the user interface 503 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touchpad, or a touch screen, etc.).
- a pointing device eg, a mouse, a trackball, a touchpad, or a touch screen, etc.
- the memory 502 in an embodiment of the present disclosure may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
- the non-volatile memory may be a read-only memory (ROM), a programmable read only memory (PROM), an erasable programmable read only memory (Erasable PROM, EPROM), or an electric Erase programmable read only memory (EEPROM) or flash memory.
- the volatile memory can be a Random Access Memory (RAM) that acts as an external cache.
- RAM Random Access Memory
- many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (Synchronous DRAM).
- SDRAM Double Data Rate Synchronous Dynamic Random Access Memory
- DDRS DRAM Double Data Rate Synchronous Dynamic Random Access Memory
- ESDRAM Enhanced Synchronous Dynamic Random Access Memory
- Synchronous Connection Dynamic Random Access Memory Synchronous Connection Dynamic Random Access Memory
- SLDRAM Synchronous Connection Dynamic Random Access Memory
- DRRAM direct memory bus random access memory
- memory 502 stores elements, executable modules or data structures, or a subset thereof, or their extended set: operating system 5021 and application 5022.
- the operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks.
- the application 5022 includes various applications, such as a media player (Media Player), a browser (Browser), etc., for implementing various application services.
- a program implementing the method of the embodiments of the present disclosure may be included in the application 5022.
- the processor 501 is configured to detect a preset folding operation, and the foldable screen is Dividing into a first display screen and a second display screen, wherein the first camera is disposed on the first display screen and the second camera is disposed on the second display screen, and the first camera and the second camera are When the folding screen is not folded, it is located within a preset distance of the double camera; if it is detected that the shooting application is activated, the second display screen displays a framing picture of the first camera, and the first display screen displays the The framing screen of the second camera.
- Processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 501 or an instruction in a form of software.
- the processor 501 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a Field Programmable Gate Array (FPGA), or the like. Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
- DSP digital signal processor
- ASIC application specific integrated circuit
- FPGA Field Programmable Gate Array
- the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
- the steps of the method disclosed in connection with the embodiments of the present disclosure may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
- the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
- the storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the above method in combination with its hardware.
- the embodiments described in the embodiments of the present disclosure may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof.
- the processing unit can be implemented in one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processing (DSP), Digital Signal Processing Equipment (DSP Device, DSPD), programmable Programmable Logic Device (PLD), Field-Programmable Gate Array (FPGA), general purpose processor, controller, microcontroller, microprocessor, other for performing the functions described herein In an electronic unit or a combination thereof.
- ASICs Application Specific Integrated Circuits
- DSP Digital Signal Processing
- DSP Device Digital Signal Processing Equipment
- PLD programmable Programmable Logic Device
- FPGA Field-Programmable Gate Array
- the techniques described in the embodiments of the present disclosure may be implemented by modules (eg, procedures, functions, etc.) that perform the functions described in the embodiments of the present disclosure.
- the software code can be stored in memory and executed by the processor.
- the memory can be implemented in the processor or external to the processor.
- the processor 501 when the processor 501 detects the preset folding operation and divides the foldable screen into the first display screen and the second display screen, the processor 501 is further configured to: obtain the folding sensor in the foldable screen in a preset direction And folding the sensing data to calculate a folding angle of the foldable screen; if the folding angle exceeds a preset threshold, dividing the foldable screen into a first display screen and a second display screen.
- the processor 501 detects that the shooting application is activated, the second display screen displays a framing screen of the first camera, and the first display screen displays the framing picture of the second camera. And displaying, if the closing operation of the shooting application is detected, recording display parameters of the first display screen and the second display screen; the display parameters include: a first display screen and a second display screen Corresponding relationship with the first camera and the second camera; if the re-opening operation of the photographing application is detected, displaying, by the corresponding camera, the first display screen and the second display screen according to the display parameter Picture.
- the processor 501 detects that the shooting application is activated, the second display screen displays a framing screen of the first camera, and the first display screen displays the framing picture of the second camera. And is further configured to: collect the face information by using the first camera and the second camera respectively; acquire a target camera that does not collect the face information in the first camera and the second camera; and close the display screen corresponding to the target camera.
- the second display screen displays a framing screen of the first camera, and the first display screen displays the framing picture of the second camera. And being further configured to display on the first display screen if a camera switching operation on the first display screen is received, and a framing picture in the first display screen is captured by the first camera a picture captured by the second camera; if a camera switching operation on the first display screen is received, and a framing picture in the first display screen is captured by the second camera, then the first Displaying a picture taken by the first camera on the display screen; or, if a camera switching operation on the second display screen is received, and the framing picture in the second display screen is captured by the second camera, Displaying a picture taken by the first camera on the second display screen; if receiving a camera switching operation on the second display screen, and the framing picture in the second display screen is One camera Photographing, a display screen is captured by the second camera on the second display screen.
- the processor 501 detects that the shooting application is activated, the second display screen displays a framing screen of the first camera, and the first display screen displays the framing picture of the second camera.
- the method is further configured to: detect a shooting operation on any of the display screens, and acquire images corresponding to the framing screens on the first display screen and the second display screen, and store the images respectively in a preset storage directory.
- the corresponding screen is divided into the first screen and the second screen by the folding operation of the foldable screen on the mobile terminal, and when the two screen folding connections are detected, it is detected whether the shooting application is turned on at the same time.
- the cameras respectively configured on the two screens by the folding operation are respectively set as the rear cameras of the first screen and the second screen, and when the camera is switched on one display, the other screen is also The switching camera is displayed, and the shooting picture of the camera after switching is displayed, thereby realizing the beneficial effect of the front and rear camera functions by folding the folding operation of the screen on the mobile terminal.
- FIG. 6 shows a schematic structural diagram of a mobile terminal according to further embodiments of the present disclosure.
- the mobile terminal of the embodiment of the present disclosure may be a mobile phone, a tablet computer, a personal digital assistant (PDA), or an in-vehicle computer or the like.
- PDA personal digital assistant
- the mobile terminal in FIG. 6 includes a radio frequency (RF) circuit 610, a memory 620, an input unit 630, a display unit 640, a processor 660, an audio circuit 670, a WiFi (Wireless Fidelity) module 680, and a power supply 690.
- RF radio frequency
- the input unit 630 can be configured to receive numeric or character information input by the user, and generate signal input related to user settings and function control of the mobile terminal.
- the input unit 630 may include a touch panel 631.
- the touch panel 631 also referred to as a touch screen, can collect touch operations on or near the user (such as the operation of the user using a finger, a stylus, or the like on any suitable object or accessory on the touch panel 631), and according to the preset
- the programmed program drives the corresponding connection device.
- the touch panel 631 can include two parts: a touch detection device and a touch controller.
- the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
- the processor 660 is provided and can receive commands from the processor 660 and execute them.
- the touch panel 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
- the input unit 630 may further include other input devices 632, which may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like. One or more of them.
- the display unit 640 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal.
- the display unit 640 can include a display panel 641.
- the display panel 641 can be configured in the form of an LCD or an Organic Light-Emitting Diode (OLED).
- the touch panel 631 can cover the display panel 641 to form a touch display screen, and when the touch display screen detects a touch operation on or near it, it is transmitted to the processor 660 to determine the type of the touch event, and then the processor The 660 provides a corresponding visual output on the touch display depending on the type of touch event.
- the touch display includes an application interface display area and a common control display area.
- the arrangement manner of the application interface display area and the display area of the common control is not limited, and the arrangement manner of the two display areas can be distinguished by up-and-down arrangement, left-right arrangement, and the like.
- the application interface display area can be used to display the interface of the application. Each interface can contain interface elements such as at least one application's icon and/or widget desktop control.
- the application interface display area can also be an empty interface that does not contain any content.
- the common control display area is used to display controls with high usage, such as setting buttons, interface numbers, scroll bars, phone book icons, and the like.
- the processor 660 is a control center of the mobile terminal, and connects various parts of the entire mobile phone by using various interfaces and lines, by running or executing software programs and/or modules stored in the first memory 621, and calling the second memory.
- the data in 622 performs various functions and processing data of the mobile terminal, thereby performing overall monitoring on the mobile terminal.
- processor 660 can include one or more processing units.
- the processor 660 is configured to detect a preset folding operation,
- the foldable screen is divided into a first display screen and a second display screen, wherein the first camera is disposed on the first display screen and the second camera is disposed on the second display screen, and the first camera and the second camera The camera is located within a preset distance of the double camera when the foldable screen is not folded; if the shooting application is detected to be activated, the second display screen displays a viewfinder screen of the first camera, the first display screen A framing screen of the second camera is displayed.
- the processor 660 when the processor 660 detects the preset folding operation and divides the foldable screen into the first display screen and the second display screen, the processor 660 is further configured to: obtain the folding sensor in the foldable screen in a preset direction And folding the sensing data to calculate a folding angle of the foldable screen; if the folding angle exceeds a preset threshold, dividing the foldable screen into a first display screen and a second display screen.
- the processor 660 detects that the shooting application is activated, the second display screen displays a framing screen of the first camera, and the first display screen displays the framing screen of the second camera. And displaying, if the closing operation of the shooting application is detected, recording display parameters of the first display screen and the second display screen; the display parameters include: a first display screen and a second display screen Corresponding relationship with the first camera and the second camera; if the re-opening operation of the photographing application is detected, displaying, by the corresponding camera, the first display screen and the second display screen according to the display parameter Picture.
- the processor 660 detects that the shooting application is activated, the second display screen displays a framing screen of the first camera, and the first display screen displays the framing screen of the second camera. And is further configured to: collect the face information by using the first camera and the second camera respectively; acquire a target camera that does not collect the face information in the first camera and the second camera; and close the display screen corresponding to the target camera.
- the second display screen displays a framing screen of the first camera, and the first display screen displays the framing picture of the second camera. And being further configured to display on the first display screen if a camera switching operation on the first display screen is received, and a framing picture in the first display screen is captured by the first camera a picture captured by the second camera; if a camera switching operation on the first display screen is received, and a framing picture in the first display screen is captured by the second camera, then the first Displaying a picture taken by the first camera on the display screen; or, if a camera switching operation on the second display screen is received, and the framing picture in the second display screen is captured by the second camera, Displaying a picture taken by the first camera on the second display screen; if receiving a camera switching operation on the second display screen, and the framing picture in the second display screen is One camera Photographing, a display screen is captured by the second camera on the second display screen.
- the processor 660 detects that the shooting application is activated, the second display screen displays a framing screen of the first camera, and the first display screen displays the framing picture of the second camera.
- the method is further configured to: detect a shooting operation on any of the display screens, and acquire images corresponding to the framing screens on the first display screen and the second display screen, and store the images respectively in a preset storage directory.
- the corresponding screen is divided into the first screen and the second screen by the folding operation of the foldable screen on the mobile terminal, and when the two screen folding connections are detected, it is detected whether the shooting application is turned on at the same time.
- the cameras respectively configured on the two screens by the folding operation are respectively set as the rear cameras of the first screen and the second screen, and when the camera is switched on one display, the other screen is also The switching camera is displayed, and the shooting picture of the camera after switching is displayed, thereby realizing the beneficial effect of the front and rear camera functions by folding the folding operation of the screen on the mobile terminal.
- the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
- modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
- the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
- any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
- Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
- Various component embodiments of the present disclosure may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
- a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of the photographing device in accordance with embodiments of the present disclosure.
- the present disclosure may also be implemented as a device or device program (eg, a computer program and a computer program product) for performing some or all of the methods described herein.
- Such a program implementing the present disclosure may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
- the disclosed apparatus and method may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the portion of the technical solution of the present disclosure that contributes in essence or to the prior art or the portion of the technical solution may be embodied in the form of a software product stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present disclosure.
- the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Mathematical Physics (AREA)
- Controls And Circuits For Display Device (AREA)
- Studio Devices (AREA)
- Telephone Function (AREA)
Abstract
本公开提供了一种拍照方法及移动终端。所述方法包括:检测到预设折叠操作,将所述可折叠屏幕划分为第一显示屏和第二显示屏,所述第一摄像头设于第一显示屏和第二摄像头设于所述第二显示屏;若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面。
Description
相关申请的交叉引用
本申请主张在2017年6月30日在中国提交的中国专利申请No.201710527237.9的优先权,其全部内容通过引用包含于此。
本公开涉及移动终端技术领域,尤其涉及一种拍照方法及移动终端。
随着电子技术的飞速发展,智能手机,平板电脑等便携移动设备极大的改变着人们的生活和工作方式,而这些移动设备上通常会配备一个或多个摄像头,以实现用户越来越高的拍摄需求。
目前,大部分的智能手机上都配置有前后摄像头,在拍摄和视频通话时可以随时转换,以便拍摄移动终端前后画面,甚至出现了前后都配置双摄像头的手机,这样的设置往往占据较多的配置空间。
发明内容
第一方面,本公开实施例提供了一种拍照方法,应用于移动终端,该方法包括:
检测到预设折叠操作,将所述可折叠屏幕划分为第一显示屏和第二显示屏,其中,所述第一摄像头设于第一显示屏和第二摄像头设于所述第二显示屏,且所述第一摄像头和第二摄像头在可折叠屏幕未折叠时位于双摄的预设距离之内;
若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面。
第二方面,本公开实施例还提供了一种移动终端,包括:
折叠检测模块,用于检测到预设折叠操作,将所述可折叠屏幕划分为第一显示屏和第二显示屏,其中,所述第一摄像头设于第一显示屏和第二摄像 头设于所述第二显示屏,且所述第一摄像头和第二摄像头在可折叠屏幕未折叠时位于双摄的预设距离之内;
取景画面显示模块,用于若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面。
第三方面,本公开实施例还提供了一种移动终端,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述拍照方法的步骤。
第四方面,本公开实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时,实现上述拍照方法的步骤。
这样,本公开实施例中,通过检测到预设折叠操作,将所述可折叠屏幕划分为第一显示屏和第二显示屏,其中,所述第一显示屏设置有第一摄像头和所述第二显示屏设置有第二摄像头;若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面。当可折叠屏幕未折叠时,第一摄像头和第二摄像头之间的距离在可实现双摄的预设距离之内;当折叠时,第一摄像头和第二摄像头分别用作前置摄像头和后置摄像头使用。
为了更清楚地说明本公开实施例的技术方案,下面将对本公开实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1示出了本公开的一些实施例中的一种拍照方法的流程图
图2示出了本公开的另一些实施例中的一种拍照方法的流程图;
图2A示出了本公开的一些实施例中的折叠屏折叠操作示意图;
图3示出了根据本公开的一些实施例中的一种移动终端的结构框图;
图4示出了根据本公开的另一些实施例中的一种移动终端的结构框图;
图5示出了根据本公开的另一些实施例中的一种移动终端的结构框图;
图6示出了根据本公开的另一些实施例中的一种移动终端的结构示意图。
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
本公开实施例提供一种拍照方法及移动终端,以解决现有技术中移动终端装置前后摄像头或者多摄像头满足用户的拍摄需求,而导致占用移动终端过多装置空间的问题。
本公开实施例应用于包括可折叠屏幕的移动终端,所述可折叠屏幕设有第一摄像头和第二摄像头。
参照图1,示出了本公开的一些实施例的一种拍照方法的流程图,具体可以包括如下步骤110和120。
步骤110,检测到预设折叠操作,将所述可折叠屏幕划分为第一显示屏和第二显示屏,其中,所述第一摄像头设于第一显示屏和第二摄像头设于所述第二显示屏,且所述第一摄像头和第二摄像头在可折叠屏幕未折叠时位于双摄的预设距离之内。
本公开实施例中,对于配置折叠屏幕的移动终端,当检测到可折叠屏幕的折叠操作时,在电子设备的可折叠屏幕处于弯折状态时,以折叠屏幕的折叠线为基准,将可折叠平屏幕划分为两个屏幕,分别为第一屏幕和第二屏幕,其中,第一摄像头位于第一屏幕和第二摄像头位于第二屏幕上,所以通常情况下折叠屏幕上的折叠线通常位于设置的两个摄像头之间。
在实际应用中,折叠屏幕上可以设置至少两个摄像头,折叠线位于这两个摄像头之间,如果设置的摄像头多于两个,则保证折叠线所处位置可以将摄像头分开设置在第一屏幕和第二屏幕上,并且两个摄像头在可折叠屏幕未折叠时位于双摄的预设距离之内,具体设置距离根据不同的移动终端设置参数而不同,对此本公开实施例不加以限制。
步骤120,若检测到所述拍摄应用启动,则所述第二显示屏显示所述第 一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面。
本公开实施例中,进一步的监测当前移动终端上的拍摄应用是否启动,其中,以安卓系统为例,应用的activity是否显示在界面是决定应用是打开还是关闭的核心因素。一个应用只有一个activity并且不支持横屏,这个activity的onstart和onstop方法就决定了这个应用是打开的还是关闭的,所以查看函数onstart()和onstop()的返回值即可明确得知一应用的启动状态。具体的,当使用上述描述的方法监测到拍摄应用时启动状态,那么根据在拍摄应用中的预设参数,在折叠状态下第一屏幕上配置的第一摄像头为第二屏幕的后置摄像头,而同样的,第二屏幕上配置的第二摄像头为第一屏幕的后置摄像头,并在第二显示屏显示第一摄像头的取景画面,在第一显示屏显示第二摄像头的取景画面。
在本公开实施例中,当可折叠屏幕未折叠时,第一摄像头和第二摄像头之间的距离在可实现双摄的预设距离之内,当折叠时,第一摄像头和第二摄像头分别用作前置摄像头和后置摄像头使用,实现了在移动终端上配置两个可实现双摄的前置摄像头,并通过折叠操作而实现前后置摄像头功能。
参照图2,示出了本公开的另一些实施例的一种拍照方法的流程图,具体可以包括如下步骤201至205。
步骤201,获取可折叠屏中折叠感应器在预设方向上的折叠感应数据,计算所述可折叠屏的折叠角度。
本公开实施例中,通常在折叠屏的折叠线处会配置有折叠感应器,可以感应折叠屏幕折叠的方向和角度,当感应器检测到折叠操作时,通过两个屏幕上分别装置的折叠感应元件获取的数据,进一步的判断折叠屏幕的折叠方向以及折叠角度。
步骤202,若所述折叠角度超过预设阈值,则将所述可折叠屏划分为第一显示屏和第二显示屏。
本公开实施例中,当通过感应元件获取第一显示屏和第二显示屏的相对折叠方向时,进一步的获取在第一显示屏和第二显示屏预置感应点的相对距离,然后根据上述相对距离以及感应点相对于折叠线的距离,进一步的可以计算出第一显示屏和第二显示屏是之间的折叠角度。例如,图2A描述的折 叠屏幕侧面示意图中,A为第一显示屏上的预置感应点,B为第二显示屏上的预置感应点,通过设置在两个显示屏上的感应元件可以测出A点与B点之间的相对距离AB,还可以计算出A点距离折叠线C点的距离AC,也可以得知B点距离折叠线C点的距离BC,当得知AB、AC、BC的值后可以通过三角形余弦定理计算出角C的值,那么第一显示屏和第二显示屏之间的折叠角度为180度与角C的值获得的差值。预设阈值可以设为120°至180°之间任一值。
实际应用中,若检测出距离AB的值为0,那么进一步的可以计算出角C的值为0,则第一显示屏和第二显示屏之间的折叠角度为180°,此时则可以确定第一显示屏与第二显示屏进行了折叠连接,它们之间的背面完全叠合。
当然在实际应用中,预设可折叠操作确定的预设角度并不一定是180°,可以是用户设置或相关技术人员设置的可折叠角度,本公开实施例对此不加以限制。
步骤203,若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面。
本公开实施例中,当检测到拍摄应用为启动状态时,此时在第一显示屏上的显示内容根据预设的显示为第二摄像头捕捉的画面,在第二显示屏上显示的是第一摄像头拍摄的画面。
在实际应用中,预设的第一显示屏和第二显示屏上的显示画面可以根据用户的需求进行改变,例如可以在摄像头每次启用时,都在第一显示屏上显示第二摄像头拍摄画面,在第二显示屏显示第一摄像头拍摄画面。当然,也可以显示上次拍摄应用关闭时的取景画面,具体根据用户需求设置,本公开实施例对此不加以限制。
步骤204,若检测到所述拍摄应用的关闭操作,则记录所述第一显示屏和所述第二显示屏的显示参数;所述显示参数包括:第一显示屏和第二显示屏与第一摄像头和第二摄像头的对应关系。
本公开实施例中,当检测到拍摄应用为关闭状态时,则记录折叠双屏中的取景画面对应的摄像头的参数。例如,在拍摄应用关闭时,第一显示屏中显示画面是由第二摄像头拍摄的,第一显示屏的显示画面是由第一摄像头拍 摄的,那么就记录该对应关系,以及各摄像头取景参数,聚焦、特效选择等,对于显示参数具体包含除显示屏与摄像头的对应关系以外,具体包括的取景参数可以根据用户需求进行设定,本公开实施例不加以限制。
步骤205,若检测到所述拍摄应用的再次开启操作,根据所述显示参数,在所述第一显示屏和所述第二显示屏中显示由对应摄像头拍摄的画面。
本公开实施例中,当检测到拍摄应用开启时,如果监测到第一显示屏和第二显示屏的摄像头的显示参数,那么就根据摄像头的显示参数中记录的显示屏与摄像头的对应关系,以及摄像头的取景参数,分别在第一显示屏和第二显示屏中显示对应摄像头的取景画面。
可选地,在本公开另一些实施例中,所述拍照方法还包括步骤203A-203C和206-210。
步骤203A,分别通过第一摄像头和第二摄像头采集人脸信息;
本公开实施例中,对于手机拍照时人脸识别主要应用:拍摄场景中人脸检测与定位,而基于几何特征的人脸检测方法中,首先确定人脸由眼睛、鼻子、嘴巴、下巴等部件构成,正因为这些部件的形状、大小和结构上的各种差异才使得世界上每个人脸千差万别,因此对这些部件的形状和结构关系的几何描述可以作为人脸识别的重要特征。大致的,首先根据轮廓曲线确定若干显著点,并由这些显著点导出一组用于识别的特征度量如距离、角度、等由正面灰度图中线附近的积分投影。当拍照过程中发现符合识别特征的轮廓曲线,就能快速定位和标记出来,以便快速识别拍摄画面中的人脸特征。
步骤203B,获取第一摄像头和第二摄像头中未采集到人脸信息的目标摄像头;
本公开实施例中,若通过人脸特征采集技术未能在第一摄像头或第二摄像头的拍摄画面中提取人脸特征信息,则确定该摄像头未采集到人脸信息,以下以第二摄像头未采集到人脸信息为例进一步说明。
步骤203C,关闭所述目标摄像头对应的显示屏。
本公开实施例中,将未采集到人脸特征信息的摄像头进行关闭,以节省移动终端的电量消耗。由于第二摄像头未采集到人脸信息,说明用户不在第二摄像头一侧,由于第二摄像头对应的是第二显示屏,故关闭第二显示屏, 仅保留第一显示进行显示并不会影响到用户的使用。
步骤206,若接收到在所述第一显示屏上的摄像头转换操作,且所述第一显示屏中的取景画面由所述第一摄像头拍摄,则在所述第一显示屏上显示所述第二摄像头拍摄的画面。
本公开实施例中,当检测到第一显示屏上显示的画面是第二摄像头拍摄的,而此时,如果第二显示屏中展示的画面也是有第二摄像头拍摄的,那么就立即转换,在第二显示屏上展示第一摄像头拍摄的画面。以安卓系统为例,在Camera中都存在摄像头切换指令,在判断屏幕上当前取景画面是由哪个摄像头拍摄的,可以调用CameraInfo类,利用其中的BACK_FACING_CAMERA和FRONT_FACING_CAMERA,可以判定第一显示屏和第二显示屏上分别展示的是第一摄像头或第二摄像头拍摄的画面,如果两个显示屏上展示相同摄像头拍摄画面,那么就按照预设用户习惯,将其中一个显示屏中展示的画面进行切换。
实际应用中,当用户在第一显示屏上进行了摄像头切换操作,那么根据设置,如果第一显示屏上展示的内容是由第一摄像头拍摄的,则将取景画面切换为第二摄像头拍摄的画面。当然,若此时第二显示屏上展示的是由第二摄像头拍摄的画面,则同时切换为由第一摄像头拍摄的画面。
步骤207,若接收到在所述第一显示屏上的摄像头转换操作,且所述第一显示屏中的取景画面由所述第二摄像头拍摄,则在所述第一显示屏上显示所述第一摄像头拍摄的画面。
本公开实施例中,当用户在第一显示屏上进行了摄像头切换操作,那么根据设置,如果第一显示屏上展示的内容是由第二摄像头拍摄的,则将取景画面切换为第一摄像头拍摄的画面。当然,若此时第二显示屏上展示的是由第一摄像头拍摄的画面,则同时切换为由第二摄像头拍摄的画面。
步骤208,若接收到在所述第二显示屏上的摄像头转换操作,且所述第二显示屏中的取景画面由所述第二摄像头拍摄,则在所述第二显示屏上显示所述第一摄像头拍摄的画面。
本公开实施例中,当用户在第二显示屏上进行了摄像头切换操作,那么根据设置,如果第二显示屏上展示的内容是由第二摄像头拍摄的,则将取景 画面切换为第一摄像头拍摄的画面。当然,若此时第一显示屏上展示的是由第一摄像头拍摄的画面,则同时切换为由第二摄像头拍摄的画面。
步骤209,若接收到在所述第二显示屏上的摄像头转换操作,且所述第二显示屏中的取景画面由所述第一摄像头拍摄,则在所述第二显示屏上显示所述第二摄像头拍摄的画面。
本公开实施例中,当用户在第二显示屏上进行了摄像头切换操作,那么根据设置,如果第一显示屏上展示的内容是由第一摄像头拍摄的,则将取景画面切换为第二摄像头拍摄的画面。当然,若此时第二显示屏上展示的是由第二摄像头拍摄的画面,则同时切换为由第一摄像头拍摄的画面。
在实际应用中,在接收到切换操作后,也可以允许两个显示屏上展示的是有一个摄像头拍摄的画面,并不将另一个显示屏展示的画面进行切换,本公开实施例对此不加以限制。
步骤210,检测在任一所述显示屏上的拍摄操作,同时获取所述第一显示屏和所述第二显示屏上的取景画面对应的图像,并分别存储至预设存储目录下。
本公开实施例中,如果用户在第一显示屏或第二显示屏上点击拍摄按钮,或者按压移动终端任一设置为快捷拍摄的物理按键,例如,在拍摄应用启动时,音量键可以设置为快捷拍摄的按键,所以,当检测到用户点击任一预设的拍摄按键后,同时拍摄第一显示屏和第二任显示屏上展示的画面,并分别存储在目录。当然,在实际应用中,也可以将两个显示屏上展示的画面合并为一张图片进行存储,用户可以在拍摄应用的设置中对其进行修改,本公开实施例对此不加以限制。
在本公开实施例中,通过在移动终端上可折叠屏幕的折叠操作,将对应屏幕分为第一屏幕和第二屏幕,在检测到两个屏幕折叠时,且拍摄应用开启时,分别配置在两个屏幕上的摄像头为第一摄像头和第二摄像头,并且在一个显示屏上切换摄像头时,另一个屏幕也进行切换摄像头,并展示切换后摄像头的拍摄画面,以此实现了在移动终端上通过折叠屏幕的折叠操作实现前后置摄像头功能。
参照图3,示出了本公开的一些实施例的一种移动终端的结构框图。
所述移动终端400包括:折叠检测模块401、取景画面显示模块402。
所述折叠检测模块401用于检测到预设折叠操作,将所述可折叠屏幕划分为第一显示屏和第二显示屏,其中,所述第一摄像头设于第一显示屏和第二摄像头设于所述第二显示屏,且所述第一摄像头和第二摄像头在可折叠屏幕未折叠时位于双摄的预设距离之内。
所述取景画面显示模块402用于若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面。
参照图4,下面分别详细介绍各模块的功能以及各模块之间的交互关系。
所述折叠检测模块401,具体包括:
折叠感应数据获取子模块,用于获取可折叠屏中折叠感应器在预设方向上的折叠感应数据,计算所述可折叠屏的折叠角度;
折叠屏划分子模块,用于若所述折叠角度超过预设阈值,则将所述可折叠屏划分为第一显示屏和第二显示屏。
取景画面显示模块402,用于若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面。
可选地,在本公开实施例中,还包括:
显示参数记录模块403,若检测到所述拍摄应用的关闭操作,则记录所述第一显示屏和所述第二显示屏的显示参数;所述显示参数包括:第一显示屏和第二显示屏与第一摄像头和第二摄像头的对应关系;
显示模块404,用于若检测到所述拍摄应用的再次开启操作,根据所述显示参数,在所述第一显示屏和所述第二显示屏中显示由对应摄像头拍摄的画面。
可选地,在本公开的另一实施例中,所述移动终端400还包括:
人脸信息采集模块,用于分别通过第一摄像头和第二摄像头采集人脸信息;
目标摄像头确定模块,用于获取第一摄像头和第二摄像头中未采集到人脸信息的目标摄像头;
显示屏关闭模块,用于关闭所述目标摄像头对应的显示屏。
可选地,在本公开的另一实施例中,所述移动终端400还包括:
第一显示屏转换模块,用于若接收到在所述第一显示屏上的摄像头转换操作,且所述第一显示屏中的取景画面由所述第一摄像头拍摄,则在所述第一显示屏上显示所述第二摄像头拍摄的画面;
第一显示屏画面转换模块,用于若接收到在所述第一显示屏上的摄像头转换操作,且所述第一显示屏中的取景画面由所述第二摄像头拍摄,则在所述第一显示屏上显示所述第一摄像头拍摄的画面;
或,第二显示屏画面转换模块,用于若接收到在所述第二显示屏上的摄像头转换操作,且所述第二显示屏中的取景画面由所述第二摄像头拍摄,则在所述第二显示屏上显示所述第一摄像头拍摄的画面;
第二显示屏转换模块,用于若接收到在所述第二显示屏上的摄像头转换操作,且所述第二显示屏中的取景画面由所述第一摄像头拍摄,则在所述第二显示屏上显示所述第二摄像头拍摄的画面。
可选地,在本公开的另一些实施例中,所述移动终端400还包括:
双屏拍摄模块,用于检测在任一所述显示屏上的拍摄操作,同时获取所述第一显示屏和所述第二显示屏上的取景画面对应的图像,并分别存储至预设存储目录下。
在本公开实施例中,通过在移动终端上可折叠屏幕的折叠操作,将对应屏幕分为第一屏幕和第二屏幕,在检测到两个屏幕折叠,且拍摄应用开启,在一个显示屏上切换摄像头时,另一个屏幕也进行切换摄像头,并展示切换后摄像头的拍摄画面,以此实现了在移动终端上通过折叠屏幕的折叠操作实现前后置摄像头功能的有益效果。
参照图5,示出了本公开的另一些实施例中一种移动终端的结构框图。
图5所示的移动终端500包括:至少一个处理器501、存储器502、至少一个网络接口504和用户接口503以及拍照组件506。移动终端500中的各个组件通过总线系统505耦合在一起。可理解,总线系统505用于实现这些组件之间的连接通信。总线系统505除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都 标为总线系统505。
其中,用户接口503可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。
可以理解,本公开实施例中的存储器502可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRS DRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本公开实施例描述的系统和方法的存储器502旨在包括但不限于这些和任意其它适合类型的存储器。
在一些可选的实施方式中,存储器502存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统5021和应用程序5022。
其中,操作系统5021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序5022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本公开实施例方法的程序可以包含在应用程序5022中。
在本公开实施例中,通过调用存储器502存储的程序或指令,具体的,可以是应用程序5022中存储的程序或指令,处理器501用于检测到预设折叠操作,将所述可折叠屏幕划分为第一显示屏和第二显示屏,其中,所述第一 摄像头设于第一显示屏和第二摄像头设于所述第二显示屏,且所述第一摄像头和第二摄像头在可折叠屏幕未折叠时位于双摄的预设距离之内;若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面。
上述本公开实施例揭示的方法可以应用于处理器501中,或者由处理器501实现。处理器501可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器501中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器501可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本公开实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本公开实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器502,处理器501读取存储器502中的信息,结合其硬件完成上述方法的步骤。
可以理解的是,本公开实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(Application Specific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable Logic Device,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。
对于软件实现,可通过执行本公开实施例所述功能的模块(例如过程、函数等)来实现本公开实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。
可选地,处理器501在检测到预设折叠操作,将所述可折叠屏幕划分为 第一显示屏和第二显示屏时,还用于:获取可折叠屏中折叠感应器在预设方向上的折叠感应数据,计算所述可折叠屏的折叠角度;若所述折叠角度超过预设阈值,则将所述可折叠屏划分为第一显示屏和第二显示屏。
可选地,处理器501在若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面之后,还用于:若检测到所述拍摄应用的关闭操作,则记录所述第一显示屏和所述第二显示屏的显示参数;所述显示参数包括:第一显示屏和第二显示屏与第一摄像头和第二摄像头的对应关系;若检测到所述拍摄应用的再次开启操作,根据所述显示参数,在所述第一显示屏和所述第二显示屏中显示由对应摄像头拍摄的画面。
可选地,处理器501在若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面之后,还用于:分别通过第一摄像头和第二摄像头采集人脸信息;获取第一摄像头和第二摄像头中未采集到人脸信息的目标摄像头;关闭所述目标摄像头对应的显示屏。
可选地,处理器501在若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面后,还用于:若接收到在所述第一显示屏上的摄像头转换操作,且所述第一显示屏中的取景画面由所述第一摄像头拍摄,则在所述第一显示屏上显示所述第二摄像头拍摄的画面;若接收到在所述第一显示屏上的摄像头转换操作,且所述第一显示屏中的取景画面由所述第二摄像头拍摄,则在所述第一显示屏上显示所述第一摄像头拍摄的画面;或,若接收到在所述第二显示屏上的摄像头转换操作,且所述第二显示屏中的取景画面由所述第二摄像头拍摄,则在所述第二显示屏上显示所述第一摄像头拍摄的画面;若接收到在所述第二显示屏上的摄像头转换操作,且所述第二显示屏中的取景画面由所述第一摄像头拍摄,则在所述第二显示屏上显示所述第二摄像头拍摄的画面。
可选地,处理器501在若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取 景画面后,还用于:检测在任一所述显示屏上的拍摄操作,同时获取所述第一显示屏和所述第二显示屏上的取景画面对应的图像,并分别存储至预设存储目录下。
可见,在本公开实施例中,通过在移动终端上可折叠屏幕的折叠操作,将对应屏幕分为第一屏幕和第二屏幕,在检测到两个屏幕折叠连接时,同时检测拍摄应用是否开启,当拍摄应用开启时,将因折叠操作而分别配置在两个屏幕上的摄像头分别设置为第一屏幕和第二屏幕的后置摄像头,并且在一个显示屏上切换摄像头时,另一个屏幕也进行切换摄像头,并展示切换后摄像头的拍摄画面,以此实现了在移动终端上通过折叠屏幕的折叠操作实现前后置摄像头功能的有益效果。
图6示出了本公开的另一些实施例的移动终端的结构示意图。
本公开实施例的移动终端可以为手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、或车载电脑等。
图6中的移动终端包括射频(Radio Frequency,RF)电路610、存储器620、输入单元630、显示单元640、处理器660、音频电路670、WiFi(Wireless Fidelity)模块680、电源690。
其中,输入单元630可用于接收用户输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的信号输入。具体地,本公开实施例中,该输入单元630可以包括触控面板631。触控面板631,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板631上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器660,并能接收处理器660发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板631。除了触控面板631,输入单元630还可以包括其他输入设备632,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
其中,显示单元640可用于显示由用户输入的信息或提供给用户的信息以及移动终端的各种菜单界面。显示单元640可包括显示面板641,可选的,可以采用LCD或有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板641。
应注意,触控面板631可以覆盖显示面板641,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器660以确定触摸事件的类型,随后处理器660根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。
触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。
其中处理器660是移动终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器621内的软件程序和/或模块,以及调用存储在第二存储器622内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。可选的,处理器660可包括一个或多个处理单元。
在本公开实施例中,通过调用存储该第一存储器621内的软件程序和/或模块和/或该第二存储器622内的数据,处理器660用于检测到预设折叠操作,将所述可折叠屏幕划分为第一显示屏和第二显示屏,其中,所述第一摄像头设于第一显示屏和第二摄像头设于所述第二显示屏,且所述第一摄像头和第二摄像头在可折叠屏幕未折叠时位于双摄的预设距离之内;若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面。
可选地,处理器660在检测到预设折叠操作,将所述可折叠屏幕划分为第一显示屏和第二显示屏时,还用于:获取可折叠屏中折叠感应器在预设方 向上的折叠感应数据,计算所述可折叠屏的折叠角度;若所述折叠角度超过预设阈值,则将所述可折叠屏划分为第一显示屏和第二显示屏。
可选地,处理器660在若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面之后,还用于:若检测到所述拍摄应用的关闭操作,则记录所述第一显示屏和所述第二显示屏的显示参数;所述显示参数包括:第一显示屏和第二显示屏与第一摄像头和第二摄像头的对应关系;若检测到所述拍摄应用的再次开启操作,根据所述显示参数,在所述第一显示屏和所述第二显示屏中显示由对应摄像头拍摄的画面。
可选地,处理器660在若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面之后,还用于:分别通过第一摄像头和第二摄像头采集人脸信息;获取第一摄像头和第二摄像头中未采集到人脸信息的目标摄像头;关闭所述目标摄像头对应的显示屏。
可选地,处理器660在若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面后,还用于:若接收到在所述第一显示屏上的摄像头转换操作,且所述第一显示屏中的取景画面由所述第一摄像头拍摄,则在所述第一显示屏上显示所述第二摄像头拍摄的画面;若接收到在所述第一显示屏上的摄像头转换操作,且所述第一显示屏中的取景画面由所述第二摄像头拍摄,则在所述第一显示屏上显示所述第一摄像头拍摄的画面;或,若接收到在所述第二显示屏上的摄像头转换操作,且所述第二显示屏中的取景画面由所述第二摄像头拍摄,则在所述第二显示屏上显示所述第一摄像头拍摄的画面;若接收到在所述第二显示屏上的摄像头转换操作,且所述第二显示屏中的取景画面由所述第一摄像头拍摄,则在所述第二显示屏上显示所述第二摄像头拍摄的画面。
可选地,处理器660在若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面后,还用于:检测在任一所述显示屏上的拍摄操作,同时获取所述第 一显示屏和所述第二显示屏上的取景画面对应的图像,并分别存储至预设存储目录下。
可见,在本公开实施例中,通过在移动终端上可折叠屏幕的折叠操作,将对应屏幕分为第一屏幕和第二屏幕,在检测到两个屏幕折叠连接时,同时检测拍摄应用是否开启,当拍摄应用开启时,将因折叠操作而分别配置在两个屏幕上的摄像头分别设置为第一屏幕和第二屏幕的后置摄像头,并且在一个显示屏上切换摄像头时,另一个屏幕也进行切换摄像头,并展示切换后摄像头的拍摄画面,以此实现了在移动终端上通过折叠屏幕的折叠操作实现前后置摄像头功能的有益效果。
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本公开也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本公开的内容,并且上面对特定语言所做的描述是为了披露本公开的最佳实施方式。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本公开的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本公开的示例性实施例的描述中,本公开的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本公开要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利 要求本身都作为本公开的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本公开的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本公开的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本公开实施例的拍摄设备中的一些或者全部部件的一些或者全部功能。本公开还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本公开的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
应该注意的是上述实施例对本公开进行说明而不是对本公开进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本公开可以 借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
本领域普通技术人员可以意识到,结合本公开实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以 以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以权利要求的保护范围为准。
Claims (14)
- 一种拍照方法,应用于包括可折叠屏幕的移动终端,所述可折叠屏幕设有第一摄像头和第二摄像头,包括:检测到预设折叠操作,将所述可折叠屏幕划分为第一显示屏和第二显示屏,其中,所述第一摄像头设于第一显示屏和第二摄像头设于所述第二显示屏,且所述第一摄像头和第二摄像头在可折叠屏幕未折叠时位于双摄的预设距离之内;若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面。
- 根据权利要求1所述的方法,其中,所述检测到预设折叠操作,将所述可折叠屏幕划分为第一显示屏和第二显示屏的步骤,包括:获取可折叠屏中折叠感应器在预设方向上的折叠感应数据,计算所述可折叠屏的折叠角度;若所述折叠角度超过预设阈值,则将所述可折叠屏划分为第一显示屏和第二显示屏。
- 根据权利要求1所述的方法,其中,在所述若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面的步骤之后,还包括:若检测到所述拍摄应用的关闭操作,则记录所述第一显示屏和所述第二显示屏的显示参数;所述显示参数包括:第一显示屏和第二显示屏与第一摄像头和第二摄像头的对应关系;若检测到所述拍摄应用的再次开启操作,根据所述显示参数,在所述第一显示屏和所述第二显示屏中显示由对应摄像头拍摄的画面。
- 根据权利要求1所述的方法,其中,在所述若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面的步骤之后,还包括:分别通过第一摄像头和第二摄像头采集人脸信息;获取第一摄像头和第二摄像头中未采集到人脸信息的目标摄像头;关闭所述目标摄像头对应的显示屏。
- 根据权利要求3或4所述的方法,其中,在所述若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面的步骤之后,还包括:若接收到在所述第一显示屏上的摄像头转换操作,且所述第一显示屏中的取景画面由所述第一摄像头拍摄,则在所述第一显示屏上显示所述第二摄像头拍摄的画面;若接收到在所述第一显示屏上的摄像头转换操作,且所述第一显示屏中的取景画面由所述第二摄像头拍摄,则在所述第一显示屏上显示所述第一摄像头拍摄的画面;或,若接收到在所述第二显示屏上的摄像头转换操作,且所述第二显示屏中的取景画面由所述第二摄像头拍摄,则在所述第二显示屏上显示所述第一摄像头拍摄的画面;若接收到在所述第二显示屏上的摄像头转换操作,且所述第二显示屏中的取景画面由所述第一摄像头拍摄,则在所述第二显示屏上显示所述第二摄像头拍摄的画面。
- 根据权利要求3或4所述的方法,其中,在所述若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的取景画面的步骤之后,还包括:检测在任一所述显示屏上的拍摄操作,同时获取所述第一显示屏和所述第二显示屏上的取景画面对应的图像,并分别存储至预设存储目录下。
- 一种移动终端,包括可折叠屏幕的移动终端,所述可折叠屏幕设有第一摄像头和第二摄像头,包括:折叠检测模块,用于检测到预设折叠操作,将所述可折叠屏幕划分为第一显示屏和第二显示屏,其中,所述第一摄像头设于第一显示屏和第二摄像头设于所述第二显示屏,且所述第一摄像头和第二摄像头在可折叠屏幕未折叠时位于双摄的预设距离之内;取景画面显示模块,用于若检测到所述拍摄应用启动,则所述第二显示屏显示所述第一摄像头的取景画面,所述第一显示屏显示所述第二摄像头的 取景画面。
- 根据权利要求7所述的移动终端,其中,所述折叠检测模块,包括:折叠感应数据获取子模块,用于获取可折叠屏中折叠感应器在预设方向上的折叠感应数据,计算所述可折叠屏的折叠角度;折叠屏划分子模块,用于若所述折叠角度超过预设阈值,则将所述可折叠屏划分为第一显示屏和第二显示屏。
- 根据权利要求7所述的移动终端,其中,还包括:显示参数记录模块,若检测到所述拍摄应用的关闭操作,则记录所述第一显示屏和所述第二显示屏的显示参数;所述显示参数包括:第一显示屏和第二显示屏与第一摄像头和第二摄像头的对应关系;显示模块,用于若检测到所述拍摄应用的再次开启操作,根据所述显示参数,在所述第一显示屏和所述第二显示屏中显示由对应摄像头拍摄的画面。
- 根据权利要求7所述的移动终端,还包括:人脸信息采集模块,用于分别通过第一摄像头和第二摄像头采集人脸信息;目标摄像头确定模块,用于获取第一摄像头和第二摄像头中未采集到人脸信息的目标摄像头;显示屏关闭模块,用于关闭所述目标摄像头对应的显示屏。
- 根据权利要求9或10所述的移动终端,还包括:第一显示屏转换模块,用于若接收到在所述第一显示屏上的摄像头转换操作,且所述第一显示屏中的取景画面由所述第一摄像头拍摄,则在所述第一显示屏上显示所述第二摄像头拍摄的画面;第一显示屏画面转换模块,用于若接收到在所述第一显示屏上的摄像头转换操作,且所述第一显示屏中的取景画面由所述第二摄像头拍摄,则在所述第一显示屏上显示所述第一摄像头拍摄的画面;或,第二显示屏画面转换模块,用于若接收到在所述第二显示屏上的摄像头转换操作,且所述第二显示屏中的取景画面由所述第二摄像头拍摄,则在所述第二显示屏上显示所述第一摄像头拍摄的画面;第二显示屏转换模块,用于若接收到在所述第二显示屏上的摄像头转换 操作,且所述第二显示屏中的取景画面由所述第一摄像头拍摄,则在所述第二显示屏上显示所述第二摄像头拍摄的画面。
- 根据权利要求9或10所述的移动终端,还包括:双屏拍摄模块,用于检测在任一所述显示屏上的拍摄操作,同时获取所述第一显示屏和所述第二显示屏上的取景画面对应的图像,并分别存储至预设存储目录下。
- 一种移动终端,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1至6中任一项所述的拍照方法的步骤。
- 一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时,实现如权利要求1至6中任一项所述的拍照方法的步骤。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710527237.9 | 2017-06-30 | ||
CN201710527237.9A CN107368150A (zh) | 2017-06-30 | 2017-06-30 | 一种拍照方法及移动终端 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019001152A1 true WO2019001152A1 (zh) | 2019-01-03 |
Family
ID=60306492
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/086698 WO2019001152A1 (zh) | 2017-06-30 | 2018-05-14 | 拍照方法及移动终端 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107368150A (zh) |
WO (1) | WO2019001152A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20230044497A1 (en) * | 2020-01-21 | 2023-02-09 | Huawei Technologies Co., Ltd. | Display method for foldable screen and related apparatus |
CN117425066A (zh) * | 2023-09-11 | 2024-01-19 | 荣耀终端有限公司 | 拍摄过程中切屏的方法和装置 |
Families Citing this family (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107368150A (zh) * | 2017-06-30 | 2017-11-21 | 维沃移动通信有限公司 | 一种拍照方法及移动终端 |
CN107493417A (zh) * | 2017-09-26 | 2017-12-19 | 歌尔科技有限公司 | 图像采集设备及方法 |
CN109831617A (zh) * | 2017-11-23 | 2019-05-31 | 姜鹏飞 | 一种移动设备及操作系统 |
CN108197554B (zh) * | 2017-12-28 | 2023-06-02 | 努比亚技术有限公司 | 一种摄像头启动方法、移动终端和计算机可读存储介质 |
CN108540596A (zh) * | 2018-03-08 | 2018-09-14 | 华勤通讯技术有限公司 | 一种终端设备 |
CN108234891B (zh) * | 2018-04-04 | 2019-11-05 | 维沃移动通信有限公司 | 一种拍照方法及移动终端 |
CN110347316A (zh) * | 2018-04-08 | 2019-10-18 | 中兴通讯股份有限公司 | 一种电子装置、该电子装置的屏幕显示方法、介质 |
CN109613958A (zh) * | 2018-11-26 | 2019-04-12 | 维沃移动通信有限公司 | 一种终端设备控制方法及终端设备 |
CN109639965A (zh) * | 2018-12-10 | 2019-04-16 | 维沃移动通信有限公司 | 摄像头的启动方法、终端及计算机可读存储介质 |
CN109451178B (zh) * | 2018-12-27 | 2021-03-12 | 维沃移动通信有限公司 | 视频播放方法及终端 |
CN109756630A (zh) * | 2019-01-25 | 2019-05-14 | 维沃移动通信有限公司 | 一种屏幕控制方法及终端设备 |
CN109905603B (zh) * | 2019-03-28 | 2022-10-18 | 南京维沃软件技术有限公司 | 一种拍摄处理方法及移动终端 |
CN110300224A (zh) * | 2019-06-27 | 2019-10-01 | 珠海格力电器股份有限公司 | 一种终端设备的控制方法及终端设备 |
CN110232869A (zh) * | 2019-07-16 | 2019-09-13 | 昆山工研院新型平板显示技术中心有限公司 | 一种柔性显示面板 |
CN110868545B (zh) * | 2019-11-26 | 2021-06-01 | 维沃移动通信有限公司 | 全景拍摄方法及装置 |
CN113806157B (zh) * | 2021-09-23 | 2024-05-10 | 维沃移动通信有限公司 | 设备的状态检测方法、装置、电子设备和可读存储介质 |
CN115022495B (zh) * | 2021-12-30 | 2023-04-07 | 荣耀终端有限公司 | 拍摄方法、可读介质和电子设备 |
CN114257670B (zh) * | 2022-02-28 | 2022-07-05 | 荣耀终端有限公司 | 一种具有折叠屏的电子设备的显示方法 |
CN114257671B (zh) * | 2022-02-28 | 2022-07-19 | 荣耀终端有限公司 | 一种图像显示方法及电子设备 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102291478A (zh) * | 2011-09-27 | 2011-12-21 | 吴艺豪 | 一种折叠型平板触屏手机 |
WO2014148698A1 (en) * | 2013-03-21 | 2014-09-25 | Lg Electronics Inc. | Display device and method for controlling the same |
CN105323336A (zh) * | 2014-08-04 | 2016-02-10 | 刘昌昊 | 一种折叠手机 |
CN106657481A (zh) * | 2017-02-22 | 2017-05-10 | 苏省玫 | 一种三折屏手机及其操控方法 |
CN107368150A (zh) * | 2017-06-30 | 2017-11-21 | 维沃移动通信有限公司 | 一种拍照方法及移动终端 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3734404A1 (en) * | 2011-02-10 | 2020-11-04 | Samsung Electronics Co., Ltd. | Portable device comprising a touch-screen display, and method for controlling same |
KR102070776B1 (ko) * | 2013-03-21 | 2020-01-29 | 엘지전자 주식회사 | 디스플레이 장치 및 그 제어 방법 |
KR20160033507A (ko) * | 2014-09-18 | 2016-03-28 | 엘지전자 주식회사 | 이동 단말기 및 그 제어 방법 |
CN104572004B (zh) * | 2015-02-02 | 2019-01-15 | 联想(北京)有限公司 | 一种信息处理方法及电子设备 |
CN106484351A (zh) * | 2016-09-30 | 2017-03-08 | 广东欧珀移动通信有限公司 | 一种显示控制方法及移动终端 |
CN106534695B (zh) * | 2016-11-28 | 2021-10-22 | 宇龙计算机通信科技(深圳)有限公司 | 拍摄方法、拍摄装置和终端 |
-
2017
- 2017-06-30 CN CN201710527237.9A patent/CN107368150A/zh active Pending
-
2018
- 2018-05-14 WO PCT/CN2018/086698 patent/WO2019001152A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102291478A (zh) * | 2011-09-27 | 2011-12-21 | 吴艺豪 | 一种折叠型平板触屏手机 |
WO2014148698A1 (en) * | 2013-03-21 | 2014-09-25 | Lg Electronics Inc. | Display device and method for controlling the same |
CN105323336A (zh) * | 2014-08-04 | 2016-02-10 | 刘昌昊 | 一种折叠手机 |
CN106657481A (zh) * | 2017-02-22 | 2017-05-10 | 苏省玫 | 一种三折屏手机及其操控方法 |
CN107368150A (zh) * | 2017-06-30 | 2017-11-21 | 维沃移动通信有限公司 | 一种拍照方法及移动终端 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20230044497A1 (en) * | 2020-01-21 | 2023-02-09 | Huawei Technologies Co., Ltd. | Display method for foldable screen and related apparatus |
CN117425066A (zh) * | 2023-09-11 | 2024-01-19 | 荣耀终端有限公司 | 拍摄过程中切屏的方法和装置 |
Also Published As
Publication number | Publication date |
---|---|
CN107368150A (zh) | 2017-11-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019001152A1 (zh) | 拍照方法及移动终端 | |
EP3661187B1 (en) | Photography method and mobile terminal | |
US11061480B2 (en) | Apparatus, method and recording medium for controlling user interface using input image | |
US10021319B2 (en) | Electronic device and method for controlling image display | |
US10136069B2 (en) | Apparatus and method for positioning image area using image sensor location | |
WO2018192390A1 (zh) | 一种移动终端的拍摄方法及移动终端 | |
CN106406710B (zh) | 一种录制屏幕的方法及移动终端 | |
US9185286B2 (en) | Combining effective images in electronic device having a plurality of cameras | |
KR102018887B1 (ko) | 신체 부위 검출을 이용한 이미지 프리뷰 | |
CN107357540B (zh) | 一种显示方向的调整方法及移动终端 | |
EP3001247B1 (en) | Method and terminal for acquiring panoramic image | |
CN106231178B (zh) | 一种自拍方法和移动终端 | |
WO2019033957A1 (zh) | 交互位置确定方法、系统、存储介质和智能终端 | |
CN106250021B (zh) | 一种拍照的控制方法及移动终端 | |
CN106791437B (zh) | 一种全景图像拍摄方法及移动终端 | |
CN107172347B (zh) | 一种拍照方法及终端 | |
US20190318169A1 (en) | Method for Generating Video Thumbnail on Electronic Device, and Electronic Device | |
JP2017533602A (ja) | 電子デバイスのカメラ間の切り替え | |
WO2019062431A1 (zh) | 拍摄方法及移动终端 | |
CN107360375B (zh) | 一种拍摄方法及移动终端 | |
WO2019091124A1 (zh) | 一种终端的用户界面显示方法和终端 | |
CN106713747A (zh) | 一种对焦方法及移动终端 | |
CN107580182B (zh) | 一种抓拍方法、移动终端及计算机可读存储介质 | |
CN111201768B (zh) | 一种拍摄对焦方法、装置 | |
CN107315529B (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: 18823665 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: 18823665 Country of ref document: EP Kind code of ref document: A1 |