CN117579938A - Photographing method and electronic equipment - Google Patents

Photographing method and electronic equipment Download PDF

Info

Publication number
CN117579938A
CN117579938A CN202311601448.4A CN202311601448A CN117579938A CN 117579938 A CN117579938 A CN 117579938A CN 202311601448 A CN202311601448 A CN 202311601448A CN 117579938 A CN117579938 A CN 117579938A
Authority
CN
China
Prior art keywords
photographing
module
electronic device
focusing
photographing operation
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
CN202311601448.4A
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 CN202311601448.4A priority Critical patent/CN117579938A/en
Publication of CN117579938A publication Critical patent/CN117579938A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application provides a photographing method and electronic equipment, which enable the electronic equipment to start focusing before detecting the photographing operation of a user, so that the response speed of the electronic equipment is improved, the shutter delay is reduced, and the photographing experience of the user is improved.

Description

Photographing method and electronic equipment
The application is a divisional application of China patent application with the application number of 202210753598.6 and the application name of 'a photographing method and electronic equipment' which is submitted by the national intellectual property agency at the year 2022 and the month 06 and 29.
Technical Field
The present disclosure relates to the field of terminals, and more particularly, to a photographing method and an electronic device in the field of terminals.
Background
With the technological development of electronic devices, the photographing function of the electronic device is used more and more frequently, and the user's experience of photographing is continuously improved. In the prior art, a user opens a camera application program, clicks a photographing key of a photographing interface, and after the operation of clicking the photographing key is completed, an electronic device firstly focuses a target to be photographed, and photographs the target after focusing is completed. In the above process, the response speed of focusing of the electronic device is slow, and a certain shutter lag (shutter lag) exists, so that the user experience is reduced.
Disclosure of Invention
The embodiment of the application provides a photographing method and electronic equipment, which enable the electronic equipment to start focusing before detecting the photographing operation of a user, so that the response speed of the electronic equipment is improved, the shutter delay is reduced, and the photographing experience of the user is improved.
In a first aspect, a photographing method is provided, including: detecting photographing operation of a user; before the photographing operation is detected to be finished, responding to the photographing operation, and triggering an automatic focusing AF module; focusing is carried out through the AF module so as to take a picture.
According to the photographing method provided by the embodiment of the application, the electronic equipment triggers the AF module to focus before detecting the photographing operation of the user is finished, compared with the method in the prior art that the AF module is triggered to focus after detecting the photographing operation is finished, the photographing method reduces the time period from the detection of the photographing operation to the completion of focusing, effectively improves the response speed of the electronic equipment to the photographing operation, reduces shutter delay, and improves photographing experience of the user.
Optionally, before the photographing operation is detected to end, triggering the auto-focusing AF module to focus in response to the photographing operation includes: and before the photographing operation is detected to be ended, and within a first preset time period after the photographing operation is detected, responding to the photographing operation, and triggering the AF module.
According to the photographing method, after photographing operation is detected, the AF module can be triggered to focus as soon as possible by setting the first preset time length, so that the response speed of the electronic device to the photographing operation is further improved, and photographing experience of a user is improved.
Optionally, focusing by the AF module to take a picture includes: and in a second preset time period, if the calculation result obtained by the AF module is not converged, forcing the calculation result to be converged by the AF module so as to take a picture.
According to the photographing method, the time length for focusing by the AF module can be effectively limited by setting the second preset time length, the problem that the time length for focusing is too long due to the fact that a calculation result cannot be converged for a long time, so that the response speed is slow, and photographing experience of a user is further improved.
Optionally, the method further comprises: and after detecting that the photographing operation is finished, counting the response time of the electronic equipment for the photographing operation based on the time stamp.
According to the photographing method provided by the embodiment of the application, the response time of the electronic equipment to the photographing operation is counted by the electronic equipment based on the timestamp after the photographing operation is detected, the time of the application layer sending the trigger event after the photographing operation is detected in the existing process can be used, the time of the application layer sending the trigger event is used as the time indicated by the timestamp to count the response time, and on the basis that the response speed can be improved, the method has less improvement on the existing process, is simple in design and is more beneficial to realization.
Optionally, the photographing operation includes: and pressing a photographing key.
Optionally, the photographing key is an icon key of a touch area of the electronic device.
Optionally, before detecting that the photographing operation ends, triggering an autofocus AF module in response to the photographing operation, including:
before detecting that the finger of the user performs lifting operation relative to the photographing key, responding to the photographing operation, and triggering the AF module.
In a second aspect, an electronic device is provided, which is configured to perform the method provided in the first aspect. In particular, the electronic device may comprise means for performing any one of the possible implementations of the first aspect described above.
In a third aspect, an electronic device is provided that includes a processor. The processor is coupled to the memory and operable to execute instructions in the memory to implement the method of any one of the possible implementations of the first aspect. Optionally, the electronic device further comprises a memory. Optionally, the electronic device further comprises a communication interface, and the processor is coupled to the communication interface.
In a fourth aspect, a computer readable storage medium is provided, on which a computer program is stored which, when executed by an electronic device, causes the electronic device to implement a method according to any one of the possible implementations of the first aspect.
In a fifth aspect, there is provided a computer program product comprising instructions which, when executed by a computer, cause an electronic device to implement a method as in any one of the possible implementations of the first aspect.
In a sixth aspect, there is provided a chip comprising: the device comprises an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected through an internal connection path, the processor is used for executing codes in the memory, and when the codes are executed, the processor is used for executing the method in any one of the possible implementation manners of the first aspect.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a software system of an electronic device according to an embodiment of the present application.
Fig. 3 is a graphical user interface for photographing by the electronic device according to the embodiment of the present application.
Fig. 4 is a schematic flowchart of a photographing method provided in an embodiment of the present application.
Fig. 5 is a schematic diagram of response time length of an electronic device for a photographing operation according to an embodiment of the present application.
Fig. 6 is a schematic diagram of response time of an electronic device to a photographing operation in a photographing method in the prior art.
Fig. 7 is an exemplary block diagram of an electronic device provided by an embodiment of the present application.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the present application will be described below with reference to the accompanying drawings.
The method provided by the embodiment of the application can be applied to various electronic devices capable of photographing, such as mobile phones, tablet computers, wearable devices, notebook computers, netbooks, personal digital assistants (personal digital assistant, PDAs), cameras and the like, and the embodiment of the application does not limit the specific types of the electronic devices.
Fig. 1 shows a schematic configuration of an electronic device 100. 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 is to be understood that the structure illustrated in the embodiments of the present application 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.
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 I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, such that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to implement a touch function of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing functions of electronic device 100. The processor 110 and the display 194 communicate via a DSI interface to implement the display functionality of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
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. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
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 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
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 application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), 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., as applied to 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 wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
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. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
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. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
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. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
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. For example, files such as music, video, etc. are stored in an external memory card.
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, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and 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. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
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 pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, the electronic device 100 may range using the distance sensor 180F to achieve quick focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object in the vicinity of the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there is no object in the vicinity of the electronic device 100. The electronic device 100 can detect that the user holds the electronic device 100 close to the ear by using the proximity light sensor 180G, so as to automatically extinguish the screen for the purpose of saving power. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The temperature sensor 180J is for detecting temperature. In some embodiments, the electronic device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs a reduction in the performance of a processor located in the vicinity of temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 100 heats the battery 142 to avoid the low temperature causing the electronic device 100 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the electronic device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
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 touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, bone conduction sensor 180M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 180M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 170 may analyze the voice signal based on the vibration signal of the sound portion vibration bone block obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal acquired by the bone conduction sensor 180M, so as to implement a heart rate detection function.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
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. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, i.e.: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
The software 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.
Fig. 2 is a schematic diagram of a software system of the electronic device 100 according to an embodiment of the present application. The software system comprises a plurality of layers, each layer has clear roles and division of work, and the layers are communicated through software interfaces. In some embodiments, as shown in fig. 2, the Android system may include five layers, from top to bottom, an application layer 21, an application framework layer 22, a hardware abstraction layer 23, a driver layer 24, and a hardware layer 25, respectively.
The application layer 21 may include camera applications 211, gallery, calendar, talk, map, navigation, WLAN, bluetooth, music, video, short message, etc. applications.
The application framework layer 22 provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer; the application framework layer may include some predefined functions.
For example, the application framework layer 22 may include a camera access interface; camera management and camera devices may be included in the camera access interface. Wherein camera management may be used to provide an access interface to manage the camera; the camera device may be used to provide an interface to access the camera.
The hardware abstraction layer 23 is used to abstract the hardware. For example, the hardware abstraction layer may include a camera abstraction layer and other hardware device abstraction layers; the camera hardware abstraction layer may call a camera algorithm.
For example, the hardware abstraction layer 23 includes a camera hardware abstraction layer 231 and a camera algorithm 232; various modules of software algorithms for image processing may be included in the camera algorithm module 232, including, for example, an Auto Focus (AF) module 2321.
Illustratively, the algorithms in the camera algorithm 232 may refer to being independent of a particular hardware implementation; such as code that may typically run in a CPU, etc.
The driver layer 24 is used to provide drivers for different hardware devices. For example, the drive layer may include a camera device drive.
The hardware layer 25 may include camera devices as well as other hardware devices.
The embodiment of the application relates to a photographing focusing process, and an AF module is arranged in current electronic equipment and used for realizing photographing automatic focusing. The AF algorithm in the AF module obtains the highest image frequency component by adjusting the position of the focusing lens, thereby obtaining higher contrast. The AF algorithm is a continuously accumulated process of obtaining the best focus point, and the focus distance is obtained by comparing the contrast of each frame image to obtain the maximum contrast point in the lens movement range. Illustratively, the current self-AF module employs a "hill climbing algorithm", which is limited in that it is adapted only to the case where the color difference of the image itself is large.
In order to solve the problem of low user experience caused by slow focusing response speed of electronic equipment in the prior art, the embodiment of the application starts focusing before the electronic equipment detects the end of photographing operation of a user, so that the response speed of the electronic equipment is improved, shutter delay is reduced, and photographing experience of the user is improved.
The embodiment of the application can be applied to various shooting scenes, is particularly suitable for shooting moving targets in moving scenes, for example, shooting faces of people in transverse movement and shooting faces of people in longitudinal movement, can obviously improve the response speed of electronic equipment, and obtains a better shooting effect. Here, the lateral movement means that the object to be photographed moves from one side to the other side of the photographing interface, as in the direction shown in fig. 3, and the longitudinal movement means that the object to be photographed moves from the far side to the near side of the electronic device or moves from the near side to the far side of the electronic device.
Fig. 4 is a schematic flowchart of a photographing method provided in an embodiment of the present application. The method 300 may be performed by an electronic device capable of taking a photograph, or may be performed by a chip in the electronic device, which is not limited in any way. For ease of description, method 300 will be described in detail using an electronic device as an example.
In S310, the electronic apparatus detects a photographing operation of the user.
The photographing operation is an operation in which a user acts on the electronic device in various ways to trigger the electronic device to take a photograph. Illustratively, the photographing operation may be: the operation of pressing the photographing key, or the operation of photographing through a voice instruction, or the operation of photographing through a preset gesture.
In an embodiment in which the photographing operation is an operation of pressing a photographing key, in an example, the photographing key may be an icon key of a touch area of the electronic device.
As shown in fig. 3, after the user turns on the camera, the electronic device displays a photographing interface, where the photographing interface includes a touch area 30, and the touch area includes a photographing key 301, and the user touches the photographing key 301, and the electronic device detects an operation of the user touching the photographing key 301.
Of course, in an embodiment in which the photographing operation is an operation of pressing the photographing key, in other examples, the photographing key may also be a photographing key of a physical entity of the electronic device, which is not limited in this embodiment.
In connection with the software system in the electronic device shown in fig. 2, in S310, the user performs a photographing operation on the camera application 211 of the application layer 21, the camera application 211 detects the photographing operation and the AF module 2321 of the hardware abstraction layer 23 recognizes the photographing operation.
In S320, the electronic device triggers the AF module in response to the photographing operation before detecting that the photographing operation is ended.
The end of the photographing operation means that the user completes the interaction process with the electronic device for triggering the electronic device to photograph.
In the embodiment in which the photographing operation is to press the photographing key, the user presses the photographing key, and after a certain period of time, the user's finger leaves the photographing key, i.e., the user's finger is lifted up relative to the photographing key. Therefore, the operation indicating the end of the photographing operation may be a lifting operation of the finger of the user against the photographing key.
In this step, before detecting that the photographing operation is finished (for example, the lifting operation of the finger of the user against the photographing key), the electronic device triggers the AF module in response to the photographing operation, so that the AF module starts to execute the AF algorithm to perform focusing, so as to perform photographing after focusing is completed.
In conjunction with the software system in the electronic device shown in fig. 2, in S320, before detecting that the photographing operation is finished, the AF module 2321 of the hardware abstraction layer 23 performs an AF algorithm to perform focusing in response to the photographing operation.
In this step, the electronic apparatus may trigger the AF module at any time between the detection of the photographing operation by the user and the detection of the end of the photographing operation, without any limitation, as long as the AF module is triggered before the detection of the end of the photographing operation.
Referring to fig. 5, it is assumed that the user performs a photographing operation at time T1 (e.g., the user presses a photographing button at time T1), ends the photographing operation at time T2 (e.g., the user's finger performs a lifting operation with respect to the photographing button at time T2), ignores a transmission delay between different layers, and may be understood as time T1 when the electronic device detects the photographing operation, may be understood as time T2 when the electronic device detects the photographing operation to end, and may trigger the AF module to perform an AF algorithm at any time between T1 and T2, e.g., the electronic device triggers the AF module at time T3, and a time interval T11 between time T1 and time T3.
In some embodiments, before the photographing operation ends and within a first preset time period after the photographing operation is detected, the AF module is triggered in response to the photographing operation.
The shorter the first preset duration is, the faster the response speed of the electronic equipment to the photographing operation of the user is, and the better the photographing experience of the user is. Conversely, the longer the first preset duration, the slower the response speed of the electronic device to the photographing operation of the user, and the worse the photographing experience of the user.
Illustratively, the first predetermined time period is greater than or equal to 0 milliseconds (ms) and less than or equal to 100ms. For example, the first preset duration is 100ms.
With continued reference to fig. 5, after the electronic device detects the photographing operation at time T1 and the interval duration T11, the AF module is triggered at time T3, where the duration T11 belongs to a duration within a first preset duration.
Ideally, the electronic device triggers the AF module immediately after the time t1 of detecting the photographing operation, where the first preset duration is very short and negligible, and may be considered as 0ms.
In S330, the electronic device focuses through the AF module to take a picture.
In the step, the electronic device executes an AF algorithm through the AF module to focus, and performs real photographing after focusing is completed. Reference is made to related descriptions of the prior art for the AF algorithm, and no further description is given here.
In combination with the software system in the electronic device shown in fig. 2, in implementation, after the AF module 2321 completes the AF algorithm, which means that the focusing process of photographing is completed, the AF module 2321 sends a first instruction to the camera application 211 of the application layer 21 to indicate the focusing state of completing focusing, and after the application layer 21 receives the first instruction, sends a photographing request to the hardware abstraction layer 23, so that the hardware abstraction layer 23 completes photographing in combination with the driving layer 24, the hardware layer 25 and other layers.
With continued reference to fig. 5, the electronic device triggers the AF module at time T3, completes focusing at time T4 after the AF module passes the duration T12, and after T4, the electronic device performs real photographing, and the duration of completing focusing by the AF module is T12.
Note that, in the embodiment of the present application, the time t4 for indicating that the electronic device completes focusing through the AF module may be the time when the AF module sends the first instruction to the camera application 211, or may be the time when the camera application 211 receives the first instruction, which is not limited in any way. If the transmission delay between different layers is ignored, the time when the AF module sends the first instruction is regarded as the same time when the camera application program receives the first instruction.
In some embodiments of the present application, referring to fig. 5, a duration T1 between a time T1 when a photographing operation of a user is detected and a time T4 when focusing is completed by an AF module may be used as a response duration of the electronic device for the photographing operation. That is, the time t1 at which the photographing operation is detected is taken as the start time of the response time period, and the time t4 at which the AF module completes focusing is taken as the end time of the response time period. The shorter the response time length is, the better the response speed of the electronic equipment to photographing operation is.
In other embodiments, referring to fig. 5, a duration T12 between a time T3 when the electronic device triggers the AF module and a time T4 when the AF module completes focusing may be used as a response duration of the electronic device for the photographing operation. That is, the time t3 for triggering the AF module is taken as the start time of the response time, and the time t4 for completing focusing by the AF module is taken as the end time of the response time. The shorter the response time length is, the better the response speed of the electronic equipment to photographing operation is.
For convenience of description, taking a time period T1 between a time T1 when a photographing operation of a user is detected and a time T4 when focusing is completed by the AF module as an example of a response time period of the electronic device for the photographing operation, the response time periods of the present application and the related art are described in comparison with fig. 6.
Fig. 6 is a schematic diagram showing response time durations of an electronic device to a photographing operation in a photographing method of the prior art. For convenience of description in comparison with fig. 5, the time T1, the time T2 and the time T2 in fig. 6 are respectively the same as the time T1, the time T2 and the time T12 shown in fig. 5. In fig. 6, the electronic device detects the photographing operation of the user at time T1, at a first time interval of T0, detects that the photographing operation is finished at time T2, triggers the AF module to perform focusing at time T5, and completes focusing at time T4, wherein the time period for the AF module to perform the AF algorithm to perform focusing is T2, and T2 is the same as the time period T12 for the AF module to perform the AF algorithm to perform focusing in fig. 5, so that the response time period T1 of the electronic device for the photographing operation is longer than the response time period T1 shown in fig. 5 (if the time period T11 between T3 and T1 is the same as the time period between T2 and T5, the response time period T1 of fig. 5 is longer than the response time period T1 of fig. 6 by T0), the response speed is slow, and the photographing experience of the user is bad.
According to the photographing method provided by the embodiment of the application, before the photographing operation of the user is detected, the electronic device triggers the AF module to focus, compared with the method in the prior art that the AF module is triggered to focus after the photographing operation is detected, the photographing method reduces the time from the photographing operation detection to the focusing completion, effectively improves the response speed of the electronic device to the photographing operation, and improves the photographing experience of the user.
When the AF module executes the AF algorithm, in general, when the obtained calculation result is in a convergence state, this means that focusing is successfully completed, and the electronic device performs photographing after focusing is completed. However, in some scenarios, the calculation result obtained when the AF module executes the AF algorithm cannot be converged for a long period of time, so that the electronic device cannot take a picture, which also results in a slower response speed of the electronic device and affects the photographing experience of the user.
Based on this, in the embodiment of the present application, in S330, if the calculation result obtained by the AF module does not converge within the second preset duration, the electronic device forces the calculation result to converge by the AF module so as to take a photograph.
It should be understood that the second preset duration is the longest duration for which the electronic device performs focusing through the AF module to perform the AF algorithm. In addition, the calculation result obtained by the AF module does not converge within the second preset time period, which should be understood that the calculation result obtained by the AF module does not converge at the end time of the second preset time period.
Illustratively, the second predetermined time period is greater than 0ms and less than or equal to 500ms. For example, the second preset duration is 300ms.
And in the second preset time period, if the calculation result of the AF algorithm executed by the AF module is not converged, the electronic equipment forcedly converges the calculation result by the AF module, so that focusing is completed, the AF module sends a first instruction for indicating the focusing state in which focusing is completed to the camera application program of the application layer, and the electronic equipment takes a picture after the camera application program receives the first instruction. Therefore, by setting the second preset time length, the time length of focusing by the AF module can be effectively limited, the problem that the response speed is low due to overlong focusing time length caused by the fact that the calculation result cannot be converged for a long time is avoided, and the photographing experience of a user is further improved.
Referring to fig. 6, in the prior art, after detecting that the photographing operation is finished, the camera application 211 of the application layer 21 sends a trigger event (trigger event) to the AF module 2321 of the hardware abstraction layer 23 at time t5 to trigger the AF module 2321 to perform focusing, and when the response time is counted, the time t5 when the camera application 211 sends the trigger event is taken as a start time, the time when the AF module 2321 finishes focusing is taken as an end time, and the counted time between the two is a response time (or a focusing time called as an AF module).
In implementation, in order to facilitate statistics of the response duration, an existing flow may be reserved, and the time t5 of the trigger event is continued to be used as the starting time of the response duration. That is, in this embodiment of the present application, the electronic device triggers the AF module and performs focusing through the AF module before detecting that the photographing operation of the user is finished, and at the same time, the application layer sends a trigger event to the AF module at time t5 after detecting that the photographing operation is finished, where the trigger event carries a timestamp indicating a time of sending the trigger event, and the time is time t5. Because the AF module has executed the focusing process of the AF algorithm, the AF module cannot be re-triggered according to the triggering event (or the triggering event has no influence on the focusing process of the AF module), and only the timestamp carried by the triggering event is used as the starting time of the statistical response time.
That is, in some embodiments, the method 300 further comprises: and after the electronic equipment detects that the photographing operation is finished, counting the response time of the electronic equipment for the photographing operation based on the time stamp.
The time indicated by the timestamp may be understood as the time of sending the trigger event, i.e. time t5, as described above, and the timestamp is carried in the trigger event.
That is, compared to the above embodiment in which the time at which the photographing operation is detected is taken as the start time of the response time period, this embodiment changes the reference point of the start time of the response time period, taking the time indicated by the above-described timestamp (i.e., the time t5 at which the application layer transmits the trigger event) as the start time of the response time period.
Illustratively, the electronic device may range from 0ms to 70ms in duration between the time that the photographing operation is detected to end and the time that the trigger event is sent by the application layer. For example. The duration may be 50ms.
Here, ignoring the transmission time delay between different layers, the time when the electronic device detects the end of the photographing operation may be understood as the time when the user ends the photographing operation (e.g., the user's finger performs a lifting operation with respect to the photographing key).
Taking fig. 5 and 6 as an example, for example, the electronic device detects that the photographing operation ends at time T2, and sends a trigger event by the application layer at time T5 after time T2, where the response time is T2 with time T5 as the starting time of the response time, and the response time T2 shown in fig. 5 is shorter than the time T2 shown in fig. 6, which indicates that the response speed of the embodiment shown in fig. 5 is fast.
According to the photographing method provided by the embodiment of the application, the response time of the electronic equipment to the photographing operation is counted by the electronic equipment based on the timestamp after the photographing operation is detected, the time of the application layer sending the trigger event after the photographing operation is detected in the existing process can be used, the time of the application layer sending the trigger event is used as the time indicated by the timestamp to count the response time, and on the basis that the response speed can be improved, the method has less improvement on the existing process, is simple in design and is more beneficial to realization.
The photographing method provided by the embodiment of the present application is described in detail above with reference to fig. 1 to 6, and the electronic device provided according to the embodiment of the present application will be described in detail below with reference to fig. 7 to 8.
Fig. 7 is an exemplary block diagram of an electronic device 400 provided by an embodiment of the present application. The electronic device 400 comprises a processing unit 410.
The processing unit 410 is configured to perform the following steps:
detecting photographing operation of a user;
before the photographing operation is detected to be finished, responding to the photographing operation, and triggering an automatic focusing AF module;
focusing is carried out through the AF module so as to take a picture.
It should be appreciated that the processing unit 410 may be configured to perform the steps performed by the electronic device in the method 300, and the detailed description may refer to the related description above, which is not repeated.
It should be understood that the electronic device 400 herein is embodied in the form of functional units. The term "unit" herein may refer to an application specific integrated circuit (application specific integrated circuit, ASIC), an electronic circuit, a processor (e.g., a shared, dedicated, or group processor, etc.) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that support the described functionality.
In an embodiment of the present application, the electronic device in fig. 7 may also be a chip or a chip system, for example: system on chip (SoC).
Fig. 8 is a schematic block diagram of an electronic device 500 according to an embodiment of the present application. The electronic device 500 is configured to perform the various steps and/or processes corresponding to the embodiments of the method 300 described above. The electronic device 500 may be the electronic device 100 of fig. 1 above.
The electronic device 500 includes a processor 510, a transceiver 520, and a memory 530. Wherein the processor 510, the transceiver 520 and the memory 530 communicate with each other via internal connection paths, the processor 510 may implement the functions of the processing unit 510 in various possible implementations of the electronic device 500. The memory 530 is used for storing instructions, and the processor 510 is used for executing the instructions stored in the memory 530, or the processor 510 may invoke the stored instructions to implement the functions of the processing unit 510 in the electronic device 500.
Alternatively, the memory 530 may include read-only memory and random access memory, and provide instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. For example, the memory may also store information of the device type. The processor 510 may be configured to execute instructions stored in a memory, and when the processor 510 executes instructions stored in the memory, the processor 510 is configured to perform the steps and/or processes of the method embodiments described above with respect to the electronic device.
The processor 510 is configured to perform the steps of:
detecting photographing operation of a user;
before the photographing operation is detected to be finished, responding to the photographing operation, and triggering an automatic focusing AF module;
focusing is carried out through the AF module so as to take a picture.
It should be understood that, the specific process of each device performing the corresponding step in each method is described in detail in the above method embodiments, and for brevity, will not be described in detail herein.
It should be appreciated that in embodiments of the present application, the processor of the apparatus described above may be a central processing unit (central processing unit, CPU), which may also be other general purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software elements in the processor for execution. The software elements may be located in a random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor executes instructions in the memory to perform the steps of the method described above in conjunction with its hardware. To avoid repetition, a detailed description is not provided herein.
Embodiments of the present application provide a computer program product, which when executed on an electronic device, causes the electronic device to perform the technical solutions in the foregoing embodiments. The implementation principle and technical effects are similar to those of the related embodiments of the method, and are not repeated here.
An embodiment of the present application provides a readable storage medium, where the readable storage medium contains instructions, where the instructions, when executed on an electronic device, cause the electronic device to execute the technical solution of the foregoing embodiment. The implementation principle and technical effect are similar, and are not repeated here.
The embodiment of the application provides a chip for executing instructions, and when the chip runs, the technical scheme in the embodiment is executed. The implementation principle and technical effect are similar, and are not repeated here.
In the above embodiments, it 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.
It should be appreciated that reference throughout this specification to "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, various embodiments are not necessarily referring to the same embodiments throughout the specification. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application.
It should also be understood that, in this application, "when …," "if," and "if" all refer to that the UE or the base station will make a corresponding process under some objective condition, and are not limited in time, nor do they require that the UE or the base station must have a judgment action when it is implemented, nor are they meant to have other limitations.
Those of ordinary skill in the art will appreciate that: the first, second, etc. numbers referred to in this application are merely for convenience of description and are not intended to limit the scope of the embodiments of the present application, but also to indicate the sequence.
Elements referred to in the singular are intended to be used in this application to mean "one or more" rather than "one and only one" unless specifically indicated. In this application, unless specifically stated otherwise, "at least one" is intended to mean "one or more" and "a plurality" is intended to mean "two or more".
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: there are three cases where a alone exists, where a may be singular or plural, and where B may be singular or plural, both a and B exist alone.
The term "at least one of … …" or "at least one of … …" herein means all or any combination of the listed items, e.g., "at least one of A, B and C," may mean: there are six cases where a alone, B alone, C alone, a and B together, B and C together, A, B and C together, where a may be singular or plural, B may be singular or plural, and C may be singular or plural.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the above-described embodiments of the electronic device are merely illustrative, e.g., the division of the modules is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
It should be understood that, in various embodiments of the present application, the size of the sequence number of each process does not mean that the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
In addition, the term "and/or" herein is merely an association relation describing an association object, and means that three kinds of relations may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
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 should be defined by the claims, and the above description is only a preferred embodiment of the technical solution of the present application, and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (8)

1. A photographing method, comprising:
detecting photographing operation of a user pressing a photographing key;
before detecting the operation of ending the photographing operation, responding to the photographing operation, and triggering an Automatic Focusing (AF) module, wherein the operation of ending the photographing operation is a lifting operation of a user relative to the photographing key;
focusing through the AF module, and detecting the operation of ending the photographing operation in the focusing process through the AF module;
and photographing after focusing is completed through the AF module.
2. The photographing method of claim 1, wherein said triggering the auto-focus AF module to focus in response to the photographing operation before detecting the operation of ending the photographing operation comprises:
and before detecting the operation of ending the photographing operation and within a first preset time period after detecting the photographing operation, responding to the photographing operation, and triggering the AF module.
3. The photographing method according to claim 1 or 2, characterized in that said focusing by said AF module comprises:
and in a second preset time period, if the calculation result obtained by the AF module is not converged, forcing the calculation result to be converged by the AF module so as to finish focusing.
4. A photographing method as claimed in any one of claims 1 to 3, further comprising:
after detecting the operation of ending the photographing operation, determining the time length between the time indicated by the timestamp carried in the trigger event and the time of completing focusing as the response time length for the photographing operation, wherein the trigger event is an event which is sent by an application layer of electronic equipment to an AP module in a hardware abstraction layer and used for triggering the AF module to conduct focusing, and the AP module does not respond to the trigger event.
5. The photographing method of any one of claims 1 to 4, wherein the photographing key is an icon key of a touch area of an electronic device.
6. An electronic device, comprising:
a memory for storing computer instructions;
a processor for invoking computer instructions stored in the memory to perform the method of any of claims 1-5.
7. A computer readable storage medium storing computer instructions for implementing the method of any one of claims 1 to 5.
8. A chip, the chip comprising:
a memory: for storing instructions;
a processor for invoking and executing the instructions from the memory to cause a communication device on which the chip system is installed to perform the method of any of claims 1-5.
CN202311601448.4A 2022-06-29 2022-06-29 Photographing method and electronic equipment Pending CN117579938A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311601448.4A CN117579938A (en) 2022-06-29 2022-06-29 Photographing method and electronic equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210753598.6A CN116055870B (en) 2022-06-29 2022-06-29 Photographing method and electronic equipment
CN202311601448.4A CN117579938A (en) 2022-06-29 2022-06-29 Photographing method and electronic equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202210753598.6A Division CN116055870B (en) 2022-06-29 2022-06-29 Photographing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN117579938A true CN117579938A (en) 2024-02-20

Family

ID=86122362

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202210753598.6A Active CN116055870B (en) 2022-06-29 2022-06-29 Photographing method and electronic equipment
CN202311601448.4A Pending CN117579938A (en) 2022-06-29 2022-06-29 Photographing method and electronic equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202210753598.6A Active CN116055870B (en) 2022-06-29 2022-06-29 Photographing method and electronic equipment

Country Status (1)

Country Link
CN (2) CN116055870B (en)

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003084192A (en) * 2001-09-12 2003-03-19 Konica Corp Camera
KR100649983B1 (en) * 2005-10-05 2006-11-27 삼성전자주식회사 Apparatus and method for photographing by movement detection
JP2009222755A (en) * 2008-03-13 2009-10-01 Hoya Corp Camera including automatic focusing device
JP5173676B2 (en) * 2008-08-25 2013-04-03 キヤノン株式会社 Automatic focus adjustment device and control method thereof
JP2010197601A (en) * 2009-02-24 2010-09-09 Hoya Corp Camera equipped with automatic focusing device
CN101872105A (en) * 2010-06-02 2010-10-27 华为终端有限公司 Method and device for photographing
KR101880636B1 (en) * 2012-07-25 2018-07-20 삼성전자주식회사 Digital photographing apparatus and method for controlling thereof
CN103209256A (en) * 2013-03-01 2013-07-17 广东欧珀移动通信有限公司 Mobile terminal picture-taking method and mobile terminal
CN103685943A (en) * 2013-11-22 2014-03-26 乐视致新电子科技(天津)有限公司 Display equipment, image capturing and controlling device and image capturing and controlling method
RU2686019C2 (en) * 2015-03-13 2019-04-23 Хуавей Текнолоджиз Ко., Лтд. Electronic device, method of photographing and photographic device
CN106385542A (en) * 2016-10-11 2017-02-08 广东欧珀移动通信有限公司 Camera focusing method, device and mobile terminal
CN108777767A (en) * 2018-08-22 2018-11-09 Oppo广东移动通信有限公司 Photographic method, device, terminal and computer readable storage medium
US11089204B1 (en) * 2019-01-31 2021-08-10 Panasonic Intellectual Property Management Co., Ltd. Imaging device

Also Published As

Publication number Publication date
CN116055870B (en) 2023-10-20
CN116055870A (en) 2023-05-02

Similar Documents

Publication Publication Date Title
CN113905179B (en) Method for switching cameras by terminal and terminal
CN110347269B (en) Empty mouse mode realization method and related equipment
CN111095723B (en) Wireless charging method and electronic equipment
CN114615423B (en) Callback flow processing method and device
CN114422340B (en) Log reporting method, electronic equipment and storage medium
CN114115770B (en) Display control method and related device
WO2022022319A1 (en) Image processing method, electronic device, image processing system and chip system
CN114490174B (en) File system detection method, electronic device and computer readable storage medium
CN114880251B (en) Memory cell access method, memory cell access device and terminal equipment
CN113472861B (en) File transmission method and electronic equipment
CN116389884B (en) Thumbnail display method and terminal equipment
CN116708751B (en) Method and device for determining photographing duration and electronic equipment
CN109285563B (en) Voice data processing method and device in online translation process
CN116055859B (en) Image processing method and electronic device
EP4307168A1 (en) Target user determination method, electronic device and computer-readable storage medium
CN116055870B (en) Photographing method and electronic equipment
CN113050864B (en) Screen capturing method and related equipment
CN116017138B (en) Light measuring control display method, computer equipment and storage medium
CN114520870B (en) Display method and terminal
CN116708317B (en) Data packet MTU adjustment method and device and terminal equipment
CN116723384B (en) Process control method, electronic device and readable storage medium
CN116048769B (en) Memory recycling method and device and terminal equipment
CN114125144B (en) Method, terminal and storage medium for preventing false touch
CN117729420A (en) Continuous shooting method and electronic equipment
CN116582743A (en) Shooting method, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication