CN117376475A - Shooting switching method and related equipment - Google Patents

Shooting switching method and related equipment Download PDF

Info

Publication number
CN117376475A
CN117376475A CN202311204376.XA CN202311204376A CN117376475A CN 117376475 A CN117376475 A CN 117376475A CN 202311204376 A CN202311204376 A CN 202311204376A CN 117376475 A CN117376475 A CN 117376475A
Authority
CN
China
Prior art keywords
shooting
switching
screen
mode
camera
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.)
Pending
Application number
CN202311204376.XA
Other languages
Chinese (zh)
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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311204376.XA priority Critical patent/CN117376475A/en
Publication of CN117376475A publication Critical patent/CN117376475A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/72466User interfaces specially adapted for cordless or mobile telephones with selection means, e.g. keys, having functions defined by the mode or the status of the device
    • 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/0206Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings
    • H04M1/0208Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings characterized by the relative motions of the body parts
    • H04M1/0214Foldable telephones, i.e. with body parts pivoting to an open position around an axis parallel to the plane they define in closed position
    • 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/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/0266Details of the structure or mounting of specific components for a display module assembly

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a shooting switching method and related equipment, wherein the method comprises the following steps: under the condition that the first shooting mode is adopted, responding to clicking operation of a switching button displayed on a main screen or a back screen by a user, and switching the shooting mode; the clicking operation is used for switching the shooting form into a second shooting form; the shooting mode comprises working of a main screen and a front camera, working of a main screen and a rear camera and working of a back screen and a rear camera; after the click operation is detected, before switching to the second photographing mode, in the case where it is detected that the user performs the first flip operation for switching the photographing mode on the electronic apparatus, the first flip operation is not responded. According to the method and the device, shooting switching conflict caused by the mode of triggering the shooting modes in the same time period can be avoided.

Description

