WO2023160224A9 - Photographing method and related device - Google Patents

Photographing method and related device Download PDF

Info

Publication number
WO2023160224A9
WO2023160224A9 PCT/CN2022/142907 CN2022142907W WO2023160224A9 WO 2023160224 A9 WO2023160224 A9 WO 2023160224A9 CN 2022142907 W CN2022142907 W CN 2022142907W WO 2023160224 A9 WO2023160224 A9 WO 2023160224A9
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
state
camera
application
ideal
Prior art date
Application number
PCT/CN2022/142907
Other languages
French (fr)
Chinese (zh)
Other versions
WO2023160224A1 (en
Inventor
林梦然
Original Assignee
荣耀终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202210185836.8A external-priority patent/CN116723382B/en
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2023160224A1 publication Critical patent/WO2023160224A1/en
Publication of WO2023160224A9 publication Critical patent/WO2023160224A9/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region

Definitions

  • the present application relates to the field of terminal technology, and in particular, to a photographing method and related equipment.
  • Shutter lag also known as shutter lag, refers to the time from when the shutter is pressed to when the photo is taken.
  • shutter delay can reflect the processing speed of the electronic equipment during the period from when the shutter is pressed to when the shooting is completed. When the shutter delay is too long, the terminal's response speed will be slower, which will affect the user's shooting experience.
  • This application provides a shooting method and related equipment.
  • the electronic device can acquire image frames based on the ideal shooting parameters.
  • the ideal shooting parameters are the shooting parameters obtained by the electronic device when the 3A algorithm has converged. In this way, the electronic device does not need to wait until the 3A state changes from the ideal parameter state to the parameter locked state before acquiring image frames based on the ideal shooting parameters. In other words, the electronic device can obtain the photographed image faster.
  • This shooting method shortens the shutter delay and improves the response speed of electronic devices. At the same time, it also improves the user's photography experience.
  • this application provides a photographing method.
  • the method includes: an electronic device displays a first interface; the first interface includes a shutter control; the first interface is a photography interface of a camera application; in response to a first operation acting on the shutter control, the electronic device Execute the 3A algorithm to adjust the shooting parameters and update the 3A status; the 3A status is used to represent the execution of the 3A algorithm; if the 3A status is an ideal parameter status and the electronic device is in a stable state, then The electronic device acquires image frames based on ideal shooting parameters; the ideal parameter state indicates that the 3A algorithm has converged; and the ideal shooting parameters are the shooting parameters obtained by the electronic device when the 3A algorithm converges.
  • the electronic device does not need to wait until the 3A state changes from the ideal parameter state to the parameter locked state before acquiring image frames based on the ideal shooting parameters.
  • the 3A state is the ideal parameter state, and the electronic device is in a stable state.
  • image frames can be obtained based on ideal shooting parameters.
  • the ideal shooting parameters are the shooting parameters obtained by the electronic device when the 3A algorithm has converged. This also means that electronic devices can obtain photographed images faster.
  • the above-mentioned shooting method shortens the shutter delay, improves the response speed of electronic devices, and also improves the user's photography experience.
  • the first operation may be click, voice control, gesture, etc., which is not limited by this application.
  • the image frame may be the first image in the embodiments described below.
  • the method may further include: the electronic device acquires a state based on a gyroscope sensor The monitoring data determines whether the electronic device is in the stable state; the state monitoring data includes the angular velocity and/or jitter angle of the electronic device around the x-axis, y-axis, and z-axis.
  • the electronic device can determine the motion status of the electronic device through the status monitoring data obtained by the gyroscope sensor.
  • the camera HAL module in the electronic device can continuously receive status monitoring data from the gyroscope sensor, and determine whether the electronic device is in a stable state based on the status monitoring data.
  • the electronic device can obtain the motion status of the device in real time. There is no need to wait until the 3A state becomes the ideal parameter state and then judge whether the electronic device is in a stable state based on the acquired image. In this way, the electronic device can respond to taking photos faster, improving the user's shooting experience.
  • the condition monitoring data includes the angular velocity and/or jitter angle of the electronic device around the x-axis, y-axis, and z-axis.
  • the electronic device can determine whether the electronic device is in a stable state by comparing the relationship between the angular velocity and the preset angular velocity, and/or comparing the relationship between the shaking angle and the preset angle.
  • the electronic device is in a stable state.
  • the electronic device is in a stable state.
  • the electronic device is in a stable state.
  • the method further includes: If the electronic device is not in the stable state, the electronic device receives new state monitoring data obtained by the gyro sensor, and re-judges whether the electronic device is in a stable state based on the new state monitoring data.
  • the electronic device can continuously determine the motion status of the electronic device based on the status monitoring data obtained by the gyroscope sensor. It is understandable that if the electronic device is not in a stable state, the electronic device will make a judgment based on the new state monitoring data until the electronic device is in a stable state. In this way, the electronic device does not need to send the shooting data through the camera HAL module to obtain the image, nor does it need to judge whether the electronic device is in a stable state based on the image. Instead, it only needs to judge based on the received status monitoring data, saving time (no need to send shooting data, no need to upload images collected by the camera), which improves the speed of the electronic device's response to taking photos.
  • the method before the electronic device acquires image frames based on ideal shooting parameters, the method further includes: the electronic device acquires N frames of images; if the N If M frame images in the frame images are 3A stable images, the electronic device is in the stable state; the ratio of M to N is greater than the first threshold; the 3A stable image is the electronic device at a confidence level The image obtained when it is greater than the second threshold; the confidence is used to measure the stability of the 3A state; the greater the confidence, the more stable the 3A state is; both M and N are positive integers.
  • the electronic device when the 3A state is an ideal parameter state, the electronic device can determine the stability of the 3A state based on the proportion of 3A stable images in the acquired images, thereby determining whether the electronic device is in a stable state. . It is understandable that in the process of the 3A state changing from the ideal parameter state to the parameter locked state, the electronic device needs to continuously acquire images (here refers to the preview image). Until the acquired image meets a certain threshold, the 3A state can change from the ideal parameter state. Changes to parameter locked state. And this process will take a lot of time. Through the above method, the electronic device can obtain the photographed image frame without waiting for the 3A state to change to the parameter lock state, which saves time and allows the user to obtain the photographed image faster.
  • the electronic device if the ratio of M to N is greater than the first threshold, the electronic device is in a stable state.
  • the electronic device if the number of M is greater than the first threshold, the electronic device is in a stable state.
  • the method further includes: if there are no M frames of images in the N frames of images, it is the 3A To stabilize the image, the electronic device continues to acquire L frame images, and determines whether the electronic device is in the stable state according to the number of frames of the 3A stable image included in the L frame image.
  • the electronic device determines that the electronic device is not in a stable state based on N frames of images, it can continue to acquire L frames of images, and when the 3A stable images included in the L frame of images reach a certain number (or the proportion reaches After a certain value), it is determined that the electronic device is in a stable state. In this way, the electronic device can obtain the photographed image frame without waiting for the 3A state to change to the parameter lock state, saving time and allowing the user to obtain the photographed image faster.
  • the method further includes: the electronic device uses the camera application Send a 3A trigger instruction to the hardware abstraction HAL layer; the 3A trigger instruction is used to trigger the electronic device to execute the 3A algorithm.
  • the electronic device acquires an image frame based on the ideal shooting parameters. , including: if the 3A state is the ideal parameter state and the electronic device is in the stable state, the electronic device sends the current 3A state to the camera application through the camera HAL module; in the camera application When it is determined that the current 3A state is the ideal parameter state, the electronic device sends a photographing request to the camera HAL module through the camera application; based on the photographing request, the electronic device sends a photographing request through the camera HAL module.
  • the camera HAL module sends the ideal shooting parameters to the camera, and uses the camera to collect the image frames according to the ideal shooting parameters.
  • the method further includes: the electronic device displays a second interface; the second The interface includes a gallery shortcut control; the gallery shortcut control displays thumbnails of the image frames.
  • the electronic device can save the acquired image taken this time to the gallery application.
  • the gallery shortcut control included in the photo-taking interface can display the thumbnail of the image taken this time.
  • the present application provides an electronic device.
  • the electronic device may include a display, memory, and one or more processors.
  • the memory can store a computer program, and the processor can call the computer program.
  • the display may be used to: display a first interface; the first interface includes a shutter control; the first interface is a photography interface of a camera application; and the processor may be used to: respond to the action on the shutter control.
  • the first operation is to execute the 3A algorithm to adjust the shooting parameters and update the 3A status; the 3A status is used to represent the execution of the 3A algorithm; if the 3A status is an ideal parameter status and the electronic device is in In a stable state, image frames are acquired based on ideal shooting parameters; the ideal parameter state indicates that the 3A algorithm has converged; the ideal shooting parameters are the shooting parameters obtained by the electronic device when the 3A algorithm converges.
  • the processor before being used to obtain the image frame based on the ideal shooting parameters, is also used to: determine the image frame based on the status monitoring data obtained by the gyroscope sensor. Whether the electronic device is in the stable state; the state monitoring data includes the angular velocity and/or jitter angle of the electronic device around the x-axis, y-axis, and z-axis.
  • the processor after being used to determine whether the electronic device is in the stable state based on the state monitoring data obtained by the gyroscope sensor, also uses In: if the electronic device is not in the stable state, receive new state monitoring data obtained by the gyro sensor, and re-determine whether the electronic device is in a stable state based on the new state monitoring data.
  • the processor before being used to obtain image frames based on ideal shooting parameters, is also used to: obtain N frames of images; if the N frames of images The M frame images in are 3A stable images, then the electronic device is in the stable state; the ratio of M to N is greater than the first threshold; the 3A stable image is the electronic device with a confidence level greater than the The image obtained at two thresholds; the confidence is used to measure the stability of the 3A state; the greater the confidence, the more stable the 3A state is; both M and N are positive integers.
  • the processor after being used to obtain N frames of images, is also used to: if M frames of images do not exist in the N frames of images, the processor is For the 3A stable image, continue to acquire L frame images, and determine whether the electronic device is in the stable state according to the number of frames of the 3A stable image included in the L frame image.
  • the processor after responding to the first operation acting on the shutter control, is also configured to: use the camera application Send a 3A trigger instruction to the hardware abstraction HAL layer; the 3A trigger instruction is used to trigger the electronic device to execute the 3A algorithm.
  • the processor is configured to obtain the ideal shooting parameters based on the ideal parameter state if the 3A state is an ideal parameter state and the electronic device is in a stable state.
  • image frame specifically for: if the 3A state is the ideal parameter state and the electronic device is in the stable state, send the current 3A state to the camera application through the camera HAL module; in the camera
  • the camera application issues a photographing request to the camera HAL module; based on the photographing request, the camera HAL module issues the Ideal shooting parameters to the camera.
  • the electronic device may also be provided with a camera. The camera is used to collect the image frames according to the ideal shooting parameters.
  • the display screen may be used to display a second interface; the second interface It includes a gallery shortcut control; the gallery shortcut control displays thumbnails of the image frames.
  • the present application provides a computer storage medium that includes instructions that, when run on an electronic device, cause the electronic device to execute any of the possible implementations of the first aspect.
  • embodiments of the present application provide a chip that is applied to an electronic device.
  • the chip includes one or more processors, and the processor is used to call computer instructions to cause the electronic device to execute any one of the above first aspects. possible implementation methods.
  • embodiments of the present application provide a computer program product containing instructions, which when the computer program product is run on an electronic device, causes the electronic device to execute any of the possible implementations of the first aspect.
  • the electronic device provided by the second aspect the computer storage medium provided by the third aspect, the chip provided by the fourth aspect, and the computer program product provided by the fifth aspect are all used to execute any one of the first aspects. Possible implementations. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of any possible implementation method in the first aspect, and will not be described again here.
  • Figure 1 is a schematic diagram of a shutter delay provided by an embodiment of the present application.
  • Figures 2A-2C are a set of user interfaces provided by embodiments of the present application.
  • Figure 3 is a flow chart of a shooting method provided by an embodiment of the present application.
  • Figure 4 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
  • Figure 5 is a schematic diagram of the software structure of an electronic device provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another shutter delay provided by an embodiment of the present application.
  • 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 this phrase 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. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
  • the electronic device can be a smartphone, a smart TV, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, and a cellular phone.
  • PDA personal digital assistant
  • AR augmented reality
  • VR virtual reality
  • AI artificial intelligence
  • wearable devices wearable devices
  • vehicle-mounted devices Smart home devices and/or smart city devices, etc.
  • the embodiment of the present application does not place any special restrictions on the specific type of the electronic device.
  • 3A refers to autofocus (autofocus, AF), automatic exposure (auto exposure, AE) and automatic white balance (autowhitebalance, AWB).
  • Autofocus is the process of adjusting the focal length of a camera to automatically obtain a clear image.
  • Automatic exposure is the process of automatically adjusting exposure parameters so that the photosensitive device obtains the appropriate exposure.
  • Automatic white balance is the process of automatically adjusting the white balance gain so that the color of the shot is close to the real color of the object.
  • the 3A algorithm is actually implemented at the hardware abstraction layer of electronic devices.
  • the camera application located at the application layer needs to interact with the hardware abstraction layer (HAL) to implement the 3A algorithm.
  • HAL hardware abstraction layer
  • the electronic device not only needs to spend time executing the 3A algorithm, but also needs to spend time completing the interaction between the camera application and the hardware abstraction layer.
  • electronic devices include camera applications.
  • the camera app's shooting interface includes shutter controls.
  • the electronic device can detect user actions on the shutter control.
  • the camera application can generate a 3A trigger command.
  • the 3A trigger instruction is used to trigger the 3A algorithm.
  • the camera application can send the 3A trigger command to the HAL layer.
  • the camera HAL module processes instructions in sequence.
  • processing the 3A trigger instruction it can be determined that the instruction includes information indicating turning on the 3A algorithm (for example, a TRIGGER_START entry), and provides an interface to implement the 3A algorithm.
  • the 3A state is the parameter adjustment state.
  • the electronic device continuously adjusts the shooting parameters to obtain ideal parameters until the 3A algorithm converges. Once the 3A algorithm converges, the electronic device adjusts the 3A state to the ideal parameter state. The electronic device can acquire multiple frames of images under ideal parameters. After the 3A state remains stable, the 3A state is adjusted from the ideal parameter state to the parameter locked state. At this time, the camera HAL module can report the current 3A status (ie, parameter lock status) to the camera application. After the camera application obtains the current 3A status, it can issue a photo request. The camera HAL module receives the photo request sent by the camera application and can select and output frames.
  • the current 3A status ie, parameter lock status
  • the electronic device can generate a 3A cancellation command and send the 3A cancellation command to the HAL layer.
  • the 3A cancel instruction is used to stop execution of the 3A algorithm.
  • the 3A cancellation instruction is sent to the HAL layer, it is temporarily stored in the buffer and waits for processing.
  • the camera HAL module processes the 3A cancel command, it determines that the command includes information to stop executing the 3A algorithm (for example, a TRIGGER_CANCEL entry), thereby resetting the shooting parameters.
  • the adjusted shooting parameters will be restored to their default values.
  • the shooting parameters mentioned in this application include focus parameters, exposure parameters and white balance parameters.
  • the electronic device can determine whether the electronic device is in a good focus state based on the focus parameters.
  • Focus parameters may include focal length.
  • Exposure parameters can include aperture size, shutter speed, and sensitivity parameters.
  • White balance parameters may include RGB values.
  • the shutter delay includes channel delay, 3A algorithm execution time and data reporting delay.
  • the path delay is the time that the 3A trigger instruction waits for processing after it reaches the HAL layer, which is the delay 1 shown in Figure 1.
  • the 3A algorithm execution time is the time required to adjust the shooting parameters to the ideal parameters.
  • the data reporting delay is the time in the ideal parameter state, that is, delay 2 shown in Figure 1. This also means that the shooting response time of electronic equipment is long and the response speed is slow, which affects the user's shooting experience.
  • this application provides a shooting method and related equipment.
  • the electronic device can detect the user operation on the shutter control of the camera application.
  • the camera application can generate a 3A trigger instruction and send the 3A trigger instruction to the camera HAL module.
  • the camera HAL module can provide an interface to implement the 3A algorithm.
  • the 3A status may change.
  • the camera HAL module in the electronic device can directly report the status to the camera application, and then the camera application in the electronic device issues a photography instruction, and then selects the frame through the camera HAL module, and finally passes The monitor displays the acquired image.
  • This method reduces the shutter delay, reduces the shooting response time of the electronic device, makes the response speed faster, and improves the user's shooting experience.
  • GUI graphical user interface
  • Controls can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. Visual interface elements.
  • FIG. 2A illustrates a user interface 210 of an electronic device.
  • the user interface 210 displays a page on which application icons are placed.
  • the page may include multiple application icons (for example, a weather application icon, a calendar application icon, a photo album application icon, a note application icon, an email application icon, an application store application icon, Set application icon, etc.).
  • Page indicators may also be displayed below the multiple application icons to indicate the positional relationship between the currently displayed page and other pages.
  • There are multiple application icons below the page indicator eg, camera application icon 211, browser application icon, information application icon, dialing application icon). The app icon remains displayed when switching pages.
  • the camera application icon 211 is an icon of the camera application.
  • the camera application icon 21 can be used to trigger the launch of the camera application, ie, the camera application.
  • a camera application is an image shooting application on electronic devices such as smartphones and tablets. This application does not impose restrictions on the name of the application.
  • the electronic device can detect user operations on the camera application icon 211. In response to the user operation, the electronic device may display the user interface 220 shown in FIG. 2B.
  • the user interface 220 may include: a setting area 221, a preview area 222, a camera mode option 223, a gallery shortcut control 224, a shutter control 225, and a camera flip control 226. in:
  • Settings area 221 may include setting controls and flash controls.
  • the setting controls can be used to adjust the parameters of taking photos (such as resolution, filters, etc.) and turn on or off some methods for taking photos (such as timed photos, smile captures, voice-activated photos, etc.). It can be understood that the setting control can also be used to set more other shooting functions, which is not limited in the embodiments of the present application.
  • the flash control can be used to turn the flash on or off.
  • the preview area 222 can be used to display images captured by the camera in real time.
  • the electronic device can refresh the display content in real time to facilitate the user to preview the image currently collected by the camera.
  • One or more shooting mode options may be displayed in the camera mode option 223 .
  • the one or more shooting mode options may include: a night scene mode option, a portrait mode option, a photo mode option, a video mode option and more options.
  • This one or more shooting mode options can be displayed as text information on the interface, such as "night scene”, “portrait”, “photography”, “video recording”, and “more”.
  • the one or more camera options can also be represented as icons or other forms of interactive elements (IE) on the interface.
  • IE interactive elements
  • the electronic device can further display more other shooting mode options, such as slow-motion shooting mode options, etc., which can display richer camera functions to the user. Not limited to what is shown in Figure 2B, more options may not be displayed in the camera mode options, and the user can browse other shooting mode options by sliding left/right in the camera mode options.
  • more other shooting mode options such as slow-motion shooting mode options, etc.
  • the gallery shortcut control 224 can be used to open the gallery application.
  • the electronic device can open the gallery application.
  • a user operation such as a click operation
  • the electronic device can open the gallery application.
  • the gallery application is a picture management application on electronic devices such as smartphones and tablets. It can also be called a "photo album". This embodiment does not limit the name of the application.
  • the gallery application can support users to perform various operations on pictures stored on electronic devices, such as browsing, editing, deleting, selecting and other operations.
  • the shutter control 225 can be used to monitor user operations that trigger taking pictures.
  • the electronic device can detect a user operation on the shutter control 225, and in response to the operation, the electronic device can acquire an image through the camera and save it as a picture in the gallery application.
  • the electronic device can also display thumbnails of the saved images in the gallery shortcut control 224 . That is, the user can click the shutter control 225 to trigger taking a picture.
  • the shutter control 225 may be a button or other form of control.
  • Camera flip control 226 may be used to listen for user operations that trigger flipping the camera.
  • the electronic device can detect a user operation, such as a click operation, on the camera flip control 226, and in response to the operation, the electronic device can flip the camera, such as switching a rear camera to a front camera. At this time, the image captured by the front camera may be displayed in the preview area 222 .
  • the electronic device may detect user operations on shutter control 225 .
  • the camera application can generate a 3A trigger command and send the 3A trigger command to the HAL layer.
  • the relevant modules of the HAL layer can process the 3A trigger command and provide an interface for related processing of the electronic device.
  • the unit executes the 3A algorithm.
  • the relevant modules of the HAL layer of the electronic device can update the 3A status.
  • the 3A state is an ideal parameter state
  • the relevant module of the HAL layer of the electronic device can report the current 3A state to the camera application.
  • the camera application determines that the current 3A status is the ideal parameter status, it can issue a photo request.
  • the electronic device can capture an image through a camera and save the image to a gallery application.
  • the electronic device may display the user interface 230 shown in Figure 2C.
  • User interface 230 includes substantially the same controls as user interface 220 . The difference is that the preview image displayed in the preview area 231 in the user interface 230 changes, and the image displayed in the gallery shortcut control 232 changes. It can be understood that the images displayed by the gallery shortcut control 232 are images obtained by the above-mentioned electronic device through the camera and saved in the gallery application.
  • a photographing method provided by an embodiment of the present application will be introduced below with reference to FIG. 3 .
  • the electronic device displays the first interface.
  • the first interface is the photo interface of the camera application.
  • the first interface includes shutter controls.
  • the user can click the camera application icon, and in response to the click operation, the electronic device can start the camera application (ie, camera application program) and display the first interface.
  • the first interface is the photographing interface of the camera application.
  • the first interface includes shutter controls. Users can take photos by triggering the shutter control.
  • the first interface may be the user interface 220 shown in FIG. 2B.
  • the electronic device detects a user operation on the shutter control, and in response to the user operation, the camera application generates a 3A trigger instruction. Among them, the 3A trigger instruction is used to trigger the electronic device to execute the 3A algorithm.
  • the user can click on the shutter control.
  • the electronic device can detect a click operation on the shutter control, and in response to the click operation, the camera application in the electronic device can generate a 3A trigger instruction.
  • the user can also trigger the shutter control through sound, gestures, etc., and this application does not limit this. That is to say, this application does not limit the specific form of user operations.
  • the 3A trigger instruction is used to trigger the electronic device to execute the 3A algorithm.
  • the 3A trigger instruction may include instruction information that triggers the 3A algorithm.
  • the 3A trigger instruction may include startup instruction information that triggers the AF algorithm.
  • 3A trigger instructions may include ANDROID_CONTROL_AF_TRIGGER_START. ANDROID_CONTROL_AF_TRIGGER_START is used to trigger autofocus scanning.
  • the 3A trigger instruction may also include a 3A mode.
  • 3A mode can include OFF mode (ie, shutdown mode), AUTO mode (ie, automatic mode), etc.
  • OFF mode the individual autofocus (AF), automatic exposure (AE), and automatic white balance (AWB) modes are effectively turned off, and any shooting controls are not overridden by the 3A routine.
  • AUTO mode AF, AE and AWB modes all run their own independent algorithms and have their own mode, status and trigger metadata entries.
  • the 3A trigger command may include AF_MODE_AUTO.
  • S303 The camera application in the electronic device sends the 3A trigger command to the HAL layer.
  • the camera application in the electronic device can send the 3A trigger command to the HAL layer of the electronic device so that the relevant modules of the HAL layer can process it.
  • the camera HAL module located at the HAL layer in the electronic device can process the 3A trigger instruction.
  • the camera HAL module processes requests in order. Therefore, after the 3A trigger command is transmitted to the HAL layer, it needs to enter the buffer and queue up to wait for processing by the camera HAL module.
  • the camera HAL module in the electronic device determines that the 3A trigger instruction includes instruction information for triggering the 3A algorithm, and provides an interface to execute the 3A algorithm.
  • the camera HAL module in the electronic device can process related requests sent to the HAL layer in sequence.
  • the camera HAL module can determine that the 3A trigger command includes instruction information for triggering the 3A algorithm, and provide a corresponding interface to execute the 3A algorithm.
  • the camera HAL module can connect the upper-layer software in the camera framework to the underlying camera driver and hardware.
  • the camera subsystem may include implementation in camera pipeline components, such as 3A algorithm processing controls.
  • the camera HAL module provides interfaces for implementing these components.
  • the camera HAL module can provide an interface to support the application framework to trigger the 3A algorithm and then call the kernel layer driver, so that the image signal processor (image signal processor, ISP) can schedule the 3A algorithm library. And execute the 3A algorithm to adjust the shooting parameters.
  • the 3A algorithm includes AF algorithm, AE algorithm and AWB algorithm.
  • the shooting parameters mentioned in this application include focus parameters, exposure parameters and white balance parameters.
  • S305 The electronic device updates the 3A status to the parameter adjustment status.
  • the 3A state is used to represent the execution of the 3A algorithm.
  • the camera HAL module in the electronic device can provide an interface for the processing unit (for example, ISP) to execute the 3A algorithm and update the 3A status to the parameter adjustment status.
  • the electronic device may provide an interface to allow the ISP to execute the 3A algorithm.
  • the shooting parameters are initial values. Once the ISP starts executing the 3A algorithm, the 3A state changes to the parameter adjustment state.
  • the parameter adjustment status indicates that the 3A algorithm is in a running state and has not yet converged.
  • the electronic device can continuously adjust the shooting parameters.
  • the metadata entry of the automatic focus setting is AF_STATE_PASSIVE_SCAN
  • the metadata entry of the automatic exposure setting is AE_STATE_SEARCHING
  • the metadata entry of the automatic white balance setting is AWB_STATE_SEARCHING.
  • the camera HAL module in the electronic device can update the 3A state from the parameter adjustment state to the ideal parameter state.
  • the ideal parameter state indicates that the 3A algorithm has converged. That is to say, when the 3A state is the ideal parameter state, the electronic device has determined the best shooting parameters, that is, the ideal shooting parameters.
  • the metadata entry of the automatic focus setting is _STATE_PASSIVE_FOCUSED
  • the metadata entry of the automatic exposure setting is AE_STATE_CONVERGED
  • the metadata entry of the automatic white balance setting is AWB_STATE_CONVERGED.
  • the camera HAL module in the electronic device can report the current 3A state to the camera application to notify the camera application that the 3A algorithm has converged and the shooting parameters have reached the optimum.
  • the electronic device when the 3A state is the ideal parameter state, the electronic device continuously acquires images through the camera. If the confidence level of the continuous multi-frame images obtained by the electronic device through the camera is high under the ideal parameter state, the camera HAL module in the electronic device can report the current 3A state (i.e., the ideal parameter state) to the camera application. That is to say, if under the ideal parameter state, the number of 3A stable image frames acquired by the electronic device through the camera reaches the first threshold, the camera HAL module in the electronic device can report the current 3A state (i.e., the ideal parameter state) to the camera application.
  • the 3A stable image is an image obtained when the confidence level is greater than the second threshold.
  • Confidence is used to measure the stability of the 3A state. It is understandable that the greater the confidence, the more stable the 3A state is.
  • the 3A state may switch back and forth between different states. For example, the 3A state continuously changes from the parameter adjustment state to the ideal parameter state, and then from the ideal parameter state to the parameter adjustment state.
  • the 3A state is stable, the 3A state is basically stable and remains in one state, and will not switch back and forth between different states.
  • the first threshold and the second threshold can be set according to actual needs, and this application does not limit this.
  • the camera HAL module in the electronic device can report the current 3A state (ie, the ideal parameter state) to the camera application.
  • the electronic device can determine whether the electronic device is stable through status monitoring data. Among them, the status monitoring data can be used to determine the motion status of the electronic device.
  • condition monitoring data may be the angular velocity and/or jitter angle of the electronic device about three axes (i.e., x, y, and z axes) sent by a gyroscope sensor.
  • the gyroscope sensor can detect the motion state of the electronic device and send its motion state to the camera HAL module of the electronic device. That is, the status monitoring data may include the motion status of the electronic device.
  • the motion state of the electronic device may include a stable state (i.e., a stationary state) and a shaking state.
  • the gyroscope sensor continuously sends status monitoring data to the camera HAL module. In some embodiments of the present application, after the 3A trigger command is issued to the HAL layer of the electronic device, the gyroscope sensor then sends status monitoring data to the camera HAL module.
  • the camera application in the electronic device After determining that the current 3A state is the ideal parameter state, the camera application in the electronic device issues a photo-taking request, obtains the first image through the camera, and saves the first image.
  • the first image is an image obtained by taking a photo.
  • the camera application in the electronic device can determine that the current 3A status is the ideal parameter status, and issue a photo request, and obtain the first image through the camera. and save the first image to the gallery application. It can be understood that after the photographing request is issued, the image (ie, the first image) acquired by the electronic device is a photographed image, not a preview image.
  • the electronic device displays the second interface.
  • the second interface includes gallery shortcut controls.
  • the gallery shortcut control can display a thumbnail of the first image.
  • the electronic device can display a second interface, and the second interface can include a gallery shortcut control.
  • the electronic device can display the thumbnail of the first image through the gallery shortcut control.
  • the second interface may be the user interface 230 shown in FIG. 2C.
  • FIG. 4 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
  • the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and user Identification module (Subscriber Identification Module, SIM) card interface 195, etc.
  • a processor 110 an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen
  • 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 light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present invention do not constitute specific limitations on the electronic equipment.
  • the electronic device may include more or less components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (Application Processor, AP), a modem processor, a graphics processor (Graphics Processing unit, GPU), and an image signal processor. (i.e. ISP), controller, memory, video codec, digital signal processor (Digital Signal Processor, DSP), baseband processor, and/or neural network processor (Neural-network Processing Unit, NPU), etc.
  • ISP application processor
  • controller memory
  • video codec digital signal processor
  • DSP Digital Signal Processor
  • NPU neural network Processing Unit
  • different processing units can be independent devices or integrated in one or more processors.
  • the controller can be the nerve center and command center of the electronic device.
  • the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the electronic device can execute the shooting method through the processor 110 .
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the USB interface 130 is an interface that complies with the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 can be used to connect a charger to charge the electronic device, and can also be used to transmit data between the electronic device and peripheral devices. It can also be used to connect headphones to play audio through them. This interface can also be used to connect other electronic devices, such as AR devices, etc.
  • the charging management module 140 is used to receive charging input from the charger. While the charging management module 140 charges the battery 142, it can also provide power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, wireless communication module 160, etc.
  • the wireless communication function of the electronic device can be realized through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied to electronic devices.
  • 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 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate 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 application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194.
  • the wireless communication module 160 can provide applications on electronic devices including Wireless Local Area Networks (WLAN) (such as Wireless Fidelity (Wi-Fi) network), Bluetooth (Bluetooth, BT), and Global Navigation Satellite System. (Global Navigation Satellite System, GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology.
  • the electronic device implements display functions through the GPU, display screen 194, and application processor.
  • the GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are 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 alter display information.
  • the display screen 194 is used to display images, videos, etc.
  • Display 194 includes a display panel.
  • the display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (Active-Matrix Organic Light).
  • the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • Electronic devices can achieve acquisition functions through ISPs, cameras 193, video codecs, GPUs, display screens 194, and application processors.
  • the ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the light signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image or video visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
  • ISP may be used to execute the 3A algorithm.
  • Camera 193 is used to capture still images or video.
  • the object passes through the lens to produce an optical image that is projected onto the photosensitive element.
  • the photosensitive element can be a Charge Coupled Device (CCD) or a Complementary Metal-Oxide-Semiconductor (CMOS) phototransistor.
  • CCD Charge Coupled Device
  • CMOS Complementary Metal-Oxide-Semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image or video signal.
  • ISP outputs digital images or video signals to DSP for processing.
  • DSP converts digital images or video signals into standard RGB, YUV and other formats.
  • the electronic device may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • the electronic device can use N cameras 193 to acquire images of multiple exposure coefficients.
  • the electronic device can synthesize HDR images through HDR technology based on the images of multiple exposure coefficients.
  • a digital signal processor is used to process digital signals. In addition to processing digital images or video signals, it can also process other digital signals. For example, when the electronic device selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
  • Video codecs are used to compress or decompress digital video.
  • Electronic devices may support one or more video codecs. In this way, electronic devices can play or record videos in multiple encoding formats, such as: Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG Moving Picture Experts Group
  • MPEG2 MPEG2, MPEG3, MPEG4, etc.
  • NPU is a neural network (Neural-Network, NN) computing processor.
  • NN neural network
  • Intelligent cognitive applications of electronic devices can be realized through NPU, such as image recognition, face recognition, speech recognition, text understanding, etc.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device.
  • the internal memory 121 may include a program storage area and a data storage area.
  • the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image video playback function, etc.), etc.
  • the storage data area can store data created during the use of electronic equipment (such as audio data, phone books, etc.).
  • the electronic device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
  • Speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • Microphone 170C also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
  • the electronic device may be provided with at least one microphone 170C.
  • the headphone interface 170D is used to connect wired headphones.
  • the sensor module 180 may include one or more sensors, which may be of the same type or different types. It can be understood that the sensor module 180 shown in FIG. 4 is only an exemplary division method, and other division methods are possible, and this application is not limited thereto.
  • the pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.
  • pressure sensor 180A may be disposed on display screen 194 .
  • the electronic device detects the strength of the touch operation according to the pressure sensor 180A.
  • the electronic device can also calculate the location of the touch based on the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch location but with different touch operation intensities may correspond to different operation instructions.
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device. In some embodiments, the angular velocity of the electronic device about three axes (ie, x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B can be used for image stabilization.
  • Air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • Magnetic sensor 180D includes a Hall sensor.
  • the electronic device can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the acceleration sensor 180E can detect the acceleration of the electronic device in various directions (generally three axes). When the electronic device is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices and be used in horizontal and vertical screen switching, pedometer and other applications.
  • Distance sensor 180F for measuring distance.
  • Electronic devices can measure distance via infrared or laser. In some embodiments, when shooting a scene, the electronic device can utilize the distance sensor 180F to measure distance to achieve fast focusing.
  • 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.
  • Electronic devices emit infrared light through light-emitting diodes.
  • Electronic devices use photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device. When insufficient reflected light is detected, the electronic device can determine that there is no object near the electronic device.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device can adaptively adjust the brightness of the display screen 194 based on perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device is in the pocket to prevent accidental touching.
  • the ambient light sensor 180L in the electronic device may be used to obtain the ambient brightness and transmit it to the corresponding processing module (eg, the processor 110, etc.).
  • the processing module eg, the processor 110, etc.
  • Fingerprint sensor 180H is used to acquire fingerprints.
  • Temperature sensor 180J is used to detect temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K can be disposed on the display screen 194.
  • 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 used to detect a touch operation on or near the touch sensor 180K.
  • the touch sensor can pass the detected touch operation to the application processor to determine the touch event type.
  • Visual output related to the touch operation may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device at a location different from that of the display screen 194 .
  • Bone conduction sensor 180M can acquire vibration signals.
  • the buttons 190 include a power button, a volume button, etc.
  • Key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback.
  • touch operations for different applications can correspond to different vibration feedback effects.
  • the motor 191 can also respond to different vibration feedback effects for touch operations in different areas of the display screen 194 .
  • Different application scenarios such as time reminders, receiving information, alarm clocks, games, etc.
  • the touch vibration feedback effect can also be customized.
  • the indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to realize contact and separation from the electronic device.
  • the electronic device can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • Electronic devices interact with the network through SIM cards to implement functions such as calls and data communications.
  • the electronic device uses an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device and cannot be separated from the electronic device.
  • the software structure of electronic devices can adopt layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture.
  • FIG. 5 is a schematic diagram of the software structure of an electronic device provided by an embodiment of the present application.
  • the software framework of the electronic device involved in this application may include an application layer, an application framework layer (framework, FWK), a system library, an Android runtime, a hardware abstraction layer and a kernel layer (kernel).
  • an application layer an application framework layer (framework, FWK)
  • FWK application framework layer
  • system library an application framework layer
  • Android runtime a hardware abstraction layer
  • kernel layer kernel layer
  • the application layer can include a series of application packages, such as camera, gallery, calendar, call, WLAN, music, video and other applications (also called applications). Among them, cameras are used to acquire images and videos. Regarding other applications of the application layer, please refer to the introduction and description in conventional technologies, and this application does not elaborate on them.
  • the application on the electronic device may be a native application (such as an application installed in the electronic device when the operating system is installed before the electronic device leaves the factory), or it may be a third-party application (such as a user downloading and installing it through an application store). application), the embodiments of this application are not limited.
  • the application framework layer provides application programming interfaces (Application Programming Interface, API) and programming frameworks for applications in the application layer.
  • API Application Programming Interface
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
  • a window manager is used to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make this data accessible to applications.
  • Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, etc.
  • a view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • Telephone managers are used to provide communication functions of electronic devices. For example, call status management (including connected, hung up, etc.).
  • the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of a conversation interface. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
  • Runtime includes core libraries and virtual machines. Runtime is responsible for the scheduling and management of the system.
  • the core library contains two parts: one part is the functional functions that need to be called by the programming language (for example, Java language), and the other part is the core library of the system.
  • the programming language for example, Java language
  • the application layer and application framework layer run in virtual machines.
  • the virtual machine executes the programming files (for example, java files) of the application layer and application framework layer into binary files.
  • the virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
  • System libraries can include multiple functional modules. For example: Surface Manager (Surface Manager), Media Libraries (Media Libraries), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • Surface Manager Surface Manager
  • Media Libraries Media Libraries
  • 3D graphics processing library for example: OpenGL ES
  • 2D graphics engine for example: SGL
  • the surface manager is used to manage the display subsystem and provides the fusion of two-dimensional (2-Dimensional, 2D) and three-dimensional (3-Dimensional, 3D) layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
  • 2D Graphics Engine is a drawing engine for 2D drawing.
  • the hardware abstraction layer is the interface layer between the operating system kernel and upper-layer software. Its purpose is to abstract the hardware.
  • the hardware abstraction layer is an abstract interface of the device kernel driver, which is used to provide application programming interfaces for accessing underlying devices to higher-level Java API frameworks.
  • HAL contains multiple library modules, such as camera HAL module, display, Bluetooth, audio, etc. Each of these library modules implements an interface for a specific type of hardware component.
  • the Android operating system will load the library module for the hardware component.
  • the kernel layer is the foundation of the Android operating system, and the final functions of the Android operating system are completed through the kernel layer.
  • the kernel layer at least includes display driver, camera driver, audio driver, sensor driver, and virtual card driver.
  • the following embodiments take the software structure of the electronic device shown in FIG. 5 as an example to specifically describe the technical solution provided by the embodiments of the present application.
  • FIG. 6 is a schematic diagram of a shutter delay provided by an embodiment of the present application.
  • the electronic device may include a camera application.
  • the camera app's shooting interface includes shutter controls.
  • the electronic device can detect user actions on the shutter control.
  • the camera application can generate a 3A trigger command.
  • the 3A trigger instruction is used to trigger the 3A algorithm.
  • the camera application can send the 3A trigger command to the HAL layer.
  • the camera HAL module processes instructions in sequence. When processing the 3A trigger instruction, it can be determined that the instruction includes information indicating turning on the 3A algorithm (for example, a TRIGGER_START entry), and provides an interface to implement the 3A algorithm.
  • the 3A state is the parameter adjustment state.
  • the electronic device adjusts the 3A state to the ideal parameter state.
  • the camera HAL module can determine whether the electronic device is stable based on the number of frames of the 3A stable image and the status monitoring data (for specific methods, please refer to the aforementioned embodiment). If the electronic device is in a stable state, the camera HAL module in the electronic device can report the current 3A state (that is, the ideal parameter state) to the camera application. After the camera application obtains the current 3A status, it can issue a photo request. After receiving the photo request, the camera HAL module can perform frame selection and post-processing. It can be understood that the image obtained after post-processing is the image obtained by this photography.
  • the camera HAL module can upload this image to the application layer.
  • the electronic device can save it to the gallery application.
  • the electronic device can generate a 3A cancellation instruction and send the 3A cancellation instruction to the HAL layer.
  • the camera HAL module processes the 3A cancel command, it determines that the command includes information to stop executing the 3A algorithm (for example, a TRIGGER_CANCEL entry), thereby resetting the shooting parameters.
  • the adjusted shooting parameters will be restored to their default values.
  • the shutter delay includes delay 1 and 3A algorithm execution time.
  • the camera HAL module in the electronic device does not need to wait for the 3A status to change to the parameter lock status before reporting the current 3A status.
  • This method reduces the shutter delay, reduces the shooting response time of the electronic device, makes the response speed faster, and improves the user's shooting experience.

