WO2020259009A1 - Camera control method and terminal device - Google Patents

Camera control method and terminal device Download PDF

Info

Publication number
WO2020259009A1
WO2020259009A1 PCT/CN2020/084761 CN2020084761W WO2020259009A1 WO 2020259009 A1 WO2020259009 A1 WO 2020259009A1 CN 2020084761 W CN2020084761 W CN 2020084761W WO 2020259009 A1 WO2020259009 A1 WO 2020259009A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
application icon
input
terminal device
display
Prior art date
Application number
PCT/CN2020/084761
Other languages
French (fr)
Chinese (zh)
Inventor
王东生
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2020259009A1 publication Critical patent/WO2020259009A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera 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 communication technology, and in particular to a camera control method and terminal equipment.
  • the terminal device when the terminal device enters the photographing state, it detects whether the front camera was used for the last photograph. If it is detected that the front camera was used for the last photograph, the front camera is activated to enter the photographing state. But in fact, users may not need to use the front camera to take pictures, and thus need to switch cameras to take pictures.
  • the camera control method in the related technology requires the user to manually switch the camera, which is less intelligent.
  • the embodiments of the present disclosure provide a camera control method and terminal device to solve the problem that the camera control method in the related art requires the user to manually switch the camera.
  • embodiments of the present disclosure provide a camera control method, which is applied to a terminal device, the terminal device includes a first camera and a second camera, and the method includes:
  • the first camera When the second input for the first application icon is received, the first camera is activated; when the third input for the second application icon is received, the second camera is activated.
  • embodiments of the present disclosure provide a terminal device, including a first camera and a second camera, and the terminal device further includes:
  • the first receiving module is configured to receive a first input when the first camera is used
  • the first display module is configured to stop using the first camera in response to the first input, and display a first application icon and a second application icon;
  • the first activation module is configured to activate the first camera when the second input for the first application icon is received; when the third input for the second application icon is received, Start the second camera.
  • embodiments of the present disclosure provide a terminal device, including: a memory, a processor, and a program stored on the memory and capable of running on the processor.
  • the program is executed by the processor, The steps in the camera control method as described in the first aspect are implemented.
  • an embodiment of the present disclosure provides a computer-readable storage medium with a program stored on the computer-readable storage medium, and when the program is executed by a processor, the camera control method described in the first aspect is implemented step.
  • the first camera when the first camera is used, a first input is received; in response to the first input, the first camera is stopped to be used, and the first application icon and the second application icon are displayed; When the second input for the first application icon is received, the first camera is started; when the third input for the second application icon is received, the second camera is started. In this way, when entering the shooting mode, the user can select the corresponding application icon according to the required camera without switching the camera, which improves the intelligence of the terminal device.
  • FIG. 1 is one of the flowcharts of a camera control method provided by an embodiment of the present disclosure
  • FIG. 2 is the second flowchart of a camera control method provided by an embodiment of the present disclosure
  • FIG. 3 is the third flowchart of a camera control method provided by an embodiment of the present disclosure.
  • FIG. 4 is a comparison diagram of interface display of a terminal device provided by an embodiment of the present disclosure.
  • Figure 5 is one of the schematic structural diagrams of a terminal device provided by an embodiment of the present disclosure.
  • FIG. 6 is the second structural diagram of a terminal device provided by an embodiment of the present disclosure.
  • FIG. 7 is the third structural diagram of a terminal device provided by an embodiment of the present disclosure.
  • FIG. 8 is a fourth structural diagram of a terminal device provided by an embodiment of the present disclosure.
  • FIG. 9 is a schematic diagram of the hardware structure of a terminal device provided by an embodiment of the present disclosure.
  • FIG. 1 is one of the flowcharts of a camera control method provided by an embodiment of the present disclosure.
  • the method is applied to a terminal device.
  • the terminal device includes a first camera and a second camera, as shown in FIG. ,
  • the method includes the following steps:
  • Step 101 Receive a first input when the first camera is used.
  • the first camera may be an elevating camera
  • the camera used in the shooting mode of the terminal device may be detected to determine whether the used camera is the first camera.
  • the system of the terminal device can monitor the action of the terminal device exiting the shooting mode, and record the camera used by the terminal device in the shooting mode when the terminal device is monitored to exit the shooting mode.
  • the first input may be an operation to exit the use of the first camera, specifically, it may be an operation to exit the shooting mode.
  • the operation of the mobile phone to exit the shooting mode may be an operation to exit the shooting mode.
  • the operation of the key exits the shooting mode, or it can be the exit of the shooting mode after receiving the operation of the key to control returning to the homepage, or it can be the exit of the shooting mode after receiving the operation of the key that controls exiting all the background systems.
  • Step 102 In response to the first input, stop using the first camera, and display a first application icon and a second application icon.
  • stopping the use of the first camera may be to retract the camera in the raised state back to the terminal device.
  • the first application icon is used to start the first camera
  • the second application icon is used to start the second camera.
  • the first camera may be a front camera
  • the second camera may be a rear camera.
  • the user can distinguish the start of the first camera and the second camera according to the first application icon and the second application icon.
  • the first label can be set on the first application icon
  • the second label can be set on the second application icon.
  • the first label The first camera can be characterized, and the second tag can be characterized by the second camera.
  • the terminal device is a mobile phone
  • the first application icon and the second application icon can be displayed as the desktop icons of the mobile phone; or, on the mobile phone lock screen interface, the first application icon and the second application icon
  • the icon can be displayed as a quick launch icon of the camera; or, in the recent application quick display area of the mobile phone, the first application icon and the second application icon can be displayed as the shortcut icon of the camera, and the icons related to the camera launch can be displayed.
  • the first application icon and the second application icon can be displayed as the desktop icons of the mobile phone; or, on the mobile phone lock screen interface, the first application icon and the second application icon The icon can be displayed as a quick launch icon of the camera; or, in the recent application quick display area of the mobile phone, the first application icon and the second application icon can be displayed as the shortcut icon of the camera, and the icons related to the camera launch can be displayed.
  • the first application icon and the second application icon can be displayed as the desktop icons of the mobile phone; or, on the mobile phone lock screen interface, the first application icon and
  • Step 103 When a second input for the first application icon is received, start the first camera; when a third input for the second application icon is received, start the first Two cameras.
  • the second input is an input for the first application icon, which may be an operation of the user clicking the first application icon, or may be an operation of the user dragging the first application icon to a preset area, or may be an operation of the user The operation of keeping the finger on the first application icon for a preset length of time, etc.
  • the third input is an input for the second application icon, which may be an operation of the user clicking the second application icon, or may be an operation of the user dragging the second application icon to a preset area, or may be an operation of the user The operation of keeping the finger on the second application icon for a preset length of time, etc.
  • the first camera when the first camera is activated, the first camera enters the shooting state, and the image preview area displays the image captured by the first camera; when the second camera is activated, the second camera enters the shooting state, and the image The preview area displays the images taken by the second camera.
  • the front camera is designed as a liftable structure.
  • the camera of the liftable structure can ensure the screen ratio of the terminal device without affecting the use of the camera, but the camera of the liftable structure has a certain service life due to frequent lifting.
  • the first camera is a lift camera
  • a first input is received; in response to the first input, the first camera is stopped, and the first application icon and the second application icon are displayed.
  • Application icon in the case of receiving a second input for the first application icon, start the first camera; in the case of receiving a third input for the second application icon, start the first Two cameras.
  • the user when entering the shooting mode, the user can select the corresponding application icon according to the required camera, without switching the camera, and can also increase the service life of the lifting camera.
  • a first input is received; in response to the first input, the first camera is stopped to be used, and the first application icon and the second application icon are displayed;
  • the second input for the first application icon is received, the first camera is started;
  • the third input for the second application icon is received, the second camera is started.
  • FIG. 2 is the second flowchart of a camera control method provided by an embodiment of the present disclosure.
  • the method also includes: In the case of the second camera, a fourth input is received; in response to the fourth input, the second camera is stopped and a third application icon is displayed; when the fifth input for the third application icon is received In the case of starting the second camera.
  • it includes the following steps:
  • Step 201 In the case of using the first camera, receive a first input.
  • This step is the same as step 101 in the foregoing method embodiment.
  • reference may be made to the description in the foregoing embodiment. In order to avoid repetition, details are not described herein again.
  • Step 202 In response to the first input, stop using the first camera, and display a first application icon and a second application icon.
  • step 102 is the same as step 102 in the foregoing method embodiment.
  • step 102 is the same as step 102 in the foregoing method embodiment.
  • Step 203 When a second input for the first application icon is received, start the first camera; when a third input for the second application icon is received, start the first Two cameras.
  • step 103 is the same as step 103 in the foregoing method embodiment.
  • step 103 This step is the same as step 103 in the foregoing method embodiment.
  • Step 204 In the case of using the second camera, receive a fourth input.
  • the camera used in the shooting mode of the terminal device may be detected, and it is determined whether the used camera is the second camera.
  • the system of the terminal device can monitor the action of the terminal device exiting the shooting mode, and record the camera used by the terminal device in the shooting mode when the terminal device is monitored to exit the shooting mode.
  • the fourth input may be an operation to exit the use of the second camera, specifically, it may be an operation to exit the shooting mode.
  • the operation of the mobile phone to exit the shooting mode may be an operation to exit the shooting mode.
  • the operation of the key exits the shooting mode, or it can be the exit of the shooting mode after receiving the operation of the key to control returning to the homepage, or it can be the exit of the shooting mode after receiving the operation of the key that controls exiting all the background systems.
  • Step 205 In response to the fourth input, stop using the second camera and display a third application icon.
  • the third application icon is used to start the second camera.
  • the third application icon can be displayed as the desktop icon of the mobile phone after the mobile phone screen is unlocked; or, on the mobile phone lock screen interface, the third application icon
  • the application icon can be displayed as the camera's quick launch icon; or, in the recent application quick display area of the mobile phone, the third application icon can be displayed as the camera's shortcut icon, and the third application icon can be displayed when it comes to the camera launch icon.
  • Step 206 When a fifth input for the third application icon is received, start the second camera.
  • the fifth input for the third application icon may be an operation of the user clicking the third application icon, or may be an operation of the user dragging the third application icon to a preset area, or may be an operation of the user The finger stays on the third application icon for a preset length of operation, etc.
  • the method further includes:
  • the third application icon is used to start the second camera, and when an input for the third application icon is received, the second camera is started.
  • the first application icon and the second application icon are cancelled, and the third application icon is displayed, so that the user can directly select the third application when entering the shooting mode next time
  • the icon thus starts the second camera, avoiding that multiple application icons of the camera occupy the display desktop of the terminal device.
  • the method before the receiving the first input, the method further includes:
  • the sixth input is an input for the third application icon, which may be an operation of the user clicking the third application icon, or may be an operation of the user dragging the third application icon to a preset area, or may be The operation of the user's finger staying on the third application icon for a preset length of time, etc.
  • the seventh input is used to switch cameras, and may be an operation of the user clicking a control for camera switching.
  • the sixth input for the third application icon is received; in response to the sixth input, the second camera is started; in the case of receiving the seventh input to switch the camera, stop using the second Camera, start the first camera.
  • the first application icon and the second application icon are displayed, and the third application icon is realized as the first application icon and the second application icon, which is more interesting.
  • multiple optional implementation manners are added on the basis of the embodiment shown in FIG. 2, and the multiple optional implementation manners can also be applied to the embodiment shown in FIG. 1. And it improves the intelligence of the terminal equipment.
  • a first input is received; in response to the first input, the first camera is stopped to be used, and the first application icon and the second application icon are displayed;
  • the second input for the first application icon start the first camera; in the case of receiving the third input for the second application icon, start the second camera;
  • receive a fourth input in response to the fourth input, stop using the second camera, and display a third application icon; after receiving the fifth application icon for the third application
  • start the second camera In this way, according to the first application icon and the second application icon, the user can select the corresponding application icon according to the required camera without switching cameras, which improves the intelligence of the terminal device.
  • the third application icon can quickly start the first application icon. Two cameras.
  • the mobile phone when the terminal device is a mobile phone, the mobile phone includes a front camera and a rear camera, and the front camera is a lifting camera, as shown in FIG. 3, the camera
  • the control method specifically includes the following steps:
  • Step 301 Monitor the operation of exiting the camera, and determine the camera used by the camera.
  • the mobile phone system monitors the operation of exiting the camera, including the return key exit, the home key exit, and the switch background system process exit. Record whether the front camera and the rear camera are in use before exiting the camera.
  • Step 302 Determine whether the used camera is a front camera.
  • the use state of the front camera is judged before the camera function is exited, and it is judged whether the front camera is used.
  • the working state of the lifting motor drive that controls the front camera to lift can be used to judge whether the front camera is used.
  • Step 303 If the camera used is a front camera, display the front camera icon and the rear camera icon.
  • the display interface of the terminal device changes from displaying a single camera icon to displaying a front camera icon and a rear camera icon.
  • the front camera icon and the rear camera icon are the clones of the camera icon.
  • the rear camera icon When the user clicks on the rear camera icon, the rear camera is activated and enters the preview state, and the front camera icon and the rear camera icon are canceled, and the state of displaying a single camera icon is restored.
  • the single camera icon it will be launched by default Set the camera.
  • the rear camera icon can be placed at the position where a single camera icon is placed by default, and the front camera icon and the rear camera icon are placed side by side.
  • step 302 if it is determined that the camera used is a rear camera, the display of the front camera icon and the rear camera icon is cancelled, and the state of displaying a single camera icon is restored.
  • the ineffective expansion and contraction of the lifting motor that controls the lifting camera can be effectively prevented, the life of the lifting motor is prolonged, and the user can choose to start the front camera or according to the usage habits.
  • the rear camera improves the intelligence of the terminal device.
  • FIG. 5 is one of the schematic structural diagrams of a terminal device provided by an embodiment of the present disclosure.
  • the terminal device includes a first camera and a second camera.
  • the terminal device 400 includes:
  • the first receiving module 401 is configured to receive a first input when the first camera is used;
  • the first display module 402 is configured to stop using the first camera in response to the first input, and display a first application icon and a second application icon;
  • the first activation module 403 is configured to activate the first camera when the second input for the first application icon is received; when the third input for the second application icon is received To start the second camera.
  • the terminal device 400 further includes:
  • the second receiving module 404 is configured to receive a fourth input when the second camera is used
  • the second display module 405 is configured to stop using the second camera and display a third application icon in response to the fourth input;
  • the second activation module 406 is configured to activate the second camera when the fifth input for the third application icon is received.
  • the terminal device 400 further includes:
  • the third display module 407 is configured to cancel the display of the first application icon and the second application icon, and display the third application icon.
  • the terminal device 400 further includes:
  • the third receiving module 408 is configured to receive the sixth input for the third application icon
  • the third activation module 409 is configured to activate the second camera in response to the sixth input
  • the fourth activation module 410 is configured to stop using the second camera and activate the first camera when the seventh input of switching the camera is received.
  • the terminal device can implement each process implemented by the terminal device in the method embodiments of FIG. 1 and FIG. 2. To avoid repetition, details are not described herein again.
  • the first camera when the first camera is used, a first input is received; in response to the first input, the first camera is stopped to be used, and the first application icon and the second application icon are displayed; When the second input for the first application icon is received, the first camera is started; when the third input for the second application icon is received, the second camera is started. In this way, when entering the shooting mode, the user can select the corresponding application icon according to the required camera without switching the camera, which improves the intelligence of the terminal device.
  • FIG. 9 is a schematic diagram of the hardware structure of a terminal device for implementing various embodiments of the present disclosure.
  • the terminal device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and Power supply 511 and other components.
  • a radio frequency unit 501 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and Power supply 511 and other components.
  • the terminal device may include more or fewer components than shown in the figure, or a combination of certain components, or different components. Layout.
  • terminal devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminal devices, robots, wearable devices, and pedometers.
  • the terminal device includes a first camera and a second camera, wherein the processor 510 is configured to execute the following process:
  • the first camera When the second input for the first application icon is received, the first camera is started; when the third input for the second application icon is received, the second camera is started.
  • the terminal device of the embodiment of the present disclosure receives a first input when using the first camera; in response to the first input, stops using the first camera and displays the first application icon and the second application icon In the case of receiving the second input for the first application icon, start the first camera; in the case of receiving the third input for the second application icon, start the second camera . In this way, when entering the shooting mode, the user can select the corresponding application icon according to the required camera without switching the camera, which improves the intelligence of the terminal device.
  • processor 510 is further configured to execute:
  • the second camera is activated.
  • the processor 510 executes the activation of the second camera, the processor 510 is further configured to execute:
  • the processor 510 before the processor 510 executes the receiving of the first input, the processor 510 is further configured to execute:
  • the radio frequency unit 501 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 510; Uplink data is sent to the base station.
  • the radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 501 can also communicate with the network and other devices through a wireless communication system.
  • the terminal device provides users with wireless broadband Internet access through the network module 502, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 503 may convert the audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output it as sound. Moreover, the audio output unit 503 may also provide audio output related to a specific function performed by the terminal device 500 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 504 is used to receive audio or video signals.
  • the input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042.
  • the graphics processor 5041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in the video capture mode or the image capture mode. Data is processed.
  • the processed image frame may be displayed on the display unit 506.
  • the image frame processed by the graphics processor 5041 may be stored in the memory 509 (or other storage medium) or sent via the radio frequency unit 501 or the network module 502.
  • the microphone 5042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 501 for output in the case of a telephone call mode.
  • the terminal device 500 also includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 5061 and the display panel 5061 when the terminal device 500 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of the terminal device (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 505 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 506 is used to display information input by the user or information provided to the user.
  • the display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 507 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the terminal device.
  • the user input unit 507 includes a touch panel 5071 and other input devices 5072.
  • the touch panel 5071 also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 5071 or near the touch panel 5071. operating).
  • the touch panel 5071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the 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 it into contact coordinates, and then sends it To the processor 510, the command sent by the processor 510 is received and executed.
  • the touch panel 5071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 507 may also include other input devices 5072.
  • other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 5071 can be overlaid on the display panel 5061.
  • the touch panel 5071 detects a touch operation on or near it, it transmits it to the processor 510 to determine the type of touch event, and then the processor 510 determines the type of touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 5061.
  • the touch panel 5071 and the display panel 5061 are used as two independent components to realize the input and output functions of the terminal device, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated
  • the implementation of the input and output functions of the terminal device is not specifically limited here.
  • the interface unit 508 is an interface for connecting an external device with the terminal device 500.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 508 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the terminal device 500 or can be used to connect to the terminal device 500 and external Transfer data between devices.
  • the memory 509 can be used to store software programs and various data.
  • the memory 509 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones.
  • the memory 509 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 510 is the control center of the terminal device. It uses various interfaces and lines to connect the various parts of the entire terminal device, runs or executes the software programs and/or modules stored in the memory 509, and calls data stored in the memory 509 , Perform various functions of the terminal equipment and process data, so as to monitor the terminal equipment as a whole.
  • the processor 510 may include one or more processing units; optionally, the processor 510 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc.
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 510.
  • the terminal device 500 may also include a power source 511 (such as a battery) for supplying power to various components.
  • a power source 511 such as a battery
  • the power source 511 may be logically connected to the processor 510 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the terminal device 500 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present disclosure further provides a terminal device, including a processor, a memory, and a program stored in the memory and running on the processor.
  • a terminal device including a processor, a memory, and a program stored in the memory and running on the processor.
  • the program is executed by the processor, the above camera control method is implemented.
  • the embodiments of the present disclosure also provide a computer-readable storage medium on which a program is stored.
  • a program is stored.
  • the program is executed by a processor, each process in the embodiment of the camera control method is realized, and the same technical effect can be achieved. To avoid repetition, I won’t repeat it here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. ⁇
  • the technical solution of the present disclosure essentially or the part that contributes to the related technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk). ) Includes several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present disclosure.