Shooting switching method and related equipment
Technical Field
The present disclosure relates to the field of computers, and in particular, to a shooting switching method and related devices.
Background
Generally, a mobile phone includes two cameras, a front camera and a rear camera, so that a general mobile phone includes two photographing modes: front camera shooting and rear camera shooting. The folding mobile phone is provided with two screens, namely a main screen and a back screen, and the main screen and the back screen can work independently, so that the shooting modes of the folding mobile phone comprise the following three modes: the main screen and the front camera work, the main screen and the rear camera work, and the back screen and the rear camera work.
The triggering of the folding mobile phone to switch the shooting mode can be triggered by clicking a switching button by a user, or can be triggered by turning the folding mobile phone by the user. When the shooting mode is switched, the two triggering modes are in conflict. For example, in the case where the main screen and the front camera work, the user clicks the switch button, and the fold-out mobile phone switches the main screen and the front camera work to the back screen and the rear camera work. If the user turns over the folding mobile phone rapidly when the switching is not completed, the switching of the shooting mode is triggered again. Because the process of clicking the button to switch is not completed yet, the process of turning over the switch is triggered, and the state of the outward folding mobile phone is disordered.
Disclosure of Invention
The application provides a shooting switching method and related equipment, which can avoid shooting switching conflict caused by a plurality of modes for triggering and switching shooting modes in the same time period.
In a first aspect, some embodiments of the present application provide a shooting switching method. The method is applied to electronic equipment, the electronic equipment comprises a display screen, the display screen comprises a main screen and a back screen, and the main screen and the back screen are two display areas of the same display screen; when the electronic equipment is folded, the main screen and the back screen face opposite directions; when the electronic equipment is unfolded, the main screen and the back screen face the same direction, and the display area is the whole display screen; the electronic equipment further comprises a front camera and a rear camera, the front camera and the rear camera face opposite directions, the front camera and the main screen face the same direction, and the rear camera and the back screen face the same direction; the method comprises the following steps: under the condition that the first shooting mode is adopted, responding to clicking operation of a switching button displayed on a main screen or a back screen by a user, and switching the shooting mode; the clicking operation is used for switching the shooting form into a second shooting form; the shooting mode comprises working of a main screen and a front camera, working of a main screen and a rear camera and working of a back screen and a rear camera; after the click operation is detected, before switching to the second photographing mode, in the case where it is detected that the user performs the first flip operation for switching the photographing mode on the electronic apparatus, the first flip operation is not responded.
By the method, after the user clicks the switching button, the shooting mode of the electronic equipment is switched, and when the electronic equipment responds to the clicking operation, namely the shooting mode of the electronic equipment is not successfully switched, if the user performs the turning operation on the electronic equipment, the turning operation is not responded. Therefore, shooting switching conflict caused by a plurality of modes for triggering and switching shooting modes in the same time period is avoided.
In another implementation, the first photographing mode is that the back screen and the rear camera work, and the method further includes: after the click operation is detected, after switching to the second photographing mode, in a case where a second flip operation for switching the photographing mode is detected for the electronic device by the user, the second flip operation is not responsive to the second flip operation, which is the first flip operation detected for the electronic device after the click operation is detected.
Through the mode, when the back screen and the rear camera work are switched to the front screen and the front camera work, or the front screen and the front camera work are switched, the first overturning operation after the clicking operation is not responded, so that when the back screen is switched to the front screen work, shooting switching conflict can not be caused after a user clicks a button.
In another implementation manner, in the case of adopting the first shooting form, responding to the click operation of the switching button displayed by the main screen or the back screen by the user, switching the shooting form, including: in the case of adopting the first shooting form, responding to clicking operation of a switching button displayed on the back screen by a user, switching the shooting form, and setting the value of the first parameter to be a first value; after detecting the click operation, before switching to the second photographing form, in a case where it is detected that the user performs a first flip operation for switching the photographing form on the electronic apparatus, not responding to the first flip operation, including: when a second turning operation of the electronic equipment by a user for switching shooting modes is detected, and the value of the first parameter is a first value, the second turning operation is not responded; after detecting that the second flipping operation is complete, the first parameter is set to a second value.
In the above manner, after the click operation is detected, the first parameter control is performed, the second flipping operation is not responded in a time interval before the completion of the second flipping operation, and the second flipping operation is responded after the completion of the second flipping operation.
In another implementation manner, in the case of adopting the first shooting form, responding to the click operation of the switching button displayed by the main screen or the back screen by the user, switching the shooting form, including: in the case of adopting the first shooting form, responding to clicking operation of a switching button displayed on a main screen by a user, switching the shooting form, and setting the value of the first parameter to be a first value; after detecting the click operation, before switching to the second photographing form, in a case where it is detected that the user performs a first flip operation for switching the photographing form on the electronic apparatus, not responding to the first flip operation, including: if the first turning operation of the user on the electronic equipment for switching the shooting mode is detected, and the value of the first parameter is a first value, the first turning operation is not responded; after the preview screen display of the back screen is detected, the first parameter value is set to a second value.
In the above manner, after the click operation is detected, the first parameter control is performed, and the first scroll operation is not responded to in the time period before the second photographing mode is switched, and the scroll operation is responded to after the second photographing mode is switched (after the preview screen of the back screen is displayed).
In another implementation manner, in a first preset time period before switching to the second shooting mode, the shooting mode adopted by the electronic device in the first shooting mode is the same as the shooting mode adopted by the electronic device in the second shooting mode in a preset second time period after switching to the second shooting mode; the shooting mode includes any one of the following modes: a portrait mode, a night scene mode, a photographing mode and a video recording mode.
Through the mode, the shooting modes of the back screen and the rear camera during working are automatically synchronized to the working of the switched main screen and the front camera or the working of the main screen and the rear camera, so that a user does not need to select the shooting modes for multiple times.
In another implementation manner, in the case of adopting the first shooting form, responding to the click operation of the switching button displayed by the main screen or the back screen by the user, switching the shooting form, including: under the condition that the first shooting mode is adopted and the shooting mode is the portrait mode, responding to clicking operation of a switching button displayed on the back screen by a user, switching the first shooting mode into a second shooting mode, wherein the second shooting mode is a main screen and a front camera.
In another implementation manner, the first shooting mode is that the main screen and the front camera work or the main screen and the rear camera work, the second shooting mode is that the back screen and the rear camera work, and in a preset second time period after the second shooting mode is switched to, the shooting mode adopted by the electronic equipment in the second shooting mode is a preset shooting mode.
In another implementation, the method further comprises: after the click operation is detected, before switching to the second shooting form, after exiting the camera application, and under the condition that the camera application is re-entered within a preset third time period, setting the shooting form adopted by the electronic equipment to be the first shooting form.
In a second aspect, the present application provides a shooting switching apparatus, which may be an electronic device, or may be an apparatus in an electronic device, or may be an apparatus that is capable of being used in a matching manner with an electronic device; the shooting switching apparatus may also be a chip system, and the shooting switching apparatus may perform the method performed by the electronic device in the first aspect. The function of the shooting switching device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more units corresponding to the functions described above. The unit may be software and/or hardware. The operations and beneficial effects performed by the shooting switching device may be referred to the methods and beneficial effects described in the first aspect, and the repetition is not repeated.
In a third aspect, the present application provides an electronic device comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, the one or more memories being configured to store computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform the shooting switching method in any of the possible implementations of the first aspect described above.
In a fourth aspect, the present application provides a shooting switching apparatus comprising a function or unit for performing the method of any one of the first aspects.
In a fifth aspect, the present application provides a computer readable storage medium, in which a computer program is stored, the computer program comprising program instructions, which when run on an electronic device, cause the electronic device to perform the shooting switching method in any one of the possible implementation manners of the first aspect.
In a sixth aspect, the present application provides a chip comprising a processor and an interface, the processor and the interface being coupled; the interface is for receiving or outputting a signal, and the processor is for executing code instructions to perform the shooting switching method in any of the possible implementation manners of the first aspect.
In a seventh aspect, the present application provides a computer program product, which when run on a computer causes the computer to perform the shooting switching method in any one of the possible implementation manners of the first aspect.
Drawings
Fig. 1A is a schematic diagram of an unfolded state and a folded state of an out-folded folding screen mobile phone according to an embodiment of the present application;
fig. 1B is a schematic diagram of a front camera and a rear camera of an out-folded folding screen mobile phone according to an embodiment of the present application;
FIG. 1C is a schematic illustration of a post self-timer provided in an embodiment of the present application;
fig. 1D is a schematic view of a shooting form provided in an embodiment of the present application;
fig. 2 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
fig. 3 is a schematic software structure of an electronic device according to an embodiment of the present application;
fig. 4 is a flowchart of a shooting switching method based on a software structure according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a flipping operation provided by an embodiment of the present application;
fig. 6 is a flowchart of a shooting switching method provided in an embodiment of the present application;
fig. 7A is a schematic diagram of a switching performed by clicking a switching button according to an embodiment of the present application;
FIG. 7B is a schematic diagram of a log-out and re-entry camera application provided by an embodiment of the present application;
fig. 8 is a schematic structural diagram of a shooting switching apparatus provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of a chip according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Wherein, in the description of the embodiments of the present application, "/" means or is meant unless otherwise indicated, for example, a/B may represent a or B; the text "and/or" is merely an association relation describing the associated object, and indicates that three relations may exist, for example, a and/or B may indicate: the three cases where a exists alone, a and B exist together, and B exists alone, and in addition, in the description of the embodiments of the present application, "plural" means two or more than two.
It should be understood that the terms first, second, and the like in the description and in the claims and drawings of the present application are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly understand that the embodiments described herein may be combined with other embodiments.
The term "User Interface (UI)" in the following embodiments of the present application is a media interface for interaction and information exchange between an application program or an operating system and a user, which enables conversion between an internal form of information and an acceptable form of the user. The user interface is a source code written in a specific computer language such as java, extensible markup language (extensible markup language, XML) and the like, and the interface source code is analyzed and rendered on the terminal equipment to finally be presented as content which can be identified by a user. A commonly used presentation form of the user interface is a graphical user interface (graphic user interface, GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It may be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed in the display screen of the terminal device.
In order to facilitate understanding of the solutions provided by the embodiments of the present application, the following description describes related concepts related to the embodiments of the present application:
1. outward folding screen
The outward folding screen is a display screen which can be folded outwards, and the electronic equipment with the outward folding screen comprises an outward folding screen mobile phone, an outward folding screen tablet personal computer and the like. Taking an out-folded folding screen phone as an example, as shown in fig. 1A, the out-folded folding screen phone may include an unfolded state and a folded state. When the folding screen mobile phone is in an unfolding state, the whole screen faces to a user, namely the main screen and the back screen face to the same direction, and the display area which can be seen by the user is the whole screen, so that a better visual effect can be obtained. When the mobile phone with the folding screen is in a folding state, the main screen and the back screen face opposite directions, and on the folding screen, the main screen and the back screen are different display areas of the same screen. The screen orientation refers to a direction in which the front surface of the display screen faces.
2. Rear-mounted self-timer
An application program of a camera can be installed on the electronic equipment with the folding screen, and the camera can support the post self-timer. Taking an out-folded folding screen mobile phone as an example, the main screen can display an image captured by a front camera and an image captured by a rear camera, as shown in fig. 1B, the front camera is located in a display area of the main screen, and the rear camera is located in a back area of the main screen (opposite to the main screen and same to the back screen); the main screen and the back screen can display a camera interface.
In addition, as shown in fig. 1C, when the folding-out folding-screen mobile phone is in a folded state, the user can orient the back screen to himself and shoot by using the rear camera, and meanwhile, the back screen can display a shooting picture acquired by the rear camera, so that the mode is called a rear self-timer state. When a user opens the camera, the camera is shot by adopting a rear camera by default, and if the camera interface is displayed on the back screen at the moment, the camera is considered to directly enter a rear self-shooting state.
3. Shooting form
The shooting forms mainly comprise the following three shooting forms: the main screen and the rear camera work, the main screen and the front camera work, and the back screen and the rear camera work. Taking the operation of the main screen and the rear camera as an example, the rear camera works in a shooting mode of the operation of the main screen and the rear camera, and the main screen is lightened and displays the image captured by the rear camera. For example, as shown in fig. 1D (a), the rear camera captures an image of the puppy, and the image of the puppy is displayed to the user on the main screen. Taking the operation of the main screen and the front camera as an example, the front camera operates in a shooting mode of the operation of the main screen and the front camera, and the main screen is lightened and displays the image captured by the front camera. For example, as shown in fig. 1D (b), the front camera captures an image of a face, and the image of the face is displayed to the user on the main screen. Taking the operation of the back screen and the rear camera as an example, the rear camera works in a shooting mode of the operation of the back screen and the rear camera, and the back screen is lightened and displays the image captured by the rear camera. For example, as shown in fig. 1D (c), the rear camera captures an image of a face, and the image of the face is displayed to the user on the back screen.
The user can switch the shooting mode by clicking a switching button on the main screen. For example, when the shooting mode is that the main screen and the rear camera work, a switching button is clicked to switch the shooting mode into that the rear screen and the rear camera work; or when the shooting mode is that the main screen and the rear camera work, the switching button is clicked, and the shooting mode is switched to the back screen and the rear camera work.
The user can switch the shooting mode by clicking a switching button on the back screen. For example, when the shooting mode is that the back screen and the rear camera work, a switching button is clicked to switch the shooting mode to that the main screen and the rear camera work; or when the shooting mode is that the back screen and the rear camera work, the switching button is clicked, and the shooting mode is switched to the main screen and the front camera work.
In addition, besides the mode of switching the shooting mode by clicking the switching button, the shooting mode can be switched by turning over the folding screen mobile phone. For example, when the shooting mode is that the back screen and the rear camera work, the mobile phone with the folding screen folded outwards is turned over, and the shooting mode is switched to that the main screen and the rear camera work. The switching of the other shooting forms is the same, and the application is not repeated here.
Because of the two modes of switching shooting modes (clicking button switching and turning over the folding screen mobile phone switching), if a user turns over the folding screen mobile phone immediately after clicking the button switching, the process of clicking the button switching is not completed yet, and the turning over switching process is triggered again, so that the folding screen mobile phone is disordered.
In order to avoid shooting switching conflict caused by a plurality of modes of triggering and switching shooting modes in the same time period, the application provides a shooting switching method and related equipment. In a specific implementation, the above-mentioned shooting switching method may be performed by the electronic apparatus 100. The electronic device 100 may be an electronic device with an out-folded folding screen, such as an out-folded folding screen mobile phone, an out-folded folding screen tablet computer, an out-folded folding screen notebook computer, or the like, but is not limited thereto. The term "folding-out screen" as used herein means a display screen that can be folded out and includes a main screen and a back screen.
The hardware configuration of the electronic device 100 is described below. Referring to fig. 2, fig. 2 is a schematic hardware structure of an electronic device 100 according to an embodiment of the disclosure.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system. The processor 110 invokes instructions or data stored in the memory to cause the electronic device 100 to execute a shooting switching method executed by the electronic device in the following method embodiment.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, etc. in other embodiments, the power management module 141 may be disposed in the processor 110.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wi-Fi network), bluetooth (BT), BLE broadcast, global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., applied on the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1. The display 194 may be an out-folded display, i.e., a display that is folded out.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like. The ISP is used to process data fed back by the camera 193. The camera 193 is used to capture still images or video. The camera 193 may include a front camera located in a display area of the screen and a rear camera located in a rear area of the screen. The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function) required for at least one function of the operating system, and the like. The storage data area may store data created during use of the electronic device 100 (e.g., audio data), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a nonvolatile memory such as a flash memory device or the like.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. The earphone interface 170D is used to connect a wired earphone. The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a hall sensor. The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). A distance sensor 180F for measuring a distance. The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector. The ambient light sensor 180L is used to sense ambient light level. The fingerprint sensor 180H is used to collect a fingerprint. The temperature sensor 180J is for detecting temperature. The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The bone conduction sensor 180M may acquire a vibration signal. The keys 190 include a power-on key, a volume key, etc. The motor 191 may generate a vibration cue. The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc. The SIM card interface 195 is used to connect a SIM card.
In addition, an operating system is run on the components. Such as iOS, android, etc. The operating system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In this embodiment, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated. It should be noted that, although the embodiment of the present application is described by taking an Android system as an example, the basic principle is also applicable to electronic devices of other operating systems.
Fig. 3 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present application. The software structure adopts a layered architecture, the layered architecture divides the software into a plurality of layers, and each layer has clear roles and division work. The layers communicate with each other through a software interface. In this embodiment of the present application, an operating system (for example, an Android system runs on an AP) may be divided into three layers, namely, an application layer (APP), an application framework layer (FWK), and a hardware abstraction layer (hardware abstraction layer, HAL) from top to bottom.
The application layer may include a series of application packages, among other things. As shown in fig. 3, the application package may include an application such as a camera. In the present embodiment, a camera refers to a camera application. Camera applications may include camera interface modules (which may be referred to as camera api2 modules), post self-timer management (which may be referred to as reasamselfiedmanager), post self-timer control (which may be referred to as reasamselfiecontroller), and the like.
The camera api2Module is a Module in the camera application, and is used for managing and controlling the camera application, and providing an interface of the camera application.
The rearcamselfiedmanager is a module in the camera application and is used for managing the rear self-timer state of the camera, wherein the rear self-timer state is a state that a shooting picture acquired by a rear camera is displayed on a back screen. In the embodiment of the application, the rearcamselfiedmanager can be responsible for entering and exiting the post self-timer state, and can register monitoring of a power saving mode with blackscreen service and the like. In embodiments of the present application, post self-timer management (rearcamselfiedmanager) may be initiated in response to an operation in which the camera is started.
The rearcamcselfiecontroller is a module in the camera application for controlling the post self-timer of the camera. In the embodiment of the application, the rearcamcselfiecontroller may be responsible for receiving the click operation and the flip operation. After receiving the click operation or the turning operation, the reassemselfieController can interact with the reassemselfieManager module so that the reassemselfieManager module responds to the click operation or the turning operation, and accordingly executes the operation.
The application framework layer provides application programming interface (application programming interface, API) frameworks for application developers to access core functions and various services and management tools, including interface management, data access, messaging at the application layer, management of application packages, telephony management, location management, etc. The application framework layer includes a number of predefined functions. As shown in fig. 3, the application framework layer may include folding screen management (FoldScreenManager), camera service (camera service), and the like.
Fold Screen Manager for managing the screen display of an electronic device, the screen display may be implemented on a home screen, a back screen, or a full screen display interface according to coordinates formulated by a dual screen (i.e., home screen and back screen) display scheme. For example, the camera display interface can be displayed on the main screen of the folding-screen mobile phone, or the camera display interface can be displayed on the back screen of the folding-screen mobile phone.
The camera service is used for being responsible for starting flow scheduling of camera applications, creation and management of processes, creation and management of windows and the like.
The hardware abstraction layer is an interface layer between the operating system kernel and the hardware circuitry, which aims at abstracting the hardware. It hides the hardware interface details of the specific platform and can provide a virtual hardware platform for the operating system. As shown in fig. 3, the hardware abstraction layer may include a camera provisioning service (camera provider), a camera device session interface (camera device), a camera device interface (camera device), and a camera preview screen interface (preview flow im pi). The camera provider is used for enumerating single equipment and managing the state of the single equipment, and can turn on and off physical camera equipment (such as a rear camera); the camera device session is used for creating a camera device session, storing attributes, configuration information and the like required by the camera device session; the camel device can support fine granularity control and post-processing of captured images at high frame rates; the preview flowrepl is responsible for interacting with the reascamselfiedmanager after the first frame of the preview screen is displayed to inform that the first frame of the preview screen has been displayed.
Based on the software structure, the embodiment of the application provides a flow diagram of a shooting switching method based on the software structure. As shown in fig. 4, the photographing switching method includes the following steps S401 to S414. Wherein:
s401, the post-self-timer control detects that a user clicks a button for entering the post-self timer.
And when entering the post self-timer stage, the user can click a button on the main screen of the electronic equipment for entering the post self-timer. The enter post self-timer button is located at the interface of the camera application. That is, before this step, a step of starting the camera application is further included, and specifically, the user may click on an icon corresponding to the camera application on the main page of the electronic device to start the camera application. When the camera application is entered, the main screen work is defaulted.
S402, the post-automatic shooting control informs the post-automatic shooting management of triggering to enter the post-automatic shooting.
The post-self-timer control may send an instruction to the post-self-timer management to instruct the post-self-timer management to enter the post-self-timer.
S403, the management of the rear self-timer management notification folding screen is switched to the back screen.
And after receiving the notification sent by the post self-timer management, the folding screen management switches the working screen from the main screen to the back screen. That is, when the camera application is started, the main screen works, and after the user clicks a button for entering the rear-mounted self-timer, the back screen works are switched. The back screen displays the picture captured by the camera. After switching to the back screen operation, the main screen of the electronic device is not lightened (stops operating).
As shown in fig. 1D, (b) is a main screen operation, and after the user clicks a button for entering the post self-timer, the operation is switched to fig. 1D, (c) in fig. 1D is a back screen operation.
S404, the post-self-timer management sets the value of the first parameter to a first value.
The first parameter is used for indicating whether the back screen finishes the first frame display of the preview picture. The back screen completes the first frame display of the preview screen, and then completes the switching (has been switched to the back screen). In the process of switching to the back screen, the value of the first parameter is always a first value, and after the switching is completed, the value of the first parameter is a second value. This first parameter may be referred to as isRearSelfieProcessing. The value of the first parameter is a first value, the isrearsselfieprocessing=true, and the value of the first parameter is a second value, the isrearsselfieprocessing=false.
S405, the post self-timer control detects that a user performs a turning operation for entering the post self-timer on the electronic equipment.
The turning operation occurs in the process of switching the post self-timer management to the back screen, that is, when the post self-timer management has not completed the switching, the post self-timer control detects the turning operation. The turning operation can be a transverse turning operation, namely, a longitudinal horizontal line is used as a turning shaft for turning; it is also possible to turn over longitudinally, i.e. with a transverse horizontal line as the turning axis. For example, (a) is a lateral flip as shown in fig. 5 (a), and (b) is a longitudinal flip as shown in fig. 5 (b). Other overturning methods such as oblique overturning and the like can be adopted besides the transverse overturning and the longitudinal overturning. And if the electronic equipment is detected to have the transverse turnover angle larger than the preset value or the longitudinal turnover angle larger than the preset value, the turnover operation is considered to be performed.
The flip operation is performed when the camera application is started, and if the flip operation is performed before the camera application is started, the post-self-timer control does not detect the flip operation. Or after the camera application is opened, when the electronic equipment is turned off or locked, the turning operation is performed, and the rear-mounted self-timer control cannot detect the turning operation.
S406, the post-automatic shooting control informs the post-automatic shooting management to trigger the entering of the post-automatic shooting.
This step can be seen from the description in S402 above, and is different from S402 above: s402 is that after the post-self-timer control detects that a user clicks a button, the post-self-timer management is notified to enter the post-self-timer, and S406 is that after the post-self-timer control detects that the user turns over the electronic device, the post-self-timer management is notified to enter the post-self-timer.
And S407, the post self-timer management does not respond to the flipping operation.
The post self-timer management does not respond to the turning operation because the post self-timer management is still in the process of switching to the back screen when receiving the notice of entering the post self-timer sent by the post self-timer control, that is, the value of the first parameter is still the first value.
Because the process of switching to the back screen triggered by clicking the button is not completed yet, if the switching to the back screen triggered by the turning is performed at this time, the two switching processes conflict, and the electronic equipment is disordered. Therefore, when the process of switching to the back screen triggered by clicking the button is not completed, the switching to the back screen of the flip trigger is not responded to the flip operation, and the chaotic scene of the electronic equipment is avoided.
S408, the camera preview screen interface informs the first frame display of the preview screen after the management of the folding screen and the post-auto shooting switching are completed.
The preview image may be described in the foregoing, and the disclosure is not repeated herein. After the first frame of the preview screen is displayed on the back screen of the electronic device, the camera preview screen interface notifies the folding screen management to notify that the process of switching the folding screen management to the back screen is completed.
And S409, setting the value of the first parameter to a second value by post self-timer management.
The first parameter and the second value may be referred to the description in step S404, which is not described herein.
And after the post-self-timer management receives a notice of the completion of post-self-timer switching sent by the camera preview screen interface, setting the value of the first parameter to a second value. If the value of the first parameter is the second value, if the post self-timer control re-detects the flipping operation, the post self-timer management responds to the flipping operation.
S410, the post-self-timer control detects that the user clicks a button for exiting the post-self-timer.
In the stage of exiting the post-self-timer, the user can click a button of the electronic equipment main screen for exiting the post-self-timer. The button to exit the post self-timer is located at the interface of the camera application.
It should be noted that, after entering the post-self-timer phase, the user may trigger the post-self-timer phase to exit, or default to post-self-timer when the camera is opened, and the user triggers the post-self-timer phase to exit.
S411, the post self-timer control informs the post self-timer management to trigger the exit of the post self-timer.
This step may be referred to the description in S402 above, and will not be described herein.
S412, the post self-timer management informs the folding screen to manage and switch to the main screen.
And after receiving the notification sent by the post self-timer management, the folding screen management switches the working screen from the back screen to the main screen. That is, the camera applies the back screen work, and after the user clicks the button for entering the post self-timer, the operation is switched to the main screen work. The main screen displays the picture captured by the camera.
S413, the post-self-timer control detects that a user performs a turning operation for exiting the post-self-timer on the electronic equipment.
The flipping operation may be described in S405, which is not described herein.
S414, the post self-timer management does not respond to the turning operation.
Due to the flipping operation in step S413, the flipping operation is performed for the first time after the user clicks the button to exit the post-self-timer. After clicking a button for exiting the rear self-timer, the screen of the electronic equipment is switched from the back screen to the main screen, and if the user turns the electronic equipment from the back to the front at this time, the switching flow is started, so that the screen of the electronic equipment is switched from the main screen to the back screen. In order to avoid the occurrence of the above situation, the first time of the flipping operation performed after the user clicks the button to exit the post-self-timer is not responded.
Based on the foregoing, a shooting switching method provided in the embodiment of the present application is further described in detail below. As shown in fig. 6, the photographing switching method includes the following steps S601 and S602. The method execution body shown in fig. 6 may be the above-mentioned electronic device. Alternatively, the method execution body shown in fig. 6 may be a chip in the electronic device, which is not limited in the embodiment of the present application. Fig. 6 illustrates an example of an execution body of the method of the electronic device. The electronic equipment comprises a display screen, wherein the display screen comprises a main screen and a back screen, and the main screen and the back screen are two display areas of the same display screen; when the electronic equipment is folded, the main screen and the back screen face opposite directions; when the electronic equipment is unfolded, the main screen and the back screen face the same direction, and the display area is the whole display screen; the electronic equipment further comprises a front camera and a rear camera, the front camera and the rear camera face opposite directions, the front camera and the main screen face the same direction, and the rear camera and the back screen face the same direction. Wherein:
S601, under the condition that the electronic equipment adopts a first shooting mode, responding to clicking operation of a switching button displayed on a main screen or a back screen by a user, and switching the shooting mode; the clicking operation is used for switching the shooting form into a second shooting form; the shooting mode comprises working of a main screen and a front camera, working of a main screen and a rear camera and working of a back screen and a rear camera.
The shooting form can be referred to the description of the related concepts, and the disclosure is not repeated here. The first photographing form and the second photographing form are different photographing forms, and a screen operated in the first photographing form is different from a screen operated in the second photographing form, that is, if the first photographing form is a main screen operation, the second photographing form is a back screen operation. The camera operating in the first photographing mode and the camera operating in the second photographing mode may be different or the same, which is not limited in this application. For example, the first photographing mode is a main screen and a rear camera are operated, and the second photographing mode is a rear screen and a rear camera are operated.
If the switching button is a button for entering the rear-mounted self-timer, the main screen displays the switching button; otherwise, if the switch button is a button for exiting the rear-mounted self-timer, the back screen displays the switch button. The switch button displayed on the main screen and the switch button displayed on the back screen may be located at the same position, as shown in fig. 7A, the button marked 701 is the switch button 701 displayed on the main screen, the button marked 702 is the switch button 702 displayed on the back screen, and the switch button 701 and the switch button 702 are both located below the screen.
For a specific implementation process, reference may be made to the steps S401 to S404 or S410 to S412 described above, that is, the post-self-timer control detects that the user clicks the button for entering the post-self-timer; the post self-timer control informs the post self-timer management to trigger the post self-timer; the rear self-timer management informs the folding screen of management switching to the back screen; the post self-timer management sets a value of the first parameter to a first value. Or the rear self-timer control detects that the user clicks a button for exiting the rear self-timer; the post self-timer control informs the post self-timer management to trigger the post self-timer; the post self-timer management informs the folding screen management to switch to the main screen.
In a possible embodiment, the first shooting mode is that the main screen and the front camera work or the main screen and the rear camera work, the second shooting mode is that the back screen and the rear camera work, and the shooting mode adopted by the electronic equipment in the second shooting mode is a preset shooting mode within a preset second time period after the second shooting mode is switched to.
The shooting mode may be a portrait mode, a night view mode, a large aperture mode, a shooting mode, a video mode, a professional mode, a panoramic mode, etc., and of course, more shooting modes may be included, which is not limited herein. The shooting modes supported by different shooting forms are different, the shooting mode supported by the condition that the main screen and the rear camera work is the most, the shooting mode supported by the condition that the shooting form is that the back screen and the rear camera work is less, and the shooting mode supported by the condition that the main screen and the rear camera work is less than the shooting mode supported by the condition that the main screen and the front camera work. In the embodiment of the present application, the shooting modes supported by the working conditions of the back screen and the rear camera are as follows: a portrait mode, a night scene mode, a photographing mode and a video recording mode. The other two shooting modes (main screen and rear camera work and main screen and front camera work) are not limited.
The preset second period of time is a period of time after switching to the second photographing mode, for example, 1 second after switching to the second photographing mode. After switching to the second photographing mode for 1 second, the user can manually switch the photographing mode.
Because the shooting modes supported by the back screen and the rear camera work are smaller than the shooting modes supported by the main screen and the rear camera and the shooting modes supported by the main screen and the front camera, in order to ensure that the situation that the electronic equipment cannot find the supported shooting modes when the main screen and the rear camera work or the main screen and the front camera work are switched to the back screen and the rear camera work (for example, the shooting modes used by the main screen and the rear camera are panoramic modes and the shooting modes used by the switched back screen and rear camera are not supported by the modes), the electronic equipment is switched to a shooting mode preset by the shooting mode when the back screen and the rear camera work, and the preset shooting mode is any one of a portrait mode, a night view mode, a shooting mode and a video recording mode.
S602, after detecting the clicking operation, the electronic device does not respond to the first flipping operation when detecting that the user performs the first flipping operation for switching the shooting mode on the electronic device before switching to the second shooting mode.
When the process of switching to the second photographing mode is not completed, if the user performs a first flipping operation on the electronic apparatus, the first flipping operation is not responsive to the first flipping operation, which is a flipping operation performed before switching to the second photographing mode after detecting the click operation.
Optionally, after detecting the clicking operation, the electronic device responds to a third flipping operation for switching the shooting mode in a case where the user is detected to perform the third flipping operation on the electronic device after switching to the second shooting mode.
That is, after the switching to the second photographing mode is completed, if the user performs a flipping operation on the electronic apparatus, the photographing mode may be switched.
In a possible embodiment, after detecting the clicking operation, the electronic device sets the shooting mode adopted by the electronic device to be the first shooting mode when the electronic device reenters the camera application within a preset third time period after exiting the camera application before switching to the second shooting mode.
The camera application may be referred to in the description of the camera application, which is not limited herein. It should be noted that the camera application may be a camera application of the electronic device, or may be another camera application of a third party for shooting, which is not limited in this application. The preset third period of time may be the same period of time as the second period of time described above, for example, the second period of time is 1 second, and the third period of time is also 1 second. The third time period may also be different from the second time period, which is not limited in this application.
For example, as shown in fig. 7B, after detecting the click operation, when the electronic device has not completed switching to the second photographing form, the user slides the screen from bottom to top, resulting in the electronic device exiting the camera application and returning to the main menu interface. If the user clicks a camera application button in the main menu within a third time period, returning to the camera application, and the shooting mode adopted by the electronic device is a first shooting mode.
Alternatively, in addition to the above-mentioned exit from the camera application by sliding the screen from bottom to top, the user may click on the lock button to cause the electronic device to exit from the camera application. If the user re-unlocks the screen and re-enters the camera application within the third time period, the photographing form is the first photographing form. Or may exit the camera application in other manners, and the manner of exiting the camera application is not limited.
For a specific implementation process, reference may be made to steps S405 to S407 or steps S413 to S414. Namely, the rear-mounted self-timer control detects that a user performs a turning operation for entering the rear-mounted self-timer on the electronic equipment; the post self-timer control informs the post self-timer management to trigger the post self-timer; the post self-timer management does not respond to the flipping operation. Or the rear self-timer control detects that a user performs a turnover operation for exiting the rear self-timer on the electronic equipment; the self-timer management does not respond to the flipping operation.
The two scenes exist in the mode of switching shooting, wherein one scene is that the main screen and the front camera work or the main screen and the rear camera work are switched into the back screen and the rear camera work; the other is to switch from the back screen and the rear camera to the main screen and the front camera or the main screen and the rear camera. In order to better understand the shooting switching method provided by the application, two scenes are respectively described below.
Scene one, from the work of main screen and leading camera or main screen and rear camera work switch back of body screen and rear camera work.
In this scenario, the first photographing mode is the operation of the main screen and the front camera or the operation of the main screen and the rear camera, and the second photographing mode is the operation of the rear camera.
In one possible embodiment, in the case of adopting the first shooting form, the electronic device responds to clicking operation of a switching button displayed on the main screen by a user, switches the shooting form, and sets the value of the first parameter to be a first value; after detecting the click operation, before switching to the second photographing form, in a case where it is detected that the user performs a first flip operation for switching the photographing form on the electronic apparatus, not responding to the first flip operation, including: if the first turning operation of the user on the electronic equipment for switching the shooting mode is detected, and the value of the first parameter is a first value, the first turning operation is not responded; after the preview screen display of the back screen is detected, the first parameter value is set to a second value.
The first flipping operation, the first parameter, and the preview image may be referred to the above description, which is not repeated herein.
When detecting a first flipping operation of the electronic device by the user for switching the shooting mode, and the value of the first parameter is the first value, the electronic device does not respond to the first flipping operation and continues the process of switching the first shooting mode to the second shooting mode (the switching process triggered by the clicking operation).
In one possible embodiment, the electronic device responds to the first flipping operation if the first flipping operation of the electronic device by the user for switching the photographing mode is detected and the value of the first parameter is the second value.
The first parameter control is used to respond to the first flipping operation in a time period before switching to the second photographing mode after detecting the clicking operation, and to respond to the flipping operation after switching to the second photographing mode (after displaying the preview screen of the back screen).
And switching the work of the back screen and the rear camera into the work of the main screen and the front camera or the work of the main screen and the rear camera.
In one possible embodiment, after the click operation is detected, after switching to the second photographing form, in a case where a second flip operation for switching the photographing form is detected for the electronic device by the user, the second flip operation is not responsive to the second flip operation, which is the first flip operation for the electronic device detected after the click operation is detected.
That is, after the click operation is detected, the first flip operation is not responded to after the switch to the second photographing form, and in the second scene, the flip operation is not responded to as long as the flip operation is the first flip operation after the click operation, regardless of whether the switch to the second photographing form has been made after the click operation is detected, as compared to the first scene. If, after the click operation is detected, after switching to the second photographing form, a first flip operation after the divide-click operation performed on the electronic apparatus by the user is detected, then a response is made.
The second flipping operation may be described above, and will not be described herein.
In one possible embodiment, in the case of adopting the first photographing form, in response to a click operation of a switching button displayed on the back screen by a user, switching the photographing form, and setting a value of the first parameter to a first value; after detecting the click operation, before switching to the second photographing form, in a case where it is detected that the user performs a first flip operation for switching the photographing form on the electronic apparatus, not responding to the first flip operation, including: when a second turning operation of the electronic equipment by a user for switching shooting modes is detected, and the value of the first parameter is a first value, the second turning operation is not responded; after detecting that the second flipping operation is complete, the first parameter is set to a second value.
Wherein the second flipping operation may occur after the detection of the clicking operation before switching to the second photographing form, or after the detection of the clicking operation after switching to the second photographing form. The first value is used to indicate whether the current detected flip operation is the first flip operation after the click operation. When the first parameter is a first value, the current turning operation is the first turning operation after the clicking operation; and when the first parameter is a second value, the current turning operation is not the first turning operation after the clicking operation.
Alternatively, the first parameter may be a state constant in the second scenario, where 0 and 1 indicate whether the current flip operation is the first flip operation after the click operation.
In one possible embodiment, in a case where a flip operation performed by the user on the electronic apparatus for switching the photographing form is detected and the value of the first parameter is the second value, the photographing form is switched in response to the flip operation. Since the click operation switches the photographing form from the first photographing form to the second photographing form, the flip operation here switches the photographing form from the second photographing form back to the first photographing form.
In a possible embodiment, in a first preset time period before switching to the second shooting mode, the shooting mode adopted by the electronic device in the first shooting mode is the same as the shooting mode adopted by the electronic device in the second shooting mode in a preset second time period after switching to the second shooting mode; the shooting mode includes any one of the following modes: a portrait mode, a night scene mode, a photographing mode and a video recording mode.
The first preset time and the second preset time may be the same preset time, for example, the first preset time and the second preset time are both 1 second. After a second pre-time, the user may change the photographing mode adopted in the second photographing form at the home screen.
When the switching button is clicked, the shooting modes adopted by the back screen and the rear camera in working are the same as the shooting modes adopted by the main screen and the front camera or the main screen and the rear camera in working after the switching button is clicked. For example, the shooting mode adopted when the back screen and the rear camera work is the portrait mode, and after the switching button is clicked, the shooting mode adopted when the main screen and the front camera work is switched to be the portrait mode. After the operation of switching to the main screen and the front camera, the user can change the portrait mode into the night scene mode.
Optionally, in a first preset time period before switching to the second shooting mode, the shooting mode adopted by the electronic device in the first shooting mode is different from the shooting mode adopted by the electronic device in the second shooting mode in a preset second time period after switching to the second shooting mode; and the shooting mode adopted by the electronic equipment in the second shooting mode is a preset default shooting mode.
For example, when the back screen and the rear camera work, the shooting mode adopted is a portrait mode, and when the switch button is clicked, the shooting mode adopted when the main screen and the front camera work is switched to a default shooting mode. No matter which shooting mode is adopted by the back screen and the rear camera in working, the shooting mode adopted by the back screen and the front camera in working is the default shooting mode.
In one possible embodiment, when the electronic device adopts the first shooting mode, responding to a click operation of a switching button displayed on a main screen or a back screen by a user, switching the shooting mode, including: under the condition that the electronic equipment adopts a first shooting mode and the shooting mode is a portrait mode, responding to clicking operation of a switching button displayed on the back screen by a user, switching the first shooting mode into a second shooting mode, wherein the second shooting mode is a main screen and a front camera.
Since the portrait mode is generally used more in self-photographing, when the photographing mode adopted in the back screen and rear camera work is the portrait mode, the back screen and front camera work is switched to the main screen and front camera work, and the photographing mode in which the main screen and front camera work is also the portrait mode after the switching.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a shooting switching apparatus 800 according to an embodiment of the present disclosure. The shooting switching device shown in fig. 8 may be an electronic device, a device in an electronic device, or a device that can be used in cooperation with an electronic device. The electronic equipment comprises a display screen, wherein the display screen comprises a main screen and a back screen, and the main screen and the back screen are two display areas of the same display screen; when the electronic equipment is folded, the main screen and the back screen face opposite directions; when the electronic equipment is unfolded, the main screen and the back screen face the same direction, and the display area is the whole display screen; the electronic equipment further comprises a front camera and a rear camera, the front camera and the rear camera face opposite directions, the front camera and the main screen face the same direction, and the rear camera and the back screen face the same direction. The photographing switching apparatus shown in fig. 8 may include a switching unit 801 and a processing unit 802. Wherein:
A switching unit 801, configured to, in a case where the first photographing mode is adopted, switch the photographing mode in response to a click operation performed by a user on a switching button displayed on the main screen or the back screen; the clicking operation is used for switching the shooting form into a second shooting form; the shooting mode comprises working of a main screen and a front camera, working of a main screen and a rear camera and working of a back screen and a rear camera;
the processing unit 802 is configured to, after detecting the click operation, not respond to the first flip operation if it is detected that the user performs the first flip operation for switching the shooting mode on the electronic device before switching to the second shooting mode.
In a possible implementation manner, the processing unit 802 is further configured to, after detecting the click operation, after switching to the second capturing form, in a case where a second flip operation performed on the electronic device by the user for switching the capturing form is detected, not respond to the second flip operation, where the first flip operation performed on the electronic device is detected after detecting the click operation.
In a possible implementation manner, the switching unit 801 is further configured to, in a case where the first shooting form is adopted, switch the shooting form in response to a click operation performed by a user on a switching button displayed on the back screen, and set a value of the first parameter to a first value; the processing unit 802 is further configured to, when a second flipping operation performed by the user on the electronic device for switching the shooting mode is detected, and the value of the first parameter is a first value, not respond to the second flipping operation; the processing unit 802 is configured to set the first parameter to a second value after detecting that the second flipping operation is completed.
In a possible implementation manner, the switching unit 801 is further configured to, in a case where the first shooting form is adopted, switch the shooting form in response to a click operation performed by a user on a switching button displayed on the main screen, and set a value of the first parameter to a first value; the processing unit 802 is further configured to, when a first flipping operation performed by a user on the electronic device for switching the shooting mode is detected, and a value of the first parameter is a first value, not respond to the first flipping operation; the processing unit 802 is further configured to set the first parameter value to the second value after detecting the preview screen display of the back screen.
In one possible implementation manner, in a first preset time period before switching to the second shooting mode, the shooting mode adopted by the electronic device in the first shooting mode is the same as the shooting mode adopted by the electronic device in the second shooting mode in a preset second time period after switching to the second shooting mode; the shooting mode includes any one of the following modes: a portrait mode, a night scene mode, a photographing mode and a video recording mode.
In a possible implementation manner, the switching unit 801 is further configured to, in a case where the first photographing mode is adopted and the photographing mode is a portrait mode, switch the first photographing mode to the second photographing mode in response to a click operation performed on a switching button displayed on the back screen by a user, where the second photographing mode is a main screen and the front camera work.
In one possible implementation manner, the first shooting mode is that the main screen and the front camera work or the main screen and the rear camera work, the second shooting mode is that the back screen and the rear camera work, and the shooting mode adopted by the electronic equipment in the second shooting mode is a preset shooting mode in a preset second time period after the second shooting mode is switched to the second shooting mode.
In a possible implementation manner, the processing unit 802 is further configured to, after detecting the click operation, set the shooting form adopted by the electronic device to be the first shooting form when the camera application is reentered within the preset third period of time after exiting the camera application before switching to the second shooting form.
For the case where the photographing switching device may be a chip or a chip system, reference may be made to the schematic structure of the chip shown in fig. 9. The chip 900 shown in fig. 9 includes a processor 901 and an interface 902. Optionally, a memory 903 may also be included. Wherein the number of processors 901 may be one or more, and the number of interfaces 902 may be a plurality.
For the case where the chip is used to implement the electronic device in the embodiments of the present application:
the interface 902 is configured to receive or output a signal;
The processor 901 is configured to perform data processing operations of an electronic device.
It can be understood that some optional features in the embodiments of the present application may be implemented independently in some scenarios, independent of other features, such as the scheme on which they are currently based, so as to solve corresponding technical problems, achieve corresponding effects, or may be combined with other features according to requirements in some scenarios. Accordingly, the shooting switching device provided in the embodiment of the present application may also implement these features or functions accordingly, which will not be described herein.
It should be appreciated that the processor in the embodiments of the present application may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments may be implemented by integrated logic circuits of hardware in a processor or instructions in software form. The processor may be a general purpose processor, a digital signal processor (digital signal processor, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
It will be appreciated that the memory in embodiments of the present application may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous DRAM (SLDRAM), and direct memory bus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
The present application also provides a computer readable storage medium having stored therein a computer program comprising program instructions for implementing the functions of any of the method embodiments described above when the program instructions are run on an electronic device.
The present application also provides a computer program product which, when run on a computer, causes the computer to carry out the functions of any of the method embodiments described above.
In the above embodiments, the implementation may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a high-density digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. The shooting switching method is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a display screen, the display screen comprises a main screen and a back screen, and the main screen and the back screen are two display areas of the same display screen; when the electronic equipment is folded, the main screen and the back screen face opposite directions; when the electronic equipment is unfolded, the main screen and the back screen face the same direction, and the display area is the whole display screen; the electronic equipment further comprises a front camera and a rear camera, the directions of the front camera and the rear camera are opposite, the directions of the front camera and the main screen are the same, and the directions of the rear camera and the back screen are the same; the method comprises the following steps:
under the condition of adopting a first shooting form, responding to clicking operation of a switching button displayed by the main screen or the back screen by a user, and switching the shooting form; the clicking operation is used for switching the shooting form into a second shooting form; the shooting mode comprises the working of the main screen and the front camera, the working of the main screen and the rear camera and the working of the back screen and the rear camera;
After the click operation is detected, before switching to the second shooting mode, if the user is detected to perform a first flipping operation for switching shooting modes on the electronic device, the first flipping operation is not responded.
2. The method of claim 1, wherein the first capture modality is the back screen and the rear camera working, the method further comprising:
after the click operation is detected, after switching to the second shooting mode, in a case where a second flip operation for switching shooting modes is detected for the electronic device by the user, the second flip operation is not responded, and the first flip operation for the electronic device is detected after the click operation is detected.
3. The method according to claim 2, wherein, in the case of adopting the first photographing form, the photographing form is switched in response to a click operation of a switching button displayed on the main screen or the back screen by a user, including:
in the case of adopting the first shooting form, responding to clicking operation of a switching button displayed on the back screen by a user, switching the shooting form, and setting the value of the first parameter to be a first value;
The step of not responding to the first flipping operation when detecting that the user performs the first flipping operation for switching the shooting mode on the electronic device after detecting the clicking operation and before switching to the second shooting mode, includes:
if the second turning operation of the user on the electronic equipment for switching shooting modes is detected and the value of the first parameter is a first value, the second turning operation is not responded;
after detecting that the second flipping operation is complete, the first parameter is set to a second value.
4. The method according to claim 1, wherein, in the case of adopting the first photographing form, the photographing form is switched in response to a click operation of a switching button displayed on the main screen or the back screen by a user, including:
in the case of adopting the first shooting form, responding to clicking operation of a switching button displayed on the main screen by a user, switching the shooting form, and setting the value of the first parameter to be a first value;
the step of not responding to the first flipping operation when detecting that the user performs the first flipping operation for switching the shooting mode on the electronic device after detecting the clicking operation and before switching to the second shooting mode, includes:
If a first turning operation of the user on the electronic equipment for switching shooting modes is detected, and the value of the first parameter is a first value, not responding to the first turning operation;
and after the preview picture display of the back screen is detected, setting the first parameter value to be a second value.
5. The method of claim 2, wherein the shooting mode adopted by the electronic device in the first shooting mode is the same as the shooting mode adopted by the electronic device in the second shooting mode in a preset second time period after switching to the second shooting mode in a first preset time period before switching to the second shooting mode; the shooting mode includes any one of the following modes: a portrait mode, a night scene mode, a photographing mode and a video recording mode.
6. The method according to claim 5, wherein, in the case of adopting the first photographing form, the photographing form is switched in response to a click operation of a switching button displayed on the main screen or the back screen by a user, comprising:
under the condition that a first shooting mode is adopted and the shooting mode is the portrait mode, responding to clicking operation of the user on a switching button displayed on the back screen, switching the first shooting mode into a second shooting mode, wherein the second shooting mode is that the main screen and the front-mounted camera work.
7. The method of claim 1, wherein the first photographing mode is the operation of the main screen and the front camera or the operation of the main screen and the rear camera, the second photographing mode is the operation of the back screen and the rear camera, and the photographing mode adopted by the electronic device in the second photographing mode is a preset photographing mode within a preset second period of time after switching to the second photographing mode.
8. The method according to claim 1, wherein the method further comprises:
and after the click operation is detected, before switching to the second shooting form, and after exiting the camera application, and under the condition that the camera application is re-entered within a preset third time period, setting the shooting form adopted by the electronic equipment as the first shooting form.
9. An electronic device, comprising: one or more processors, one or more memories; wherein one or more memories are coupled to one or more processors, the one or more memories being operable to store computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1-8.
10. A chip comprising a processor and an interface, the processor and the interface being coupled; the interface being for receiving or outputting signals, the processor being for executing code instructions to cause the method of any of claims 1-8 to be performed.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program comprising program instructions, which when run on an electronic device, cause the electronic device to perform the method of any of claims 1-8.
CN202311204376.XA 2023-09-15 2023-09-15 Shooting switching method and related equipment Pending CN117376475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311204376.XA CN117376475A (en) 2023-09-15 2023-09-15 Shooting switching method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311204376.XA CN117376475A (en) 2023-09-15 2023-09-15 Shooting switching method and related equipment

Publications (1)

Publication Number Publication Date
CN117376475A true CN117376475A (en) 2024-01-09

Family

ID=89404902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311204376.XA Pending CN117376475A (en) 2023-09-15 2023-09-15 Shooting switching method and related equipment

Country Status (1)

Country Link
CN (1) CN117376475A (en)

Similar Documents

Publication Publication Date Title
CN114679537B (en) Shooting method and terminal
EP3979628B1 (en) Display method of video call applied to electronic device and related apparatus
CN111526314B (en) Video shooting method and electronic equipment
CN113885759B (en) Notification message processing method, device, system and computer readable storage medium
WO2020143408A1 (en) Display method and related apparatus
WO2020000448A1 (en) Flexible screen display method and terminal
CN112714901B (en) Display control method of system navigation bar, graphical user interface and electronic equipment
WO2021213164A1 (en) Application interface interaction method, electronic device, and computer readable storage medium
WO2021036770A1 (en) Split-screen processing method and terminal device
CN111182614B (en) Method and device for establishing network connection and electronic equipment
WO2021169399A1 (en) Method for caching application interface, and electronic apparatus
CN116360725B (en) Display interaction system, display method and device
WO2021238370A1 (en) Display control method, electronic device, and computer-readable storage medium
EP4199499A1 (en) Image capture method, graphical user interface, and electronic device
CN114281439A (en) Screen splitting method and device and electronic equipment
CN115756270B (en) Content sharing method, device and system
CN114356195B (en) File transmission method and related equipment
US20230350631A1 (en) Projection display method and electronic device
CN111061410B (en) Screen freezing processing method and terminal
CN116048436B (en) Application interface display method, electronic device and storage medium
CN114173005B (en) Application layout control method and device, terminal equipment and computer readable storage medium
CN117376475A (en) Shooting switching method and related equipment
CN117424958A (en) Switching method of camera display interface and electronic equipment
CN117424957A (en) Camera mode switching method and electronic equipment
EP3245780B1 (en) Camera activation and illuminance

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