CN110445979B - Camera switching method and terminal equipment - Google Patents

Camera switching method and terminal equipment Download PDF

Info

Publication number
CN110445979B
CN110445979B CN201910563563.4A CN201910563563A CN110445979B CN 110445979 B CN110445979 B CN 110445979B CN 201910563563 A CN201910563563 A CN 201910563563A CN 110445979 B CN110445979 B CN 110445979B
Authority
CN
China
Prior art keywords
camera
input
terminal device
control
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910563563.4A
Other languages
Chinese (zh)
Other versions
CN110445979A (en
Inventor
王东生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910563563.4A priority Critical patent/CN110445979B/en
Publication of CN110445979A publication Critical patent/CN110445979A/en
Priority to PCT/CN2020/081255 priority patent/WO2020258953A1/en
Application granted granted Critical
Publication of CN110445979B publication Critical patent/CN110445979B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • 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/66Remote control of cameras or camera parts, e.g. by remote control devices
    • H04N23/661Transmitting camera control signals through networks, e.g. control via the Internet
    • H04N23/662Transmitting camera control signals through networks, e.g. control via the Internet by using master/slave camera arrangements for affecting the control of camera image capture, e.g. placing the camera in a desirable condition to capture a desired image

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the invention provides a camera switching method and terminal equipment, relates to the technical field of communication, and aims to solve the problems that mechanical loss of a front camera is increased and the service life of the front camera is shortened due to the fact that the front camera extends out and retracts for multiple times. The scheme comprises the following steps: when the first camera is opened and in an extending state, receiving a first input of a user; responding to the first input, closing the first camera and opening the second camera; wherein the first camera remains in the extended state after responding to the first input. The method is applied to a scene that the terminal equipment switches the camera.

Description

Camera switching method and terminal equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a camera switching method and terminal equipment.
Background
With the development of terminal technology, the screen occupation ratio of terminal equipment is higher and higher. For example, a front camera of the terminal device can be set as a telescopic camera, so that a comprehensive screen design of the terminal device is realized.
Generally, a user can trigger the terminal device to switch between the front camera and the rear camera to adapt to different application scenes. Specifically, under the condition that the front camera of the terminal device is in a working state (at this time, the front camera extends out of the terminal device), if the user needs to use the rear camera, the user can trigger the terminal device to switch from the front camera to the rear camera, namely, the terminal device is triggered to close the front camera and control the front camera to retract into the terminal device, and the rear camera is opened (namely, the rear camera is in the working state at this time). At this moment, if the user needs to use the front camera again, the user can trigger the terminal equipment to switch from the rear camera to the front camera again, namely trigger the terminal equipment to close the rear camera, open the front camera and control the front camera to extend out of the terminal equipment.
However, in the above process, when the user needs to use the front camera and the rear camera of the terminal device alternately, the user needs to trigger the terminal device to switch back and forth between the front camera and the rear camera many times, which causes the front camera of the terminal device to extend and retract many times, thereby increasing the mechanical loss of the camera and shortening the service life of the camera.
Disclosure of Invention
The embodiment of the invention provides a camera switching method and terminal equipment, and aims to solve the problems that the mechanical loss of a front camera is increased and the service life of the front camera is shortened due to the fact that the front camera extends out and retracts for multiple times.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present invention provides a camera switching method, which is applied to a terminal device, where the terminal device includes a first camera and a second camera, and the first camera is a telescopic camera, and the method includes: receiving a first input of a user under the condition that the first camera is opened and is in an extending state; responding to the first input, closing the first camera and opening the second camera; wherein the first camera remains in the extended state after responding to the first input.
In a second aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes a first camera, a second camera, a receiving module, and a processing module, and the first camera is a telescopic camera. The receiving module is used for receiving a first input of a user under the condition that the first camera is opened and is in an extending state; the processing module is used for responding to the first input received by the receiving module, closing the first camera and opening the second camera; wherein the first camera remains in the extended state after the processing module responds to the first input.
In a third aspect, an embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the steps of the camera switching method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the camera switching method in the first aspect are implemented.
In the embodiment of the present invention, the terminal device may include a first camera and a second camera, where the first camera is a telescopic camera. The terminal equipment can receive a first input of a user under the condition that the first camera is opened and is in an extending state; and in response to the first input, closing the first camera and opening the second camera; wherein the first camera remains in the extended state after responding to the first input. According to the scheme, under the condition that the first camera is opened and is in the extending state, a user can trigger the terminal equipment to be switched from the first camera to the second camera through the first input (namely, the first camera is closed, the second camera is opened), and the first camera can be still made after switching, so that when the user needs to be switched back to the first camera, the terminal equipment can directly close the second camera and open the first camera, namely, in the camera switching process, the terminal equipment does not need to control the first camera to stretch. So, at the in-process that first camera and second camera switch in turn, terminal equipment need not to control first camera many times again flexible to reduce the mechanical loss of first camera, improved the life of first camera.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a camera switching method according to an embodiment of the present invention;
fig. 3 is one of schematic interfaces applied to a camera switching method according to an embodiment of the present invention;
fig. 4 is a second schematic diagram of a camera switching method according to an embodiment of the present invention;
fig. 5 is a second schematic interface diagram of an application of the camera switching method according to the embodiment of the present invention;
fig. 6 is a third schematic diagram of a camera switching method according to an embodiment of the present invention;
fig. 7 is a fourth schematic view illustrating a camera switching method according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 9 is a hardware schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first camera, the second camera, etc. are used to distinguish between different cameras, rather than to describe a particular order of the cameras.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of elements means two or more elements, and the like.
The following first explains some of the nouns or terms referred to in the claims and the specification of the present invention.
A camera preview interface: the method refers to an interface displayed by the terminal equipment when a camera application program in the terminal equipment runs in the foreground of the terminal equipment. Generally, a shooting control, an album entry (a thumbnail displayed on the entry may be a thumbnail of an image obtained by the last shooting by a camera application of the terminal device), a camera switching control, and a shooting preview area (for displaying a preview image captured by a currently opened camera) are generally included in the camera preview interface.
Foreground operation: refers to an operation state of an application program in the terminal device. Specifically, an application running in the foreground of the terminal device means that a user interface of the application is displayed on a display screen of the terminal device, and a user can interact with the application by inputting on the user interface.
Background operation: the application program running in the background of the terminal device refers to that the application program runs in a resource manager of the terminal device, and a display screen of the terminal device does not generally display a user interface of the application program. When the user needs to use or view the application program, the terminal device may be triggered to switch the application program to foreground operation, and then the application program is used or viewed.
It should be noted that, in the embodiment of the present invention, the camera application refers to a camera application, and for convenience of description, the camera application is used in the embodiment of the present invention. In addition, in the embodiment of the invention, the camera application and the camera application program can be interchanged and have the same meaning. In addition, in the embodiment of the present invention, the icon of the camera application refers to an icon of a camera application program, or a shortcut icon of the camera application program.
The embodiment of the invention provides a camera switching method and terminal equipment. The terminal equipment can receive a first input of a user under the condition that the first camera is opened and is in an extending state; and in response to the first input, closing the first camera and opening the second camera; wherein the first camera remains in the extended state after responding to the first input. According to the scheme, under the condition that the first camera is opened and is in the extending state, a user can trigger the terminal equipment to be switched from the first camera to the second camera through the first input (namely, the first camera is closed, and the second camera is opened), and the first camera still keeps the extending state after switching, so that when the user needs to be switched back to the first camera, the terminal equipment can directly close the second camera and open the first camera, namely, in the camera switching process, the terminal equipment does not need to control the first camera to stretch. So, at the in-process that first camera and second camera switch in turn, terminal equipment need not to control first camera many times again flexible to reduce the mechanical loss of first camera, improved the life of first camera.
The terminal device in the embodiment of the present invention may be a terminal device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment to which the camera switching method provided by the embodiment of the present invention is applied, by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the camera switching method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the interface camera switching method may operate based on the android operating system shown in fig. 1. Namely, the processor or the terminal device can implement the camera switching method provided by the embodiment of the invention by running the software program in the android operating system.
The terminal equipment in the embodiment of the invention can be a mobile terminal or a non-mobile terminal. For example, the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile terminal may be a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
The execution main body of the camera switching method provided by the embodiment of the present invention may be the terminal device, or may also be a functional module and/or a functional entity capable of implementing the camera switching method in the terminal device, which may be specifically determined according to actual use requirements, and the embodiment of the present invention is not limited. The following takes a terminal device as an example to exemplarily explain a camera switching method provided by the embodiment of the present invention.
In the embodiment of the present invention, the terminal device may include a plurality of cameras. For example, taking the terminal device includes two cameras as an example, assuming that the two cameras are a first camera and a second camera respectively, and the first camera is a telescopic camera, then the first camera may be a front camera, and the second camera may be a rear camera.
It should be noted that, in order to better describe and understand various implementation manners of the embodiments of the present invention, in the embodiments of the present invention, the terminal device includes the first camera and the second camera, which are taken as examples for performing an exemplary description.
In the embodiment of the invention, in the process that a user triggers the terminal device to switch between the first camera and the second camera, the user can trigger the terminal device to only control the switching between the first camera and the second camera (namely, close one camera and open the other camera) through specific input (for example, the first input described below), and the first camera does not need to be controlled to stretch and retract; namely, the first camera can be kept in the extending state all the time in the process of controlling the switching of the first camera and the second camera. Specifically, under the condition that the first camera is opened and in the extended state, the user can trigger the terminal device to close the first camera through the first input, open the second camera, and keep the first camera in the extended state (i.e., without controlling the first camera to retract into the terminal device). Therefore, when the user needs to use the first camera again, the user only needs to trigger the terminal equipment to close the second camera through another input and open the first camera, and then switching between the first camera and the second camera can be achieved. So, at the in-process that first camera and second camera switch in turn, terminal equipment need not to control first camera many times again flexible to reduce the mechanical loss of first camera, improved the life of first camera.
The following describes an exemplary camera switching method according to an embodiment of the present invention with reference to the drawings.
As shown in fig. 2, an embodiment of the present invention provides a camera switching method, which may include S201 and S202 described below.
S201, under the condition that the first camera is opened and is in the extending state, the terminal equipment receives first input of a user.
In an embodiment of the present invention, the first camera may be a front camera in the terminal device, and the first camera may be a telescopic camera. Namely, the first camera can be stretched and contracted in the terminal equipment. Specifically, the first camera may be in an extended state or a retracted state.
Optionally, in the embodiment of the present invention, the state that the first camera is in the extended state may be understood as a state that the first camera is in a position extended from the inside of the terminal device, that is, a state that the first camera is located after moving from the first initial position by a preset stroke. The above-mentioned first camera is in a retracted state, which can be understood as a state that the first camera is retracted to a position inside the terminal device, that is, a state that the first camera is located after moving from the second initial position by a preset stroke. The first initial position may be an initial position where the first camera is located inside the terminal device; the second initial position may be an initial position where the first camera is located outside the terminal device.
Optionally, in the embodiment of the present invention, the first camera may be a vertical lifting type telescopic camera, a semi-rotating type telescopic camera, or other possible types of cameras, and may be determined specifically according to actual use requirements, which is not limited in the embodiment of the present invention. Namely, the terminal equipment can control the first camera to stretch and retract through the driving mechanism.
Optionally, in the embodiment of the present invention, the terminal device may control the first camera to extend from or retract into the terminal device through a driving mechanism in the terminal device, that is, the terminal device may control the first camera to extend and retract through the driving mechanism. The driving mechanism may be a lifting mechanism, a rotating mechanism, or other possible driving mechanisms, and may be determined according to actual use requirements, and the embodiment of the present invention is not limited.
For example, when the driving mechanism is a lifting mechanism, the first camera may be a vertically lifting telescopic camera; when the driving mechanism is a rotating mechanism, the first camera may be a semi-rotating telescopic camera.
Specifically, in the embodiment of the present invention, when the first camera is a vertically lifting type telescopic camera, the terminal device may control the first camera to extend from or retract into the terminal device through the lifting mechanism. When the first camera is a semi-rotary telescopic camera, the terminal device can control the first camera to extend out of the terminal device (or to be screwed out of the terminal device) or retract into the terminal device (or to be screwed into the terminal device) through the rotating mechanism.
Optionally, in the embodiment of the present invention, when the first camera is turned on and is in the extended state, the terminal device may run the camera application in the foreground of the terminal device. Or when the second camera is turned on, the terminal device may run the camera application in the foreground of the terminal device. It can be understood that, in actual implementation, under the condition that the terminal device runs the camera application in the foreground of the terminal device, at least one camera in the terminal device is turned on.
Optionally, in the embodiment of the present invention, a user may trigger the terminal device to run the camera application in a foreground of the terminal device through an icon input of the camera application (that is, the user triggers the terminal device to directly open the camera application), and at this time, the terminal device may open the first camera or the second camera. The user can also trigger the terminal device to run the camera application in the foreground of the terminal device through input on interfaces of other application programs (namely, the terminal device triggers the terminal device to call the camera application through other application programs), and at this time, the terminal device can start the first camera or the second camera.
In the embodiment of the invention, when the terminal equipment runs the camera application in the foreground of the terminal equipment, the camera preview interface of the camera application can be displayed on the display screen of the terminal equipment. The camera preview interface may be a preview interface of the first camera or a preview interface of the second camera. The determination may be specifically determined according to a currently turned on camera, and the embodiment of the present invention is not limited.
For a specific description of the camera preview interface, reference may be made to the related description of the camera preview interface in the noun explanation section, which is not described herein again.
Optionally, in this embodiment of the present invention, the first input may be an input of a user on the camera preview interface, or an input of a preset gesture performed by the user on the terminal device. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
In one implementation, when the first input is an input of a user on the camera preview interface, the first input may specifically be an input of the user on a first control in the camera preview interface, and the S201 may specifically be implemented by S201a described below.
S201a, under the condition that the first camera is turned on and is in the extending state, the terminal equipment receives a first input of a first control from a user.
The first control is a control in a camera preview interface. The first input to the first control can be used for triggering the terminal equipment to close the first camera, open the second camera and enable the first camera to keep in an extending state.
Optionally, in the embodiment of the present invention, the first input may be any possible form of input, such as click input, long-press input, or long-press input, and may specifically be determined according to an actual use requirement, and the embodiment of the present invention is not limited.
The click input may be input of a single click, a double click or a continuous click for a preset number of times. The long press input may be an input contacting for a preset time. The above-mentioned heavy-pressing input is also referred to as a pressure touch input, and refers to an input in which a user presses a pressure value greater than or equal to a pressure threshold value.
It should be noted that the preset times, the preset time and the pressure threshold may be determined according to actual use requirements, and the embodiment of the present invention is not limited.
Optionally, in this embodiment of the present invention, the camera preview interface may further include a fourth control. The fourth control can be used for triggering the terminal equipment to switch among different cameras. For example, when the first camera is turned on and in the extended state, the user may trigger the terminal device to turn off the first camera and turn on the second camera and control the first camera to be in the retracted state through the input to the fourth control. Or, under the condition that the second camera is opened, the user can trigger the terminal device to close the second camera, open the first camera and control the first camera to be in the extending state through inputting the fourth control. Namely, the user can trigger the terminal device to switch between different cameras through the input of the fourth control.
In another implementation manner, when the first input is an input of a preset gesture performed on the terminal device by a user, the S201 may be specifically implemented by the S201b described below.
S201b, under the condition that the first camera is turned on and is in the extending state, the terminal equipment receives a first input of a preset gesture executed by a user.
In an embodiment of the present invention, the first input may be a gesture input of a hand of a user with respect to the terminal device or a screen of the terminal device.
Optionally, in the embodiment of the present invention, before the terminal device receives the first input, corresponding to the preset gesture, performed by the user on the terminal device, the terminal device may detect the gesture of the user first, and when it is detected that the preset gesture is performed by the user, the terminal device may determine that the first input is received.
Optionally, in the embodiment of the present invention, the preset gesture may be any gesture that may implement the present scheme. For example, the preset gesture may be a gesture in which the hand of the user moves along a preset direction, or may be a gesture in which the hand of the user moves along a preset track, or may be any other gesture that may implement the present solution, which may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited.
S202, the terminal equipment responds to the first input, closes the first camera and opens the second camera.
Wherein the first camera may remain in the extended state after the terminal device responds to the first input. That is, after the terminal device responds to the first input, the terminal device may not control the first camera to retract into the terminal device.
It can be understood that, in the embodiment of the present invention, the terminal device turning off the first camera means that the terminal device controls the first camera to stop working, that is, the terminal device stops collecting an image through the first camera. The terminal device starts the second camera, that is, the terminal device controls the second camera to start working, that is, the terminal device starts to acquire images through the second camera.
Optionally, in this embodiment of the present invention, the keeping of the extended state of the first camera means that when the terminal device switches from the first camera to the second camera, only the first camera is turned off, and the first camera does not need to be controlled to retract into the terminal device (i.e., the first camera does not need to be controlled to be in a retracted state). So, when terminal equipment switches to first camera from the second camera again, terminal equipment can need not to control first camera and stretch out from terminal equipment is inside, promptly at the camera switching in-process, terminal equipment need not to control first camera and stretch out and draw back to can reduce the mechanical loss of first camera, and improve the life of first camera.
The camera switching method shown in S201 and S202 described above is further exemplarily described below with reference to fig. 3 and 4.
For example, it is assumed that the terminal device includes a first camera and a second camera, and the first camera is a vertically-lifting telescopic camera. Assume that the first camera is opened and in an extended state, and a camera preview interface displayed by the terminal device is a preview interface of the first camera, and the camera preview interface includes a first control and a shooting preview area, and a shooting preview image of the first camera (i.e. a preview image acquired by the first camera) is displayed in the shooting preview area. Assume again that the first input is a user click input to the first control. Then, as shown in (a) of fig. 3, the first camera 31 is in an extended state, and a camera preview interface (i.e., a preview interface of the first camera) is displayed on a display screen of the terminal device, the camera preview interface includes a first control 32 and a shooting preview area 33, and a shooting preview image of the first camera 31 (i.e., a preview image captured by the first camera 31) is displayed in the shooting preview area 33. At this time, the user clicks the first control 32, that is, the terminal device receives a first input to the first control from the user, and then in response to the first input, as shown in (b) in fig. 3, the terminal device may close the first camera 31 and open the second camera, and the first camera 31 remains in the extended state, and the shooting preview image displayed in the shooting preview area 33 is switched from the preview image captured by the first camera to the preview image captured by the second camera.
In the camera switching method provided by the embodiment of the invention, under the condition that the first camera is opened and is in the extended state, the user can trigger the terminal device to switch from the first camera to the second camera through the first input (namely, the first camera is closed and the second camera is opened), and the first camera can still keep the extended state after switching, so that when the user needs to switch back to the first camera, the terminal device can directly close the second camera and open the first camera, namely, in the camera switching process, the terminal device does not need to control the first camera to stretch and retract again. So, at the in-process that first camera and second camera switch in turn, terminal equipment need not to control first camera many times again flexible to reduce the mechanical loss of first camera, improved the life of first camera.
Optionally, in this embodiment of the present invention, after the terminal device executes the foregoing S202, the first control may continue to be displayed in the camera preview interface; the display of the first control in the camera preview interface may also be cancelled. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
It can be understood that, in the embodiment of the present invention, after the terminal device executes the above S202, the terminal device may display the above fourth control in the camera preview interface regardless of whether the first control continues to be displayed in the camera preview interface.
Optionally, in this embodiment of the present invention, after the terminal device executes the foregoing S202, the terminal device may display a second control in the camera preview interface. In this case, if the user no longer needs to use the first camera, the user may trigger the terminal device to control the first camera to retract into the terminal device (i.e., to be in a retracted state) with the second camera turned on by performing an input (e.g., a second input described below) on the second control.
For example, with reference to fig. 2, as shown in fig. 4, after S202, the camera switching method provided in the embodiment of the present invention may further include S203 and S204 described below. Specifically, S201 is implemented by S201 a.
S203, the terminal equipment receives a second input of the user to the second control.
Optionally, in the embodiment of the present invention, the second input may be any possible form of input, such as click input, long-press input, or long-press input, and may be determined specifically according to an actual use requirement, and the embodiment of the present invention is not limited. For the description of the click input, the long press input, and the re-press input, reference may be specifically made to the description of the first input in S201a, and details are not described here.
Optionally, the second control and the first control may be the same control or different controls, which may be determined according to actual use requirements, and the embodiment of the present invention is not limited.
And S204, the terminal equipment responds to the second input and controls the first camera to be in a retraction state.
It can be understood that, in the embodiment of the present invention, the terminal device controls the first camera to be in the retracted state, which can be understood as that the terminal device controls the first camera to be switched from the extended state to the retracted state, that is, after the terminal device controls the first camera to be retracted into the terminal device, the first camera is in the state.
In the embodiment of the invention, the terminal equipment can control the first camera to retract into the terminal equipment through the driving mechanism. Specifically, for the description of the driving mechanism, reference may be made to the description of the driving mechanism in the foregoing embodiments, and details are not repeated here.
The camera switching method shown in S203-S204 above will be further exemplarily described with reference to fig. 5.
Suppose the second camera is turned on, the first camera is turned off, the first camera is kept in an extended state, and a second control is displayed in the camera preview interface. Assume again that the second input is a long press input by the user to the second control. Then, as shown in (a) of fig. 5, the first camera 51 is in the extended state, and a camera preview interface including the second control 52 and a shooting preview area 53 is displayed on the display screen of the terminal device, and a shooting preview image of the second camera (i.e., a preview image captured by the second camera) is displayed in the shooting preview area 53. At this time, the user presses the second control 52 for a long time, that is, the terminal device receives a second input to the second control from the user, and then, in response to the second input, as shown in (b) in fig. 5, the terminal device controls the first camera to be in the retracted state (that is, the first camera is retracted into the terminal device), and the shooting preview image of the second camera (that is, the preview image captured by the second camera) continues to be displayed in the shooting preview area 53.
In the embodiment of the invention, because the user can start the second camera (that is, the second camera is in a working state), and when the user does not need to use the first camera any more, the terminal device can be triggered to control the first camera to be in a retraction state through the second input to the second control, that is, the first camera is controlled to retract into the terminal device. Therefore, the flexibility of the user in using the camera is improved, and the man-machine interaction performance is improved.
Optionally, in this embodiment of the present invention, after the terminal device executes the foregoing S202, the terminal device may cancel the display of the first control in the camera preview interface.
For example, with reference to fig. 2, as shown in fig. 6, after S202, the camera switching method according to the embodiment of the present invention may further include S205 described below.
And S205, the terminal equipment cancels the display of the first control in the camera preview interface.
The camera preview interface in S205 may be a preview interface of the second camera, that is, a shooting preview image of the second camera is displayed in a shooting preview area of the camera preview interface (that is, a preview image acquired by the second camera is displayed).
It should be noted that after the terminal device cancels the display of the first control in the camera preview interface, the terminal device may continue to display the fourth control in the camera preview interface, and the first camera may remain in the extended state. At this time, if the user needs to use the first camera, the user can trigger the terminal device to close the second camera and open the second camera through the input of the fourth control. So, can follow the second camera and switch to first camera, and need not to control first camera and switch to the state of stretching out from the withdrawal state (can understand, under this kind of circumstances, need not to control first camera again and stretch out from terminal equipment is inside), avoided the frequent flexible of first camera.
For example, as shown in (b) in fig. 3, after the terminal device turns off the first camera 31 and turns on the second camera, and the first camera 31 remains in the extended state, the terminal device may display a shooting preview image of the second camera (i.e., a preview image captured by the second camera) in the shooting preview area 33 and cancel the display of the first control in the camera preview interface.
In the embodiment of the invention, the user can trigger the terminal device to switch from the second camera to the first camera again through the input of the fourth control, and in the switching process, the terminal device only needs to close the second camera and open the first camera, and the first camera does not need to be controlled to switch from the retraction state to the extension state (as can be understood, in this case, the first camera does not need to be controlled to extend from the inside of the terminal device). So, at the in-process that first camera and second camera switch in turn, terminal equipment need not to control first camera many times again flexible to reduce the mechanical loss of first camera, improved the life of first camera.
Further, in the embodiment of the present invention, after the terminal device closes the second camera and opens the first camera, the terminal device may display a shooting preview image of the first camera (i.e., a preview image collected by the first camera) in the camera preview interface. Because first camera is flexible camera, and flexible camera stretches out from terminal equipment inside and needs the certain time to after flexible camera stretches out from terminal equipment inside completely (after first camera is in the state of stretching out promptly), just can show the shooting preview image of this flexible camera (the preview image that should stretch out and draw back the camera collection) in the camera preview interface. Therefore, compared with the extending process of the traditional telescopic camera, in the embodiment of the invention, as only the second camera is required to be closed and the first camera is required to be opened, the shooting preview image of the first camera (namely the preview image collected by the first camera) can be displayed in the camera preview interface. Therefore, the switching time from the second camera to the first camera is shortened, the response speed of the terminal device is increased, and the user experience is improved.
Optionally, in the embodiment of the present invention, when the terminal device turns off the first camera and turns on the second camera, that is, after the terminal device is switched from the first camera to the second camera, the camera application in the terminal device runs in the foreground of the terminal device. At this time, the terminal device may detect an operating state of the camera application, and when it is detected that the camera application is closed or the camera application is switched to operate in a background of the terminal device, the terminal device may control the first camera to be in a retracted state.
For example, with reference to fig. 2, as shown in fig. 7, after S202, the camera switching method provided in the embodiment of the present invention may further include S206 described below.
S206, the terminal device controls the first camera to be in a retraction state when detecting that the camera application is closed or switched to the background of the terminal device to run.
For the description of the background operation, reference may be made to the related description of the background operation in the noun explanation section, and details are not described herein again.
In the embodiment of the invention, when the camera application in the terminal equipment is closed or the operation of the camera application in the foreground of the terminal equipment is switched to the operation of the camera application in the background of the terminal equipment, the terminal equipment can automatically control the first camera to be switched from the extending state to the retracting state, and the terminal equipment can automatically control the first camera to be retracted into the terminal equipment.
It can be understood that, in the embodiment of the present invention, when the camera in the terminal device is applied to the foreground of the terminal device and runs, and the first camera is in the extended state, the camera turned on in the terminal device may be the first camera or the second camera. That is, under the condition that the first camera is turned on or the second camera is turned on, the camera applications in the terminal device run on the foreground of the terminal device.
Optionally, in the embodiment of the present invention, a user may trigger the camera application to switch from running in the foreground of the terminal device to running in the background of the terminal device by inputting a home key or a return key in the terminal device.
Optionally, in the embodiment of the present invention, the user may trigger the terminal device to close the camera application in the terminal device by inputting the latest running program interface in the terminal device. In practical implementation, before a user inputs a latest running program interface in the terminal device, the user may first trigger the terminal device to display the latest running program interface through one input.
Optionally, in the embodiment of the present invention, when the camera application in the terminal device is closed or is switched from running in the foreground of the terminal device to running in the background of the terminal device, the terminal device may further control the second camera to be closed.
In the embodiment of the invention, when the terminal equipment detects that the camera application is closed or the operation is switched from the foreground operation to the background operation of the terminal equipment, the first camera can be automatically controlled to be in the retraction state, and the second camera can be automatically controlled to be closed. Therefore, the first camera can be prevented from being exposed outside the terminal device for a long time, and the service life of the first camera can be improved.
Optionally, in the embodiment of the present invention, in the case that the first camera is turned on and in the extended state in the above step S201, before the terminal device receives the above first input, the camera switching method provided in the embodiment of the present invention may further include the following step S207; specifically, S201 can be implemented as S201c described below.
And S207, under the condition that the first camera is opened and is in the extending state, the terminal equipment displays a third control.
S201c, the terminal equipment receives a first input of a user.
Optionally, in an embodiment of the present invention, the third control element may be a control element displayed in the camera preview interface. The third control element may be configured to indicate whether the first camera is in a locked state.
Wherein, the first camera is in a locked state and can be understood as: and locking the first camera in an extending state. When first camera was in the lock mode promptly, no matter whether terminal equipment switches the camera, first camera all is in the state of stretching out.
For example, the third control element may be a shape-locking control element as shown in 521 of fig. 5 (a). The shape-locking control can have two display states of a locking state and an opening state. When the terminal device displays the shape locking control in a locked state, the first camera can be indicated to be in the locked state; when the terminal device displays the shape locking control in the open state, the first camera can be indicated to be in the non-locking state. When the first camera is in a locked state, the first camera is in an extended state no matter whether the terminal equipment switches the camera or not; when the first camera is in a non-locking state, the first camera stretches along with the switching of the terminal equipment.
It should be noted that fig. 5 illustrates an example where the shape-locking control is in the locked state, which does not limit the embodiment of the present invention at all, and in an actual implementation, the shape-locking control may have different display states under different conditions, such as the locked state or the unlocked state.
In the embodiment of the invention, the third control can be used for indicating whether the first camera is in the locking state or not, so that a user can update the display state of the third control by triggering the terminal device to realize the switching of the first camera between the locking state and the non-locking state, thereby increasing the flexibility of the user in using the camera and improving the man-machine interaction performance.
In the embodiment of the present invention, the camera switching method shown in the above method drawings is exemplarily described by referring to one drawing in the embodiment of the present invention. In specific implementation, the camera switching method shown in each method drawing can also be implemented by combining any other drawing which can be combined and is illustrated in the above embodiments, and details are not described here.
As shown in fig. 8, an embodiment of the present invention provides a terminal device 800, where the terminal device 800 may include a first camera, a second camera, a receiving module 801, and a processing module 802, where the first camera is a telescopic camera. A receiving module 801, configured to receive a first input of a user when the first camera is turned on and is in an extended state; a processing module 802, configured to turn off the first camera and turn on the second camera in response to the first input received by the receiving module 801; wherein the first camera remains in the extended state after the processing module 802 responds to the first input.
Optionally, in the embodiment of the present invention, the first input may be an input of a first control by a user, where the first control is a control in a camera preview interface displayed by the upper terminal device; alternatively, the first input may be an input for a user to perform a preset gesture.
Optionally, in the embodiment of the present invention, the first input is an input of a first control by a user; the processing module 802 is further configured to cancel the display of the first control in the camera preview interface after the first camera is turned off and the second camera is turned on.
Optionally, in the embodiment of the present invention, the first input is an input of a first control by a user; the receiving module 801 is further configured to receive a second input of the user to the second control after the processing module 802 turns off the first camera and turns on the second camera; the processing module 802 is further configured to control the first camera to retract into the terminal device in response to the second input received by the receiving module 801.
Optionally, in the embodiment of the present invention, the camera in the terminal device is used when the foreground of the terminal device runs; the processing module 802 is further configured to control the first camera to be in a retraction state when it is detected that the camera application is closed or switched to the background running of the terminal device after the first camera is closed and the second camera is opened.
Optionally, in this embodiment of the present invention, the processing module 802 is further configured to display a third control element before the receiving module 801 receives the first input, where the third control element may be used to indicate whether the first camera is in a locked state; wherein, the first camera maintaining the extended state may include: in a case where the third control indicates that the first camera is in the locked state, the first camera remains in the extended state.
The terminal device 800 provided in the embodiment of the present invention can implement each process implemented by the terminal device shown in the foregoing method embodiment, and is not described here again to avoid repetition.
The embodiment of the invention provides terminal equipment which can comprise a first camera and a second camera, wherein the first camera is a telescopic camera. The terminal equipment can receive a first input of a user under the condition that the first camera is opened and is in an extending state; and in response to the first input, closing the first camera and opening the second camera; wherein the first camera remains in the extended state after responding to the first input. According to the scheme, under the condition that the first camera is opened and is in the extending state, a user can trigger the terminal equipment to be switched from the first camera to the second camera through the first input (namely, the first camera is closed, and the second camera is opened), and the first camera still keeps the extending state after switching, so that when the user needs to be switched back to the first camera, the terminal equipment can directly close the second camera and open the first camera, namely, in the camera switching process, the terminal equipment does not need to control the first camera to stretch. So, at the in-process that first camera and second camera switch in turn, terminal equipment need not to control first camera many times again flexible to reduce the mechanical loss of first camera, improved the life of first camera.
Fig. 9 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention. As shown in fig. 9, the terminal device 100 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 9 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, a pedometer, and the like.
The user input unit 107 is configured to receive a first input of a user when the first camera is turned on and is in an extended state; a processor 110 for turning off the first camera and turning on the second camera in response to a first input received by the user input unit 107; wherein the first camera remains in the extended state after the processor 110 responds to the first input received by the user input unit 107.
The embodiment of the invention provides terminal equipment which can comprise a first camera and a second camera, wherein the first camera is a telescopic camera. The terminal equipment can receive a first input of a user under the condition that the first camera is opened and is in an extending state; and in response to the first input, closing the first camera and opening the second camera; wherein the first camera remains in the extended state after responding to the first input. According to the scheme, under the condition that the first camera is opened and is in the extending state, a user can trigger the terminal equipment to be switched from the first camera to the second camera through the first input (namely, the first camera is closed, and the second camera is opened), and the first camera still keeps the extending state after switching, so that when the user needs to be switched back to the first camera, the terminal equipment can directly close the second camera and open the first camera, namely, in the camera switching process, the terminal equipment does not need to control the first camera to stretch. So, at the in-process that first camera and second camera switch in turn, terminal equipment need not to control first camera many times again flexible to reduce the mechanical loss of first camera, improved the life of first camera.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 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 101 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The terminal device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the terminal device 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 9, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 100 or may be used to transmit data between the terminal apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal device. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal device 100 may further include a power supply 111 (such as a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 100 includes some functional modules that are not shown, and are not described in detail here.
Optionally, an embodiment of the present invention further provides a terminal device, which includes the processor 110 shown in fig. 9, the memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, where the computer program, when executed by the processor 110, implements the processes of the foregoing method embodiment, and can achieve the same technical effect, and details are not described here to avoid repetition.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the foregoing method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may include a read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (14)

1. The camera switching method is applied to terminal equipment, the terminal equipment comprises a first camera and a second camera, the first camera is a telescopic camera, and the method comprises the following steps:
receiving a first input of a user under the condition that the first camera is opened and is in an extending state;
in response to the first input, turning off the first camera and turning on the second camera;
wherein the first camera remains in an extended state after responding to the first input.
2. The method of claim 1, wherein the first input is input by a user to a first control, and the first control is a control in a camera preview interface displayed by the terminal device;
alternatively, the first and second electrodes may be,
the first input is input of a user executing a preset gesture.
3. The method of claim 2, wherein the first input is a user input to the first control;
after the first camera is turned off and the second camera is turned on, the method further comprises:
canceling the display of the first control in the camera preview interface.
4. The method of claim 2, wherein the first input is a user input to the first control;
after the first camera is turned off and the second camera is turned on, the method further comprises:
receiving a second input of the user to the second control;
and responding to the second input, and controlling the first camera to retract into the terminal equipment.
5. The method according to any one of claims 1 to 4, characterized in that a camera application in the terminal device runs in the foreground of the terminal device;
after the first camera is turned off and the second camera is turned on, the method further comprises:
and controlling the first camera to be in a retraction state under the condition that the camera application is detected to be closed or switched to the background running of the terminal equipment.
6. The method of claim 1, wherein prior to receiving the first input from the user, the method further comprises:
displaying a third control for indicating whether the first camera is in a locked state;
wherein the first camera maintaining the extended state comprises: in a case where the third control indicates that the first camera is in a locked state, the first camera remains in an extended state.
7. The terminal equipment is characterized by comprising a first camera, a second camera, a receiving module and a processing module, wherein the first camera is a telescopic camera;
the receiving module is used for receiving a first input of a user under the condition that the first camera is opened and is in an extending state;
the processing module is used for responding to the first input received by the receiving module, closing the first camera and opening the second camera;
wherein the first camera remains in an extended state after the processing module responds to the first input.
8. The terminal device of claim 7, wherein the first input is input by a user to a first control, and the first control is a control in a camera preview interface displayed by the terminal device;
alternatively, the first and second electrodes may be,
the first input is input of a user executing a preset gesture.
9. The terminal device of claim 8, wherein the first input is a user input to the first control;
the processing module is further configured to cancel the display of the first control in the camera preview interface after the first camera is closed and the second camera is opened.
10. The terminal device of claim 8, wherein the first input is a user input to the first control;
the receiving module is further configured to receive a second input of the second control from the user after the processing module closes the first camera and opens the second camera;
the processing module is further configured to control the first camera to retract into the terminal device in response to the second input received by the receiving module.
11. The terminal device according to any one of claims 7 to 10, wherein a camera application in the terminal device runs in a foreground of the terminal device;
the processing module is further configured to control the first camera to retract into the terminal device when detecting that the camera application is closed or switched to the background operation of the terminal device after the first camera is closed and the second camera is opened.
12. The terminal device of claim 8, wherein the processing module is further configured to display a third control indicating whether the first camera is in a locked state before the receiving module receives the first input;
wherein the first camera maintaining the extended state comprises: in a case where the third control indicates that the first camera is in a locked state, the first camera remains in an extended state.
13. A terminal device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the camera switching method according to any one of claims 1 to 6.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the camera switching method according to any one of claims 1 to 6.
CN201910563563.4A 2019-06-26 2019-06-26 Camera switching method and terminal equipment Active CN110445979B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910563563.4A CN110445979B (en) 2019-06-26 2019-06-26 Camera switching method and terminal equipment
PCT/CN2020/081255 WO2020258953A1 (en) 2019-06-26 2020-03-25 Camera switching method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910563563.4A CN110445979B (en) 2019-06-26 2019-06-26 Camera switching method and terminal equipment

Publications (2)

Publication Number Publication Date
CN110445979A CN110445979A (en) 2019-11-12
CN110445979B true CN110445979B (en) 2021-03-23

Family

ID=68429035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910563563.4A Active CN110445979B (en) 2019-06-26 2019-06-26 Camera switching method and terminal equipment

Country Status (2)

Country Link
CN (1) CN110445979B (en)
WO (1) WO2020258953A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110445979B (en) * 2019-06-26 2021-03-23 维沃移动通信有限公司 Camera switching method and terminal equipment
CN113301404A (en) * 2020-02-24 2021-08-24 聚好看科技股份有限公司 Display apparatus and control method
CN115484391B (en) * 2021-06-16 2023-12-12 荣耀终端有限公司 Shooting method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108919883A (en) * 2018-05-31 2018-11-30 维沃移动通信有限公司 A kind of camera head protecting method and mobile terminal
CN108965691A (en) * 2018-06-12 2018-12-07 Oppo广东移动通信有限公司 Camera control method, device, mobile terminal and storage medium
CN109005262A (en) * 2018-08-30 2018-12-14 维沃移动通信有限公司 A kind of camera control method and terminal

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007201671A (en) * 2006-01-25 2007-08-09 Pentax Corp Digital single-lens reflex camera
CN109257462A (en) * 2014-07-23 2019-01-22 华为技术有限公司 A kind of terminal device
CN105677088A (en) * 2015-12-31 2016-06-15 联想(北京)有限公司 Control method and electronic device
KR102659803B1 (en) * 2016-04-14 2024-04-23 삼성전자주식회사 Photographing method and electronic device supporting the same
CN107329650A (en) * 2017-06-21 2017-11-07 珠海市魅族科技有限公司 Exchange method, interactive device, terminal device and computer-readable recording medium
CN207926666U (en) * 2018-02-09 2018-09-28 广东欧珀移动通信有限公司 Mobile terminal
CN208433993U (en) * 2018-03-09 2019-01-25 Oppo广东移动通信有限公司 Electronic equipment
CN109040351B (en) * 2018-06-12 2020-07-24 Oppo广东移动通信有限公司 Camera control method and device, mobile terminal and storage medium
CN109167894B (en) * 2018-06-15 2019-12-31 Oppo广东移动通信有限公司 Camera control method and device, mobile terminal and storage medium
CN109359460B (en) * 2018-11-20 2021-01-08 维沃移动通信有限公司 Face recognition method and terminal equipment
CN109862240B (en) * 2018-12-25 2021-05-07 维沃移动通信(杭州)有限公司 Camera structure and terminal
CN109819117A (en) * 2019-03-27 2019-05-28 维沃移动通信有限公司 A kind of based reminding method and mobile terminal
CN110445979B (en) * 2019-06-26 2021-03-23 维沃移动通信有限公司 Camera switching method and terminal equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108919883A (en) * 2018-05-31 2018-11-30 维沃移动通信有限公司 A kind of camera head protecting method and mobile terminal
CN108965691A (en) * 2018-06-12 2018-12-07 Oppo广东移动通信有限公司 Camera control method, device, mobile terminal and storage medium
CN109005262A (en) * 2018-08-30 2018-12-14 维沃移动通信有限公司 A kind of camera control method and terminal

Also Published As

Publication number Publication date
CN110445979A (en) 2019-11-12
WO2020258953A1 (en) 2020-12-30

Similar Documents

Publication Publication Date Title
CN110851051B (en) Object sharing method and electronic equipment
CN110489029B (en) Icon display method and terminal equipment
CN110008011B (en) Task switching method and terminal equipment
CN111459367B (en) Display method and electronic equipment
CN110928461A (en) Icon moving method and electronic equipment
CN111142991A (en) Application function page display method and electronic equipment
CN110855830A (en) Information processing method and electronic equipment
CN111142723B (en) Icon moving method and electronic equipment
CN110764666B (en) Display control method and electronic equipment
CN110445979B (en) Camera switching method and terminal equipment
CN109976611B (en) Terminal device control method and terminal device
CN109408072B (en) Application program deleting method and terminal equipment
CN111050109B (en) Electronic equipment control method and electronic equipment
CN110908759A (en) Display method and electronic equipment
CN110647277A (en) Control method and terminal equipment
CN111190517B (en) Split screen display method and electronic equipment
CN111352547A (en) Display method and electronic equipment
CN110868546B (en) Shooting method and electronic equipment
CN110908750B (en) Screen capturing method and electronic equipment
CN109189514B (en) Terminal device control method and terminal device
CN111246105B (en) Photographing method, electronic device, and computer-readable storage medium
CN110647506B (en) Picture deleting method and terminal equipment
CN111124225B (en) Display control method and electronic equipment
CN111163347B (en) Bullet screen information processing method and electronic equipment
CN111142731B (en) Display method and electronic equipment

Legal Events

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