Abstract

Provided in the present disclosure are a camera control method and a terminal device. The terminal device comprises a first camera and a second camera, and the method comprises: receiving a first input when the first camera is used; in response to the first input, stopping the use of the first camera, and displaying a first application icon and a second application icon; starting up the first camera when a second input on the first application icon is received; and starting up the second camera when a third input on the second application icon is received.

Description

摄像头控制方法及终端设备Camera control method and terminal equipment
相关申请的交叉引用Cross references to related applications
本申请主张在2019年6月25日在中国提交的中国专利申请号No.201910553995.7的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201910553995.7 filed in China on June 25, 2019, the entire content of which is incorporated herein by reference.
技术领域Technical field
本公开涉及通信技术领域,尤其涉及一种摄像头控制方法及终端设备。The present disclosure relates to the field of communication technology, and in particular to a camera control method and terminal equipment.
背景技术Background technique
相关技术中,终端设备在进入拍照状态时,会检测上一次拍照是否是使用前置摄像头,若检测到上一次拍照是使用前置摄像头,则启动前置摄像头,进入拍照状态。但实际上用户可能并非需要采用前置摄像头进行拍照,从而需要切换摄像头进行拍照。In related technologies, when the terminal device enters the photographing state, it detects whether the front camera was used for the last photograph. If it is detected that the front camera was used for the last photograph, the front camera is activated to enter the photographing state. But in fact, users may not need to use the front camera to take pictures, and thus need to switch cameras to take pictures.
可见,相关技术中的摄像头控制方法需要用户手动切换摄像头,智能程度较低。It can be seen that the camera control method in the related technology requires the user to manually switch the camera, which is less intelligent.
发明内容Summary of the invention
本公开实施例提供一种摄像头控制方法及终端设备,以解决相关技术中的摄像头控制方法需要用户手动切换摄像头的问题。The embodiments of the present disclosure provide a camera control method and terminal device to solve the problem that the camera control method in the related art requires the user to manually switch the camera.
为了解决上述技术问题,本公开是这样实现的:In order to solve the above technical problems, the present disclosure is implemented as follows:
第一方面,本公开实施例提供了一种摄像头控制方法,应用于终端设备,所述终端设备包括第一摄像头及第二摄像头,所述方法包括:In the first aspect, embodiments of the present disclosure provide a camera control method, which is applied to a terminal device, the terminal device includes a first camera and a second camera, and the method includes:
在使用所述第一摄像头的情况下,接收第一输入;In the case of using the first camera, receiving a first input;
响应于所述第一输入,停止使用所述第一摄像头,显示第一应用图标和第二应用图标;In response to the first input, stop using the first camera, and display a first application icon and a second application icon;
在接收到针对所述第一应用图标的第二输入的情况下,启动所述第一摄像头;在接收到针对所述第二应用图标的第三输入的情况下,启动所述第二 摄像头。When the second input for the first application icon is received, the first camera is activated; when the third input for the second application icon is received, the second camera is activated.
第二方面,本公开实施例提供了一种终端设备,包括第一摄像头及第二摄像头,所述终端设备还包括:In a second aspect, embodiments of the present disclosure provide a terminal device, including a first camera and a second camera, and the terminal device further includes:
第一接收模块,用于在使用所述第一摄像头的情况下,接收第一输入;The first receiving module is configured to receive a first input when the first camera is used;
第一显示模块,用于响应于所述第一输入,停止使用所述第一摄像头,显示第一应用图标和第二应用图标;The first display module is configured to stop using the first camera in response to the first input, and display a first application icon and a second application icon;
第一启动模块,用于在接收到针对所述第一应用图标的第二输入的情况下,启动所述第一摄像头;在接收到针对所述第二应用图标的第三输入的情况下,启动所述第二摄像头。The first activation module is configured to activate the first camera when the second input for the first application icon is received; when the third input for the second application icon is received, Start the second camera.
第三方面,本公开实施例提供了一种终端设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现如第一方面所述的摄像头控制方法中的步骤。In a third aspect, embodiments of the present disclosure provide a terminal device, including: a memory, a processor, and a program stored on the memory and capable of running on the processor. When the program is executed by the processor, The steps in the camera control method as described in the first aspect are implemented.
第四方面,本公开实施例提供一种计算机可读存储介质,所述计算机可读存储介质上存储有程序,所述程序被处理器执行时实现如第一方面所述的摄像头控制方法中的步骤。In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium with a program stored on the computer-readable storage medium, and when the program is executed by a processor, the camera control method described in the first aspect is implemented step.
本公开实施例中,在使用所述第一摄像头的情况下,接收第一输入;响应于所述第一输入,停止使用所述第一摄像头,显示第一应用图标和第二应用图标;在接收到针对所述第一应用图标的第二输入的情况下,启动所述第一摄像头;在接收到针对所述第二应用图标的第三输入的情况下,启动所述第二摄像头。这样,在进入拍摄模式时,用户可以根据需求的摄像头选择对应的应用图标,不需要切换摄像头,提升了终端设备的智能程度。In the embodiment of the present disclosure, when the first camera is used, a first input is received; in response to the first input, the first camera is stopped to be used, and the first application icon and the second application icon are displayed; When the second input for the first application icon is received, the first camera is started; when the third input for the second application icon is received, the second camera is started. In this way, when entering the shooting mode, the user can select the corresponding application icon according to the required camera without switching the camera, which improves the intelligence of the terminal device.
附图说明Description of the drawings
为了更清楚地说明本公开实施例的技术方案,下面将对本公开实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present disclosure more clearly, the following will briefly introduce the accompanying drawings used in the description of the embodiments of the present disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.
图1是本公开实施例提供的一种摄像头控制方法的流程图之一;FIG. 1 is one of the flowcharts of a camera control method provided by an embodiment of the present disclosure;
图2是本公开实施例提供的一种摄像头控制方法的流程图之二;FIG. 2 is the second flowchart of a camera control method provided by an embodiment of the present disclosure;
图3是本公开实施例提供的一种摄像头控制方法的流程图之三;FIG. 3 is the third flowchart of a camera control method provided by an embodiment of the present disclosure;
图4是本公开实施例提供的一种终端设备的界面显示对比图;4 is a comparison diagram of interface display of a terminal device provided by an embodiment of the present disclosure;
图5是本公开实施例提供的一种终端设备的结构示意图之一;Figure 5 is one of the schematic structural diagrams of a terminal device provided by an embodiment of the present disclosure;
图6是本公开实施例提供的一种终端设备的结构示意图之二;FIG. 6 is the second structural diagram of a terminal device provided by an embodiment of the present disclosure;
图7是本公开实施例提供的一种终端设备的结构示意图之三;FIG. 7 is the third structural diagram of a terminal device provided by an embodiment of the present disclosure;
图8是本公开实施例提供的一种终端设备的结构示意图之四;FIG. 8 is a fourth structural diagram of a terminal device provided by an embodiment of the present disclosure;
图9是本公开实施例提供的一种终端设备的硬件结构示意图。FIG. 9 is a schematic diagram of the hardware structure of a terminal device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present disclosure.
参见图1,图1是本公开实施例提供的一种摄像头控制方法的流程图之一,所述方法应用于终端设备,所述终端设备包括第一摄像头及第二摄像头,如图1所示,所述方法包括以下步骤:Referring to FIG. 1, FIG. 1 is one of the flowcharts of a camera control method provided by an embodiment of the present disclosure. The method is applied to a terminal device. The terminal device includes a first camera and a second camera, as shown in FIG. , The method includes the following steps:
步骤101、在使用所述第一摄像头的情况下,接收第一输入。Step 101: Receive a first input when the first camera is used.
其中,所述第一摄像头可以为升降式摄像头,在所述接收所述第一输入之前,可以检测所述终端设备在拍摄模式中使用的摄像头,判断使用的摄像头是否为第一摄像头。终端设备的系统可以监控所述终端设备退出拍摄模式的动作,在监控到所述终端设备退出拍摄模式时记录所述终端设备在拍摄模式中使用的摄像头。所述第一输入可以为退出使用所述第一摄像头的操作,具体地,可以为退出拍摄模式的操作,在终端设备为手机的情况下,手机退出拍摄模式的操作,可以是接收到针对返回键的操作退出拍摄模式,或者可以是接收到针对控制返回主页的按键的操作退出拍摄模式,或者可以是接收到针对控制退出所有后台系统的按键的操作退出拍摄模式。Wherein, the first camera may be an elevating camera, and before the receiving the first input, the camera used in the shooting mode of the terminal device may be detected to determine whether the used camera is the first camera. The system of the terminal device can monitor the action of the terminal device exiting the shooting mode, and record the camera used by the terminal device in the shooting mode when the terminal device is monitored to exit the shooting mode. The first input may be an operation to exit the use of the first camera, specifically, it may be an operation to exit the shooting mode. In the case that the terminal device is a mobile phone, the operation of the mobile phone to exit the shooting mode may be an operation to exit the shooting mode. The operation of the key exits the shooting mode, or it can be the exit of the shooting mode after receiving the operation of the key to control returning to the homepage, or it can be the exit of the shooting mode after receiving the operation of the key that controls exiting all the background systems.
步骤102、响应于所述第一输入,停止使用所述第一摄像头,显示第一应用图标和第二应用图标。Step 102: In response to the first input, stop using the first camera, and display a first application icon and a second application icon.
其中,停止使用所述第一摄像头,可以是将处于升出状态的摄像头收缩 回所述终端设备。第一应用图标用于启动第一摄像头,第二应用图标用于启动第二摄像头。第一摄像头可以为前置摄像头,第二摄像头可以为后置摄像头。用户可以根据第一应用图标及第二应用图标区分启动第一摄像头及第二摄像头,可以在第一应用图标上设置第一标签,在第二应用图标上设置第二标签,所述第一标签可以表征所述第一摄像头,所述第二标签可以表征所述第二摄像头。Wherein, stopping the use of the first camera may be to retract the camera in the raised state back to the terminal device. The first application icon is used to start the first camera, and the second application icon is used to start the second camera. The first camera may be a front camera, and the second camera may be a rear camera. The user can distinguish the start of the first camera and the second camera according to the first application icon and the second application icon. The first label can be set on the first application icon, and the second label can be set on the second application icon. The first label The first camera can be characterized, and the second tag can be characterized by the second camera.
另外,在终端设备为手机的情况下,在手机屏幕解锁后,第一应用图标及第二应用图标可以作为手机的桌面图标显示;或者,在手机锁屏界面,第一应用图标及第二应用图标可以作为相机的快捷启动图标显示;或者,在手机的近期应用快捷显示区域,第一应用图标及第二应用图标可以作为相机的快捷图标显示,涉及到相机启动的图标,均可以显示所述第一应用图标及第二应用图标。In addition, when the terminal device is a mobile phone, after the mobile phone screen is unlocked, the first application icon and the second application icon can be displayed as the desktop icons of the mobile phone; or, on the mobile phone lock screen interface, the first application icon and the second application icon The icon can be displayed as a quick launch icon of the camera; or, in the recent application quick display area of the mobile phone, the first application icon and the second application icon can be displayed as the shortcut icon of the camera, and the icons related to the camera launch can be displayed. The first application icon and the second application icon.
步骤103、在接收到针对所述第一应用图标的第二输入的情况下,启动所述第一摄像头;在接收到针对所述第二应用图标的第三输入的情况下,启动所述第二摄像头。Step 103: When a second input for the first application icon is received, start the first camera; when a third input for the second application icon is received, start the first Two cameras.
其中,当用户需要启动相机时,可以针对第一应用图标输入,或者可以针对第二应用图标输入。所述第二输入为针对所述第一应用图标的输入,可以是用户点击第一应用图标的操作,或者可以是用户将第一应用图标拖动至预设区域的操作,或者可以是用户的手指在第一应用图标上停留预设时长的操作等等。所述第三输入为针对所述第二应用图标的输入,可以是用户点击第二应用图标的操作,或者可以是用户将第二应用图标拖动至预设区域的操作,或者可以是用户的手指在第二应用图标上停留预设时长的操作等等。Wherein, when the user needs to start the camera, he can input for the first application icon, or can input for the second application icon. The second input is an input for the first application icon, which may be an operation of the user clicking the first application icon, or may be an operation of the user dragging the first application icon to a preset area, or may be an operation of the user The operation of keeping the finger on the first application icon for a preset length of time, etc. The third input is an input for the second application icon, which may be an operation of the user clicking the second application icon, or may be an operation of the user dragging the second application icon to a preset area, or may be an operation of the user The operation of keeping the finger on the second application icon for a preset length of time, etc.
另外,在启动所述第一摄像头的情况下,第一摄像头进入拍摄状态,图像预览区域显示第一摄像头拍摄的图像;在启动所述第二摄像头的情况下,第二摄像头进入拍摄状态,图像预览区域显示第二摄像头拍摄的图像。In addition, when the first camera is activated, the first camera enters the shooting state, and the image preview area displays the image captured by the first camera; when the second camera is activated, the second camera enters the shooting state, and the image The preview area displays the images taken by the second camera.
在全面屏终端设备的设计中,为了避免前置摄像头影响终端设备的屏占比,将前置摄像头设计为可升降式结构。可升降式结构的摄像头能够在保证终端设备屏占比的同时不影响摄像头的使用,但可升降式结构的摄像头由于频繁升降存在一定的使用寿命。在第一摄像头为升降式摄像头的情况下,在 使用所述第一摄像头时,接收第一输入;响应于所述第一输入,停止使用所述第一摄像头,显示第一应用图标和第二应用图标;在接收到针对所述第一应用图标的第二输入的情况下,启动所述第一摄像头;在接收到针对所述第二应用图标的第三输入的情况下,启动所述第二摄像头。这样,在进入拍摄模式时,用户可以根据需求的摄像头选择对应的应用图标,不需要切换摄像头,还能够提高升降式摄像头的使用寿命。本公开实施例中,在使用所述第一摄像头的情况下,接收第一输入;响应于所述第一输入,停止使用所述第一摄像头,显示第一应用图标和第二应用图标;在接收到针对所述第一应用图标的第二输入的情况下,启动所述第一摄像头;在接收到针对所述第二应用图标的第三输入的情况下,启动所述第二摄像头。这样,在进入拍摄模式时,用户可以根据需求的摄像头选择对应的应用图标,不需要切换摄像头,提升了终端设备的智能程度。In the design of a full-screen terminal device, in order to prevent the front camera from affecting the screen ratio of the terminal device, the front camera is designed as a liftable structure. The camera of the liftable structure can ensure the screen ratio of the terminal device without affecting the use of the camera, but the camera of the liftable structure has a certain service life due to frequent lifting. When the first camera is a lift camera, when the first camera is used, a first input is received; in response to the first input, the first camera is stopped, and the first application icon and the second application icon are displayed. Application icon; in the case of receiving a second input for the first application icon, start the first camera; in the case of receiving a third input for the second application icon, start the first Two cameras. In this way, when entering the shooting mode, the user can select the corresponding application icon according to the required camera, without switching the camera, and can also increase the service life of the lifting camera. In the embodiment of the present disclosure, when the first camera is used, a first input is received; in response to the first input, the first camera is stopped to be used, and the first application icon and the second application icon are displayed; When the second input for the first application icon is received, the first camera is started; when the third input for the second application icon is received, the second camera is started. In this way, when entering the shooting mode, the user can select the corresponding application icon according to the required camera without switching the camera, which improves the intelligence of the terminal device.
请参见图2,图2是本公开实施例提供的一种摄像头控制方法的流程图之二,本实施例相对于图1所示的实施例的主要区别在于,所述方法还包括:在使用所述第二摄像头的情况下,接收第四输入;响应于所述第四输入,停止使用所述第二摄像头,显示第三应用图标;在接收到针对所述第三应用图标的第五输入的情况下,启动所述第二摄像头。如图2所示,包括以下步骤:Please refer to FIG. 2. FIG. 2 is the second flowchart of a camera control method provided by an embodiment of the present disclosure. The main difference between this embodiment and the embodiment shown in FIG. 1 is that the method also includes: In the case of the second camera, a fourth input is received; in response to the fourth input, the second camera is stopped and a third application icon is displayed; when the fifth input for the third application icon is received In the case of starting the second camera. As shown in Figure 2, it includes the following steps:
步骤201、在使用所述第一摄像头的情况下,接收第一输入。Step 201: In the case of using the first camera, receive a first input.
该步骤与上述方法实施例中的步骤101相同,具体可参考上述实施例中的描述,为避免重复,在此不再赘述。This step is the same as step 101 in the foregoing method embodiment. For details, reference may be made to the description in the foregoing embodiment. In order to avoid repetition, details are not described herein again.
步骤202、响应于所述第一输入,停止使用所述第一摄像头,显示第一应用图标和第二应用图标。Step 202: In response to the first input, stop using the first camera, and display a first application icon and a second application icon.
该步骤与上述方法实施例中的步骤102相同,具体可参考上述实施例中的描述,为避免重复,在此不再赘述。This step is the same as step 102 in the foregoing method embodiment. For details, reference may be made to the description in the foregoing embodiment. To avoid repetition, details are not described herein again.
步骤203、在接收到针对所述第一应用图标的第二输入的情况下,启动所述第一摄像头;在接收到针对所述第二应用图标的第三输入的情况下,启动所述第二摄像头。Step 203: When a second input for the first application icon is received, start the first camera; when a third input for the second application icon is received, start the first Two cameras.
该步骤与上述方法实施例中的步骤103相同,具体可参考上述实施例中的描述,为避免重复,在此不再赘述。This step is the same as step 103 in the foregoing method embodiment. For details, reference may be made to the description in the foregoing embodiment. To avoid repetition, details are not described herein again.
步骤204、在使用所述第二摄像头的情况下,接收第四输入。Step 204: In the case of using the second camera, receive a fourth input.
其中,在所述接收第四输入之前,可以检测所述终端设备在拍摄模式中使用的摄像头,判断使用的摄像头是否为第二摄像头。终端设备的系统可以监控所述终端设备退出拍摄模式的动作,在监控到所述终端设备退出拍摄模式时记录所述终端设备在拍摄模式中使用的摄像头。所述第四输入可以为退出使用所述第二摄像头的操作,具体地,可以为退出拍摄模式的操作,在终端设备为手机的情况下,手机退出拍摄模式的操作,可以是接收到针对返回键的操作退出拍摄模式,或者可以是接收到针对控制返回主页的按键的操作退出拍摄模式,或者可以是接收到针对控制退出所有后台系统的按键的操作退出拍摄模式。Wherein, before the receiving the fourth input, the camera used in the shooting mode of the terminal device may be detected, and it is determined whether the used camera is the second camera. The system of the terminal device can monitor the action of the terminal device exiting the shooting mode, and record the camera used by the terminal device in the shooting mode when the terminal device is monitored to exit the shooting mode. The fourth input may be an operation to exit the use of the second camera, specifically, it may be an operation to exit the shooting mode. In the case that the terminal device is a mobile phone, the operation of the mobile phone to exit the shooting mode may be an operation to exit the shooting mode. The operation of the key exits the shooting mode, or it can be the exit of the shooting mode after receiving the operation of the key to control returning to the homepage, or it can be the exit of the shooting mode after receiving the operation of the key that controls exiting all the background systems.
步骤205、响应于所述第四输入,停止使用所述第二摄像头,显示第三应用图标。Step 205: In response to the fourth input, stop using the second camera and display a third application icon.
其中,第三应用图标用于启动第二摄像头,在终端设备为手机的情况下,在手机屏幕解锁后,第三应用图标可以作为手机的桌面图标显示;或者,在手机锁屏界面,第三应用图标可以作为相机的快捷启动图标显示;或者,在手机的近期应用快捷显示区域,第三应用图标可以作为相机的快捷图标显示,涉及到相机启动的图标,均可以显示第三应用图标。Among them, the third application icon is used to start the second camera. When the terminal device is a mobile phone, the third application icon can be displayed as the desktop icon of the mobile phone after the mobile phone screen is unlocked; or, on the mobile phone lock screen interface, the third application icon The application icon can be displayed as the camera's quick launch icon; or, in the recent application quick display area of the mobile phone, the third application icon can be displayed as the camera's shortcut icon, and the third application icon can be displayed when it comes to the camera launch icon.
步骤206、在接收到针对所述第三应用图标的第五输入的情况下,启动所述第二摄像头。Step 206: When a fifth input for the third application icon is received, start the second camera.
其中,所述针对所述第三应用图标的第五输入,可以是,用户点击第三应用图标的操作,或者可以是用户将第三应用图标拖动至预设区域的操作,或者可以是用户的手指在第三应用图标上停留预设时长的操作等等。Wherein, the fifth input for the third application icon may be an operation of the user clicking the third application icon, or may be an operation of the user dragging the third application icon to a preset area, or may be an operation of the user The finger stays on the third application icon for a preset length of operation, etc.
作为一种可选的实施方式,所述启动所述第二摄像头之后,所述方法还包括:As an optional implementation manner, after the start of the second camera, the method further includes:
取消显示所述第一应用图标和第二应用图标,并显示第三应用图标。Cancel the display of the first application icon and the second application icon, and display the third application icon.
其中,第三应用图标用于启动第二摄像头,在接收到针对所述第三应用图标的输入的情况下,启动所述第二摄像头。Wherein, the third application icon is used to start the second camera, and when an input for the third application icon is received, the second camera is started.
该实施方式中,启动所述第二摄像头之后,取消显示所述第一应用图标及第二应用图标,并显示第三应用图标,这样,在下一次进入拍摄模式时, 用户可以直接选择第三应用图标从而启动第二摄像头,避免相机的多个应用图标占用终端设备的显示桌面。In this embodiment, after starting the second camera, the first application icon and the second application icon are cancelled, and the third application icon is displayed, so that the user can directly select the third application when entering the shooting mode next time The icon thus starts the second camera, avoiding that multiple application icons of the camera occupy the display desktop of the terminal device.
作为一种可选的实施方式,所述接收第一输入之前,所述方法还包括:As an optional implementation manner, before the receiving the first input, the method further includes:
接收针对第三应用图标的第六输入;Receiving a sixth input for the third application icon;
响应于所述第六输入,启动所述第二摄像头;In response to the sixth input, start the second camera;
在接收到切换摄像头的第七输入的情况下,停止使用所述第二摄像头,启动所述第一摄像头。In the case of receiving the seventh input of switching the camera, stop using the second camera, and start the first camera.
其中,所述第六输入为针对所述第三应用图标的输入,可以是用户点击第三应用图标的操作,或者可以是用户将第三应用图标拖动至预设区域的操作,或者可以是用户的手指在第三应用图标上停留预设时长的操作等等。所述第七输入用于切换摄像头,可以是用户点击用于摄像头切换的控件的操作。Wherein, the sixth input is an input for the third application icon, which may be an operation of the user clicking the third application icon, or may be an operation of the user dragging the third application icon to a preset area, or may be The operation of the user's finger staying on the third application icon for a preset length of time, etc. The seventh input is used to switch cameras, and may be an operation of the user clicking a control for camera switching.
该实施方式中,接收针对第三应用图标的第六输入;响应于所述第六输入,启动所述第二摄像头;在接收到切换摄像头的第七输入的情况下,停止使用所述第二摄像头,启动所述第一摄像头。这样,在停止使用所述第一摄像头后,显示第一应用图标和第二应用图标,实现第三应用图标分身为第一应用图标和第二应用图标,趣味性较强。In this embodiment, the sixth input for the third application icon is received; in response to the sixth input, the second camera is started; in the case of receiving the seventh input to switch the camera, stop using the second Camera, start the first camera. In this way, after stopping the use of the first camera, the first application icon and the second application icon are displayed, and the third application icon is realized as the first application icon and the second application icon, which is more interesting.
在本实施例中,在图2所示的实施例的基础上增加了多种可选的实施方式,该多种可选的实施方式同样可以应用在图1所示的实施例中。且提升了终端设备的智能程度。In this embodiment, multiple optional implementation manners are added on the basis of the embodiment shown in FIG. 2, and the multiple optional implementation manners can also be applied to the embodiment shown in FIG. 1. And it improves the intelligence of the terminal equipment.
本公开实施例中,在使用所述第一摄像头的情况下,接收第一输入;响应于所述第一输入,停止使用所述第一摄像头,显示第一应用图标和第二应用图标;在接收到针对所述第一应用图标的第二输入的情况下,启动所述第一摄像头;在接收到针对所述第二应用图标的第三输入的情况下,启动所述第二摄像头;在使用所述第二摄像头的情况下,接收第四输入;响应于所述第四输入,停止使用所述第二摄像头,显示第三应用图标;在接收到针对所述第三应用图标的第五输入的情况下,启动所述第二摄像头。这样,根据第一应用图标和第二应用图标用户可以根据需求的摄像头选择对应的应用图标,不需要切换摄像头,提升了终端设备的智能程度,同时,根据第三应用图标可以实现快捷地启动第二摄像头。In the embodiment of the present disclosure, when the first camera is used, a first input is received; in response to the first input, the first camera is stopped to be used, and the first application icon and the second application icon are displayed; In the case of receiving the second input for the first application icon, start the first camera; in the case of receiving the third input for the second application icon, start the second camera; In the case of using the second camera, receive a fourth input; in response to the fourth input, stop using the second camera, and display a third application icon; after receiving the fifth application icon for the third application In case of input, start the second camera. In this way, according to the first application icon and the second application icon, the user can select the corresponding application icon according to the required camera without switching cameras, which improves the intelligence of the terminal device. At the same time, the third application icon can quickly start the first application icon. Two cameras.
作为一种具体的实施方式,在所述终端设备为手机,所述手机包括前置摄像头及后置摄像头,所述前置摄像头为升降式摄像头的情况下,如图3所示,所述摄像头控制方法具体包括如下步骤:As a specific implementation manner, when the terminal device is a mobile phone, the mobile phone includes a front camera and a rear camera, and the front camera is a lifting camera, as shown in FIG. 3, the camera The control method specifically includes the following steps:
步骤301、监控退出相机的操作,确定相机所使用的摄像头。Step 301: Monitor the operation of exiting the camera, and determine the camera used by the camera.
其中,用户在使用手机的相机功能时,手机系统监控退出相机的操作,包括返回键退出,home键退出,切换后台系统进程退出等。记录退出相机前,前置摄像头及后置摄像头是否处于使用状态。Among them, when the user uses the camera function of the mobile phone, the mobile phone system monitors the operation of exiting the camera, including the return key exit, the home key exit, and the switch background system process exit. Record whether the front camera and the rear camera are in use before exiting the camera.
步骤302、判断使用的摄像头是否为前置摄像头。Step 302: Determine whether the used camera is a front camera.
其中,对退出相机功能前前置摄像头的使用状态进行判断,判断是否是使用前置摄像头,可以通过控制前置摄像头进行升降的升降马达驱动的工作状态判断是否是使用前置摄像头。Among them, the use state of the front camera is judged before the camera function is exited, and it is judged whether the front camera is used. The working state of the lifting motor drive that controls the front camera to lift can be used to judge whether the front camera is used.
步骤303、若使用的摄像头为前置摄像头,则显示前置相机图标及后置相机图标。Step 303: If the camera used is a front camera, display the front camera icon and the rear camera icon.
其中,如图4所示,终端设备的显示界面由显示单个相机图标变化为显示前置相机图标及后置相机图标,前置相机图标及后置相机图标为相机图标的分身,当用户点击前置相机图标时,启动马达升起前置摄像头并自动进入前置预览状态。当用户点击后置相机图标时,启动后置摄像头并进入预览状态,并且取消显示前置相机图标及后置相机图标,恢复显示单个相机图标状态,当用户点击该单个相机图标时,默认启动后置摄像头。可以默认后置相机图标放置于单个相机图标放置的位置,前置相机图标与后置相机图标并排放置。Among them, as shown in Figure 4, the display interface of the terminal device changes from displaying a single camera icon to displaying a front camera icon and a rear camera icon. The front camera icon and the rear camera icon are the clones of the camera icon. When the camera icon is set, start the motor to raise the front camera and automatically enter the front preview state. When the user clicks on the rear camera icon, the rear camera is activated and enters the preview state, and the front camera icon and the rear camera icon are canceled, and the state of displaying a single camera icon is restored. When the user clicks the single camera icon, it will be launched by default Set the camera. The rear camera icon can be placed at the position where a single camera icon is placed by default, and the front camera icon and the rear camera icon are placed side by side.
在步骤302中,若判断使用的摄像头为后置摄像头,则取消显示前置相机图标及后置相机图标,恢复显示单个相机图标状态。In step 302, if it is determined that the camera used is a rear camera, the display of the front camera icon and the rear camera icon is cancelled, and the state of displaying a single camera icon is restored.
本实施例中,通过对退出相机前摄像头的使用状态进行判断,可以有效防止控制升降摄像头的升降马达的无效伸缩,延长了升降马达的寿命,可以让用户根据使用习惯,选择启动前置摄像头或者后置摄像头,提升了终端设备的智能程度。In this embodiment, by judging the use state of the camera before exiting the camera, the ineffective expansion and contraction of the lifting motor that controls the lifting camera can be effectively prevented, the life of the lifting motor is prolonged, and the user can choose to start the front camera or according to the usage habits. The rear camera improves the intelligence of the terminal device.
参见图5,图5是本公开实施例提供的一种终端设备的结构示意图之一,所述终端设备包括第一摄像头及第二摄像头,如图5所示,终端设备400包 括:Referring to FIG. 5, FIG. 5 is one of the schematic structural diagrams of a terminal device provided by an embodiment of the present disclosure. The terminal device includes a first camera and a second camera. As shown in FIG. 5, the terminal device 400 includes:
第一接收模块401,用于在使用所述第一摄像头的情况下,接收第一输入;The first receiving module 401 is configured to receive a first input when the first camera is used;
第一显示模块402,用于响应于所述第一输入,停止使用所述第一摄像头,显示第一应用图标和第二应用图标;The first display module 402 is configured to stop using the first camera in response to the first input, and display a first application icon and a second application icon;
第一启动模块403,用于在接收到针对所述第一应用图标的第二输入的情况下,启动所述第一摄像头;在接收到针对所述第二应用图标的第三输入的情况下,启动所述第二摄像头。The first activation module 403 is configured to activate the first camera when the second input for the first application icon is received; when the third input for the second application icon is received To start the second camera.
可选地,如图6所示,终端设备400还包括:Optionally, as shown in FIG. 6, the terminal device 400 further includes:
第二接收模块404,用于在使用所述第二摄像头的情况下,接收第四输入;The second receiving module 404 is configured to receive a fourth input when the second camera is used;
第二显示模块405,用于响应于所述第四输入,停止使用所述第二摄像头,显示第三应用图标;The second display module 405 is configured to stop using the second camera and display a third application icon in response to the fourth input;
第二启动模块406,用于在接收到针对所述第三应用图标的第五输入的情况下,启动所述第二摄像头。The second activation module 406 is configured to activate the second camera when the fifth input for the third application icon is received.
可选地,如图7所示,终端设备400还包括:Optionally, as shown in FIG. 7, the terminal device 400 further includes:
第三显示模块407,用于取消显示所述第一应用图标和第二应用图标,并显示第三应用图标。The third display module 407 is configured to cancel the display of the first application icon and the second application icon, and display the third application icon.
可选地,如图8所示,终端设备400还包括:Optionally, as shown in FIG. 8, the terminal device 400 further includes:
第三接收模块408,用于接收针对第三应用图标的第六输入;The third receiving module 408 is configured to receive the sixth input for the third application icon;
第三启动模块409,用于响应于所述第六输入,启动所述第二摄像头;The third activation module 409 is configured to activate the second camera in response to the sixth input;
第四启动模块410,用于在接收到切换摄像头的第七输入的情况下,停止使用所述第二摄像头,启动所述第一摄像头。The fourth activation module 410 is configured to stop using the second camera and activate the first camera when the seventh input of switching the camera is received.
终端设备能够实现图1及图2的方法实施例中终端设备实现的各个过程,为避免重复,这里不再赘述。The terminal device can implement each process implemented by the terminal device in the method embodiments of FIG. 1 and FIG. 2. To avoid repetition, details are not described herein again.
本公开实施例中,在使用所述第一摄像头的情况下,接收第一输入;响应于所述第一输入,停止使用所述第一摄像头,显示第一应用图标和第二应用图标;在接收到针对所述第一应用图标的第二输入的情况下,启动所述第一摄像头;在接收到针对所述第二应用图标的第三输入的情况下,启动所述 第二摄像头。这样,在进入拍摄模式时,用户可以根据需求的摄像头选择对应的应用图标,不需要切换摄像头,提升了终端设备的智能程度。In the embodiment of the present disclosure, when the first camera is used, a first input is received; in response to the first input, the first camera is stopped to be used, and the first application icon and the second application icon are displayed; When the second input for the first application icon is received, the first camera is started; when the third input for the second application icon is received, the second camera is started. In this way, when entering the shooting mode, the user can select the corresponding application icon according to the required camera without switching the camera, which improves the intelligence of the terminal device.
图9为实现本公开各个实施例的一种终端设备的硬件结构示意图。FIG. 9 is a schematic diagram of the hardware structure of a terminal device for implementing various embodiments of the present disclosure.
该终端设备500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、处理器510、以及电源511等部件。本领域技术人员可以理解,图9中示出的终端设备结构并不构成对终端设备的限定,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开实施例中,终端设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、机器人、可穿戴设备、以及计步器等。The terminal device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and Power supply 511 and other components. Those skilled in the art can understand that the structure of the terminal device shown in FIG. 9 does not constitute a limitation on the terminal device. The terminal device may include more or fewer components than shown in the figure, or a combination of certain components, or different components. Layout. In the embodiments of the present disclosure, terminal devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminal devices, robots, wearable devices, and pedometers.
所述终端设备包括第一摄像头及第二摄像头,其中,处理器510,用于执行下述过程:The terminal device includes a first camera and a second camera, wherein the processor 510 is configured to execute the following process:
在使用所述第一摄像头的情况下,接收第一输入;In the case of using the first camera, receiving a first input;
响应于所述第一输入,停止使用所述第一摄像头,显示第一应用图标和第二应用图标;In response to the first input, stop using the first camera, and display a first application icon and a second application icon;
在接收到针对所述第一应用图标的第二输入的情况下,启动所述第一摄像头;在接收到针对所述第二应用图标的第三输入的情况下,启动所述第二摄像头。When the second input for the first application icon is received, the first camera is started; when the third input for the second application icon is received, the second camera is started.
本公开实施例的终端设备,在使用所述第一摄像头的情况下,接收第一输入;响应于所述第一输入,停止使用所述第一摄像头,显示第一应用图标和第二应用图标;在接收到针对所述第一应用图标的第二输入的情况下,启动所述第一摄像头;在接收到针对所述第二应用图标的第三输入的情况下,启动所述第二摄像头。这样,在进入拍摄模式时,用户可以根据需求的摄像头选择对应的应用图标,不需要切换摄像头,提升了终端设备的智能程度。The terminal device of the embodiment of the present disclosure receives a first input when using the first camera; in response to the first input, stops using the first camera and displays the first application icon and the second application icon In the case of receiving the second input for the first application icon, start the first camera; in the case of receiving the third input for the second application icon, start the second camera . In this way, when entering the shooting mode, the user can select the corresponding application icon according to the required camera without switching the camera, which improves the intelligence of the terminal device.
可选地,处理器510还用于执行:Optionally, the processor 510 is further configured to execute:
在使用所述第二摄像头的情况下,接收第四输入;In the case of using the second camera, receiving a fourth input;
响应于所述第四输入,停止使用所述第二摄像头,显示第三应用图标;In response to the fourth input, stop using the second camera and display a third application icon;
在接收到针对所述第三应用图标的第五输入的情况下,启动所述第二摄像头。In the case of receiving the fifth input for the third application icon, the second camera is activated.
可选地,处理器510执行所述启动所述第二摄像头之后,处理器510还用于执行:Optionally, after the processor 510 executes the activation of the second camera, the processor 510 is further configured to execute:
取消显示所述第一应用图标和第二应用图标,并显示第三应用图标。Cancel the display of the first application icon and the second application icon, and display the third application icon.
可选地,处理器510执行所述接收第一输入之前,处理器510还用于执行:Optionally, before the processor 510 executes the receiving of the first input, the processor 510 is further configured to execute:
接收针对第三应用图标的第六输入;Receiving a sixth input for the third application icon;
响应于所述第六输入,启动所述第二摄像头;In response to the sixth input, start the second camera;
在接收到切换摄像头的第七输入的情况下,停止使用所述第二摄像头,启动所述第一摄像头。In the case of receiving the seventh input of switching the camera, stop using the second camera, and start the first camera.
应理解的是,本公开实施例中,射频单元501可用于收发信息或通话过程中,信号的接收和发送,具体地,将来自基站的下行数据接收后,给处理器510处理;另外,将上行的数据发送给基站。通常,射频单元501包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元501还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present disclosure, the radio frequency unit 501 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 510; Uplink data is sent to the base station. Generally, the radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with the network and other devices through a wireless communication system.
终端设备通过网络模块502为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The terminal device provides users with wireless broadband Internet access through the network module 502, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元503可以将射频单元501或网络模块502接收的或者在存储器509中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元503还可以提供与终端设备500执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元503包括扬声器、蜂鸣器以及受话器等。The audio output unit 503 may convert the audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output it as sound. Moreover, the audio output unit 503 may also provide audio output related to a specific function performed by the terminal device 500 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
输入单元504用于接收音频或视频信号。输入单元504可以包括图形处理器(Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元506上。经图形处理器5041处理后的图像帧可以存储在存储器509(或其它存储介质)中或者经由射频单元501或网络模块502进行发送。麦克风5042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元501发送到移动通信基站的 格式输出。The input unit 504 is used to receive audio or video signals. The input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042. The graphics processor 5041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in the video capture mode or the image capture mode. Data is processed. The processed image frame may be displayed on the display unit 506. The image frame processed by the graphics processor 5041 may be stored in the memory 509 (or other storage medium) or sent via the radio frequency unit 501 or the network module 502. The microphone 5042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 501 for output in the case of a telephone call mode.
终端设备500还包括至少一种传感器505,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板5061的亮度,接近传感器可在终端设备500移动到耳边时,关闭显示面板5061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器505还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The terminal device 500 also includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light. The proximity sensor can close the display panel 5061 and the display panel 5061 when the terminal device 500 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of the terminal device (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 505 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元506用于显示由用户输入的信息或提供给用户的信息。显示单元506可包括显示面板5061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板5061。The display unit 506 is used to display information input by the user or information provided to the user. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元507可用于接收输入的数字或字符信息,以及产生与终端设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元507包括触控面板5071以及其他输入设备5072。触控面板5071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板5071上或在触控面板5071附近的操作)。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器510,接收处理器510发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板5071。除了触控面板5071,用户输入单元507还可以包括其他输入设备5072。具体地,其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 507 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the terminal device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. The touch panel 5071, also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 5071 or near the touch panel 5071. operating). The touch panel 5071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the 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 it into contact coordinates, and then sends it To the processor 510, the command sent by the processor 510 is received and executed. In addition, the touch panel 5071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may also include other input devices 5072. Specifically, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板5071可覆盖在显示面板5061上,当触控面板5071 检测到在其上或附近的触摸操作后,传送给处理器510以确定触摸事件的类型,随后处理器510根据触摸事件的类型在显示面板5061上提供相应的视觉输出。虽然在图9中,触控面板5071与显示面板5061是作为两个独立的部件来实现终端设备的输入和输出功能,但是在某些实施例中,可以将触控面板5071与显示面板5061集成而实现终端设备的输入和输出功能,具体此处不做限定。Further, the touch panel 5071 can be overlaid on the display panel 5061. When the touch panel 5071 detects a touch operation on or near it, it transmits it to the processor 510 to determine the type of touch event, and then the processor 510 determines the type of touch event according to the touch. The type of event provides corresponding visual output on the display panel 5061. Although in FIG. 9, the touch panel 5071 and the display panel 5061 are used as two independent components to realize the input and output functions of the terminal device, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated The implementation of the input and output functions of the terminal device is not specifically limited here.
接口单元508为外部装置与终端设备500连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元508可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端设备500内的一个或多个元件或者可以用于在终端设备500和外部装置之间传输数据。The interface unit 508 is an interface for connecting an external device with the terminal device 500. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 508 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the terminal device 500 or can be used to connect to the terminal device 500 and external Transfer data between devices.
存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器509可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 509 can be used to store software programs and various data. The memory 509 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones. In addition, the memory 509 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器510是终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储器509内的软件程序和/或模块,以及调用存储在存储器509内的数据,执行终端设备的各种功能和处理数据,从而对终端设备进行整体监控。处理器510可包括一个或多个处理单元;可选地,处理器510可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。The processor 510 is the control center of the terminal device. It uses various interfaces and lines to connect the various parts of the entire terminal device, runs or executes the software programs and/or modules stored in the memory 509, and calls data stored in the memory 509 , Perform various functions of the terminal equipment and process data, so as to monitor the terminal equipment as a whole. The processor 510 may include one or more processing units; optionally, the processor 510 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc. The adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 510.
终端设备500还可以包括给各个部件供电的电源511(比如电池),可选地,电源511可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The terminal device 500 may also include a power source 511 (such as a battery) for supplying power to various components. Optionally, the power source 511 may be logically connected to the processor 510 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
另外,终端设备500包括一些未示出的功能模块,在此不再赘述。In addition, the terminal device 500 includes some functional modules not shown, which will not be repeated here.
可选地,本公开实施例还提供一种终端设备,包括处理器,存储器,存储在存储器上并可在所述处理器上运行的程序,该程序被处理器执行时实现上述摄像头控制方法中实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present disclosure further provides a terminal device, including a processor, a memory, and a program stored in the memory and running on the processor. When the program is executed by the processor, the above camera control method is implemented Each process of the embodiment can achieve the same technical effect, and in order to avoid repetition, it will not be repeated here.
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有程序,该程序被处理器执行时实现的摄像头控制方法中实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。The embodiments of the present disclosure also provide a computer-readable storage medium on which a program is stored. When the program is executed by a processor, each process in the embodiment of the camera control method is realized, and the same technical effect can be achieved. To avoid repetition, I won’t repeat it here. Wherein, the computer-readable storage medium, such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of the present disclosure essentially or the part that contributes to the related technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk). ) Includes several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present disclosure.
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护范围之内。The embodiments of the present disclosure are described above with reference to the accompanying drawings, but the present disclosure is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of the present disclosure, without departing from the purpose of the present disclosure and the scope of protection of the claims, many forms can be made, all of which fall within the scope of protection of the present disclosure.