Abstract

Provided in the present application are a photographing method and a related device. An electronic device can detect a user operation acting on a shutter control of a camera application, and in response to the user operation, the camera application can generate a 3A trigger instruction and issue the 3A trigger instruction to a camera HAL module. The camera HAL module can provide an interface to implement a 3A algorithm. During the execution of the 3A algorithm, a 3A state may change. When the 3A state is in an ideal parameter state, the camera HAL module in the electronic device can report the state to the camera application, and the camera application then issues a photographing instruction so as to acquire an image, and stores the image. By means of the method, a camera HAL module in an electronic device does not need to wait for a 3A state to become a parameter locked state before reporting the current 3A state. In this way, shutter lag is reduced, such that the photographing response time of the electronic device is shortened, the response speed is increased, and the photographing experience of a user is thus improved.

Description

一种拍摄方法及相关设备Photography method and related equipment
本申请要求于2022年02月28日提交中国专利局、申请号为202210185836.8、申请名称为“一种拍摄方法及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the China Patent Office on February 28, 2022, with the application number 202210185836.8 and the application title "A Photography Method and Related Equipment", the entire content of which is incorporated into this application by reference. .
技术领域Technical field
本申请涉及终端技术领域,尤其涉及一种拍摄方法及相关设备。The present application relates to the field of terminal technology, and in particular, to a photographing method and related equipment.
背景技术Background technique
快门延迟(即shutterlag)又称快门时滞,指的是快门按下后到照片拍摄完成的时间。在通过电子设备进行拍摄的过程中,快门延迟可以反映快门按下后到拍摄完成的这段时间内电子设备的处理速度。而快门延迟过长时,终端的响应速度较慢,会影响用户的拍摄体验。Shutter lag, also known as shutter lag, refers to the time from when the shutter is pressed to when the photo is taken. In the process of shooting with electronic equipment, shutter delay can reflect the processing speed of the electronic equipment during the period from when the shutter is pressed to when the shooting is completed. When the shutter delay is too long, the terminal's response speed will be slower, which will affect the user's shooting experience.
因此,如何降低快门延迟是目前亟待解决的问题。Therefore, how to reduce shutter delay is an issue that needs to be solved urgently.
发明内容Contents of the invention
本申请提供了一种拍摄方法及相关设备。根据该拍摄方法,在3A状态为理想参数状态,并且电子设备处于稳定状态的情况下,电子设备可以基于理想拍摄参数获取图像帧。其中,理想拍摄参数为电子设备在3A算法已收敛的情况下获取的拍摄参数。通过这种方式,电子设备无需等到3A状态由理想参数状态变为参数锁定状态之后,再基于理想拍摄参数获取图像帧。也就是说,电子设备可以更快地获取拍照图像。这种拍摄方式缩短了快门延迟,提升了电子设备的响应速度,同时,也提升了用户的拍照体验。This application provides a shooting method and related equipment. According to this shooting method, when the 3A state is the ideal parameter state and the electronic device is in a stable state, the electronic device can acquire image frames based on the ideal shooting parameters. Among them, the ideal shooting parameters are the shooting parameters obtained by the electronic device when the 3A algorithm has converged. In this way, the electronic device does not need to wait until the 3A state changes from the ideal parameter state to the parameter locked state before acquiring image frames based on the ideal shooting parameters. In other words, the electronic device can obtain the photographed image faster. This shooting method shortens the shutter delay and improves the response speed of electronic devices. At the same time, it also improves the user's photography experience.
第一方面,本申请提供一种拍摄方法。该方法包括:电子设备显示第一界面;所述第一界面包括快门控件;所述第一界面为相机应用的拍照界面;响应于作用在所述快门控件上的第一操作,所述电子设备执行3A算法来调整拍摄参数,并对3A状态进行更新;所述3A状态用于表示所述3A算法的执行情况;若所述3A状态为理想参数状态,并且所述电子设备处于稳定状态,所述电子设备基于理想拍摄参数获取图像帧;所述理想参数状态表明3A算法已收敛;所述理想拍摄参数为所述电子设备在所述3A算法收敛时获取的拍摄参数。In a first aspect, this application provides a photographing method. The method includes: an electronic device displays a first interface; the first interface includes a shutter control; the first interface is a photography interface of a camera application; in response to a first operation acting on the shutter control, the electronic device Execute the 3A algorithm to adjust the shooting parameters and update the 3A status; the 3A status is used to represent the execution of the 3A algorithm; if the 3A status is an ideal parameter status and the electronic device is in a stable state, then The electronic device acquires image frames based on ideal shooting parameters; the ideal parameter state indicates that the 3A algorithm has converged; and the ideal shooting parameters are the shooting parameters obtained by the electronic device when the 3A algorithm converges.
在本申请提供的方案中,电子设备无需等到3A状态由理想参数状态变为参数锁定状态之后,再基于理想拍摄参数获取图像帧,而是在3A状态为理想参数状态,并且电子设备处于稳定状态的情况下,就可以基于理想拍摄参数获取图像帧。其中,理想拍摄参数为电子设备在3A算法已收敛的情况下获取的拍摄参数。这也就意味着,电子设备可以更快地获取拍照图像。上述拍摄方式缩短了快门延迟,提升了电子设备的响应速度,同时,也提升了用户的拍照体验。In the solution provided by this application, the electronic device does not need to wait until the 3A state changes from the ideal parameter state to the parameter locked state before acquiring image frames based on the ideal shooting parameters. Instead, the 3A state is the ideal parameter state, and the electronic device is in a stable state. In this case, image frames can be obtained based on ideal shooting parameters. Among them, the ideal shooting parameters are the shooting parameters obtained by the electronic device when the 3A algorithm has converged. This also means that electronic devices can obtain photographed images faster. The above-mentioned shooting method shortens the shutter delay, improves the response speed of electronic devices, and also improves the user's photography experience.
在本申请的一些实施例中,第一操作可以为点击、声控、手势等操作,本申请对此不作限制。In some embodiments of the present application, the first operation may be click, voice control, gesture, etc., which is not limited by this application.
在本申请的一些实施例中,图像帧可以为后述实施例中的第一图像。In some embodiments of the present application, the image frame may be the first image in the embodiments described below.
结合第一方面,在第一方面的一种可能的实现方式中,在所述电子设备基于理想拍摄参数获取图像帧之前,所述方法还可以包括:所述电子设备基于陀螺仪传感器获取的状态监测数据判断所述电子设备是否处于所述稳定状态;所述状态监测数据包括所述电子设备围绕x轴、y轴和z轴的角速度和/或抖动角度。In conjunction with the first aspect, in a possible implementation of the first aspect, before the electronic device acquires an image frame based on ideal shooting parameters, the method may further include: the electronic device acquires a state based on a gyroscope sensor The monitoring data determines whether the electronic device is in the stable state; the state monitoring data includes the angular velocity and/or jitter angle of the electronic device around the x-axis, y-axis, and z-axis.
在本申请提供的方案中,电子设备可以通过陀螺仪传感器获取的状态监测数据来判断电子设备的运动状态。具体地,电子设备中的相机HAL模块可以持续接收陀螺仪传感器传来的状态监测数据,并根据该状态监测数据判断电子设备是否处于稳定状态。在这种情况下,电子设备可以实时获取本设备的运动状态,无需等到处于3A状态变成理想参数状态后再根据获取的图像来判断电子设备是否处于稳定状态。通过这种方式,电子设备可以更快地响应拍照,提升了用户的拍摄体验。In the solution provided by this application, the electronic device can determine the motion status of the electronic device through the status monitoring data obtained by the gyroscope sensor. Specifically, the camera HAL module in the electronic device can continuously receive status monitoring data from the gyroscope sensor, and determine whether the electronic device is in a stable state based on the status monitoring data. In this case, the electronic device can obtain the motion status of the device in real time. There is no need to wait until the 3A state becomes the ideal parameter state and then judge whether the electronic device is in a stable state based on the acquired image. In this way, the electronic device can respond to taking photos faster, improving the user's shooting experience.
在本申请的一些实施例中,状态监测数据包括所述电子设备围绕x轴、y轴和z轴的角速度和/或抖动角度。在这种情况下,电子设备可以通过比较该角速度与预设角速度之间的关系,和/或比较该抖动角度与预设角度之间的关系,来判断电子设备是否处于稳定状态。In some embodiments of the present application, the condition monitoring data includes the angular velocity and/or jitter angle of the electronic device around the x-axis, y-axis, and z-axis. In this case, the electronic device can determine whether the electronic device is in a stable state by comparing the relationship between the angular velocity and the preset angular velocity, and/or comparing the relationship between the shaking angle and the preset angle.
示例性的,若电子设备围绕x轴、y轴和z轴的角速度分别都小于围绕x轴、y轴和z轴的预设角速度,则电子设备处于稳定状态。For example, if the angular velocities of the electronic device around the x-axis, y-axis, and z-axis are respectively less than the preset angular velocities around the x-axis, y-axis, and z-axis, the electronic device is in a stable state.
示例性的,若电子设备的抖动角度小于预设抖动角度,则电子设备处于稳定状态。For example, if the shaking angle of the electronic device is less than the preset shaking angle, the electronic device is in a stable state.
示例性的,若电子设备围绕x轴、y轴和z轴的角速度和抖动角度都满足上述条件,则电子设备处于稳定状态。For example, if the angular velocity and shaking angle of the electronic device around the x-axis, y-axis, and z-axis meet the above conditions, the electronic device is in a stable state.
结合第一方面,在第一方面的一种可能的实现方式中,所述电子设备基于陀螺仪传感器获取的状态监测数据判断所述电子设备是否处于所述稳定状态之后,所述方法还包括:若所述电子设备未处于所述稳定状态,所述电子设备接收所述陀螺仪传感器获取的新的状态监测数据,并根据所述新的状态监测数据重新判断所述电子设备是否处于稳定状态。With reference to the first aspect, in a possible implementation of the first aspect, after the electronic device determines whether the electronic device is in the stable state based on the state monitoring data obtained by the gyroscope sensor, the method further includes: If the electronic device is not in the stable state, the electronic device receives new state monitoring data obtained by the gyro sensor, and re-judges whether the electronic device is in a stable state based on the new state monitoring data.
在本申请提供的方案中,电子设备可以根据陀螺仪传感器获取的状态监测数据持续判断电子设备的运动状态。可理解,若电子设备未处于稳定状态,电子设备再根据新的状态监测数据进行判断,直到电子设备处于稳定状态。通过这种方式,电子设备无需通过相机HAL模块下发拍摄数据来获取图像,也无需根据该图像来判断电子设备是否处于稳定状态,而是只需根据接收的状态监测数据判断即可,节省了时间(无需下发拍摄数据,也无需上传摄像头采集的图像),提升了电子设备的响应拍照的速度。In the solution provided by this application, the electronic device can continuously determine the motion status of the electronic device based on the status monitoring data obtained by the gyroscope sensor. It is understandable that if the electronic device is not in a stable state, the electronic device will make a judgment based on the new state monitoring data until the electronic device is in a stable state. In this way, the electronic device does not need to send the shooting data through the camera HAL module to obtain the image, nor does it need to judge whether the electronic device is in a stable state based on the image. Instead, it only needs to judge based on the received status monitoring data, saving time (no need to send shooting data, no need to upload images collected by the camera), which improves the speed of the electronic device's response to taking photos.
结合第一方面,在第一方面的一种可能的实现方式中,所述电子设备基于理想拍摄参数获取图像帧之前,所述方法还包括:所述电子设备获取N帧图像;若所述N帧图像中的M帧图像为3A稳定图像,则所述电子设备处于所述稳定状态;所述M与所述N的比值大于第一阈值;所述3A稳定图像为所述电子设备在置信度大于第二阈值时获取的图像;所述置信度用于衡量3A状态的稳定性;所述置信度越大,所述3A状态越稳定;所述M和所述N均为正整数。With reference to the first aspect, in a possible implementation of the first aspect, before the electronic device acquires image frames based on ideal shooting parameters, the method further includes: the electronic device acquires N frames of images; if the N If M frame images in the frame images are 3A stable images, the electronic device is in the stable state; the ratio of M to N is greater than the first threshold; the 3A stable image is the electronic device at a confidence level The image obtained when it is greater than the second threshold; the confidence is used to measure the stability of the 3A state; the greater the confidence, the more stable the 3A state is; both M and N are positive integers.
在本申请提供的方案中,在3A状态为理想参数状态的情况下,电子设备可以根据获取的图像中的3A稳定图像的占比来判断3A状态的稳定性,从而判断电子设备是否处于稳定状态。可理解,3A状态由理想参数状态变为参数锁定状态的过程中,电子设备需要不断获取图像(这里指的是预览图像),直到获取的图像满足某个阈值后,3A状态才能由理想 参数状态变为参数锁定状态。而这个过程会耗费不少时间。通过上述方式,电子设备无需等到3A状态变为参数锁定状态就可以获取拍照的图像帧,节省了时间,使得用户可以更快地得到拍照图像。In the solution provided by this application, when the 3A state is an ideal parameter state, the electronic device can determine the stability of the 3A state based on the proportion of 3A stable images in the acquired images, thereby determining whether the electronic device is in a stable state. . It is understandable that in the process of the 3A state changing from the ideal parameter state to the parameter locked state, the electronic device needs to continuously acquire images (here refers to the preview image). Until the acquired image meets a certain threshold, the 3A state can change from the ideal parameter state. Changes to parameter locked state. And this process will take a lot of time. Through the above method, the electronic device can obtain the photographed image frame without waiting for the 3A state to change to the parameter lock state, which saves time and allows the user to obtain the photographed image faster.
在本申请的一些实施例中,M与N的比值大于第一阈值,则电子设备处于稳定状态。In some embodiments of the present application, if the ratio of M to N is greater than the first threshold, the electronic device is in a stable state.
在本申请的一些实施例中,M的数量大于第一阈值,则电子设备处于稳定状态。In some embodiments of the present application, if the number of M is greater than the first threshold, the electronic device is in a stable state.
结合第一方面,在第一方面的一种可能的实现方式中,所述电子设备获取N帧图像之后,所述方法还包括:若所述N帧图像中不存在M帧图像为所述3A稳定图像,所述电子设备继续获取L帧图像,并根据所述L帧图像中所包括的所述3A稳定图像的帧数,来判断所述电子设备是否处于所述稳定状态。With reference to the first aspect, in a possible implementation of the first aspect, after the electronic device acquires N frames of images, the method further includes: if there are no M frames of images in the N frames of images, it is the 3A To stabilize the image, the electronic device continues to acquire L frame images, and determines whether the electronic device is in the stable state according to the number of frames of the 3A stable image included in the L frame image.
在本申请提供的方案中,若电子设备根据N帧图像确定电子设备未处于稳定状态,可以继续获取L帧图像,并在该L帧图像所包括的3A稳定图像达到一定数目(或占比达到某个值)之后,确定电子设备处于稳定状态。通过这种方式,电子设备无需等到3A状态变为参数锁定状态就可以获取拍照的图像帧,节省了时间,使得用户可以更快地得到拍照图像。In the solution provided by this application, if the electronic device determines that the electronic device is not in a stable state based on N frames of images, it can continue to acquire L frames of images, and when the 3A stable images included in the L frame of images reach a certain number (or the proportion reaches After a certain value), it is determined that the electronic device is in a stable state. In this way, the electronic device can obtain the photographed image frame without waiting for the 3A state to change to the parameter lock state, saving time and allowing the user to obtain the photographed image faster.
结合第一方面,在第一方面的一种可能的实现方式中,所述响应于作用在所述快门控件上的第一操作之后,所述方法还包括:所述电子设备通过所述相机应用向硬件抽象HAL层下发3A触发指令;所述3A触发指令用于触发所述电子设备执行所述3A算法。With reference to the first aspect, in a possible implementation of the first aspect, after the response to the first operation acting on the shutter control, the method further includes: the electronic device uses the camera application Send a 3A trigger instruction to the hardware abstraction HAL layer; the 3A trigger instruction is used to trigger the electronic device to execute the 3A algorithm.
结合第一方面,在第一方面的一种可能的实现方式中,所述若所述3A状态为理想参数状态,并且所述电子设备处于稳定状态,所述电子设备基于理想拍摄参数获取图像帧,包括:若所述3A状态为所述理想参数状态,并且所述电子设备处于所述稳定状态,所述电子设备通过相机HAL模块向所述相机应用发送当前的3A状态;在所述相机应用确定所述当前的3A状态为所述理想参数状态的情况下,所述电子设备通过所述相机应用向所述相机HAL模块下发拍照请求;基于所述拍照请求,所述电子设备通过所述相机HAL模块下发所述理想拍摄参数至摄像头,并通过所述摄像头根据所述理想拍摄参数来采集所述图像帧。In conjunction with the first aspect, in a possible implementation of the first aspect, if the 3A state is an ideal parameter state and the electronic device is in a stable state, the electronic device acquires an image frame based on the ideal shooting parameters. , including: if the 3A state is the ideal parameter state and the electronic device is in the stable state, the electronic device sends the current 3A state to the camera application through the camera HAL module; in the camera application When it is determined that the current 3A state is the ideal parameter state, the electronic device sends a photographing request to the camera HAL module through the camera application; based on the photographing request, the electronic device sends a photographing request through the camera HAL module. The camera HAL module sends the ideal shooting parameters to the camera, and uses the camera to collect the image frames according to the ideal shooting parameters.
结合第一方面,在第一方面的一种可能的实现方式中,所述电子设备基于理想拍摄参数获取图像帧之后,所述方法还包括:所述电子设备显示第二界面;所述第二界面包括图库快捷控件;所述图库快捷控件显示所述图像帧的缩略图。With reference to the first aspect, in a possible implementation of the first aspect, after the electronic device acquires the image frame based on ideal shooting parameters, the method further includes: the electronic device displays a second interface; the second The interface includes a gallery shortcut control; the gallery shortcut control displays thumbnails of the image frames.
在本申请提供的方案中,电子设备可以将获取的本次拍照图像保存至图库应用程序中。在这种情况下,拍照界面所包括的图库快捷控件可以显示该本次拍照图像的缩略图。In the solution provided by this application, the electronic device can save the acquired image taken this time to the gallery application. In this case, the gallery shortcut control included in the photo-taking interface can display the thumbnail of the image taken this time.
第二方面,本申请提供了一种电子设备。该电子设备可以包括显示屏、存储器、一个或多个处理器。其中,存储器可以存储计算机程序,而处理器可以调用所述计算机程序。具体的,显示器可以用于:显示第一界面;所述第一界面包括快门控件;所述第一界面为相机应用的拍照界面;处理器可以用于:响应于作用在所述快门控件上的第一操作,执行3A算法来调整拍摄参数,并对3A状态进行更新;所述3A状态用于表示所述3A算法的执行情况;若所述3A状态为理想参数状态,并且所述电子设备处于稳定状态,基于理想拍摄参数获取图像帧;所述理想参数状态表明3A算法已收敛;所述理想拍摄参数为所述电 子设备在所述3A算法收敛时获取的拍摄参数。In a second aspect, the present application provides an electronic device. The electronic device may include a display, memory, and one or more processors. The memory can store a computer program, and the processor can call the computer program. Specifically, the display may be used to: display a first interface; the first interface includes a shutter control; the first interface is a photography interface of a camera application; and the processor may be used to: respond to the action on the shutter control. The first operation is to execute the 3A algorithm to adjust the shooting parameters and update the 3A status; the 3A status is used to represent the execution of the 3A algorithm; if the 3A status is an ideal parameter status and the electronic device is in In a stable state, image frames are acquired based on ideal shooting parameters; the ideal parameter state indicates that the 3A algorithm has converged; the ideal shooting parameters are the shooting parameters obtained by the electronic device when the 3A algorithm converges.
结合第二方面,在第二方面的一种可能的实现方式中,所述处理器,在用于基于理想拍摄参数获取图像帧之前,还用于:基于陀螺仪传感器获取的状态监测数据判断所述电子设备是否处于所述稳定状态;所述状态监测数据包括所述电子设备围绕x轴、y轴和z轴的角速度和/或抖动角度。In conjunction with the second aspect, in a possible implementation of the second aspect, the processor, before being used to obtain the image frame based on the ideal shooting parameters, is also used to: determine the image frame based on the status monitoring data obtained by the gyroscope sensor. Whether the electronic device is in the stable state; the state monitoring data includes the angular velocity and/or jitter angle of the electronic device around the x-axis, y-axis, and z-axis.
结合第二方面,在第二方面的一种可能的实现方式中,所述处理器,在用于基于陀螺仪传感器获取的状态监测数据判断所述电子设备是否处于所述稳定状态之后,还用于:若所述电子设备未处于所述稳定状态,接收所述陀螺仪传感器获取的新的状态监测数据,并根据所述新的状态监测数据重新判断所述电子设备是否处于稳定状态。In connection with the second aspect, in a possible implementation of the second aspect, the processor, after being used to determine whether the electronic device is in the stable state based on the state monitoring data obtained by the gyroscope sensor, also uses In: if the electronic device is not in the stable state, receive new state monitoring data obtained by the gyro sensor, and re-determine whether the electronic device is in a stable state based on the new state monitoring data.
结合第二方面,在第二方面的一种可能的实现方式中,所述处理器,在用于基于理想拍摄参数获取图像帧之前,还用于:获取N帧图像;若所述N帧图像中的M帧图像为3A稳定图像,则所述电子设备处于所述稳定状态;所述M与所述N的比值大于第一阈值;所述3A稳定图像为所述电子设备在置信度大于第二阈值时获取的图像;所述置信度用于衡量3A状态的稳定性;所述置信度越大,所述3A状态越稳定;所述M和所述N均为正整数。In conjunction with the second aspect, in a possible implementation of the second aspect, the processor, before being used to obtain image frames based on ideal shooting parameters, is also used to: obtain N frames of images; if the N frames of images The M frame images in are 3A stable images, then the electronic device is in the stable state; the ratio of M to N is greater than the first threshold; the 3A stable image is the electronic device with a confidence level greater than the The image obtained at two thresholds; the confidence is used to measure the stability of the 3A state; the greater the confidence, the more stable the 3A state is; both M and N are positive integers.
结合第二方面,在第二方面的一种可能的实现方式中,所述处理器,在用于获取N帧图像之后,还用于:若所述N帧图像中不存在M帧图像为所述3A稳定图像,继续获取L帧图像,并根据所述L帧图像中所包括的所述3A稳定图像的帧数,来判断电子设备是否处于所述稳定状态。In conjunction with the second aspect, in a possible implementation of the second aspect, the processor, after being used to obtain N frames of images, is also used to: if M frames of images do not exist in the N frames of images, the processor is For the 3A stable image, continue to acquire L frame images, and determine whether the electronic device is in the stable state according to the number of frames of the 3A stable image included in the L frame image.
结合第二方面,在第二方面的一种可能的实现方式中,所述处理器,在用于响应于作用在所述快门控件上的第一操作之后,还用于:通过所述相机应用向硬件抽象HAL层下发3A触发指令;所述3A触发指令用于触发所述电子设备执行所述3A算法。In conjunction with the second aspect, in a possible implementation of the second aspect, the processor, after responding to the first operation acting on the shutter control, is also configured to: use the camera application Send a 3A trigger instruction to the hardware abstraction HAL layer; the 3A trigger instruction is used to trigger the electronic device to execute the 3A algorithm.
结合第二方面,在第二方面的一种可能的实现方式中,所述处理器,在用于若所述3A状态为理想参数状态,并且所述电子设备处于稳定状态,基于理想拍摄参数获取图像帧时,具体用于:若所述3A状态为所述理想参数状态,并且所述电子设备处于所述稳定状态,通过相机HAL模块向所述相机应用发送当前的3A状态;在所述相机应用确定所述当前的3A状态为所述理想参数状态的情况下,通过所述相机应用向所述相机HAL模块下发拍照请求;基于所述拍照请求,通过所述相机HAL模块下发所述理想拍摄参数至摄像头。所述电子设备还可以设置有摄像头。所述摄像头,用于根据所述理想拍摄参数来采集所述图像帧。In conjunction with the second aspect, in a possible implementation of the second aspect, the processor is configured to obtain the ideal shooting parameters based on the ideal parameter state if the 3A state is an ideal parameter state and the electronic device is in a stable state. image frame, specifically for: if the 3A state is the ideal parameter state and the electronic device is in the stable state, send the current 3A state to the camera application through the camera HAL module; in the camera When the application determines that the current 3A state is the ideal parameter state, the camera application issues a photographing request to the camera HAL module; based on the photographing request, the camera HAL module issues the Ideal shooting parameters to the camera. The electronic device may also be provided with a camera. The camera is used to collect the image frames according to the ideal shooting parameters.
结合第二方面,在第二方面的一种可能的实现方式中,在所述处理器用于基于理想拍摄参数获取图像帧之后,所述显示屏可以用于显示第二界面;所述第二界面包括图库快捷控件;所述图库快捷控件显示所述图像帧的缩略图。In conjunction with the second aspect, in a possible implementation of the second aspect, after the processor is used to obtain image frames based on ideal shooting parameters, the display screen may be used to display a second interface; the second interface It includes a gallery shortcut control; the gallery shortcut control displays thumbnails of the image frames.
第三方面,本申请提供一种计算机存储介质,包括指令,当该指令在电子设备上运行时,使得该电子设备执行上述第一方面中任一种可能的实现方式。In a third aspect, the present application provides a computer storage medium that includes instructions that, when run on an electronic device, cause the electronic device to execute any of the possible implementations of the first aspect.
第四方面,本申请实施例提供一种芯片,该芯片应用于电子设备,该芯片包括一个或多个处理器,该处理器用于调用计算机指令以使得该电子设备执行上述第一方面中任一种 可能的实现方式。In a fourth aspect, embodiments of the present application provide a chip that is applied to an electronic device. The chip includes one or more processors, and the processor is used to call computer instructions to cause the electronic device to execute any one of the above first aspects. possible implementation methods.
第五方面,本申请实施例提供一种包含指令的计算机程序产品,当该计算机程序产品在电子设备上运行时,使得该电子设备执行上述第一方面任一种可能的实现方式。In a fifth aspect, embodiments of the present application provide a computer program product containing instructions, which when the computer program product is run on an electronic device, causes the electronic device to execute any of the possible implementations of the first aspect.
可以理解地,上述第二方面提供的电子设备、第三方面提供的计算机存储介质、第四方面提供的芯片,以及第五方面提供的计算机程序产品均用于执行上述第一方面中任一种可能的实现方式。因此,其所能达到的有益效果可参考上述第一方面中任一种可能的实现方式的有益效果,此处不再赘述。It can be understood that the electronic device provided by the second aspect, the computer storage medium provided by the third aspect, the chip provided by the fourth aspect, and the computer program product provided by the fifth aspect are all used to execute any one of the first aspects. Possible implementations. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of any possible implementation method in the first aspect, and will not be described again here.
附图说明Description of the drawings
图1为本申请实施例提供的一种快门延迟的示意图;Figure 1 is a schematic diagram of a shutter delay provided by an embodiment of the present application;
图2A-图2C为本申请实施例提供的一组用户界面;Figures 2A-2C are a set of user interfaces provided by embodiments of the present application;
图3为本申请实施例提供的一种拍摄方法的流程图;Figure 3 is a flow chart of a shooting method provided by an embodiment of the present application;
图4为本申请实施例提供的一种电子设备的硬件结构示意图;Figure 4 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application;
图5为本申请实施例提供的一种电子设备的软件结构示意图;Figure 5 is a schematic diagram of the software structure of an electronic device provided by an embodiment of the present application;
图6为本申请实施例提供的又一种快门延迟的示意图。FIG. 6 is a schematic diagram of another shutter delay provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Among them, in the description of the embodiments of this application, unless otherwise stated, "/" means or, for example, A/B can mean A or B; "and/or" in the text is only a way to describe related objects. The association relationship means that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiment of the present application , "plurality" means two or more than two.
应当理解,本申请的说明书和权利要求书及附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be understood that the terms "first", "second", etc. in the description, claims and drawings of this application are used to distinguish different objects, rather than describing a specific sequence. Furthermore, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes Other steps or units inherent to such processes, methods, products or devices.
在本申请中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本申请所描述的实施例可以与其它实施例相结合。Reference in this application 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 this phrase 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. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
随着科技的进步与发展,手机等电子设备可以实现的功能越来越强大。大部分电子设备可以通过3A算法来实现自动对焦、自动调节曝光参数,以及自动进行白平衡调节,从而实现图像对比度最大、改善主体拍摄物过曝光或曝光不足情况、使画面在不同光线照射下的色差得到补偿,进而呈现较高画质的图像信息。With the advancement and development of science and technology, electronic devices such as mobile phones can achieve more and more powerful functions. Most electronic devices can use the 3A algorithm to achieve automatic focusing, automatic adjustment of exposure parameters, and automatic white balance adjustment, thereby maximizing image contrast, improving overexposure or underexposure of the main subject, and making the picture more beautiful under different light exposures. Chromatic aberration is compensated, thereby presenting higher quality image information.
可理解,电子设备可以为智能手机、智能电视、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer, UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence,AI)设备、可穿戴式设备、车载设备、智能家居设备和/或智慧城市设备等。本申请实施例对该电子设备的具体类型不作特殊限制。It can be understood that the electronic device can be a smartphone, a smart TV, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, and a cellular phone. , personal digital assistant (PDA), augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (artificial intelligence, AI) devices, wearable devices, vehicle-mounted devices, Smart home devices and/or smart city devices, etc. The embodiment of the present application does not place any special restrictions on the specific type of the electronic device.
可理解,3A指的是自动对焦(autofocus,AF)、自动曝光(auto exposure,AE)和自动白平衡(autowhitebalance,AWB)。自动对焦即调节摄像头焦距自动得到清晰的图像的过程。自动曝光即自动调节曝光参数,使得感光器件获得合适的曝光量的过程。自动白平衡即自动调节白平衡增益,使得拍摄画面的颜色接近物体真实的颜色的过程。It is understandable that 3A refers to autofocus (autofocus, AF), automatic exposure (auto exposure, AE) and automatic white balance (autowhitebalance, AWB). Autofocus is the process of adjusting the focal length of a camera to automatically obtain a clear image. Automatic exposure is the process of automatically adjusting exposure parameters so that the photosensitive device obtains the appropriate exposure. Automatic white balance is the process of automatically adjusting the white balance gain so that the color of the shot is close to the real color of the object.
需要说明的是,3A算法实际上是在电子设备的硬件抽象层实现的。电子设备通过相机应用进行拍摄时,位于应用层的相机应用需要与硬件抽象层(hardware abstraction layer,HAL)进行交互,从而实现3A算法。也就是说,在拍摄过程中,电子设备不止需要花费时间执行3A算法,还需要花费时间完成相机应用与硬件抽象层的交互。It should be noted that the 3A algorithm is actually implemented at the hardware abstraction layer of electronic devices. When an electronic device shoots through a camera application, the camera application located at the application layer needs to interact with the hardware abstraction layer (HAL) to implement the 3A algorithm. In other words, during the shooting process, the electronic device not only needs to spend time executing the 3A algorithm, but also needs to spend time completing the interaction between the camera application and the hardware abstraction layer.
如图1所示,电子设备包括相机应用。相机应用的拍摄界面包括快门控件。电子设备可以检测到作用于快门控件上的用户操作。响应于该用户操作,相机应用可以生成3A触发指令。该3A触发指令用于触发3A算法。相机应用可以将该3A触发指令下发至HAL层。该3A触发指令下发至HAL层之后,进入缓冲器(即buffer)中暂时存放,并等待处理。相机HAL模块按照顺序处理指令,处理3A触发指令时,可以确定该指令中包括用于指示开启3A算法的信息(例如,TRIGGER_START条目),并提供接口来实现3A算法。此时,3A状态为参数调整状态。可理解,3A状态为参数调整状态时,电子设备不断调整拍摄参数,以获取理想参数,直到3A算法收敛。一旦3A算法收敛,电子设备将3A状态调整为理想参数状态。电子设备可以在处于理想参数状态时获取多帧图像。在3A状态保持稳定后,3A状态由理想参数状态调整为参数锁定状态。此时,相机HAL模块可以将当前3A状态(即参数锁定状态)上报给相机应用。相机应用获取当前3A状态之后,可以下发拍照请求。相机HAL模块接收相机应用下发的拍照请求,可以选帧及出帧。出帧完毕之后,电子设备可以生成3A取消指令,并将该3A取消指令下发至HAL层。该3A取消指令用于停止执行3A算法。该3A取消指令下发至HAL层之后,进入buffer中暂时存放,并等待处理。相机HAL模块处理该3A取消指令时,确定该指令中包括停止执行3A算法的信息(例如,TRIGGER_CANCEL条目),从而重置拍摄参数。即将调整后的拍摄参数恢复成默认值。As shown in Figure 1, electronic devices include camera applications. The camera app's shooting interface includes shutter controls. The electronic device can detect user actions on the shutter control. In response to this user operation, the camera application can generate a 3A trigger command. The 3A trigger instruction is used to trigger the 3A algorithm. The camera application can send the 3A trigger command to the HAL layer. After the 3A trigger instruction is issued to the HAL layer, it is temporarily stored in the buffer (buffer) and waits for processing. The camera HAL module processes instructions in sequence. When processing the 3A trigger instruction, it can be determined that the instruction includes information indicating turning on the 3A algorithm (for example, a TRIGGER_START entry), and provides an interface to implement the 3A algorithm. At this time, the 3A state is the parameter adjustment state. It is understandable that when the 3A state is the parameter adjustment state, the electronic device continuously adjusts the shooting parameters to obtain ideal parameters until the 3A algorithm converges. Once the 3A algorithm converges, the electronic device adjusts the 3A state to the ideal parameter state. The electronic device can acquire multiple frames of images under ideal parameters. After the 3A state remains stable, the 3A state is adjusted from the ideal parameter state to the parameter locked state. At this time, the camera HAL module can report the current 3A status (ie, parameter lock status) to the camera application. After the camera application obtains the current 3A status, it can issue a photo request. The camera HAL module receives the photo request sent by the camera application and can select and output frames. After the frame is taken out, the electronic device can generate a 3A cancellation command and send the 3A cancellation command to the HAL layer. The 3A cancel instruction is used to stop execution of the 3A algorithm. After the 3A cancellation instruction is sent to the HAL layer, it is temporarily stored in the buffer and waits for processing. When the camera HAL module processes the 3A cancel command, it determines that the command includes information to stop executing the 3A algorithm (for example, a TRIGGER_CANCEL entry), thereby resetting the shooting parameters. The adjusted shooting parameters will be restored to their default values.
可理解,本申请所提及的拍摄参数包括对焦参数、曝光参数和白平衡参数。电子设备可以根据对焦参数来判断电子设备是否处于良好对焦状态。对焦参数可以包括焦距。曝光参数可以包括光圈大小、快门速度、感光度参数。白平衡参数可以包括RGB值。It can be understood that the shooting parameters mentioned in this application include focus parameters, exposure parameters and white balance parameters. The electronic device can determine whether the electronic device is in a good focus state based on the focus parameters. Focus parameters may include focal length. Exposure parameters can include aperture size, shutter speed, and sensitivity parameters. White balance parameters may include RGB values.
可理解,上述过程中,快门延迟包含通路时延、3A算法执行时间和数据上报时延。其中,通路时延为3A触发指令到达HAL层后等待处理的时间,即图1所示的时延1。3A算法执行时间为将拍摄参数调整至理想参数所需的时间。数据上报时延为处于理想参数状态的时间,即图1所示的时延2。这也就意味着,电子设备的拍摄响应时间较长,响应速度较慢,影响了用户的拍摄体验。It can be understood that in the above process, the shutter delay includes channel delay, 3A algorithm execution time and data reporting delay. Among them, the path delay is the time that the 3A trigger instruction waits for processing after it reaches the HAL layer, which is the delay 1 shown in Figure 1. The 3A algorithm execution time is the time required to adjust the shooting parameters to the ideal parameters. The data reporting delay is the time in the ideal parameter state, that is, delay 2 shown in Figure 1. This also means that the shooting response time of electronic equipment is long and the response speed is slow, which affects the user's shooting experience.
为了降低快门延迟,本申请提供了一种拍摄方法及相关设备。根据该拍摄方法,电子设备可以检测到作用在相机应用的快门控件上的用户操作,响应于该用户操作,相机应用可以生成3A触发指令,并将该3A触发指令下发至相机HAL模块。相机HAL模块可以提供接口来实现3A算法。在3A算法执行的过程中,3A状态可能发生变化。在3A状态处于理想参数状态时,电子设备中的相机HAL模块可以直接将该状态上报至相机应用,然后由电子设备中的相机应用下发拍照指令,再通过相机HAL模块进行选帧,最后通过显示器显示所获取的图像。这种方式减少了快门延迟,使得电子设备的拍摄响应时间得以降低,响应速度变快,提升了用户的拍摄体验。In order to reduce shutter delay, this application provides a shooting method and related equipment. According to this shooting method, the electronic device can detect the user operation on the shutter control of the camera application. In response to the user operation, the camera application can generate a 3A trigger instruction and send the 3A trigger instruction to the camera HAL module. The camera HAL module can provide an interface to implement the 3A algorithm. During the execution of the 3A algorithm, the 3A status may change. When the 3A state is in the ideal parameter state, the camera HAL module in the electronic device can directly report the status to the camera application, and then the camera application in the electronic device issues a photography instruction, and then selects the frame through the camera HAL module, and finally passes The monitor displays the acquired image. This method reduces the shutter delay, reduces the shooting response time of the electronic device, makes the response speed faster, and improves the user's shooting experience.
下面结合图2A-图2C介绍本申请实施例提供的一种拍摄场景。The following describes a shooting scene provided by the embodiment of the present application with reference to FIGS. 2A-2C.
可理解,本申请的说明书和权利要求书及附图中的术语“用户界面”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素,其中控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。It can be understood that the term "user interface" in the description, claims and drawings of this application is a media interface for interaction and information exchange between an application program or an operating system and a user. It realizes the internal form of information and the interaction between the user and the user. Accepts conversions between forms. The commonly used form of user interface is graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed graphically. It can be an icon, window, control and other interface elements displayed on the display screen of an electronic device. Controls can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. Visual interface elements.
图2A示例性示出了电子设备的一种用户界面210。FIG. 2A illustrates a user interface 210 of an electronic device.
用户界面210显示了一个放置有应用图标的页面,该页面可包括多个应用图标(例如,天气应用图标、日历应用图标、相册应用图标、便签应用图标、电子邮件应用图标、应用商店应用图标、设置应用图标等等)。上述多个应用图标下方还可显示有页面指示符,以表明当前显示的页面与其他页面的位置关系。页面指示符的下方有多个应用图标(例如,相机应用图标211、浏览器应用图标、信息应用图标、拨号应用图标)。应用图标在页面切换时保持显示。The user interface 210 displays a page on which application icons are placed. The page may include multiple application icons (for example, a weather application icon, a calendar application icon, a photo album application icon, a note application icon, an email application icon, an application store application icon, Set application icon, etc.). Page indicators may also be displayed below the multiple application icons to indicate the positional relationship between the currently displayed page and other pages. There are multiple application icons below the page indicator (eg, camera application icon 211, browser application icon, information application icon, dialing application icon). The app icon remains displayed when switching pages.
可理解,相机应用图标211为相机应用程序的图标。相机应用图标21可以用于触发启动相机应用,即相机应用程序。相机应用程序是智能手机、平板电脑等电子设备上的一款图像拍摄的应用程序,本申请对该应用程序的名称不做限制。It can be understood that the camera application icon 211 is an icon of the camera application. The camera application icon 21 can be used to trigger the launch of the camera application, ie, the camera application. A camera application is an image shooting application on electronic devices such as smartphones and tablets. This application does not impose restrictions on the name of the application.
电子设备可以检测到作用于相机应用图标211上的用户操作。响应于该用户操作,电子设备可以显示图2B所示的用户界面220。The electronic device can detect user operations on the camera application icon 211. In response to the user operation, the electronic device may display the user interface 220 shown in FIG. 2B.
用户界面220可包括:设置区域221、预览区域222、相机模式选项223、图库快捷控件224、快门控件225、摄像头翻转控件226。其中:The user interface 220 may include: a setting area 221, a preview area 222, a camera mode option 223, a gallery shortcut control 224, a shutter control 225, and a camera flip control 226. in:
设置区域221可以包括设置控件和闪光灯控件。其中,设置控件可用于调整拍摄照片的参数(如分辨率、滤镜等)以及开启或关闭一些用于拍照的方式(如定时拍照、微笑抓拍、声控拍照等)等。可理解,设置控件还可以用于设置更多其他拍摄的功能,本申请实施例对此不作限定。闪光灯控件可用于开启或者关闭闪光灯。 Settings area 221 may include setting controls and flash controls. Among them, the setting controls can be used to adjust the parameters of taking photos (such as resolution, filters, etc.) and turn on or off some methods for taking photos (such as timed photos, smile captures, voice-activated photos, etc.). It can be understood that the setting control can also be used to set more other shooting functions, which is not limited in the embodiments of the present application. The flash control can be used to turn the flash on or off.
预览区域222可用于显示摄像头实时采集的图像。电子设备可以实时刷新其中的显示内容,以便于用户预览摄像头当前的采集的图像。The preview area 222 can be used to display images captured by the camera in real time. The electronic device can refresh the display content in real time to facilitate the user to preview the image currently collected by the camera.
相机模式选项223中可以显示有一个或多个拍摄模式选项。这一个或多个拍摄模式选项可以包括:夜景模式选项、人像模式选项、拍照模式选项、录像模式选项和更多选项。这一个或多个拍摄模式选项在界面上可以表现为文字信息,例如“夜景”、“人像”、“拍照”、“录像”、“更多”。不限于此,这一个或多个摄像选项在界面上还可以表现为图标或者其他形式的交互元素(interactive element,IE)。当检测到作用于拍摄模式选项上的用户操作,电子设备可以开启用户选择的拍摄模式。特别的,当检测到作用于更多选项的用户操作,电子设备可以进一步显示更多的其他拍摄模式选项,如慢动作拍摄模式选项等等,可以向用户展示更丰富的摄像功能。不限于图2B所示,相机模式选项中可以不显示更多选项,用户可以通过在相机模式选项中向左/右滑动来浏览其他拍摄模式选项。One or more shooting mode options may be displayed in the camera mode option 223 . The one or more shooting mode options may include: a night scene mode option, a portrait mode option, a photo mode option, a video mode option and more options. This one or more shooting mode options can be displayed as text information on the interface, such as "night scene", "portrait", "photography", "video recording", and "more". Not limited to this, the one or more camera options can also be represented as icons or other forms of interactive elements (IE) on the interface. When detecting a user operation on the shooting mode option, the electronic device can enable the shooting mode selected by the user. In particular, when user operations for more options are detected, the electronic device can further display more other shooting mode options, such as slow-motion shooting mode options, etc., which can display richer camera functions to the user. Not limited to what is shown in Figure 2B, more options may not be displayed in the camera mode options, and the user can browse other shooting mode options by sliding left/right in the camera mode options.
图库快捷控件224可用于开启图库应用程序。响应于作用在图库快捷控件224上的用户操作,例如点击操作,电子设备可以开启图库应用程序。这样,用户可以便捷地查看拍摄的照片和视频,而无需先退出相机应用程序,再开启图库应用程序。图库应用程序是智能手机、平板电脑等电子设备上的一款图片管理的应用程序,又可以称为“相册”,本实施例对该应用程序的名称不做限制。图库应用程序可以支持用户对存储于电子设备上的图片进行各种操作,例如浏览、编辑、删除、选择等操作。The gallery shortcut control 224 can be used to open the gallery application. In response to a user operation, such as a click operation, on the gallery shortcut control 224, the electronic device can open the gallery application. This way, users can conveniently view the photos and videos they took without having to exit the Camera app and then open the Gallery app. The gallery application is a picture management application on electronic devices such as smartphones and tablets. It can also be called a "photo album". This embodiment does not limit the name of the application. The gallery application can support users to perform various operations on pictures stored on electronic devices, such as browsing, editing, deleting, selecting and other operations.
快门控件225可用于监听触发拍照的用户操作。电子设备可以检测到作用于快门控件225的用户操作,响应于该操作,电子设备可以通过摄像头获取图像,并将其保存为图库应用程序中的图片。另外,电子设备还可以在图库快捷控件224中显示所保存的图像的缩略图。也就是说,用户可以点击快门控件225来触发拍照。可理解,快门控件225可以是按钮或者其他形式的控件。The shutter control 225 can be used to monitor user operations that trigger taking pictures. The electronic device can detect a user operation on the shutter control 225, and in response to the operation, the electronic device can acquire an image through the camera and save it as a picture in the gallery application. In addition, the electronic device can also display thumbnails of the saved images in the gallery shortcut control 224 . That is, the user can click the shutter control 225 to trigger taking a picture. It can be understood that the shutter control 225 may be a button or other form of control.
摄像头翻转控件226可用于监听触发翻转摄像头的用户操作。电子设备可以检测到作用于摄像头翻转控件226的用户操作,例如点击操作,响应于该操作,电子设备可以翻转摄像头,例如将后置摄像头切换为前置摄像头。此时,预览区域222中可以显示前置摄像头采集的图像。 Camera flip control 226 may be used to listen for user operations that trigger flipping the camera. The electronic device can detect a user operation, such as a click operation, on the camera flip control 226, and in response to the operation, the electronic device can flip the camera, such as switching a rear camera to a front camera. At this time, the image captured by the front camera may be displayed in the preview area 222 .
电子设备可以检测到作用于快门控件225上的用户操作。响应于该用户操作,相机应用可以生成3A触发指令,并将该3A触发指令下发到HAL层,HAL层的相关模块可以对该3A触发指令进行处理,且提供接口以供电子设备的相关处理单元执行3A算法。在3A算法的执行过程中,电子设备的HAL层的相关模块可以更新3A状态。在3A状态为理想参数状态的情况下,电子设备的HAL层的相关模块可以将当前3A状态上报给相机应用。相机应用确定当前3A状态为理想参数状态后,可以下发拍照请求。电子设备可以通过摄像头获取图像,并将该图像保存至图库应用程序中。电子设备可以显示图2C所示的用户界面230。The electronic device may detect user operations on shutter control 225 . In response to the user operation, the camera application can generate a 3A trigger command and send the 3A trigger command to the HAL layer. The relevant modules of the HAL layer can process the 3A trigger command and provide an interface for related processing of the electronic device. The unit executes the 3A algorithm. During the execution of the 3A algorithm, the relevant modules of the HAL layer of the electronic device can update the 3A status. When the 3A state is an ideal parameter state, the relevant module of the HAL layer of the electronic device can report the current 3A state to the camera application. After the camera application determines that the current 3A status is the ideal parameter status, it can issue a photo request. The electronic device can capture an image through a camera and save the image to a gallery application. The electronic device may display the user interface 230 shown in Figure 2C.
用户界面230所包括的控件与用户界面220所包括的控件基本相同。不同的是,用户界面230中的预览区域231所显示的预览图像发生变化,且图库快捷控件232显示的图像发生变化。可理解,图库快捷控件232显示的图像为上述电子设备通过摄像头获取并保存在图库应用程序中的图像。 User interface 230 includes substantially the same controls as user interface 220 . The difference is that the preview image displayed in the preview area 231 in the user interface 230 changes, and the image displayed in the gallery shortcut control 232 changes. It can be understood that the images displayed by the gallery shortcut control 232 are images obtained by the above-mentioned electronic device through the camera and saved in the gallery application.
需要说明的是,图2A-图2C所示的用户界面仅为本申请提供的示例,不应视为对本申 请的限制。也就是说,图2A-图2C所示的用户界面可以显示更多或更少的内容,本申请对此不作限定。It should be noted that the user interfaces shown in Figures 2A-2C are only examples provided by this application and should not be regarded as limitations of this application. That is to say, the user interface shown in Figures 2A-2C can display more or less content, which is not limited in this application.
下面结合图3介绍本申请实施例提供的一种拍摄方法。A photographing method provided by an embodiment of the present application will be introduced below with reference to FIG. 3 .
S301:电子设备显示第一界面。第一界面为相机应用的拍照界面。第一界面包括快门控件。S301: The electronic device displays the first interface. The first interface is the photo interface of the camera application. The first interface includes shutter controls.
具体地,用户可以点击相机应用图标,响应于该点击操作,电子设备可以启动相机应用(即相机应用程序),并显示第一界面。可理解,第一界面为相机应用的拍照界面。第一界面包括快门控件。用户可以通过触发快门控件来实现拍照。Specifically, the user can click the camera application icon, and in response to the click operation, the electronic device can start the camera application (ie, camera application program) and display the first interface. It can be understood that the first interface is the photographing interface of the camera application. The first interface includes shutter controls. Users can take photos by triggering the shutter control.
可理解,第一界面可以为图2B所示的用户界面220。It can be understood that the first interface may be the user interface 220 shown in FIG. 2B.
S302:电子设备检测到作用在快门控件上的用户操作,响应于该用户操作,相机应用生成3A触发指令。其中,3A触发指令用于触发电子设备执行3A算法。S302: The electronic device detects a user operation on the shutter control, and in response to the user operation, the camera application generates a 3A trigger instruction. Among them, the 3A trigger instruction is used to trigger the electronic device to execute the 3A algorithm.
具体地,用户可以点击快门控件。电子设备可以检测到作用在快门控件上的点击操作,响应于该点击操作,电子设备中的相机应用可以生成3A触发指令。Specifically, the user can click on the shutter control. The electronic device can detect a click operation on the shutter control, and in response to the click operation, the camera application in the electronic device can generate a 3A trigger instruction.
可理解,用户还可以通过声音、手势等触发快门控件,本申请对此不作限制。即本申请对用户操作的具体形式不作限制。It is understandable that the user can also trigger the shutter control through sound, gestures, etc., and this application does not limit this. That is to say, this application does not limit the specific form of user operations.
需要说明的是,3A触发指令用于触发电子设备执行3A算法。3A触发指令可以包括触发3A算法的指示信息。在本申请的一些实施例中,3A触发指令可以包括触发AF算法的启动指示信息。例如,3A触发指令可以包括ANDROID_CONTROL_AF_TRIGGER_START。ANDROID_CONTROL_AF_TRIGGER_START用于触发自动对焦扫描。It should be noted that the 3A trigger instruction is used to trigger the electronic device to execute the 3A algorithm. The 3A trigger instruction may include instruction information that triggers the 3A algorithm. In some embodiments of the present application, the 3A trigger instruction may include startup instruction information that triggers the AF algorithm. For example, 3A trigger instructions may include ANDROID_CONTROL_AF_TRIGGER_START. ANDROID_CONTROL_AF_TRIGGER_START is used to trigger autofocus scanning.
在本申请的一些实施例中,3A触发指令还可以包括3A模式。3A模式可以包括OFF模式(即关闭模式)、AUTO模式(即自动模式)等。在OFF模式下,单个的自动对焦(AF)、自动曝光(AE)和自动白平衡(AWB)模式都会有效地关闭,且任何拍摄控件都不会被3A例程覆盖。在AUTO模式下,AF、AE和AWB模式都会运行各自的独立算法,且具有自己的模式、状态和触发元数据条目。例如,3A触发指令可以包括AF_MODE_AUTO。In some embodiments of the present application, the 3A trigger instruction may also include a 3A mode. 3A mode can include OFF mode (ie, shutdown mode), AUTO mode (ie, automatic mode), etc. In OFF mode, the individual autofocus (AF), automatic exposure (AE), and automatic white balance (AWB) modes are effectively turned off, and any shooting controls are not overridden by the 3A routine. In AUTO mode, AF, AE and AWB modes all run their own independent algorithms and have their own mode, status and trigger metadata entries. For example, the 3A trigger command may include AF_MODE_AUTO.
可理解,关于3A模式、3A状态、元数据条目的相关描述可参考相关技术文档,在此不展开说明。It is understandable that for relevant descriptions of 3A mode, 3A status, and metadata entries, please refer to relevant technical documents, and will not be explained here.
S303:电子设备中的相机应用将3A触发指令下发至HAL层。S303: The camera application in the electronic device sends the 3A trigger command to the HAL layer.
可理解,电子设备中的相机应用生成3A触发指令后,相机应用可以将该3A触发指令下发至电子设备的HAL层,以便HAL层的相关模块对其进行处理。It can be understood that after the camera application in the electronic device generates the 3A trigger command, the camera application can send the 3A trigger command to the HAL layer of the electronic device so that the relevant modules of the HAL layer can process it.
在本申请的一些实施例中,电子设备中的位于HAL层的相机HAL模块可以对3A触发指令进行处理。In some embodiments of the present application, the camera HAL module located at the HAL layer in the electronic device can process the 3A trigger instruction.
需要说明的是,相机HAL模块按照顺序来处理请求。因此,3A触发指令传输至HAL层之后,需要进入缓冲器,排队等待相机HAL模块进行处理。It should be noted that the camera HAL module processes requests in order. Therefore, after the 3A trigger command is transmitted to the HAL layer, it needs to enter the buffer and queue up to wait for processing by the camera HAL module.
S304:电子设备中的相机HAL模块确定3A触发指令包括触发3A算法的指示信息,并提供接口来执行3A算法。S304: The camera HAL module in the electronic device determines that the 3A trigger instruction includes instruction information for triggering the 3A algorithm, and provides an interface to execute the 3A algorithm.
可理解,电子设备中的相机HAL模块可以按顺序处理下发至HAL层的相关请求。在处理3A触发指令的过程中,相机HAL模块可以确定该3A触发指令包括触发3A算法的 指示信息,并提供相应接口来执行3A算法。It can be understood that the camera HAL module in the electronic device can process related requests sent to the HAL layer in sequence. In the process of processing the 3A trigger command, the camera HAL module can determine that the 3A trigger command includes instruction information for triggering the 3A algorithm, and provide a corresponding interface to execute the 3A algorithm.
可理解,相机HAL模块可以将相机框架中的上层软件连接到底层的相机驱动程序和硬件。在本申请的一些实施例中,相机子系统可以包括相机管道组件中的实现,例如3A算法处理控件。而相机HAL模块提供了用于实现这些组件的接口。在本申请的而一些实施例中,相机HAL模块可以提供接口,以支持应用框架触发3A算法,进而调用内核层驱动,从而使得图像信号处理器(image signal processor,ISP)可以调度3A算法库,并执行3A算法,从而实现对拍摄参数的调整。It is understandable that the camera HAL module can connect the upper-layer software in the camera framework to the underlying camera driver and hardware. In some embodiments of the present application, the camera subsystem may include implementation in camera pipeline components, such as 3A algorithm processing controls. The camera HAL module provides interfaces for implementing these components. In some embodiments of the present application, the camera HAL module can provide an interface to support the application framework to trigger the 3A algorithm and then call the kernel layer driver, so that the image signal processor (image signal processor, ISP) can schedule the 3A algorithm library. And execute the 3A algorithm to adjust the shooting parameters.
根据上文,3A算法包括AF算法、AE算法和AWB算法。本申请中所提及的拍摄参数包括对焦参数、曝光参数和白平衡参数。According to the above, the 3A algorithm includes AF algorithm, AE algorithm and AWB algorithm. The shooting parameters mentioned in this application include focus parameters, exposure parameters and white balance parameters.
S305:电子设备将3A状态更新为参数调整状态。其中,3A状态用于表示3A算法的执行情况。S305: The electronic device updates the 3A status to the parameter adjustment status. Among them, the 3A state is used to represent the execution of the 3A algorithm.
可理解,电子设备中的相机HAL模块在确定3A触发指令包括触发3A算法的指示信息之后,可以提供接口以供处理单元(例如,ISP)执行3A算法,并将3A状态更新为参数调整状态。具体地,电子设备在确定3A触发指令包括触发3A算法的指示信息之后,可以提供接口来让ISP执行3A算法。ISP执行3A算法之前,拍摄参数为初始值。一旦ISP开始执行3A算法,3A状态变为参数调整状态。It can be understood that after determining that the 3A trigger instruction includes instruction information to trigger the 3A algorithm, the camera HAL module in the electronic device can provide an interface for the processing unit (for example, ISP) to execute the 3A algorithm and update the 3A status to the parameter adjustment status. Specifically, after determining that the 3A triggering instruction includes instruction information for triggering the 3A algorithm, the electronic device may provide an interface to allow the ISP to execute the 3A algorithm. Before the ISP executes the 3A algorithm, the shooting parameters are initial values. Once the ISP starts executing the 3A algorithm, the 3A state changes to the parameter adjustment state.
可理解,参数调整状态表明3A算法处于运行状态,还未收敛。也就是说,3A状态为参数调整状态时,电子设备可以不断调节拍摄参数。It is understandable that the parameter adjustment status indicates that the 3A algorithm is in a running state and has not yet converged. In other words, when the 3A state is the parameter adjustment state, the electronic device can continuously adjust the shooting parameters.
在本申请的一些实施例中,3A状态为参数调整状态时,自动对焦设置的元数据条目为AF_STATE_PASSIVE_SCAN,自动曝光设置的元数据条目为AE_STATE_SEARCHING,自动白平衡设置的元数据条目为AWB_STATE_SEARCHING。In some embodiments of this application, when the 3A state is the parameter adjustment state, the metadata entry of the automatic focus setting is AF_STATE_PASSIVE_SCAN, the metadata entry of the automatic exposure setting is AE_STATE_SEARCHING, and the metadata entry of the automatic white balance setting is AWB_STATE_SEARCHING.
S306:在3A算法处于收敛状态时,电子设备将3A状态更新为理想参数状态。S306: When the 3A algorithm is in the convergence state, the electronic device updates the 3A state to the ideal parameter state.
可理解,一旦3A算法收敛,电子设备中的相机HAL模块可以将3A状态由参数调整状态更新为理想参数状态。理想参数状态表明3A算法已收敛。也就是说,3A状态为理想参数状态时,电子设备已确定最佳的拍摄参数,即理想拍摄参数。It is understandable that once the 3A algorithm converges, the camera HAL module in the electronic device can update the 3A state from the parameter adjustment state to the ideal parameter state. The ideal parameter state indicates that the 3A algorithm has converged. That is to say, when the 3A state is the ideal parameter state, the electronic device has determined the best shooting parameters, that is, the ideal shooting parameters.
在本申请的一些实施例中,3A状态为理想参数状态时,自动对焦设置的元数据条目为_STATE_PASSIVE_FOCUSED,自动曝光设置的元数据条目为AE_STATE_CONVERGED,自动白平衡设置的元数据条目为AWB_STATE_CONVERGED。In some embodiments of this application, when the 3A state is the ideal parameter state, the metadata entry of the automatic focus setting is _STATE_PASSIVE_FOCUSED, the metadata entry of the automatic exposure setting is AE_STATE_CONVERGED, and the metadata entry of the automatic white balance setting is AWB_STATE_CONVERGED.
S307:在3A状态为理想参数状态的情况下,电子设备中的相机HAL模块将当前3A状态上报给相机应用。S307: When the 3A state is an ideal parameter state, the camera HAL module in the electronic device reports the current 3A state to the camera application.
可理解,在3A状态为理想参数状态的情况下,电子设备中的相机HAL模块可以将当前3A状态上报给相机应用,以通知相机应用3A算法已经收敛,且拍摄参数已达到最佳。It can be understood that when the 3A state is an ideal parameter state, the camera HAL module in the electronic device can report the current 3A state to the camera application to notify the camera application that the 3A algorithm has converged and the shooting parameters have reached the optimum.
在本申请的一些实施例中,3A状态为理想参数状态时,电子设备通过摄像头连续获取图像。若在理想参数状态下,电子设备通过摄像头获取的连续多帧图像的置信度较高,电子设备中的相机HAL模块可以将当前3A状态(即理想参数状态)上报给相机应用。也就是说,若在理想参数状态下,电子设备通过摄像头获取的3A稳定图像帧数达到第一阈值,电子设备中的相机HAL模块可以将当前3A状态(即理想参数状态)上报给相机应用。其中,3A稳定图像为置信度大于第二阈值时获取的图像。置信度用于衡量3A状态的稳定性。 可理解,置信度越大,3A状态越稳定。3A状态不稳定时,3A状态可能会在不同状态下来回转换。例如,3A状态不断由参数调整状态变为理想参数状态,再不断由理想参数状态变为参数调整状态。而3A状态稳定时,3A状态基本稳定保持在一种状态下,不会在不同状态下来回转换。In some embodiments of the present application, when the 3A state is the ideal parameter state, the electronic device continuously acquires images through the camera. If the confidence level of the continuous multi-frame images obtained by the electronic device through the camera is high under the ideal parameter state, the camera HAL module in the electronic device can report the current 3A state (i.e., the ideal parameter state) to the camera application. That is to say, if under the ideal parameter state, the number of 3A stable image frames acquired by the electronic device through the camera reaches the first threshold, the camera HAL module in the electronic device can report the current 3A state (i.e., the ideal parameter state) to the camera application. Among them, the 3A stable image is an image obtained when the confidence level is greater than the second threshold. Confidence is used to measure the stability of the 3A state. It is understandable that the greater the confidence, the more stable the 3A state is. When the 3A state is unstable, the 3A state may switch back and forth between different states. For example, the 3A state continuously changes from the parameter adjustment state to the ideal parameter state, and then from the ideal parameter state to the parameter adjustment state. When the 3A state is stable, the 3A state is basically stable and remains in one state, and will not switch back and forth between different states.
可理解,第一阈值和第二阈值可以根据实际需求进行设置,本申请对此不作限制。在本申请的一些实施例中,若电子设备处于稳定状态,且3A状态为理想参数状态,电子设备中的相机HAL模块可以将当前3A状态(即理想参数状态)上报给相机应用。在本申请的一些实施例中,电子设备可以通过状态监测数据来判断电子设备是否稳定。其中,状态监测数据可以用于判断电子设备的运动状态。例如,状态监测数据可以为陀螺仪传感器发送的电子设备围绕三个轴(即,x,y和z轴)的角速度和/或抖动角度。再例如,陀螺仪传感器可以检测电子设备的运动状态,并将其运动状态发送给电子设备的相机HAL模块。即状态监测数据可以包括电子设备的运动状态。其中,电子设备的运动状态可以包括稳定状态(即静止状态)和抖动状态。It can be understood that the first threshold and the second threshold can be set according to actual needs, and this application does not limit this. In some embodiments of the present application, if the electronic device is in a stable state and the 3A state is the ideal parameter state, the camera HAL module in the electronic device can report the current 3A state (ie, the ideal parameter state) to the camera application. In some embodiments of the present application, the electronic device can determine whether the electronic device is stable through status monitoring data. Among them, the status monitoring data can be used to determine the motion status of the electronic device. For example, the condition monitoring data may be the angular velocity and/or jitter angle of the electronic device about three axes (i.e., x, y, and z axes) sent by a gyroscope sensor. For another example, the gyroscope sensor can detect the motion state of the electronic device and send its motion state to the camera HAL module of the electronic device. That is, the status monitoring data may include the motion status of the electronic device. The motion state of the electronic device may include a stable state (i.e., a stationary state) and a shaking state.
在本申请的一些实施例中,陀螺仪传感器持续向相机HAL模块发送状态监测数据。在本申请的又一些实施例中,3A触发指令下发至电子设备的HAL层之后,陀螺仪传感器再向相机HAL模块发送状态监测数据。In some embodiments of the present application, the gyroscope sensor continuously sends status monitoring data to the camera HAL module. In some embodiments of the present application, after the 3A trigger command is issued to the HAL layer of the electronic device, the gyroscope sensor then sends status monitoring data to the camera HAL module.
S308:电子设备中的相机应用确定当前3A状态为理想参数状态后,下发拍照请求,通过摄像头获取第一图像,并保存第一图像。其中,第一图像为拍照所得的图像。S308: After determining that the current 3A state is the ideal parameter state, the camera application in the electronic device issues a photo-taking request, obtains the first image through the camera, and saves the first image. Wherein, the first image is an image obtained by taking a photo.
可理解,电子设备中的相机HAL模块将当前3A状态上报给相机应用之后,电子设备中的相机应用可以确定当前3A状态为理想参数状态,并下发拍照请求,并通过摄像头获取第一图像,并将第一图像保存至图库应用程序中。可理解,下发拍照请求后,电子设备所获取的图像(即第一图像)为拍照图像,而非预览图像。It is understandable that after the camera HAL module in the electronic device reports the current 3A status to the camera application, the camera application in the electronic device can determine that the current 3A status is the ideal parameter status, and issue a photo request, and obtain the first image through the camera. and save the first image to the gallery application. It can be understood that after the photographing request is issued, the image (ie, the first image) acquired by the electronic device is a photographed image, not a preview image.
S309:电子设备显示第二界面。第二界面包括图库快捷控件。图库快捷控件可以显示第一图像的缩略图。S309: The electronic device displays the second interface. The second interface includes gallery shortcut controls. The gallery shortcut control can display a thumbnail of the first image.
可理解,电子设备可以显示第二界面,第二界面可以包括图库快捷控件。电子设备可以通过图库快捷控件显示第一图像的缩略图。It is understandable that the electronic device can display a second interface, and the second interface can include a gallery shortcut control. The electronic device can display the thumbnail of the first image through the gallery shortcut control.
可理解,第二界面可以为图2C所示的用户界面230。It can be understood that the second interface may be the user interface 230 shown in FIG. 2C.
下面介绍本申请实施例涉及的装置。The following describes the devices involved in the embodiments of this application.
图4为本申请实施例提供的一种电子设备的硬件结构示意图。FIG. 4 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
电子设备可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(Universal Serial Bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(Subscriber Identification Module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气 压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and user Identification 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 light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备的具体限定。在本申请另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present invention do not constitute specific limitations on the electronic equipment. In other embodiments of the present application, the electronic device may include more or less components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(Application Processor,AP),调制解调处理器,图形处理器(Graphics Processing unit,GPU),图像信号处理器(即ISP),控制器,存储器,视频编解码器,数字信号处理器(Digital Signal Processor,DSP),基带处理器,和/或神经网络处理器(Neural-network Processing Unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (Application Processor, AP), a modem processor, a graphics processor (Graphics Processing unit, GPU), and an image signal processor. (i.e. ISP), controller, memory, video codec, digital signal processor (Digital Signal Processor, DSP), baseband processor, and/or neural network processor (Neural-network Processing Unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors.
其中,控制器可以是电子设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Among them, the controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
在本申请提供的实施例中,电子设备可以通过处理器110执行所述拍摄方法。In the embodiment provided by this application, the electronic device can execute the shooting method through the processor 110 .
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备充电,也可以用于电子设备与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。In some embodiments, processor 110 may include one or more interfaces. The USB interface 130 is an interface that complies with the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device, and can also be used to transmit data between the electronic device and peripheral devices. It can also be used to connect headphones to play audio through them. This interface can also be used to connect other electronic devices, such as AR devices, etc.
充电管理模块140用于从充电器接收充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. While the charging management module 140 charges the battery 142, it can also provide power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, wireless communication module 160, etc.
电子设备的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device can be realized through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
移动通信模块150可以提供应用在电子设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(Low Noise Amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied to electronic devices. 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 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。A modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate 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. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194.
无线通信模块160可以提供应用在电子设备上的包括无线局域网(Wireless Local Area Networks,WLAN)(如无线保真(Wireless Fidelity,Wi-Fi)网络),蓝牙(Bluetooth,BT),全球导航卫星系统(Global Navigation Satellite System,GNSS),调频(Frequency Modulation,FM),近距离无线通信技术(Near Field Communication,NFC),红外技术(Infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on electronic devices including Wireless Local Area Networks (WLAN) (such as Wireless Fidelity (Wi-Fi) network), Bluetooth (Bluetooth, BT), and Global Navigation Satellite System. (Global Navigation Satellite System, GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备可以通过无线通信技术与网络以及其他设备通信。In some embodiments, the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology.
电子设备通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device implements display functions through the GPU, display screen 194, and application processor. The GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are 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 alter display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(Liquid Crystal Display,LCD),有机发光二极管(Organic Light-Emitting Diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(Active-Matrix Organic Light Emitting Diode的,AMOLED),柔性发光二极管(Flex Light-Emitting Diode,FLED),Mini LED,Micro LED,Micro-OLED,量子点发光二极管(Quantum Dot Light Emitting Diodes,QLED)等。在一些实施例中,电子设备可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. Display 194 includes a display panel. The display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (Active-Matrix Organic Light). Emitting Diode (AMOLED), Flexible Light-Emitting Diode (FLED), Mini LED, Micro LED, Micro-OLED, Quantum Dot Light Emitting Diode (QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1.
电子设备可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现获取功能。Electronic devices can achieve acquisition functions through ISPs, cameras 193, video codecs, GPUs, display screens 194, and application processors.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像或视频。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the light signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image or video visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
在本申请的一些实施例中,ISP可以用于执行3A算法。In some embodiments of the present application, ISP may be used to execute the 3A algorithm.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(Charge Coupled Device,CCD)或互补金属氧化物半导体(Complementary Metal-Oxide-Semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像或视频信号。ISP将数字图像或视频信号输出到DSP加工处理。DSP将数字图像或视频信号转换成标准的RGB,YUV等格式 的图像或视频信号。Camera 193 is used to capture still images or video. The object passes through the lens to produce an optical image that is projected onto the photosensitive element. The photosensitive element can be a Charge Coupled Device (CCD) or a Complementary Metal-Oxide-Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image or video signal. ISP outputs digital images or video signals to DSP for processing. DSP converts digital images or video signals into standard RGB, YUV and other formats.
在一些实施例中,电子设备可以包括1个或N个摄像头193,N为大于1的正整数。例如,在一些实施例中,电子设备可以利用N个摄像头193获取多个曝光系数的图像,进而,在视频后处理中,电子设备可以根据多个曝光系数的图像,通过HDR技术合成HDR图像。In some embodiments, the electronic device may include 1 or N cameras 193, where N is a positive integer greater than 1. For example, in some embodiments, the electronic device can use N cameras 193 to acquire images of multiple exposure coefficients. Furthermore, in video post-processing, the electronic device can synthesize HDR images through HDR technology based on the images of multiple exposure coefficients.
数字信号处理器用于处理数字信号,除了可以处理数字图像或视频信号,还可以处理其他数字信号。例如,当电子设备在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。A digital signal processor is used to process digital signals. In addition to processing digital images or video signals, it can also process other digital signals. For example, when the electronic device selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
视频编解码器用于对数字视频压缩或解压缩。电子设备可以支持一种或多种视频编解码器。这样,电子设备可以播放或录制多种编码格式的视频,例如:动态图像专家组(Moving Picture Experts Group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. Electronic devices may support one or more video codecs. In this way, electronic devices can play or record videos in multiple encoding formats, such as: Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
NPU为神经网络(Neural-Network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural network (Neural-Network, NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between human brain neurons, it can quickly process input information and can continuously learn by itself. Intelligent cognitive applications of electronic devices can be realized through NPU, such as image recognition, face recognition, speech recognition, text understanding, etc.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像视频播放功能等)等。存储数据区可存储电子设备使用过程中所创建的数据(比如音频数据,电话本等)等。Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device. The internal memory 121 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image video playback function, etc.), etc. The storage data area can store data created during the use of electronic equipment (such as audio data, phone books, etc.).
电子设备可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。Speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。电子设备可以设置至少一个麦克风170C。 Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. The electronic device may be provided with at least one microphone 170C.
耳机接口170D用于连接有线耳机。The headphone interface 170D is used to connect wired headphones.
传感器模块180可以包括1个或多个传感器,这些传感器可以为相同类型或不同类型。可理解,图4所示的传感器模块180仅为一种示例性的划分方式,还可能有其他划分方式,本申请对此不作限制。The sensor module 180 may include one or more sensors, which may be of the same type or different types. It can be understood that the sensor module 180 shown in FIG. 4 is only an exemplary division method, and other division methods are possible, and this application is not limited thereto.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。当有触摸操作作用于显示屏194,电子设备根据压力传感器180A检测所述触摸操作强度。电子设备也可以根据压力传感器180A的检 测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . When a touch operation is performed on the display screen 194, the electronic device detects the strength of the touch operation according to the pressure sensor 180A. The electronic device can also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch location but with different touch operation intensities may correspond to different operation instructions.
陀螺仪传感器180B可以用于确定电子设备的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。The gyro sensor 180B can be used to determine the motion posture of the electronic device. In some embodiments, the angular velocity of the electronic device about three axes (ie, x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B can be used for image stabilization.
气压传感器180C用于测量气压。在一些实施例中,电子设备通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。Air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备可以利用磁传感器180D检测翻盖皮套的开合。Magnetic sensor 180D includes a Hall sensor. The electronic device can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
加速度传感器180E可检测电子设备在各个方向上(一般为三轴)加速度的大小。当电子设备静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the electronic device in various directions (generally three axes). When the electronic device is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices and be used in horizontal and vertical screen switching, pedometer and other applications.
距离传感器180F,用于测量距离。电子设备可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. Electronic devices can measure distance via infrared or laser. In some embodiments, when shooting a scene, the electronic device can utilize the distance sensor 180F to measure distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备通过发光二极管向外发射红外光。电子设备使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备附近有物体。当检测到不充分的反射光时,电子设备可以确定电子设备附近没有物体。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. Electronic devices emit infrared light through light-emitting diodes. Electronic devices use photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device. When insufficient reflected light is detected, the electronic device can determine that there is no object near the electronic device.
环境光传感器180L用于感知环境光亮度。电子设备可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备是否在口袋里,以防误触。The ambient light sensor 180L is used to sense ambient light brightness. The electronic device can adaptively adjust the brightness of the display screen 194 based on perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device is in the pocket to prevent accidental touching.
在本申请的一些实施例中,电子设备中的环境光传感器180L可以用于获取环境亮度并将其传送给相应的处理模块(例如,处理器110等)。In some embodiments of the present application, the ambient light sensor 180L in the electronic device may be used to obtain the ambient brightness and transmit it to the corresponding processing module (eg, the processor 110, etc.).
指纹传感器180H用于获取指纹。Fingerprint sensor 180H is used to acquire fingerprints.
温度传感器180J用于检测温度。Temperature sensor 180J is used to detect temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch panel". The touch sensor 180K can be disposed on the display screen 194. 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 used to detect a touch operation on or near the touch sensor 180K. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device at a location different from that of the display screen 194 .
骨传导传感器180M可以获取振动信号。Bone conduction sensor 180M can acquire vibration signals.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备可以接收按键输入,产生与电子设备的用户设置以及功能控制有关的键信号输入。The buttons 190 include a power button, a volume button, etc. Key 190 may be a mechanical key. It can also be a touch button. The electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的 振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback. For example, touch operations for different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The motor 191 can also respond to different vibration feedback effects for touch operations in different areas of the display screen 194 . Different application scenarios (such as time reminders, receiving information, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备的接触和分离。电子设备可以支持1个或N个SIM卡接口,N为大于1的正整数。电子设备通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备中,不能和电子设备分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to realize contact and separation from the electronic device. The electronic device can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. Electronic devices interact with the network through SIM cards to implement functions such as calls and data communications. In some embodiments, the electronic device uses an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device and cannot be separated from the electronic device.
电子设备的软件结构可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。The software structure of electronic devices can adopt layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture.
图5为本申请实施例提供的一种电子设备的软件结构示意图。FIG. 5 is a schematic diagram of the software structure of an electronic device provided by an embodiment of the present application.
如图5所示,本申请涉及的电子设备的软件框架可以包括应用程序层,应用程序框架层(framework,FWK)、系统库、安卓运行时、硬件抽象层和内核层(kernel)。As shown in Figure 5, the software framework of the electronic device involved in this application may include an application layer, an application framework layer (framework, FWK), a system library, an Android runtime, a hardware abstraction layer and a kernel layer (kernel).
其中,应用程序层可以包括一系列应用程序包,例如相机,图库,日历,通话,WLAN,音乐,视频等应用程序(也可以称为应用)。其中,相机用于获取图像和视频。关于应用程序层的其他应用,可以参考常规技术中的介绍和说明,本申请不展开说明。在本申请中,电子设备上的应用可以是原生的应用(如在电子设备出厂前,安装操作系统时安装在电子设备中的应用),也可以是第三方应用(如用户通过应用商店下载安装的应用),本申请实施例不予限定。Among them, the application layer can include a series of application packages, such as camera, gallery, calendar, call, WLAN, music, video and other applications (also called applications). Among them, cameras are used to acquire images and videos. Regarding other applications of the application layer, please refer to the introduction and description in conventional technologies, and this application does not elaborate on them. In this application, the application on the electronic device may be a native application (such as an application installed in the electronic device when the operating system is installed before the electronic device leaves the factory), or it may be a third-party application (such as a user downloading and installing it through an application store). application), the embodiments of this application are not limited.
应用程序框架层为应用程序层的应用程序提供应用编程接口(Application Programming Interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides application programming interfaces (Application Programming Interface, API) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions.
如图5所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 5, the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make this data accessible to applications. Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls that display text, controls that display pictures, etc. A view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
电话管理器用于提供电子设备的通信功能。例如通话状态的管理(包括接通,挂断等)。Telephone managers are used to provide communication functions of electronic devices. For example, call status management (including connected, hung up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话界面形式出现在屏幕上的通知。例如在状 态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of a conversation interface. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
运行时(Runtime)包括核心库和虚拟机。Runtime负责系统的调度和管理。Runtime includes core libraries and virtual machines. Runtime is responsible for the scheduling and management of the system.
核心库包含两部分:一部分是编程语言(例如,java语言)需要调用的功能函数,另一部分是系统的核心库。The core library contains two parts: one part is the functional functions that need to be called by the programming language (for example, Java language), and the other part is the core library of the system.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的编程文件(例如,java文件)执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and application framework layer run in virtual machines. The virtual machine executes the programming files (for example, java files) of the application layer and application framework layer into binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
系统库可以包括多个功能模块。例如:表面管理器(Surface Manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),二维图形引擎(例如:SGL)等。System libraries can include multiple functional modules. For example: Surface Manager (Surface Manager), Media Libraries (Media Libraries), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了二维(2-Dimensional,2D)和三维(3-Dimensional,3D)图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of two-dimensional (2-Dimensional, 2D) and three-dimensional (3-Dimensional, 3D) layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现3D图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
2D图形引擎是2D绘图的绘图引擎。2D Graphics Engine is a drawing engine for 2D drawing.
硬件抽象层(HAL)是位于操作系统内核与上层软件之间的接口层,其目的在于将硬件抽象化。硬件抽象层是设备内核驱动的抽象接口,用于实现向更高级别的Java API框架提供访问底层设备的应用编程接口。HAL包含多个库模块,例如相机HAL模块、显示屏、蓝牙、音频等。其中每个库模块都为特定类型的硬件组件实现一个接口。当系统框架层API要求访问便携设备的硬件时,Android操作系统将为该硬件组件加载库模块。The hardware abstraction layer (HAL) is the interface layer between the operating system kernel and upper-layer software. Its purpose is to abstract the hardware. The hardware abstraction layer is an abstract interface of the device kernel driver, which is used to provide application programming interfaces for accessing underlying devices to higher-level Java API frameworks. HAL contains multiple library modules, such as camera HAL module, display, Bluetooth, audio, etc. Each of these library modules implements an interface for a specific type of hardware component. When the system framework layer API requires access to the portable device's hardware, the Android operating system will load the library module for the hardware component.
内核层是Android操作系统的基础,Android操作系统最终的功能都是通过内核层完成。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动,虚拟卡驱动。The kernel layer is the foundation of the Android operating system, and the final functions of the Android operating system are completed through the kernel layer. The kernel layer at least includes display driver, camera driver, audio driver, sensor driver, and virtual card driver.
需要说明的是,本申请提供的图5所示的电子设备的软件结构示意图仅作为一种示例,并不限定Android操作系统不同分层中的具体模块划分,具体可以参考常规技术中对Android操作系统软件结构的介绍。另外,本申请提供的拍摄方法还可以基于其他操作系统实现,本申请不再一一举例。It should be noted that the software structure diagram of the electronic device shown in Figure 5 provided by this application is only an example and does not limit the specific module divisions in different layers of the Android operating system. For details, please refer to the Android operation in conventional technologies. Introduction to system software structure. In addition, the shooting method provided in this application can also be implemented based on other operating systems, and this application will not give examples one by one.
以下实施例以图5所示的电子设备的软件结构为例,对本申请实施例提供的技术方案进行具体阐述。The following embodiments take the software structure of the electronic device shown in FIG. 5 as an example to specifically describe the technical solution provided by the embodiments of the present application.
请参考图6,图6为本申请实施例提供的一种快门延迟示意图。Please refer to FIG. 6 , which is a schematic diagram of a shutter delay provided by an embodiment of the present application.
如图6所示,电子设备可以包括相机应用。相机应用的拍摄界面包括快门控件。电子设备可以检测到作用于快门控件上的用户操作。响应于该用户操作,相机应用可以生成3A触发指令。该3A触发指令用于触发3A算法。相机应用可以将该3A触发指令下发至HAL层。该3A触发指令下发至HAL层之后,进入缓冲器(即buffer)中暂时存放,并等待处理。相机HAL模块按照顺序处理指令,处理3A触发指令时,可以确定该指令中包括用于指示开启3A算法的信息(例如,TRIGGER_START条目),并提供接口来实现3A算法。此时,3A状态为参数调整状态。一旦3A算法收敛,电子设备将3A状态调整为理想参数状态。相机HAL模块可以根据3A稳定图像的帧数以及状态监测数据来判断电子设备是否稳定(具体方式可以参考前述实施例)。若电子设备处于稳定状态,电子设备中的相机HAL 模块可以将当前3A状态(即理想参数状态)上报给相机应用。相机应用获取当前3A状态之后,可以下发拍照请求。相机HAL模块接收该拍照请求后,可以进行选帧,以及后处理。可理解,后处理之后所得的图像即为本次拍照所得的图像。相机HAL模块可以将该图像上传至应用程序层。电子设备可以将其保存至图库应用程序中。获取该图像后,电子设备可以生成3A取消指令,并将该3A取消指令下发至HAL层。相机HAL模块处理该3A取消指令时,确定该指令中包括停止执行3A算法的信息(例如,TRIGGER_CANCEL条目),从而重置拍摄参数。即将调整后的拍摄参数恢复成默认值。As shown in Figure 6, the electronic device may include a camera application. The camera app's shooting interface includes shutter controls. The electronic device can detect user actions on the shutter control. In response to this user operation, the camera application can generate a 3A trigger command. The 3A trigger instruction is used to trigger the 3A algorithm. The camera application can send the 3A trigger command to the HAL layer. After the 3A trigger instruction is issued to the HAL layer, it is temporarily stored in the buffer (buffer) and waits for processing. The camera HAL module processes instructions in sequence. When processing the 3A trigger instruction, it can be determined that the instruction includes information indicating turning on the 3A algorithm (for example, a TRIGGER_START entry), and provides an interface to implement the 3A algorithm. At this time, the 3A state is the parameter adjustment state. Once the 3A algorithm converges, the electronic device adjusts the 3A state to the ideal parameter state. The camera HAL module can determine whether the electronic device is stable based on the number of frames of the 3A stable image and the status monitoring data (for specific methods, please refer to the aforementioned embodiment). If the electronic device is in a stable state, the camera HAL module in the electronic device can report the current 3A state (that is, the ideal parameter state) to the camera application. After the camera application obtains the current 3A status, it can issue a photo request. After receiving the photo request, the camera HAL module can perform frame selection and post-processing. It can be understood that the image obtained after post-processing is the image obtained by this photography. The camera HAL module can upload this image to the application layer. The electronic device can save it to the gallery application. After acquiring the image, the electronic device can generate a 3A cancellation instruction and send the 3A cancellation instruction to the HAL layer. When the camera HAL module processes the 3A cancel command, it determines that the command includes information to stop executing the 3A algorithm (for example, a TRIGGER_CANCEL entry), thereby resetting the shooting parameters. The adjusted shooting parameters will be restored to their default values.
可理解,上述过程中,快门延迟包含时延1和3A算法执行时间。也就是说,电子设备中的相机HAL模块无需等待3A状态变为参数锁定状态再上报当前3A状态。这种方式减少了快门延迟,使得电子设备的拍摄响应时间得以降低,响应速度变快,提升了用户的拍摄体验。It can be understood that in the above process, the shutter delay includes delay 1 and 3A algorithm execution time. In other words, the camera HAL module in the electronic device does not need to wait for the 3A status to change to the parameter lock status before reporting the current 3A status. This method reduces the shutter delay, reduces the shooting response time of the electronic device, makes the response speed faster, and improves the user's shooting experience.
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。The above embodiments are only used to illustrate the technical solutions of the present application, but are not intended to limit them. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments. Modifications may be made to the recorded technical solutions, or equivalent substitutions may be made to some of the technical features; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

  1. 一种拍摄方法,其特征在于,所述方法包括:A photographing method, characterized in that the method includes:
    电子设备显示第一界面;所述第一界面包括快门控件;所述第一界面为相机应用的拍照界面;The electronic device displays a first interface; the first interface includes a shutter control; the first interface is a photography interface of a camera application;
    响应于作用在所述快门控件上的第一操作,所述电子设备执行3A算法来调整拍摄参数,并对3A状态进行更新;所述3A状态用于表示所述3A算法的执行情况;In response to the first operation on the shutter control, the electronic device executes the 3A algorithm to adjust the shooting parameters and updates the 3A status; the 3A status is used to represent the execution of the 3A algorithm;
    若所述3A状态为理想参数状态,并且所述电子设备处于稳定状态,所述电子设备基于理想拍摄参数获取图像帧;所述理想参数状态表明3A算法已收敛;所述理想拍摄参数为所述电子设备在所述3A算法收敛时获取的拍摄参数。If the 3A state is an ideal parameter state and the electronic device is in a stable state, the electronic device acquires image frames based on ideal shooting parameters; the ideal parameter state indicates that the 3A algorithm has converged; the ideal shooting parameters are the The shooting parameters obtained by the electronic device when the 3A algorithm converges.
  2. 如权利要求1所述的方法,其特征在于,所述电子设备基于理想拍摄参数获取图像帧之前,所述方法还包括:The method of claim 1, wherein before the electronic device acquires image frames based on ideal shooting parameters, the method further includes:
    所述电子设备基于陀螺仪传感器获取的状态监测数据判断所述电子设备是否处于所述稳定状态;所述状态监测数据包括所述电子设备围绕x轴、y轴和z轴的角速度和/或抖动角度。The electronic device determines whether the electronic device is in the stable state based on status monitoring data obtained by a gyroscope sensor; the status monitoring data includes the angular velocity and/or jitter of the electronic device around the x-axis, y-axis, and z-axis. angle.
  3. 如权利要求2所述的方法,其特征在于,所述电子设备基于陀螺仪传感器获取的状态监测数据判断所述电子设备是否处于所述稳定状态之后,所述方法还包括:The method of claim 2, wherein after the electronic device determines whether the electronic device is in the stable state based on the status monitoring data obtained by the gyroscope sensor, the method further includes:
    若所述电子设备未处于所述稳定状态,所述电子设备接收所述陀螺仪传感器获取的新的状态监测数据,并根据所述新的状态监测数据重新判断所述电子设备是否处于所述稳定状态。If the electronic device is not in the stable state, the electronic device receives new state monitoring data obtained by the gyro sensor, and re-judges whether the electronic device is in the stable state based on the new state monitoring data. state.
  4. 如权利要求1所述的方法,其特征在于,所述电子设备基于理想拍摄参数获取图像帧之前,所述方法还包括:The method of claim 1, wherein before the electronic device acquires image frames based on ideal shooting parameters, the method further includes:
    所述电子设备获取N帧图像;The electronic device acquires N frames of images;
    若所述N帧图像中的M帧图像为3A稳定图像,则所述电子设备处于所述稳定状态;所述M与所述N的比值大于第一阈值;所述3A稳定图像为所述电子设备在置信度大于第二阈值时获取的图像;所述置信度用于衡量3A状态的稳定性;所述置信度越大,所述3A状态越稳定;所述M和所述N均为正整数。If the M frame images in the N frame images are 3A stable images, the electronic device is in the stable state; the ratio of the M to the N is greater than the first threshold; the 3A stable image is the electronic device. The image obtained by the device when the confidence level is greater than the second threshold; the confidence level is used to measure the stability of the 3A state; the greater the confidence level, the more stable the 3A state; the M and the N are both positive integer.
  5. 如权利要求4所述的方法,其特征在于,所述电子设备获取N帧图像之后,所述方法还包括:The method of claim 4, wherein after the electronic device obtains N frames of images, the method further includes:
    若所述N帧图像中不存在所述M帧图像为所述3A稳定图像,所述电子设备继续获取L帧图像,并根据所述L帧图像中所包括的所述3A稳定图像的帧数,来判断所述电子设备是否处于所述稳定状态;所述L为正整数。If the M frame image does not exist in the N frame images and is the 3A stable image, the electronic device continues to acquire L frame images, and determines the number of frames of the 3A stable image included in the L frame image. , to determine whether the electronic device is in the stable state; the L is a positive integer.
  6. 如权利要求1-5任一项所述的方法,其特征在于,所述响应于作用在所述快门控件 上的第一操作之后,所述方法还包括:The method according to any one of claims 1 to 5, characterized in that, after the response to the first operation acting on the shutter control, the method further includes:
    所述电子设备通过所述相机应用向硬件抽象HAL层下发3A触发指令;所述3A触发指令用于触发所述电子设备执行所述3A算法。The electronic device issues a 3A trigger instruction to the hardware abstraction HAL layer through the camera application; the 3A trigger instruction is used to trigger the electronic device to execute the 3A algorithm.
  7. 如权利要求1-6任一项所述的方法,其特征在于,所述若所述3A状态为理想参数状态,并且所述电子设备处于稳定状态,所述电子设备基于理想拍摄参数获取图像帧,包括:The method according to any one of claims 1 to 6, characterized in that if the 3A state is an ideal parameter state and the electronic device is in a stable state, the electronic device acquires an image frame based on the ideal shooting parameters. ,include:
    若所述3A状态为所述理想参数状态,并且所述电子设备处于所述稳定状态,所述电子设备通过相机HAL模块向所述相机应用发送当前的3A状态;If the 3A state is the ideal parameter state and the electronic device is in the stable state, the electronic device sends the current 3A state to the camera application through the camera HAL module;
    在所述相机应用确定所述当前的3A状态为所述理想参数状态的情况下,所述电子设备通过所述相机应用向所述相机HAL模块下发拍照请求;When the camera application determines that the current 3A state is the ideal parameter state, the electronic device sends a photographing request to the camera HAL module through the camera application;
    基于所述拍照请求,所述电子设备通过所述相机HAL模块下发所述理想拍摄参数至摄像头,并通过所述摄像头根据所述理想拍摄参数来采集所述图像帧。Based on the photographing request, the electronic device sends the ideal photographing parameters to the camera through the camera HAL module, and collects the image frames according to the ideal photographing parameters through the camera.
  8. 如权利要求1-7任一项所述的方法,其特征在于,所述电子设备基于理想拍摄参数获取图像帧之后,所述方法还包括:The method according to any one of claims 1 to 7, wherein after the electronic device acquires image frames based on ideal shooting parameters, the method further includes:
    所述电子设备显示第二界面;所述第二界面包括图库快捷控件;所述图库快捷控件显示所述图像帧的缩略图。The electronic device displays a second interface; the second interface includes a gallery shortcut control; and the gallery shortcut control displays thumbnails of the image frames.
  9. 一种电子设备,包括显示屏、存储器,以及一个或多个处理器,其特征在于,所述存储器用于存储计算机程序;所述处理器用于调用所述计算机程序,使得所述电子设备执行权利要求1-8中任一项所述的方法。An electronic device includes a display screen, a memory, and one or more processors, characterized in that the memory is used to store a computer program; the processor is used to call the computer program so that the electronic device executes the right The method described in any one of claims 1-8.
  10. 一种计算机存储介质,其特征在于,包括:计算机指令;当所述计算机指令在电子设备上运行时,使得所述电子设备执行权利要求1-8中任一项所述的方法。A computer storage medium, characterized in that it includes: computer instructions; when the computer instructions are run on an electronic device, the electronic device is caused to execute the method described in any one of claims 1-8.
PCT/CN2022/142907 2022-02-28 2022-12-28 Photographing method and related device WO2023160224A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210185836.8 2022-02-28
CN202210185836.8A CN116723382B (en) 2022-02-28 Shooting method and related equipment

Publications (2)

Publication Number Publication Date
WO2023160224A1 WO2023160224A1 (en) 2023-08-31
WO2023160224A9 true WO2023160224A9 (en) 2023-10-19

Family

ID=87764662

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/142907 WO2023160224A1 (en) 2022-02-28 2022-12-28 Photographing method and related device

Country Status (1)

Country Link
WO (1) WO2023160224A1 (en)

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101692399B1 (en) * 2010-10-14 2017-01-03 삼성전자주식회사 Digital image processing apparatus and digital image processing method
CN105827942A (en) * 2015-09-24 2016-08-03 维沃移动通信有限公司 Rapid photographing method and electronic device
KR102407624B1 (en) * 2015-10-06 2022-06-10 삼성전자주식회사 Method for processing image of electronic device and electronic device thereof
CN106686305B (en) * 2016-12-22 2020-09-15 南昌黑鲨科技有限公司 Image processing method of electronic equipment and electronic equipment
CN108777767A (en) * 2018-08-22 2018-11-09 Oppo广东移动通信有限公司 Photographic method, device, terminal and computer readable storage medium
CN113497879B (en) * 2020-03-18 2023-04-07 Oppo广东移动通信有限公司 Photographing light supplementing method and device, terminal and storage medium
CN112954201B (en) * 2021-01-28 2022-09-27 维沃移动通信有限公司 Shooting control method and device and electronic equipment
CN113727016A (en) * 2021-06-15 2021-11-30 荣耀终端有限公司 Shooting method and electronic equipment
CN113965693B (en) * 2021-08-12 2022-12-13 荣耀终端有限公司 Video shooting method, device and storage medium
CN113727035B (en) * 2021-10-15 2023-05-12 Oppo广东移动通信有限公司 Image processing method, system, electronic device and storage medium

Also Published As

Publication number Publication date
CN116723382A (en) 2023-09-08
WO2023160224A1 (en) 2023-08-31

Similar Documents

Publication Publication Date Title
WO2020168956A1 (en) Method for photographing the moon and electronic device
WO2020233553A1 (en) Photographing method and terminal
WO2021093793A1 (en) Capturing method and electronic device
WO2021052232A1 (en) Time-lapse photography method and device
US11669242B2 (en) Screenshot method and electronic device
WO2021147482A1 (en) Telephoto photographing method and electronic device
KR102577396B1 (en) Recording frame rate control method and related devices
WO2021213341A1 (en) Video photographing method and electronic device
US20230007186A1 (en) Video Shooting Method and Electronic Device
WO2021213164A1 (en) Application interface interaction method, electronic device, and computer readable storage medium
JP7355941B2 (en) Shooting method and device in long focus scenario
CN113630558B (en) Camera exposure method and electronic equipment
CN113891009B (en) Exposure adjusting method and related equipment
WO2023056795A1 (en) Quick photographing method, electronic device, and computer readable storage medium
EP4199499A1 (en) Image capture method, graphical user interface, and electronic device
WO2023273323A1 (en) Focusing method and electronic device
WO2022143180A1 (en) Collaborative display method, terminal device, and computer readable storage medium
US20230412929A1 (en) Photographing Method and Related Apparatus
WO2022267608A1 (en) Exposure intensity adjusting method and related apparatus
WO2021204103A1 (en) Picture preview method, electronic device, and storage medium
WO2023160224A9 (en) Photographing method and related device
CN116723382B (en) Shooting method and related equipment
WO2023160230A9 (en) Photographing method and related device
WO2023169237A1 (en) Screen capture method, electronic device, and system
WO2024036998A1 (en) Display method, storage medium, and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22928464

Country of ref document: EP

Kind code of ref document: A1