Claims (10)

  1. 一种摄像头控制方法,应用于终端设备,所述终端设备包括第一摄像头及第二摄像头,所述方法包括:A camera control method is applied to a terminal device, the terminal device includes a first camera and a second camera, and the method includes:
    在使用所述第一摄像头的情况下,接收第一输入;In the case of using the first camera, receiving a first input;
    响应于所述第一输入,停止使用所述第一摄像头,显示第一应用图标和第二应用图标;In response to the first input, stop using the first camera, and display a first application icon and a second application icon;
    在接收到针对所述第一应用图标的第二输入的情况下,启动所述第一摄像头;在接收到针对所述第二应用图标的第三输入的情况下,启动所述第二摄像头。When the second input for the first application icon is received, the first camera is started; when the third input for the second application icon is received, the second camera is started.
  2. 根据权利要求1所述的方法,还包括:The method according to claim 1, further comprising:
    在使用所述第二摄像头的情况下,接收第四输入;In the case of using the second camera, receiving a fourth input;
    响应于所述第四输入,停止使用所述第二摄像头,显示第三应用图标;In response to the fourth input, stop using the second camera and display a third application icon;
    在接收到针对所述第三应用图标的第五输入的情况下,启动所述第二摄像头。In the case of receiving the fifth input for the third application icon, the second camera is activated.
  3. 根据权利要求1所述的方法,其中,所述启动所述第二摄像头之后,所述方法还包括:The method according to claim 1, wherein after said activating said second camera, said method further comprises:
    取消显示所述第一应用图标和第二应用图标,并显示第三应用图标。Cancel the display of the first application icon and the second application icon, and display the third application icon.
  4. 根据权利要求1所述的方法,其中,所述接收第一输入之前,所述方法还包括:The method according to claim 1, wherein, before the receiving the first input, the method further comprises:
    接收针对第三应用图标的第六输入;Receiving a sixth input for the third application icon;
    响应于所述第六输入,启动所述第二摄像头;In response to the sixth input, start the second camera;
    在接收到切换摄像头的第七输入的情况下,停止使用所述第二摄像头,启动所述第一摄像头。In the case of receiving the seventh input of switching the camera, stop using the second camera, and start the first camera.
  5. 一种终端设备,包括第一摄像头及第二摄像头,所述终端设备还包括:A terminal device includes a first camera and a second camera, and the terminal device further includes:
    第一接收模块,用于在使用所述第一摄像头的情况下,接收第一输入;The first receiving module is configured to receive a first input when the first camera is used;
    第一显示模块,用于响应于所述第一输入,停止使用所述第一摄像头,显示第一应用图标和第二应用图标;The first display module is configured to stop using the first camera in response to the first input, and display a first application icon and a second application icon;
    第一启动模块,用于在接收到针对所述第一应用图标的第二输入的情况 下,启动所述第一摄像头;在接收到针对所述第二应用图标的第三输入的情况下,启动所述第二摄像头。The first activation module is configured to activate the first camera when the second input for the first application icon is received; when the third input for the second application icon is received, Start the second camera.
  6. 根据权利要求5所述的终端设备,还包括:The terminal device according to claim 5, further comprising:
    第二接收模块,用于在使用所述第二摄像头的情况下,接收第四输入;The second receiving module is configured to receive a fourth input when the second camera is used;
    第二显示模块,用于响应于所述第四输入,停止使用所述第二摄像头,显示第三应用图标;The second display module is configured to stop using the second camera in response to the fourth input and display a third application icon;
    第二启动模块,用于在接收到针对所述第三应用图标的第五输入的情况下,启动所述第二摄像头。The second activation module is configured to activate the second camera when the fifth input for the third application icon is received.
  7. 根据权利要求5所述的终端设备,还包括:The terminal device according to claim 5, further comprising:
    第三显示模块,用于取消显示所述第一应用图标和第二应用图标,并显示第三应用图标。The third display module is used to cancel the display of the first application icon and the second application icon, and display the third application icon.
  8. 根据权利要求5所述的终端设备,还包括:The terminal device according to claim 5, further comprising:
    第三接收模块,用于接收针对第三应用图标的第六输入;The third receiving module is configured to receive the sixth input for the third application icon;
    第三启动模块,用于响应于所述第六输入,启动所述第二摄像头;The third activation module is configured to activate the second camera in response to the sixth input;
    第四启动模块,用于在接收到切换摄像头的第七输入的情况下,停止使用所述第二摄像头,启动所述第一摄像头。The fourth activation module is configured to stop using the second camera and activate the first camera when the seventh input of switching the camera is received.
  9. 一种终端设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现如权利要求1至4中任一项所述的摄像头控制方法中的步骤。A terminal device, comprising: a memory, a processor, and a program stored on the memory and capable of running on the processor, and when the program is executed by the processor, implements any one of claims 1 to 4 The steps in the camera control method described in the item.
  10. 一种计算机可读存储介质,所述计算机可读存储介质上存储有程序,所述程序被处理器执行时实现如权利要求1至4中任一项所述的摄像头控制方法中的步骤。A computer-readable storage medium with a program stored on the computer-readable storage medium, and when the program is executed by a processor, the steps in the camera control method according to any one of claims 1 to 4 are realized.
PCT/CN2020/084761 2019-06-25 2020-04-14 Camera control method and terminal device WO2020259009A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910553995.7 2019-06-25
CN201910553995.7A CN110290317A (en) 2019-06-25 2019-06-25 A kind of camera control method and terminal device

Publications (1)

Publication Number Publication Date
WO2020259009A1 true WO2020259009A1 (en) 2020-12-30

Family

ID=68005588

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/084761 WO2020259009A1 (en) 2019-06-25 2020-04-14 Camera control method and terminal device

Country Status (2)

Country Link
CN (1) CN110290317A (en)
WO (1) WO2020259009A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290317A (en) * 2019-06-25 2019-09-27 维沃移动通信有限公司 A kind of camera control method and terminal device
CN113556460B (en) * 2020-04-26 2023-05-02 华为技术有限公司 Camera control method and system and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722321A (en) * 2012-05-22 2012-10-10 中兴通讯股份有限公司 Method and device for switching between double cameras
US20160241783A1 (en) * 2015-01-28 2016-08-18 Kyocera Corporation Portable terminal
CN107580179A (en) * 2017-08-18 2018-01-12 维沃移动通信有限公司 A kind of camera starts method and mobile terminal
US20180115713A1 (en) * 2016-10-25 2018-04-26 Samsung Electronics Co., Ltd. Portable device and method for controlling screen in the portable device
CN108833709A (en) * 2018-06-25 2018-11-16 维沃移动通信有限公司 A kind of the starting method and mobile terminal of camera
CN109358913A (en) * 2018-09-30 2019-02-19 维沃移动通信(杭州)有限公司 A kind of the starting method and terminal device of application program
CN110290317A (en) * 2019-06-25 2019-09-27 维沃移动通信有限公司 A kind of camera control method and terminal device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9270889B2 (en) * 2013-01-25 2016-02-23 Htc Corporation Electronic device and camera switching method thereof
CN104182173A (en) * 2014-08-15 2014-12-03 小米科技有限责任公司 Camera switching method and device
CN106933620A (en) * 2017-02-14 2017-07-07 珠海市魅族科技有限公司 A kind of filming control method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722321A (en) * 2012-05-22 2012-10-10 中兴通讯股份有限公司 Method and device for switching between double cameras
US20160241783A1 (en) * 2015-01-28 2016-08-18 Kyocera Corporation Portable terminal
US20180115713A1 (en) * 2016-10-25 2018-04-26 Samsung Electronics Co., Ltd. Portable device and method for controlling screen in the portable device
CN107580179A (en) * 2017-08-18 2018-01-12 维沃移动通信有限公司 A kind of camera starts method and mobile terminal
CN108833709A (en) * 2018-06-25 2018-11-16 维沃移动通信有限公司 A kind of the starting method and mobile terminal of camera
CN109358913A (en) * 2018-09-30 2019-02-19 维沃移动通信(杭州)有限公司 A kind of the starting method and terminal device of application program
CN110290317A (en) * 2019-06-25 2019-09-27 维沃移动通信有限公司 A kind of camera control method and terminal device

Also Published As

Publication number Publication date
CN110290317A (en) 2019-09-27

Similar Documents

Publication Publication Date Title
US20220276909A1 (en) Screen projection control method and electronic device
WO2020156111A1 (en) Interface display method and terminal
WO2021017776A1 (en) Information processing method and terminal
WO2021017763A1 (en) Transaction processing method, terminal device, and computer-readable storage medium
CN110837327B (en) Message viewing method and terminal
US11537261B2 (en) Home screen interface application icon moving method and terminal device
WO2019174459A1 (en) Application processing method and mobile terminal
US11354017B2 (en) Display method and mobile terminal
US11930297B2 (en) Video call method and terminal device
WO2020192282A1 (en) Notification message display method and terminal device
WO2021057290A1 (en) Information control method and electronic device
WO2020199783A1 (en) Interface display method and terminal device
WO2019228296A1 (en) Display processing method and terminal device
WO2020192324A1 (en) Interface displaying method and terminal device
WO2021129786A1 (en) Display method and electronic device
WO2021115220A1 (en) Information sharing method, electronic device and computer-readable storage medium
WO2021082772A1 (en) Screenshot method and electronic device
WO2021083114A1 (en) Photo viewing method and electronic device
CN111124706A (en) Application program sharing method and electronic equipment
WO2021031717A1 (en) Screen capturing method and terminal device
WO2020220893A1 (en) Screenshot method and mobile terminal
WO2020151490A1 (en) Application control method and terminal device
WO2020258953A1 (en) Camera switching method and terminal device
WO2020211602A1 (en) Application control method and terminal device
WO2020259009A1 (en) Camera control method and terminal device

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: 20833692

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: 20833692

Country of ref document: EP

Kind code of ref document: A1