Autofocus techniques for spotlight imaging scenes

WO2024239270A1PCT designated stage expired Publication Date: 2024-11-28QUALCOMM INC +6
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/096013
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-05-24
Publication Date
2024-11-28

Smart Images

  • Figure CN2023096013_28112024_PF_FP_ABST
    Figure CN2023096013_28112024_PF_FP_ABST
Patent Text Reader

Abstract

This disclosure provides systems, methods, and devices for image signal processing that support autofocus for imaging scenes that contain spotlights. In a first aspect, a method is provided that includes determining a spotlight segmentation mask for a received image frame. The spotlight segmentation mask may identify spotlight pixels and spotlight distorted pixels. A focus value for the image frame may then be determined based on the spotlight segmentation mask. For example, spotlight pixels may be ignored and spotlight distorted pixels may be weighted based on their brightness values while determining the focus value. Focus settings for the image sensor may then be determined using a focusing process. Other aspects and features are also claimed and described.
Need to check novelty before this filing date? Find Prior Art

Description

AUTOFOCUS TECHNIQUES FOR SPOTLIGHT IMAGING SCENESTECHNICAL FIELD

[0001] Aspects of the present disclosure relate generally to image processing and capture, and more particularly, to controlling an image sensor to capture improved images. Some features may enable and provide improved image capture, including improved autofocus techniques for imaging scenes that include spotlights.

[0002] INTRODUCTION

[0003] Image capture devices are devices that can capture one or more digital images, whether still images for photos or sequences of images for videos. Capture devices can be incorporated into a wide variety of devices. By way of example, image capture devices may comprise stand-alone digital cameras or digital video camcorders, camera-equipped wireless communication device handsets, such as mobile telephones, cellular or satellite radio telephones, personal digital assistants (PDAs) , panels or tablets, gaming devices, computing devices such as webcams, video surveillance cameras, or other devices with digital imaging or video capabilities.

[0004] In certain scenes, a photographer may desire to direct the viewer’s focus to one portion of the scene. For example, in a portrait photograph of a person, the photographer may desire for the viewer to focus on the person, rather than other scenery. The photographer may choose a low aperture lens for such a photograph, because the low aperture results in objects at different depths than the person to be significantly blurred. Lower aperture lenses produce higher blurring than higher aperture lenses. However, lower aperture lenses generally are larger in size and made from higher-cost materials.

[0005] Human eyes perceive colors in a different manner than electronic image sensors. One configuration records separate red, green, and blue color values representing a scene. The appearance of a scene, and particularly the color of objects in the scene, is dependent on the illumination source. Different illumination sources have different light colors, which can be observed by comparing an incandescent bulb that outputs yellow-tinted white light to a light-emitting diode (LED) that outputs blue-tinted white light. Human eyes adapt to different light sources, whereas electronic image sensors generally capture light information identically in different scenes. As a result, the recorded colors from an electronic image sensor may not match the human-perceived color of the scene, such as when human eyes compensate for the yellow tinting to make white objects appear white  even when lit by incandescent bulbs while the electronic image sensor records white objects as yellow when lit by incandescent bulbs. A white balancing algorithm may be applied to the output of the electronic image sensor to compensate for different lighting sources to improve the match between the electronic representation of the scene and the human-perceived appearance of the scene.

[0006] BRIEF SUMMARY OF SOME EXAMPLES

[0007] The following summarizes some aspects of the present disclosure to provide a basic understanding of the discussed technology. This summary is not an extensive overview of all contemplated features of the disclosure and is intended neither to identify key or critical elements of all aspects of the disclosure nor to delineate the scope of any or all aspects of the disclosure. Its sole purpose is to present some concepts of one or more aspects of the disclosure in summary form as a prelude to the more detailed description that is presented later.

[0008] In some aspects, a method may be provided that includes determining a spotlight segmentation mask for a received image frame. The spotlight segmentation mask may identify one or more pixels within the image frame that correspond to spotlights depicted within the image frame. The spotlight segmentation mask may identify spotlight pixels and, in certain implementations, may separately identify spotlight distorted pixels (such as pixels that have been visually distorted based on the light from the spotlight) . A focus value for the image frame then be determined based on the spotlight segmentation mask. For example, spotlight pixels may be excluded from consideration in determining the focus value and spotlight distorted pixels may be weighted while determining the focus value based on their brightness values. Focus settings for the image sensor may be determined based on the focus value, according to a focusing process. For example, the focus value may be used and determined as part of a PDAF or CAF focusing process.

[0009] In one aspect, a method is provided that includes receiving an image frame from an image sensor; determining a spotlight segmentation mask for the image, wherein the spotlight segmentation mask identifies pixels of the image frame that correspond to a spotlight depicted within the image frame; determining a focus value for the image frame based on the spotlight segmentation mask; and determining focus settings for the image sensor according to a focusing process and based on the focus value.

[0010] In another aspect, an apparatus is provided that includes a memory storing processor-readable code; and at least one processor coupled to the memory. The at least one  processor may be configured to execute the processor-readable code to cause the at least one processor to perform operations including: receiving an image frame from an image sensor; determining a spotlight segmentation mask for the image, where the spotlight segmentation mask identifies pixels of the image frame that correspond to a spotlight depicted within the image frame; determining a focus value for the image frame based on the spotlight segmentation mask; and determining focus settings for the image sensor according to a focusing process and based on the focus value.

[0011] In an additional aspect, an image capture device is provided that includes an image sensor; a memory storing processor-readable code; and at least one processor coupled to the memory. The at least one processor may be configured to execute the processor-readable code to cause the at least one processor to perform operations including: receiving an image frame from the image sensor; determining a spotlight segmentation mask for the image, where the spotlight segmentation mask identifies pixels of the image frame that correspond to a spotlight depicted within the image frame; determining a focus value for the image frame based on the spotlight segmentation mask; and determining focus settings for the image sensor according to a focusing process and based on the focus value.

[0012] In a further aspect, a non-transitory computer-readable medium is provided storing instructions that, when executed by a processor, cause the processor to perform operations including: receiving an image frame from an image sensor; determining a spotlight segmentation mask for the image, where the spotlight segmentation mask identifies pixels of the image frame that correspond to a spotlight depicted within the image frame; determining a focus value for the image frame based on the spotlight segmentation mask; and determining focus settings for the image sensor according to a focusing process and based on the focus value.

[0013] Methods of image processing described herein may be performed by an image capture device and / or performed on image data captured by one or more image capture devices. Image capture devices, devices that can capture one or more digital images, whether still image photos or sequences of images for videos, can be incorporated into a wide variety of devices. By way of example, image capture devices may comprise stand-alone digital cameras or digital video camcorders, camera-equipped wireless communication device handsets, such as mobile telephones, cellular or satellite radio telephones, personal digital assistants (PDAs) , panels or tablets, gaming devices, computing devices such as webcams, video surveillance cameras, or other devices with digital imaging or video capabilities.

[0014] The image processing techniques described herein may involve digital cameras having image sensors and processing circuitry (e.g., application specific integrated circuits (ASICs) , digital signal processors (DSP) , graphics processing unit (GPU) , or central processing units (CPU) ) . An image signal processor (ISP) may include one or more of these processing circuits and configured to perform operations to obtain the image data for processing according to the image processing techniques described herein and / or involved in the image processing techniques described herein. The ISP may be configured to control the capture of image frames from one or more image sensors and determine one or more image frames from the one or more image sensors to generate a view of a scene in an output image frame. The output image frame may be part of a sequence of image frames forming a video sequence. The video sequence may include other image frames received from the image sensor or other images sensors.

[0015] In an example application, the image signal processor (ISP) may receive an instruction to capture a sequence of image frames in response to the loading of software, such as a camera application, to produce a preview display from the image capture device. The image signal processor may be configured to produce a single flow of output image frames, based on images frames received from one or more image sensors. The single flow of output image frames may include raw image data from an image sensor, binned image data from an image sensor, or corrected image data processed by one or more algorithms within the image signal processor. For example, an image frame obtained from an image sensor, which may have performed some processing on the data before output to the image signal processor, may be processed in the image signal processor by processing the image frame through an image post-processing engine (IPE) and / or other image processing circuitry for performing one or more of tone mapping, portrait lighting, contrast enhancement, gamma correction, etc. The output image frame from the ISP may be stored in memory and retrieved by an application processor executing the camera application, which may perform further processing on the output image frame to adjust an appearance of the output image frame and reproduce the output image frame on a display for view by the user.

[0016] After an output image frame representing the scene is determined by the image signal processor and / or determined by the application processor, such as through image processing techniques described in various embodiments herein, the output image frame may be displayed on a device display as a single still image and / or as part of a video sequence, saved to a storage device as a picture or a video sequence, transmitted over a  network, and / or printed to an output medium. For example, the image signal processor (ISP) may be configured to obtain input frames of image data (e.g., pixel values) from the one or more image sensors, and in turn, produce corresponding output image frames (e.g., preview display frames, still-image captures, frames for video, frames for object tracking, etc. ) . In other examples, the image signal processor may output image frames to various output devices and / or camera modules for further processing, such as for 3A parameter synchronization (e.g., automatic focus (AF) , automatic white balance (AWB) , and automatic exposure control (AEC) ) , producing a video file via the output frames, configuring frames for display, configuring frames for storage, transmitting the frames through a network connection, etc. Generally, the image signal processor (ISP) may obtain incoming frames from one or more image sensors and produce and output a flow of output frames to various output destinations.

[0017] In some aspects, the output image frame may be produced by combining aspects of the image correction of this disclosure with other computational photography techniques such as high dynamic range (HDR) photography or multi-frame noise reduction (MFNR) . With HDR photography, a first image frame and a second image frame are captured using different exposure times, different apertures, different lenses, and / or other characteristics that may result in improved dynamic range of a fused image when the two image frames are combined. In some aspects, the method may be performed for MFNR photography in which the first image frame and a second image frame are captured using the same or different exposure times and fused to generate a corrected first image frame with reduced noise compared to the captured first image frame.

[0018] In some aspects, a device may include an image signal processor or a processor (e.g., an application processor) including specific functionality for camera controls and / or processing, such as enabling or disabling the binning module or otherwise controlling aspects of the image correction. The methods and techniques described herein may be entirely performed by the image signal processor or a processor, or various operations may be split between the image signal processor and a processor, and in some aspects split across additional processors.

[0019] The device may include one, two, or more image sensors, such as a first image sensor. When multiple image sensors are present, the image sensors may be differently configured. For example, the first image sensor may have a larger field of view (FOV) than the second image sensor, or the first image sensor may have different sensitivity or different dynamic range than the second image sensor. In one example, the first image  sensor may be a wide-angle image sensor, and the second image sensor may be a tele image sensor. In another example, the first sensor is configured to obtain an image through a first lens with a first optical axis and the second sensor is configured to obtain an image through a second lens with a second optical axis different from the first optical axis. Additionally or alternatively, the first lens may have a first magnification, and the second lens may have a second magnification different from the first magnification. Any of these or other configurations may be part of a lens cluster on a mobile device, such as where multiple image sensors and associated lenses are located in offset locations on a frontside or a backside of the mobile device. Additional image sensors may be included with larger, smaller, or same field of views. The image processing techniques described herein may be applied to image frames captured from any of the image sensors in a multi-sensor device.

[0020] In an additional aspect of the disclosure, a device configured for image processing and / or image capture is disclosed. The apparatus includes means for capturing image frames. The apparatus further includes one or more means for capturing data representative of a scene, such as image sensors (including charge-coupled devices (CCDs) , Bayer-filter sensors, infrared (IR) detectors, ultraviolet (UV) detectors, complimentary metal-oxide-semiconductor (CMOS) sensors) and time of flight detectors. The apparatus may further include one or more means for accumulating and / or focusing light rays into the one or more image sensors (including simple lenses, compound lenses, spherical lenses, and non-spherical lenses) . These components may be controlled to capture the first and / or second image frames input to the image processing techniques described herein.

[0021] Other aspects, features, and implementations will become apparent to those of ordinary skill in the art, upon reviewing the following description of specific, exemplary aspects in conjunction with the accompanying figures. While features may be discussed relative to certain aspects and figures below, various aspects may include one or more of the advantageous features discussed herein. In other words, while one or more aspects may be discussed as having certain advantageous features, one or more of such features may also be used in accordance with the various aspects. In similar fashion, while exemplary aspects may be discussed below as device, system, or method aspects, the exemplary aspects may be implemented in various devices, systems, and methods.

[0022] The method may be embedded in a computer-readable medium as computer program code comprising instructions that cause a processor to perform the steps of the method. In some embodiments, the processor may be part of a mobile device including a first network  adaptor configured to transmit data, such as images or videos in a recording or as streaming data, over a first network connection of a plurality of network connections; and a processor coupled to the first network adaptor and the memory. The processor may cause the transmission of output image frames described herein over a wireless communications network such as a 5G NR communication network.

[0023] The foregoing has outlined, rather broadly, the features and technical advantages of examples according to the disclosure in order that the detailed description that follows may be better understood. Additional features and advantages will be described hereinafter. The conception and specific examples disclosed may be readily utilized as a basis for modifying or designing other structures for carrying out the same purposes of the present disclosure. Such equivalent constructions do not depart from the scope of the appended claims. Characteristics of the concepts disclosed herein, both their organization and method of operation, together with associated advantages will be better understood from the following description when considered in connection with the accompanying figures. Each of the figures is provided for the purposes of illustration and description, and not as a definition of the limits of the claims.

[0024] While aspects and implementations are described in this application by illustration to some examples, those skilled in the art will understand that additional implementations and use cases may come about in many different arrangements and scenarios. Innovations described herein may be implemented across many differing platform types, devices, systems, shapes, sizes, and packaging arrangements. For example, aspects and / or uses may come about via integrated chip implementations and other non-module-component based devices (e.g., end-user devices, vehicles, communication devices, computing devices, industrial equipment, retail / purchasing devices, medical devices, artificial intelligence (AI) -enabled devices, etc. ) . While some examples may or may not be specifically directed to use cases or applications, a wide assortment of applicability of described innovations may occur. Implementations may range in spectrum from chip-level or modular components to non-modular, non-chip-level implementations and further to aggregate, distributed, or original equipment manufacturer (OEM) devices or systems incorporating one or more aspects of the described innovations. In some practical settings, devices incorporating described aspects and features may also necessarily include additional components and features for implementation and practice of claimed and described aspects. For example, transmission and reception of wireless signals necessarily includes a number of components for analog and digital purposes (e.g.,  hardware components including antenna, radio frequency (RF) -chains, power amplifiers, modulators, buffer, processor (s) , interleaver, adders / summers, etc. ) . It is intended that innovations described herein may be practiced in a wide variety of devices, chip-level components, systems, distributed arrangements, end-user devices, etc. of varying sizes, shapes, and constitution.BRIEF DESCRIPTION OF THE DRAWINGS

[0025] A further understanding of the nature and advantages of the present disclosure may be realized by reference to the following drawings. In the appended figures, similar components or features may have the same reference label. Further, various components of the same type may be distinguished by following the reference label by a dash and a second label that distinguishes among the similar components. If just the first reference label is used in the specification, the description is applicable to any one of the similar components having the same first reference label irrespective of the second reference label.

[0026] Figure 1 shows a block diagram of an example device for performing image capture from one or more image sensors.

[0027] Figure 2 is a block diagram illustrating an example data flow path for image data processing in an image capture device according to one or more embodiments of the disclosure.

[0028] Figure 3 depicts a system for determining focus settings according to some embodiments of the disclosure.

[0029] Figure 4 depicts an imaging scenario according to some embodiments of the disclosure. Figure 5 shows a flow chart of an example method for processing image data to determine focus settings according to some embodiments of the disclosure.

[0030] Figure 6 is a block diagram illustrating an example processor configuration for image data processing in an image capture device according to one or more embodiments of the disclosure.

[0031] Like reference numbers and designations in the various drawings indicate like elements.DETAILED DESCRIPTION

[0032] The detailed description set forth below, in connection with the appended drawings, is intended as a description of various configurations and is not intended to limit the scope of the disclosure. Rather, the detailed description includes specific details for the purpose  of providing a thorough understanding of the inventive subject matter. It will be apparent to those skilled in the art that these specific details are not required in every case and that, in some instances, well-known structures and components are shown in block diagram form for clarity of presentation.

[0033] Shortcomings mentioned here are only representative and are included to highlight problems that the inventors have identified with respect to existing devices and sought to improve upon. Aspects of devices described below may address some or all of the shortcomings as well as others known in the art. Aspects of the improved devices described herein may present other benefits than, and be used in other applications than, those described above.

[0034] Cameras may utilize different types of autofocusing systems to ensure that captured image frames are in focus for a given scene. These systems may include various autofocusing processes, such as CAF (Contrast-based Autofocus) and PDAF (Phase Detection Autofocus) . While performing these processes, the camera may capture images using different focus settings and the resulting images may be evaluated to determine whether the images are in focus. Based on this evaluation, an image or focus position may then be selected for the scene being captured.

[0035] However, such focusing techniques may struggle to determine accurate focus positions in images that depict point sources of light, such as spotlights. The spotlights may saturate or nearly saturate brightness values of many pixels within the image, leading to many pixels having the same or similar values. This may cause images to be incorrectly evaluated as in focus, even if many other parts are not in focus. Such inaccurate evaluations may ultimately result in the selection of incorrect or suboptimal focus settings for cameras, resulting in blurred images for scenes that contain spotlights.

[0036] Existing systems may attempt to solve these problems by using a brightness threshold and ignoring pixels from the focus evaluation that exceed the threshold. However, such techniques may inadvertently ignore brighter areas of photos that do not depict the spotlight, reducing the quality of the evaluation and potentially resulting in images where such areas are out of focus with focus settings selected by the focusing process. Therefore, there exists a need to control the selection of focus settings for imaging scenes that include point sources of light in a way that does not ignore other areas of the imaging scenes that may be brightly lit.

[0037] The present disclosure provides systems, apparatus, methods, and computer-readable media that support image processing, including techniques for segmenting received image  frames to identify one or more spotlights depicted within during an autofocus process. For example, a method may be provided that includes determining a spotlight segmentation mask for a received image frame. The spotlight segmentation mask may identify one or more pixels within the image frame that correspond to spotlights depicted within the image frame. The spotlight segmentation mask may identify spotlight pixels and, in certain implementations, may separately identify spotlight distorted pixels (such as pixels that have been visually distorted based on the light from the spotlight) . A focus value for the image frame then be determined based on the spotlight segmentation mask. For example, spotlight pixels may be excluded from consideration in determining the focus value and spotlight distorted pixels may be weighted while determining the focus value based on their brightness values. Focus settings for the image sensor may be determined based on the focus value, according to a focusing process. For example, the focus value may be used and determined as part of a PDF or CAF focusing process.

[0038] Stated differently, scenes with strong light sources, such as spotlights, can be difficult for autofocus (AF) approaches that rely on phase detection or contrast detection. This may be because the pixels in these areas may become saturated and lose signal, which can affect AF accuracy. Some existing techniques discard saturated pixels from AF processing, but such techniques may not address distorted regions and still impact AF performance. The proposed techniques may include segmenting the spotlight and spotlight distorted regions and adjusting pixel weights based on the segmentation map and brightness values instead of simply discarding these pixels.

[0039] Particular implementations of the subject matter described in this disclosure may be implemented to realize one or more of the following potential advantages or benefits. In some aspects, the present disclosure provides techniques for improved selection of focus settings for imaging scenes that include point sources of light. Such techniques accordingly enable improved control of camera imaging systems, resulting in clearer and more in-focus photos of such scenes. These techniques may accordingly improve image quality for images captured in such settings, and may reduce the size or intensity of visual distortions caused by the point sources of light in final images. Additionally, more accurate focus values may enable faster focusing techniques, allowing for quicker capture of images in these situations.

[0040] An example device for capturing image frames using one or more image sensors, such as a smartphone, may include a configuration of one, two, three, four, or more cameras on a backside (e.g., a side opposite a primary user display) and / or a front side (e.g., a same  side as a primary user display) of the device. The devices may include one or more image signal processors (ISPs) , Computer Vision Processors (CVPs) (e.g., AI engines) , or other suitable circuitry for processing images captured by the image sensors. The one or more image signal processors (ISP) may store output image frames in a memory and / or otherwise provide the output image frames to processing circuitry (such as through a bus) . The processing circuitry may perform further processing, such as for encoding, storage, transmission, or other manipulation of the output image frames.

[0041] As used herein, image sensor may refer to the image sensor itself and any certain other components coupled to the image sensor used to generate an image frame for processing by the image signal processor or other logic circuitry or storage in memory, whether a short-term buffer or longer-term non-volatile memory. For example, an image sensor may include other components of a camera, including a shutter, buffer, or other readout circuitry for accessing individual pixels of an image sensor. The image sensor may further refer to an analog front end or other circuitry for converting analog signals to digital representations for the image frame that are provided to digital circuitry coupled to the image sensor.

[0042] In the description of embodiments herein, numerous specific details are set forth, such as examples of specific components, circuits, and processes to provide a thorough understanding of the present disclosure. The term “coupled” as used herein means connected directly to or connected through one or more intervening components or circuits. Also, in the following description and for purposes of explanation, specific nomenclature is set forth to provide a thorough understanding of the present disclosure. However, it will be apparent to one skilled in the art that these specific details may not be required to practice the teachings disclosed herein. In other instances, well known circuits and devices are shown in block diagram form to avoid obscuring teachings of the present disclosure.

[0043] Some portions of the detailed descriptions which follow are presented in terms of procedures, logic blocks, processing, and other symbolic representations of operations on data bits within a computer memory. In the present disclosure, a procedure, logic block, process, or the like, is conceived to be a self-consistent sequence of steps or instructions leading to a desired result. The steps are those requiring physical manipulations of physical quantities. Usually, although not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated in a computer system.

[0044] In the figures, a single block may be described as performing a function or functions. The function or functions performed by that block may be performed in a single component or across multiple components, and / or may be performed using hardware, software, or a combination of hardware and software. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps are described below generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure. Also, the example devices may include components other than those shown, including well-known components such as a processor, memory, and the like.

[0045] Aspects of the present disclosure are applicable to any electronic device including, coupled to, or otherwise processing data from one, two, or more image sensors capable of capturing image frames (or “frames” ) . The terms “output image frame” and “corrected image frame” may refer to image frames that have been processed by any of the discussed techniques. Further, aspects of the present disclosure may be implemented in devices having or coupled to image sensors of the same or different capabilities and characteristics (such as resolution, shutter speed, sensor type, and so on) . Further, aspects of the present disclosure may be implemented in devices for processing image frames, whether or not the device includes or is coupled to the image sensors, such as processing devices that may retrieve stored images for processing, including processing devices present in a cloud computing system.

[0046] Unless specifically stated otherwise as apparent from the following discussions, it is appreciated that throughout the present application, discussions utilizing the terms such as “accessing, ” “receiving, ” “sending, ” “using, ” “selecting, ” “determining, ” “normalizing, ” “multiplying, ” “averaging, ” “monitoring, ” “comparing, ” “applying, ” “updating, ” “measuring, ” “deriving, ” “settling, ” “generating, ” or the like, refer to the actions and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system’s registers and memories into other data similarly represented as physical quantities within the computer system’s registers, memories, or other such information storage, transmission, or display devices.

[0047] The terms “device” and “apparatus” are not limited to one or a specific number of physical objects (such as one smartphone, one camera controller, one processing system, and so on) . As used herein, a device may be any electronic device with one or more parts that may implement at least some portions of the disclosure. While the description and examples herein use the term “device” to describe various aspects of the disclosure, the term “device” is not limited to a specific configuration, type, or number of objects. As used herein, an apparatus may include a device or a portion of the device for performing the described operations.

[0048] Certain components in a device or apparatus described as “means for accessing, ” “means for receiving, ” “means for sending, ” “means for using, ” “means for selecting, ” “means for determining, ” “means for normalizing, ” “means for multiplying, ” or other similarly-named terms referring to one or more operations on data, such as image data, may refer to processing circuitry (e.g., application specific integrated circuits (ASICs) , digital signal processors (DSP) , graphics processing unit (GPU) , central processing unit (CPU) ) configured to perform the recited function through hardware, software, or a combination of hardware configured by software.

[0049] Figure 1 shows a block diagram of an example device 100 for performing image capture from one or more image sensors. The device 100 may include, or otherwise be coupled to, an image signal processor 112 for processing image frames from one or more image sensors, such as a first image sensor 101, a second image sensor 102, and a depth sensor 140. In some implementations, the device 100 also includes or is coupled to a processor 104 and a memory 106 storing instructions 108. The device 100 may also include or be coupled to a display 114 and input / output (I / O) components 116. I / O components 116 may be used for interacting with a user, such as a touch screen interface and / or physical buttons.

[0050] I / O components 116 may also include network interfaces for communicating with other devices, including a wide area network (WAN) adaptor 152, a local area network (LAN) adaptor 153, and / or a personal area network (PAN) adaptor 154. An example WAN adaptor is a 4G LTE or a 5G NR wireless network adaptor. An example LAN adaptor 153 is an IEEE 802.11 WiFi wireless network adapter. An example PAN adaptor 154 is a Bluetooth wireless network adaptor. Each of the adaptors 152, 153, and / or 154 may be coupled to an antenna, including multiple antennas configured for primary and diversity reception and / or configured for receiving specific frequency bands.

[0051] The device 100 may further include or be coupled to a power supply 118 for the device 100, such as a battery or a component to couple the device 100 to an energy source. The device 100 may also include or be coupled to additional features or components that are not shown in Figure 1. In one example, a wireless interface, which may include a number of transceivers and a baseband processor, may be coupled to or included in WAN adaptor 152 for a wireless communication device. In a further example, an analog front end (AFE) to convert analog image frame data to digital image frame data may be coupled between the image sensors 101 and 102 and the image signal processor 112.

[0052] The device may include or be coupled to a sensor hub 150 for interfacing with sensors to receive data regarding movement of the device 100, data regarding an environment around the device 100, and / or other non-camera sensor data. One example non-camera sensor is a gyroscope, a device configured for measuring rotation, orientation, and / or angular velocity to generate motion data. Another example non-camera sensor is an accelerometer, a device configured for measuring acceleration, which may also be used to determine velocity and distance traveled by appropriately integrating the measured acceleration, and one or more of the acceleration, velocity, and / or distance may be included in generated motion data. In some aspects, a gyroscope in an electronic image stabilization system (EIS) may be coupled to the sensor hub or coupled directly to the image signal processor 112. In another example, a non-camera sensor may be a global positioning system (GPS) receiver.

[0053] The image signal processor 112 may receive image data, such as used to form image frames. In one embodiment, a local bus connection couples the image signal processor 112 to image sensors 101 and 102 of a first camera 103 and second camera 105, respectively. In another embodiment, a wire interface couples the image signal processor 112 to an external image sensor. In a further embodiment, a wireless interface couples the image signal processor 112 to the image sensor 101, 102.

[0054] The first camera 103 may include the first image sensor 101 and a corresponding first lens 131. The second camera may include the second image sensor 102 and a corresponding second lens 132. Each of the lenses 131 and 132 may be controlled by an associated autofocus (AF) algorithm 133 executing in the ISP 112, which adjust the lenses 131 and 132 to focus on a particular focal plane at a certain scene depth from the image sensors 101 and 102. The AF algorithm 133 may be assisted by depth sensor 140.

[0055] The first image sensor 101 and the second image sensor 102 are configured to capture one or more image frames. Lenses 131 and 132 focus light at the image sensors 101 and  102, respectively, through one or more apertures for receiving light, one or more shutters for blocking light when outside an exposure window, one or more color filter arrays (CFAs) for filtering light outside of specific frequency ranges, one or more analog front ends for converting analog measurements to digital information, and / or other suitable components for imaging. The first lens 131 and second lens 132 may have different field of views to capture different representations of a scene. For example, the first lens 131 may be an ultra-wide (UW) lens and the second lens 132 may be a wide (W) lens. The multiple image sensors may include a combination of ultra-wide (high field-of-view (FOV) ) , wide, tele, and ultra-tele (low FOV) sensors.

[0056] That is, each image sensor may be configured through hardware configuration and / or software settings to obtain different, but overlapping, field of views. In one configuration, the image sensors are configured with different lenses with different magnification ratios that result in different fields of view. The sensors may be configured such that a UW sensor has a larger FOV than a W sensor, which has a larger FOV than a T sensor, which has a larger FOV than a UT sensor. For example, a sensor configured for wide FOV may capture fields of view in the range of 64-84 degrees, a sensor configured for ultra-side FOV may capture fields of view in the range of 100-140 degrees, a sensor configured for tele FOV may capture fields of view in the range of 10-30 degrees, and a sensor configured for ultra-tele FOV may capture fields of view in the range of 1-8 degrees.

[0057] The camera 103 may be a variable aperture (VA) camera in which the aperture can be controlled to a particular size. Example aperture sizes are f / 2.0, f / 2.8, f / 3.2, f / 8.0, etc. Larger aperture values correspond to smaller aperture sizes, and smaller aperture values correspond to larger aperture sizes. The camera 103 may have different characteristics based on the current aperture size, such as a different depth of focus (DOF) at different aperture sizes.

[0058] The image signal processor 112 processes image frames captured by the image sensors 101 and 102. While Figure 1 illustrates the device 100 as including two image sensors 101 and 102 coupled to the image signal processor 112, any number (e.g., one, two, three, four, five, six, etc. ) of image sensors may be coupled to the image signal processor 112. In some aspects, depth sensors such as depth sensor 140 may be coupled to the image signal processor 112, and output from the depth sensors are processed in a similar manner to that of image sensors 101 and 102. Example depth sensors include active sensors, including one or more of indirect Time of Flight (iToF) , direct Time of Flight (dToF) , light detection and ranging (Lidar) , mmWave, radio detection and ranging (Radar) , and / or  hybrid depth sensors, such as structured light. In embodiments without a depth sensor 140, similar information regarding depth of objects or a depth map may be generated in a passive manner from the disparity between two image sensors (e.g., using depth-from-disparity or depth-from-stereo) , phase detection auto-focus (PDAF) sensors, or the like. In addition, any number of additional image sensors or image signal processors may exist for the device 100.

[0059] In some embodiments, the image signal processor 112 may execute instructions from a memory, such as instructions 108 from the memory 106, instructions stored in a separate memory coupled to or included in the image signal processor 112, or instructions provided by the processor 104. In addition, or in the alternative, the image signal processor 112 may include specific hardware (such as one or more integrated circuits (ICs) ) configured to perform one or more operations described in the present disclosure. For example, the image signal processor 112 may include one or more image front ends (IFEs) 135, one or more image post-processing engines 136 (IPEs) , one or more auto exposure compensation (AEC) 134 engines, and / or one or more engines for video analytics (EVAs) . The AF 133, AEC 134, IFE 135, IPE 136, and EVA 137 may each include application-specific circuitry, be embodied as software code executed by the ISP 112, and / or a combination of hardware and software code executing on the ISP 112.

[0060] In some implementations, the memory 106 may include a non-transient or non-transitory computer readable medium storing computer-executable instructions 108 to perform all or a portion of one or more operations described in this disclosure. In some implementations, the instructions 108 include a camera application (or other suitable application) to be executed by the device 100 for generating images or videos. The instructions 108 may also include other applications or programs executed by the device 100, such as an operating system and specific applications other than for image or video generation. Execution of the camera application, such as by the processor 104, may cause the device 100 to generate images using the image sensors 101 and 102 and the image signal processor 112. The memory 106 may also be accessed by the image signal processor 112 to store processed frames or may be accessed by the processor 104 to obtain the processed frames. In some embodiments, the device 100 does not include the memory 106. For example, the device 100 may be a circuit including the image signal processor 112, and the memory may be outside the device 100. The device 100 may be coupled to an external memory and configured to access the memory for writing output frames for display or long-term storage. In some embodiments, the device 100 is a system-on-chip  (SoC) that incorporates the image signal processor 112, the processor 104, the sensor hub 150, the memory 106, and input / output components 116 into a single package.

[0061] In some embodiments, at least one of the image signal processor 112 or the processor 104 executes instructions to perform various operations described herein, including autofocusing operations. For example, execution of the instructions can instruct the image signal processor 112 to begin or end capturing an image frame or a sequence of image frames, in which the capture includes autofocusing image sensors as described in embodiments herein. In some embodiments, the processor 104 may include one or more general-purpose processor cores 104A capable of executing scripts or instructions of one or more software programs, such as instructions 108 stored within the memory 106. For example, the processor 104 may include one or more application processors configured to execute the camera application (or other suitable application for generating images or video) stored in the memory 106.

[0062] In executing the camera application, the processor 104 may be configured to instruct the image signal processor 112 to perform one or more operations with reference to the image sensors 101 or 102. For example, a camera application executing on processor 104 may receive a user command to begin a video preview display upon which a video comprising a sequence of image frames is captured and processed from one or more image sensors 101 or 102 through the image signal processor 112. Image processing to generate “output” or “corrected” image frames, such as according to techniques described herein, may be applied to one or more image frames in the sequence. Execution of instructions 108 outside of the camera application by the processor 104 may also cause the device 100 to perform any number of functions or operations. In some embodiments, the processor 104 may include ICs or other hardware (e.g., an artificial intelligence (AI) engine 124 or other co-processor) to offload certain tasks from the cores 104A. The AI engine 124 may be used to offload tasks related to, for example, face detection and / or object recognition. In some other embodiments, the device 100 does not include the processor 104, such as when all of the described functionality is configured in the image signal processor 112.

[0063] In some embodiments, the display 114 may include one or more suitable displays or screens allowing for user interaction and / or to present items to the user, such as a preview of the image frames being captured by the image sensors 101 and 102. In some embodiments, the display 114 is a touch-sensitive display. The I / O components 116 may be or include any suitable mechanism, interface, or device to receive input (such as commands) from the user and to provide output to the user through the display 114. For  example, the I / O components 116 may include (but are not limited to) a graphical user interface (GUI) , a keyboard, a mouse, a microphone, speakers, a squeezable bezel, one or more buttons (such as a power button) , a slider, a switch, and so on.

[0064] While shown to be coupled to each other via the processor 104, components (such as the processor 104, the memory 106, the image signal processor 112, the display 114, and the I / O components 116) may be coupled to each another in other various arrangements, such as via one or more local buses, which are not shown for simplicity. While the image signal processor 112 is illustrated as separate from the processor 104, the image signal processor 112 may be a core of a processor 104 that is an application processor unit (APU) , included in a system on chip (SoC) , or otherwise included with the processor 104. While the device 100 is referred to in the examples herein for performing aspects of the present disclosure, some device components may not be shown in Figure 1 to prevent obscuring aspects of the present disclosure. Additionally, other components, numbers of components, or combinations of components may be included in a suitable device for performing aspects of the present disclosure. As such, the present disclosure is not limited to a specific device or configuration of components, including the device 100.

[0065] The exemplary image capture device of Figure 1 may be operated to obtain improved images by improving the determination of focus settings using autofocus techniques for imaging scenes that contain point sources of light (such as spotlights) . One example method of operating one or more cameras, such as camera 103, is shown in Figure 2 and described below.

[0066] Figure 2 is a block diagram illustrating an example data flow path for image data processing in an image capture device according to one or more embodiments of the disclosure. A processor 104 of system 200 may communicate with image signal processor (ISP) 112 through a bi-directional bus and / or separate control and data lines. The processor 104 may control camera 103 through camera control 210, such as for configuring the camera 103 through a driver executing on the processor 104. The camera control 210 may be managed by a camera application 204 executing on the processor 104, which provides settings accessible to a user such that a user can specify individual camera settings or select a profile with corresponding camera settings. The camera control 210 communicates with the camera 103 to configure the camera 103 in accordance with commands received from the camera application 204. The camera application 204 may be, for example, a photography application, a document scanning application, a  messaging application, or other application that processes image data acquired from camera 103.

[0067] The camera configuration may include parameters that specify, for example, a frame rate, an image resolution, a readout duration, an exposure level, an aspect ratio, an aperture size, an ISO setting, etc. The camera 103 may obtain image data based on the camera configuration. For example, the processor 104 may execute a camera application 204 to instruct camera 103, through camera control 210, to set a first camera configuration for the camera 103, to obtain first image data from the camera 103 operating in the first camera configuration, to instruct camera 103 to set a second camera configuration for the camera 103, and to obtain second image data from the camera 103 operating in the second camera configuration.

[0068] In some embodiments in which camera 103 is a variable aperture (VA) camera system, the processor 104 may execute a camera application 204 to instruct camera 103 to configure to a first aperture size, obtain first image data from the camera 103, instruct camera 103 to configure to a second aperture size, and obtain second image data from the camera 103. The reconfiguration of the aperture and obtaining of the first and second image data may occur with little or no change in the scene captured at the first aperture size and the second aperture size. Example aperture sizes are f / 2.0, f / 2.8, f / 3.2, f / 8.0, etc. Larger aperture values correspond to smaller aperture sizes, and smaller aperture values correspond to larger aperture sizes. That is, f / 2.0 is a larger aperture size than f / 8.0.

[0069] The image data received from camera 103 may be processed in one or more blocks of the ISP 112 to form image frames 230 that are stored in memory 106 and / or provided to the processor 104. The processor 104 may further process the image data to apply effects to the image frames 230. Effects may include Bokeh, lighting, color casting, and / or high dynamic range (HDR) merging. In some embodiments, functionality may be embedded in a different component, such as the ISP 112, a DSP, an ASIC, or other custom logic circuit for performing the additional image processing.

[0070] For example, Figure 3 depicts a system 300 for determining focus settings according to some embodiments of the disclosure. The system 300 includes an image sensor 304 and a computing device 302. The image sensor 304 includes an image frame 306. The computing device 302 includes a spotlight segmentation mask 308, a model 322, a focus value 310, and a focusing process 312. The spotlight segmentation mask 308 includes spotlight pixels 314, spotlight distorted pixels 316, and non-spotlight pixels 318. The focusing process 312 includes focus settings 320. The computing device 302 may be an  exemplary implementation of the device 100, the system 200, or combinations thereof. For example, operations described herein as being performed by the computing device 302 may, in certain implementations, be performed by the device 100 or the system 200 (such as by the processor 104) .

[0071] The computing device 302 may be configured to receive an image frame 306 from an image sensor 304. In certain implementations, the image frame 306 may be captured by an image sensor 304 during a focusing operation for the image sensor 304. For example, a camera that may include the image sensor 304 may be attempting to determine focus settings 320 for the image sensor 304 to capture an image of a scene, such as a scene that may include a point source of light. To do so, the camera may be configured to capture multiple images using different focus settings 320, such as various combinations of focal length, aperture, shutter speed, ISO settings, and the like. The camera may then select one of the captured images and / or may select final focus settings 320 for the image sensor 304 based on the images that were captured.

[0072] The computing device 302 may be configured to determine a spotlight segmentation mask 308 for the image. The spotlight segmentation mask 308 may identify pixels of the image frame 306 that correspond to a spotlight depicted within the image frame 306. In certain implementations, a spotlight may represent a point source of light with a brightness high enough (such as high enough relative to the rest of the image frame 306) to cause visual distortions within the image frame 306 (such as a halo artifact, a starburst artifact, and the like) . In certain implementations, the spotlight segmentation mask 308 may identify locations and corresponding tags for each of at least a subset of pixels from the image frame 306. In certain implementations, the spotlight segmentation mask 308 assigns tags to pixels of the image frame 306, the tags comprise (i) non-spotlight pixels 318 and (ii) spotlight pixels 314. In certain implementations, the tags further comprise (iii) spotlight distorted pixels 316 that are separate from the spotlight pixels 314. In certain implementations, image frames that contain spotlights may contain various types of pixels whose values are affected by depicted spotlight (s) . For example, images may contain two distinct types of pixels affected by the spotlight: pixels whose luminance values are saturated because they directly depict the spotlight itself, and pixels affected by a visual distortion surrounding the spotlight. This visual distortion may commonly appear as a halo effect surrounding the spotlight within the image frame 306 and may be caused by the interaction between the light from the spotlight and the camera lens. Other types of visual distortion may include lens flare, glare, bloom, ghosting, chromatic aberration,  starbursts, and the like. In certain implementations, the spotlight segmentation mask 308 may separately identify spotlight pixels 314 as pixels that directly depict the spotlight itself and spotlight distorted pixels 316 as pixels depicting the visual distortion caused by the spotlight (such as using separate tags) . In additional or alternative implementations, , the spotlight segmentation mask 308 may only identify spotlight pixels 314. In such instances, the spotlight pixels 314 tag may refer to both pixels that directly depict the spotlight and pixels depicting the visual distortion. In certain implementations, non-spotlight pixels 318 identified by the spotlight segmentation mask 308 may include pixels that neither depict the spotlight itself nor depict the visual distortion caused by the spotlight.

[0073] For example, FIG. 4 depicts an imaging scenario 400 according to an exemplary embodiment of the present disclosure. The imaging scenario 400 includes an image 402 that contains a spotlight 404, a distorted area 406 caused by the spotlight 404, and a tree 408. The tree 408 may be well lit (such as by light from the spotlight 404 or another light source) relative to other portions of the image 402, which may be dark) . For example, the imaging scenario 400 also includes a brightness map 410 showing relative brightness values for the image 402 (a lighter fill may indicate higher brightness values) . The brightness map 410 includes an area 412 with the highest brightness values, corresponding to the spotlight 404, along with areas 414, 416 that are relatively bright and correspond to the distorted area 406 and the tree 408. As can be seen in the brightness map 410, the area 414 for the distorted area 406 has a similar brightness to the area 416 for the tree 408. This similar brightness value may cause focusing processes that rely on brightness thresholds to fail, because such techniques must either include both the area 414 and the area 416 (allowing the distorted area 406 to impact focus settings) or exclude both the area 414 and the area 416 (failing to allow the tree 408 to impact focus settings) . By contrast, the imaging scenario 400 also includes a segmentation map 420 that separately identifies spotlight pixels 422 corresponding to the spotlight 404, spotlight distorted pixels 424 corresponding to the distorted area 406, and non-spotlight pixels 426 corresponding to the tree 408. As explained further below, such segmentation maps 420 may enable the improved determination of focus settings, allowing for improved imaging, especially of areas in images that contain spotlights that are bright, but do not actually contain the spotlights (such as the area 416) .

[0074] In certain implementations, the spotlight segmentation mask 308 may assign tags to individual pixels, groups of pixels, or combinations thereof. For example, the resolution  of the spotlight segmentation mask 308 may be the same as the resolution of the image frame 306, and each pixel of the image frame 306 may have its own assigned corresponding tag within the spotlight segmentation mask 308. In additional or alternative implementations, the resolution of at least a portion of the segmentation mask may be lower than the resolution of the image frame 306. In such instances, collections of pixels (such as 2 x 2 pixel groups, 3 x 3 pixel groups, and the like) may have a single corresponding tag within the spotlight segmentation mask 308.

[0075] In certain implementations, the spotlight segmentation mask 308 may be determined by at least one machine learning model, at least one digital signal processing (DSP) model, or combinations thereof. For example, the computing device 302 may include a model 322, which may be used to determine the spotlight segmentation mask 308. For example, the model 322 may be implemented as one or more machine learning models, including supervised learning models, unsupervised learning models, other types of machine learning models, and / or other types of predictive models. For example, the model 322 may be implemented as one or more of a neural network, a transformer model, a decision tree model, a support vector machine, a Bayesian network, a classifier model, a regression model, and the like. The model 322 may be trained based on training data to identify spotlights and / or spotlight distorted pixels within received image frames. For example, one or more training datasets may be used that contain images, at least a subset of which depict spotlights. The training data sets may specify one or more expected outputs or labels. For example, the training data sets may include labeled regions identifying whether and where the images contain spotlights and / or spotlight distorted pixels. Parameters of the model 322 may be updated based on whether the model 322 generates correct outputs when compared to the expected outputs. In particular, the model 322 may receive one or more pieces of input data from the training data sets that are associated with a plurality of expected outputs. The model 322 may generate predicted outputs based on a current configuration of the model 322. The predicted outputs may be compared to the expected outputs and one or more parameter updates may be computed based on differences between the predicted outputs and the expected outputs. In particular, the parameters may include weights (e.g., priorities) for different features and combinations of features (e.g., features of received image frames) . The parameter updates the model 322 may include updating one or more of the features analyzed and / or the weights assigned to different features or combinations of features (e.g., relative to the current configuration of the model 322) . Additionally or alternatively, the model may include one or more DSP  models, such as models that utilize edge detection filters, thresholding operations, morphological operations, and the like to segment the image frame 306.

[0076] In certain implementations, the computing device 302 may be further configured to determine that the image frame 306 depicts a spotlight. In such instances, the computing device 302 may be configured to determine the spotlight segmentation mask 308 in response to determining that the image frame 306 depicts the spotlight. In certain implementations, the spotlight may be detected by analyzing the luminance values of the pixels in the image frame 306 to identify regions of high luminance that are likely to correspond to a spotlight (such as regions with a particular shape or that are surrounded by bright or distorted pixels) . In additional or alternative implementations, the color distribution of the pixels in the image frame 306 may be analyzed to identify regions of high color saturation that are likely to correspond to a spotlight. In still further implementations, machine learning models may be utilized to identify patterns and features in the image frame 306 that are indicative of a spotlight. For example, a classifier model may be used to evaluate the image frame 306 and determine whether the image frame 306 contains a spotlight. In such instances, the classifier model may be trained using similar techniques to those discussed above (such as based on training data sets that identify images that contain a spotlight) .

[0077] The computing device 302 may be configured to determine a focus value 310 for the image frame 306 based on the spotlight segmentation map. In certain implementations, the focus value 310 may be determined as a quantitative measure of how focused the image frame 306 for the focus settings used by the image sensor 304 when capturing the image frame 306. For example, the focus value 310 may be computed to estimate, predict, or otherwise determine a percentage or proportion of the image frame 306 that may be in focus.

[0078] In certain implementations, the focusing process 312 may be a phase detection autofocus (PDAF) focusing process 312. In such instances, the focus value 310 may be determined according to a weighted sum of absolute differences (SAD) for the image frame 306. For example, the focus value 310 may be determined as the sum of absolute differences between left and right pixel pairs of the image sensor 304 (such as adjacent pixels of the image sensor 304 that are respectively filtered to receive light from the left half and the right half of the lens) . In particular, the focus value 310 may be the sum of absolute differences in the luminance value for pixel pairs within all or part of the image frame 306. In certain implementations, the focusing process 312 may be a contrast-based  autofocus (CAF) focusing process 312. In such instances, the focus value 310 may be a contrast value for the image frame 306. For example, the contrast value may be computed by comparing luminance values of adjacent pairs of pixels in the image frame 306 and calculating the difference between the adjacent pairs of pixels. The differences within all or part of the image frame 306 may be aggregated in various ways to determine the contrast value. For example, the differences may be aggregated as a sum of absolute differences, a normalized cross correlation, and the like. One skilled in the art will appreciate that various other techniques may be used to determine the focus value 310 (such as in connection with a PDAF, a CAF, or other focusing processes 312) . For example, edge detection techniques may be used to determine a sharpness of all or part of the image frame 306.

[0079] In certain implementations, spotlight pixels 314 are excluded when determining the focus value 310. For example, when determining the focus value 310 using any of the above techniques, the computing device 302 may be configured to ignore pixels that the spotlight segmentation mask 308 identifies as spotlight pixels 314. In certain implementations, spotlight distorted pixels 316 are weighted when determining the focus value 310 based on corresponding luminance values of the spotlight distorted pixels 316. In certain implementations, spotlight distorted pixels 316 may be weighted to adjust the effect that spotlight distorted pixels 316 have on the resulting focus value 310. In particular, to reduce the adverse effects of the spotlight visual distortion on the focus value 310, spotlight distorted pixels 316 with higher luminance may receive a lower weight, and thus have a lower impact on the resulting focus value 310. As one specific example, Table 1 below identifies brightness thresholds with corresponding weights. In certain implementations, if a pixel has a weight between two thresholds, the pixel may be assigned the weight of the higher threshold. For example, a pixel with a luma value of 470 may be assigned a weight of 0.5. In additional or alternative implementations, if a pixel has a weight between two thresholds, the pixel may be assigned a weight determined based on an interpolation of the weights for the threshold. For example, a pixel with a luma value of 490 may be assigned a weight of 0.25.

[0080] Table 1: Example Weights for Spotlight Distorted Pixels

[0081] In certain implementations, if the spotlight segmentation mask 308 identifies spotlight pixels 314 and does not identify spotlight distorted pixels 316, then all spotlight pixels 314 may be weighted, such as according to the weights in Table 1 above. In such instances, many of the pixels that depict the actual spotlight are likely to have maximum or near maximum brightness values (such as luma values greater than or equal to 500) , and would accordingly receive a weight of 0.

[0082] The computing device 302 may be configured to determine focus settings 320 for the image sensor 304 according to a focusing process 312 and based on the focus value 310. In certain implementations, During the focusing process 312, the computing device 302 may use either a phase detection autofocus (PDAF) or a contrast autofocus (CAF) process to determine focus settings 320 for the image sensor 304 based on the focus value 310. To accomplish this, the computing device 302 may control the image sensor 304 to capture multiple images of a scene using various combinations of focus settings 320 (such as focal length, aperture, shutter speed, ISO settings, and the like) . Based on the focus values 310 for these images, the computing device 302 may determine the focus settings 320 for the image sensor 304. For example, the focus settings 320 may be selected to achieve the highest contrast focus value 310 for CAF or the lowest phase difference focus value 310 for PDAF.

[0083] The system 200 of Figure 2 may be configured to perform the operations described with reference to Figure 3 to determine output image frames 230. Figure 5 shows a flow chart of an example method for processing image data to determine focus settings according to some embodiments of the disclosure. The capturing in Figure 3 may obtain an improved digital representation of a scene, which results in a photograph or video with higher image quality (IQ) .

[0084] The method 500 includes receiving an image frame from an image sensor (block 502) . For example, the computing device 302 may receive an image frame 306 from an image sensor 304. In certain implementations, the image frame 306 may be captured by an image sensor 304 during a focusing operation for the image sensor 304.

[0085] The method 500 includes determining a spotlight segmentation mask for the image (block 504) . For example, the computing device 302 may determine a spotlight segmentation mask 308 for the image. The spotlight segmentation mask 308 may identify pixels of the image frame 306 that correspond to a spotlight depicted within the image frame 306. In certain implementations, the spotlight segmentation mask 308 may be determined by at least one machine learning model, at least one digital signal processing (DSP) model, or combinations thereof. In certain implementations, the spotlight segmentation mask 308 may identify locations and corresponding tags for each of at least a subset of pixels from the image frame 306. In certain implementations, the spotlight segmentation mask 308 assigns tags to pixels of the image frame 306, the tags comprise (i) non-spotlight pixels 318 and (ii) spotlight pixels 314. In certain implementations, the tags further comprise (iii) spotlight distorted pixels 316 that are separate from the spotlight pixels 314. In certain implementations, the spotlight segmentation mask 308 may separately identify spotlight pixels 314 as pixels that directly depict the spotlight itself and spotlight distorted pixels 316 as pixels depicting the visual distortion caused by the spotlight (such as using separate tags) . In additional or alternative implementations, the spotlight segmentation mask 308 may only identify spotlight pixels 314. In such instances, the spotlight pixels tag may identify both pixels that directly depict the spotlight and pixels depicting the visual distortion. In certain implementations, non-spotlight pixels 318 identified by the spotlight segmentation mask 308 may include pixels that neither depict the spotlight itself nor depict the visual distortion caused by the spotlight. In certain implementations, the method 600 may further include determining that the image frame 306 depicts the spotlight. In such instances, block 504 may be performed in response to determining that the image frame 306 depicts the spotlight.

[0086] The method 500 includes determining a focus value for the image frame based on the spotlight segmentation map (block 506) . For example, the computing device 302 may determine a focus value 310 for the image frame 306 based on the spotlight segmentation map. In certain implementations, the focus value 310 may be determined as a quantitative measure of how focused the image frame 306 for the focus settings 320 used by the image sensor 304. In certain implementations, the focusing process 312 may be a phase detection  autofocus (PDAF) focusing process 312. In such instances, the focus value 310 may be determined according to a weighted sum of absolute differences (SAD) for the image frame 306. In certain implementations, the focusing process 312 may be a contrast-based autofocus (CAF) focusing process 312. In such instances, the focus value 310 may be a contrast value for the image frame 306. In certain implementations, spotlight pixels 314 are excluded when determining the focus value 310. For example, when determining the focus value 310 using any of the above techniques, the computing device 302 may be configured to ignore pixels that the spotlight segmentation mask 308 identifies as spotlight pixels 314. In certain implementations, spotlight distorted pixels 316 are weighted when determining the focus value 310 based on corresponding luminance values of the spotlight distorted pixels 316.

[0087] The method 500 includes determining focus settings 320 for the image sensor according to a focusing process and based on the focus value (block 508) . For example, the computing device 302 may determine focus settings 320 for the image sensor 304 according to a focusing process 312 and based on the focus value 310. For example, the focus settings 320 may be selected to achieve the highest contrast focus value 310 for CAF or the lowest phase difference focus value 310 for PDAF.

[0088] Figure 6 is a block diagram illustrating an example processor configuration for image data processing in an image capture device according to one or more embodiments of the disclosure. The processor 104, or other processing circuitry, may be configured to operate on image data to perform one or more operations of the method of Figure 5. The image data may be processed to determine focus settings 612 for one or more image sensors.

[0089] The processor 104 may include image frame receiving logic 602, which may be configured to receive one or more image frames 610 from an image sensor. In certain implementations, the image frames 610 may be captured by an image sensor during a focusing operation for the image sensor.

[0090] The processor 104 may also include spotlight segmentation logic 604 configured to determine a spotlight segmentation mask for the image. The spotlight segmentation mask may identify pixels of the image frame that correspond to a spotlight depicted within the image frame. In certain implementations, the spotlight segmentation mask may be determined by at least one machine learning model, at least one digital signal processing (DSP) model, or combinations thereof. In certain implementations, the spotlight segmentation mask may identify locations and corresponding tags for each of at least a subset of pixels from the image frame. In certain implementations, the spotlight  segmentation mask assigns tags to pixels of the image frame, the tags comprise (i) non-spotlight pixels and (ii) spotlight pixels. In certain implementations, the tags further comprise (iii) spotlight distorted pixels that are separate from the spotlight pixels. In certain implementations, the spotlight segmentation mask may separately identify spotlight pixels as pixels that directly depict the spotlight itself and spotlight distorted pixels as pixels depicting the visual distortion caused by the spotlight (such as using separate tags) . In additional or alternative implementations, the spotlight segmentation mask may only identify spotlight pixels. In such instances, the spotlight pixels tag may refer to both pixels that directly depict the spotlight and pixels depicting the visual distortion. In certain implementations, non-spotlight pixels identified by the spotlight segmentation mask may include pixels that neither depict the spotlight itself nor depict the visual distortion caused by the spotlight.

[0091] The processor 104 may further include focus value determination logic 606 configured to determine a focus value for the image frame based on the spotlight segmentation map. In certain implementations, the focus value may be determined as a quantitative measure of how focused the image frame for the focus settings used by the image sensor. In certain implementations, the focusing process may be a phase detection autofocus (PDAF) focusing process. In such instances, the focus value may be determined according to a weighted sum of absolute differences (SAD) for the image frame. In certain implementations, the focusing process may be a contrast-based autofocus (CAF) focusing process. In such instances, the focus value may be a contrast value for the image frame. In certain implementations, spotlight pixels are excluded when determining the focus value. For example, when determining the focus value using any of the above techniques, the computing device may be configured to ignore pixels that the spotlight segmentation mask identifies as spotlight pixels. In certain implementations, spotlight distorted pixels are weighted when determining the focus value based on corresponding luminance values of the spotlight distorted pixels.

[0092] The processor 104 may further include focus setting determination logic 608 configured to determine focus settings 612 for an image sensor according to a focusing process 312 and based on the focus value from the focus value determination logic 606. For example, the focus settings 612 may be selected to achieve the highest contrast focus value for CAF or the lowest phase difference focus value for PDAF.

[0093] In one or more aspects, techniques for supporting image processing may include additional aspects, such as any single aspect or any combination of aspects described  below or in connection with one or more other processes or devices described elsewhere herein. In a first aspect, a method is provided that includes receiving an image frame from an image sensor; determining a spotlight segmentation mask for the image, wherein the spotlight segmentation mask identifies pixels of the image frame that correspond to a spotlight depicted within the image frame; determining a focus value for the image frame based on the spotlight segmentation mask; and determining focus settings for the image sensor according to a focusing process and based on the focus value.

[0094] In a second aspect according to the first aspect, the spotlight segmentation mask assigns categories to pixels of the image frame. The categories include (i) non-spotlight pixels and (ii) spotlight pixels.

[0095] In a third aspect according to the second aspect, spotlight pixels are excluded when determining the focus value.

[0096] In a fourth aspect according to one or more of the second aspect through the third aspect, the categories further include (iii) spotlight distorted pixels. Spotlight distorted pixels may be separate from the spotlight pixels.

[0097] In a fifth aspect according to the fourth aspect, spotlight distorted pixels are weighted when determining the focus value based on corresponding luminance values of the spotlight distorted pixels.

[0098] In a sixth aspect according to one or more of the first aspect through the fifth aspect, the focusing process is a phase detection autofocus (PDAF) focusing process, and the focus value is determined according to a weighted sum of absolute differences (SAD) for the image frame.

[0099] In a seventh aspect according to one or more of the first aspect through the sixth aspect, the focusing process is a contrast-based autofocus (CAF) focusing process, and the focus value is a contrast value for the image frame.

[0100] In an eighth aspect according to one or more of the first aspect through the seventh aspect, a method, further including determining that the image frame depicts the spotlight, and the spotlight segmentation mask is determined in response to determining that the image frame depicts the spotlight.

[0101] In a ninth aspect according to one or more of the first aspect through the eighth aspect, the spotlight segmentation mask is determined by at least one machine learning model, at least one digital signal processing (DSP) model, or combinations thereof.

[0102] In a tenth aspect, an apparatus is provided that includes a memory storing processor-readable code; and at least one processor coupled to the memory. The at least one  processor may be configured to execute the processor-readable code to cause the at least one processor to perform operations including: receiving an image frame from an image sensor; determining a spotlight segmentation mask for the image, where the spotlight segmentation mask identifies pixels of the image frame that correspond to a spotlight depicted within the image frame; determining a focus value for the image frame based on the spotlight segmentation mask; and determining focus settings for the image sensor according to a focusing process and based on the focus value.

[0103] Additionally, the apparatus may perform or operate according to one or more aspects as described below. In some implementations, the apparatus includes a wireless device, such as a UE. In some implementations, the apparatus includes a remote server, such as a cloud-based computing solution, which receives image data for processing to determine output image frames. In some implementations, the apparatus may include at least one processor, and a memory coupled to the processor. The processor may be configured to perform operations described herein with respect to the apparatus. In some other implementations, the apparatus may include a non-transitory computer-readable medium having program code recorded thereon and the program code may be executable by a computer for causing the computer to perform operations described herein with reference to the apparatus. In some implementations, the apparatus may include one or more means configured to perform operations described herein. In some implementations, a method of wireless communication may include one or more operations described herein with reference to the apparatus.

[0104] In an eleventh aspect according to the tenth aspect, the spotlight segmentation mask assigns categories to pixels of the image frame, where the categories include (i) non-spotlight pixels and (ii) spotlight pixels.

[0105] In a twelfth aspect according to the eleventh aspect, spotlight pixels are excluded when determining the focus value.

[0106] In a thirteenth aspect according to one or more of the eleventh aspect through the twelfth aspect, the categories further include (iii) spotlight distorted pixels, where spotlight distorted pixels are separate from the spotlight pixels.

[0107] In a fourteenth aspect according to the thirteenth aspect, spotlight distorted pixels are weighted when determining the focus value based on corresponding luminance values of the spotlight distorted pixels.

[0108] In a fifteenth aspect according to one or more of the tenth aspect through the fourteenth aspect, the focusing process is a phase detection autofocus (PDAF) focusing process, and  wherein the focus value is determined according to a weighted sum of absolute differences (SAD) for the image frame.

[0109] In a sixteenth aspect according to one or more of the tenth aspect through the fifteenth aspect, the focusing process is a contrast-based autofocus (CAF) focusing process, and where the focus value is a contrast value for the image frame.

[0110] In a seventeenth aspect according to one or more of the tenth aspect through the sixteenth aspect, the operations further include determining that the image frame depicts the spotlight, and the spotlight segmentation mask is determined in response to determining that the image frame depicts the spotlight.

[0111] In an eighteenth aspect according to one or more of the tenth aspect through the seventeenth aspect, the spotlight segmentation mask is determined by at least one machine learning model, at least one digital signal processing (DSP) model, or combinations thereof.

[0112] In a nineteenth aspect, an image capture device is provided that includes an image sensor; a memory storing processor-readable code; and at least one processor coupled to the memory. The at least one processor may be configured to execute the processor-readable code to cause the at least one processor to perform operations including: receiving an image frame from the image sensor; determining a spotlight segmentation mask for the image, where the spotlight segmentation mask identifies pixels of the image frame that correspond to a spotlight depicted within the image frame; determining a focus value for the image frame based on the spotlight segmentation mask; and determining focus settings for the image sensor according to a focusing process and based on the focus value.

[0113] In a twentieth aspect according to the nineteenth aspect, the spotlight segmentation mask assigns categories to pixels of the image frame, where the categories include (i) non-spotlight pixels and (ii) spotlight pixels.

[0114] In a twenty-first aspect according to the nineteenth aspect, the categories further include (iii) spotlight distorted pixels, where spotlight distorted pixels are separate from the spotlight pixels.

[0115] In a twenty-second aspect according to the twenty-first aspect, spotlight distorted pixels are weighted when determining the focus value based on corresponding luminance values of the spotlight distorted pixels.

[0116] In a twenty-third aspect according to one or more of the nineteenth aspect through the twenty-second aspect, the focusing process is a phase detection autofocus (PDAF)  focusing process, and the focus value is determined according to a weighted sum of absolute differences (SAD) for the image frame.

[0117] In a twenty-fourth aspect according to one or more of the nineteenth aspect through the twenty-third aspect, the focusing process is a contrast-based autofocus (CAF) focusing process, and the focus value is a contrast value for the image frame.

[0118] In a twenty-fifth aspect, a non-transitory computer-readable medium is provided storing instructions that, when executed by a processor, cause the processor to perform operations including: receiving an image frame from an image sensor; determining a spotlight segmentation mask for the image, where the spotlight segmentation mask identifies pixels of the image frame that correspond to a spotlight depicted within the image frame; determining a focus value for the image frame based on the spotlight segmentation mask; and determining focus settings for the image sensor according to a focusing process and based on the focus value.

[0119] In a twenty-sixth aspect according to the twenty-fifth aspect, the spotlight segmentation mask assigns categories to pixels of the image frame, where the categories include (i) non-spotlight pixels and (ii) spotlight pixels.

[0120] In a twenty-seventh aspect according to the twenty-sixth aspect, the categories further include (iii) spotlight distorted pixels, where spotlight distorted pixels are separate from the spotlight pixels.

[0121] In a twenty-eighth aspect according to the twenty-seventh aspect, spotlight distorted pixels are weighted when determining the focus value based on corresponding luminance values of the spotlight distorted pixels.

[0122] In a twenty-ninth aspect according to one or more of the twenty-fifth aspect through the twenty-eighth aspect, the focusing process is a phase detection autofocus (PDAF) focusing process, and wherein the focus value is determined according to a weighted sum of absolute differences (SAD) for the image frame.

[0123] In a thirtieth aspect according to one or more of the twenty-fifth aspect through the twenty-ninth aspect, the focusing process is a contrast-based autofocus (CAF) focusing process, and wherein the focus value is a contrast value for the image frame.

[0124] Those of skill in the art would understand that information and signals may be represented using any of a variety of different technologies and techniques. For example, data, instructions, commands, information, signals, bits, symbols, and chips that may be referenced throughout the above description may be represented by voltages, currents,  electromagnetic waves, magnetic fields or particles, optical fields or particles, or any combination thereof.

[0125] Components, the functional blocks, and the modules described herein with respect to FIGs. 1-4 include processors, electronics devices, hardware devices, electronics components, logical circuits, memories, software codes, firmware codes, among other examples, or any combination thereof. Software shall be construed broadly to mean instructions, instruction sets, code, code segments, program code, programs, subprograms, software modules, application, software applications, software packages, routines, subroutines, objects, executables, threads of execution, procedures, and / or functions, among other examples, whether referred to as software, firmware, middleware, microcode, hardware description language or otherwise. In addition, features discussed herein may be implemented via specialized processor circuitry, via executable instructions, or combinations thereof.

[0126] Those of skill in the art that one or more blocks (or operations) described with reference to FIGs. 5 and 6 may be combined with one or more blocks (or operations) described with reference to another of the figures. For example, one or more blocks (or operations) of FIG. 5 may be combined with one or more blocks (or operations) of FIGs. 1-4. As another example, one or more blocks associated with FIG. 6 may be combined with one or more blocks (or operations) associated with FIGs. 1-4.

[0127] Those of skill in the art would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure. Skilled artisans will also readily recognize that the order or combination of components, methods, or interactions that are described herein are merely examples and that the components, methods, or interactions of the various aspects of the present disclosure may be combined or performed in ways other than those illustrated and described herein.

[0128] The various illustrative logics, logical blocks, modules, circuits and algorithm processes described in connection with the implementations disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. The interchangeability of hardware and software has been described generally, in terms of functionality, and illustrated in the various illustrative components, blocks, modules, circuits, and processes described above. Whether such functionality is implemented in hardware or software depends upon the particular application and design constraints imposed on the overall system.

[0129] The hardware and data processing apparatus used to implement the various illustrative logics, logical blocks, modules and circuits described in connection with the aspects disclosed herein may be implemented or performed with a general purpose single-or multi-chip processor, a digital signal processor (DSP) , an application specific integrated circuit (ASIC) , a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general-purpose processor may be a microprocessor, or, any conventional processor, controller, microcontroller, or state machine. In some implementations, a processor may be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration. In some implementations, particular processes and methods may be performed by circuitry that is specific to a given function.

[0130] In one or more aspects, the functions described may be implemented in hardware, digital electronic circuitry, computer software, firmware, including the structures disclosed in this specification and their structural equivalents thereof, or in any combination thereof. Implementations of the subject matter described in this specification also may be implemented as one or more computer programs, which is one or more modules of computer program instructions, encoded on a computer storage media for execution by, or to control the operation of, data processing apparatus.

[0131] If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. The processes of a method or algorithm disclosed herein may be implemented in a processor-executable software module which may reside on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium  that may be enabled to transfer a computer program from one place to another. A storage media may be any available media that may be accessed by a computer. By way of example, and not limitation, such computer-readable media may include random-access memory (RAM) , read-only memory (ROM) , electrically erasable programmable read-only memory (EEPROM) , CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that may be used to store desired program code in the form of instructions or data structures and that may be accessed by a computer. Also, any connection may be properly termed a computer-readable medium. Disk and disc, as used herein, includes compact disc (CD) , laser disc, optical disc, digital versatile disc (DVD) , floppy disk, and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media. Additionally, the operations of a method or algorithm may reside as one or any combination or set of codes and instructions on a machine readable medium and computer-readable medium, which may be incorporated into a computer program product.

[0132] Various modifications to the implementations described in this disclosure may be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to some other implementations without departing from the spirit or scope of this disclosure. Thus, the claims are not intended to be limited to the implementations shown herein, but are to be accorded the widest scope consistent with this disclosure, the principles and the novel features disclosed herein.

[0133] Additionally, a person having ordinary skill in the art will readily appreciate, opposing terms such as “upper” and “lower, ” or “front” and back, ” or “top” and “bottom, ” or “forward” and “backward” are sometimes used for ease of describing the figures, and indicate relative positions corresponding to the orientation of the figure on a properly oriented page, and may not reflect the proper orientation of any device as implemented. Certain features that are described in this specification in the context of separate implementations also may be implemented in combination in a single implementation. Conversely, various features that are described in the context of a single implementation also may be implemented in multiple implementations separately or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination may in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.

[0134] Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown, or in sequential order, or that all illustrated operations be performed to achieve desirable results. Further, the drawings may schematically depict one or more example processes in the form of a flow diagram. However, other operations that are not depicted may be incorporated in the example processes that are schematically illustrated. For example, one or more additional operations may be performed before, after, simultaneously, or between any of the illustrated operations. In certain circumstances, multitasking and parallel processing may be advantageous. Moreover, the separation of various system components in the implementations described above should not be understood as requiring such separation in all implementations, and it should be understood that the described program components and systems may generally be integrated together in a single software product or packaged into multiple software products. Additionally, some other implementations are within the scope of the following claims. In some cases, the actions recited in the claims may be performed in a different order and still achieve desirable results.

[0135] As used herein, including in the claims, the term “or, ” when used in a list of two or more items, means that any one of the listed items may be employed by itself, or any combination of two or more of the listed items may be employed. For example, if a composition is described as containing components A, B, or C, the composition may contain A alone; B alone; C alone; A and B in combination; A and C in combination; B and C in combination; or A, B, and C in combination. Also, as used herein, including in the claims, “or” as used in a list of items prefaced by “at least one of” indicates a disjunctive list such that, for example, a list of “at least one of A, B, or C” means A or B or C or AB or AC or BC or ABC (that is A and B and C) or any of these in any combination thereof.

[0136] The term “substantially” is defined as largely, but not necessarily wholly, what is specified (and includes what is specified; for example, substantially 90 degrees includes 90 degrees and substantially parallel includes parallel) , as understood by a person of ordinary skill in the art. In any disclosed implementations, the term “substantially” may be substituted with “within [a percentage] of” what is specified, where the percentage includes . 1, 1, 5, or 10 percent.

[0137] The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be readily  apparent to those skilled in the art, and the generic principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1.A method, comprising:receiving an image frame from an image sensor;determining a spotlight segmentation mask for the image frame, wherein the spotlight segmentation mask identifies pixels of the image frame that correspond to a spotlight depicted within the image frame;determining a focus value for the image frame based on the spotlight segmentation mask; anddetermining focus settings for the image sensor according to a focusing process and based on the focus value.2.The method of claim 1, wherein the spotlight segmentation mask assigns categories to pixels of the image frame, wherein the categories comprise (i) non-spotlight pixels and (ii) spotlight pixels.3.The method of claim 2, wherein spotlight pixels are excluded when determining the focus value.4.The method of claim 2, wherein the categories further comprise (iii) spotlight distorted pixels, wherein spotlight distorted pixels are separate from the spotlight pixels.5.The method of claim 4, wherein spotlight distorted pixels are weighted when determining the focus value based on corresponding luminance values of the spotlight distorted pixels.6.The method of claim 1, wherein the focusing process is a phase detection autofocus (PDAF) focusing process, and wherein the focus value is determined according to a weighted sum of absolute differences (SAD) for the image frame.7.The method of claim 1, wherein the focusing process is a contrast-based autofocus (CAF) focusing process, and wherein the focus value is a contrast value for the image frame.8.The method of claim 1, further comprising determining that the image frame depicts the spotlight, wherein the spotlight segmentation mask is determined in response to determining that the image frame depicts the spotlight.9.The method of claim 1, wherein the spotlight segmentation mask is determined by at least one machine learning model, at least one digital signal processing (DSP) model, or combinations thereof.10.An apparatus, comprising:a memory storing processor-readable code; andat least one processor coupled to the memory, the at least one processor configured to execute the processor-readable code to cause the at least one processor to perform operations including:receiving an image frame from an image sensor;determining a spotlight segmentation mask for the image frame, wherein the spotlight segmentation mask identifies pixels of the image frame that correspond to a spotlight depicted within the image frame;determining a focus value for the image frame based on the spotlight segmentation mask; anddetermining focus settings for the image sensor according to a focusing process and based on the focus value.11.The apparatus of claim 10, wherein the spotlight segmentation mask assigns categories to pixels of the image frame, wherein the categories comprise (i) non-spotlight pixels and (ii) spotlight pixels.12.The apparatus of claim 11, wherein spotlight pixels are excluded when determining the focus value.13.The apparatus of claim 11, wherein the categories further comprise (iii) spotlight distorted pixels, wherein spotlight distorted pixels are separate from the spotlight pixels.14.The apparatus of claim 13, wherein spotlight distorted pixels are weighted when determining the focus value based on corresponding luminance values of the spotlight distorted pixels.15.The apparatus of claim 10, wherein the focusing process is a phase detection autofocus (PDAF) focusing process, and wherein the focus value is determined according to a weighted sum of absolute differences (SAD) for the image frame.16.The apparatus of claim 10, wherein the focusing process is a contrast-based autofocus (CAF) focusing process, and wherein the focus value is a contrast value for the image frame.17.The apparatus of claim 10, wherein the operations further comprise determining that the image frame depicts the spotlight, and wherein the spotlight segmentation mask is determined in response to determining that the image frame depicts the spotlight.18.The apparatus of claim 10, wherein the spotlight segmentation mask is determined by at least one machine learning model, at least one digital signal processing (DSP) model, or combinations thereof.19.An image capture device, comprising:an image sensor;a memory storing processor-readable code; andat least one processor coupled to the memory, the at least one processor configured to execute the processor-readable code to cause the at least one processor to perform operations including:receiving an image frame from the image sensor;determining a spotlight segmentation mask for the image frame, wherein the spotlight segmentation mask identifies pixels of the image frame that correspond to a spotlight depicted within the image frame;determining a focus value for the image frame based on the spotlight segmentation mask; anddetermining focus settings for the image sensor according to a focusing process and based on the focus value.20.The image capture device of claim 19, wherein the spotlight segmentation mask assigns categories to pixels of the image frame, wherein the categories comprise (i) non-spotlight pixels and (ii) spotlight pixels.21.The image capture device of claim 20, wherein the categories further comprise (iii) spotlight distorted pixels, wherein spotlight distorted pixels are separate from the spotlight pixels.22.The image capture device of claim 21, wherein spotlight distorted pixels are weighted when determining the focus value based on corresponding luminance values of the spotlight distorted pixels.23.The image capture device of claim 19, wherein the focusing process is a phase detection autofocus (PDAF) focusing process, and wherein the focus value is determined according to a weighted sum of absolute differences (SAD) for the image frame.24.The image capture device of claim 19, wherein the focusing process is a contrast-based autofocus (CAF) focusing process, and wherein the focus value is a contrast value for the image frame.25.A non-transitory computer-readable medium storing instructions that, when executed by a processor, cause the processor to perform operations comprising:receiving an image frame from an image sensor;determining a spotlight segmentation mask for the image frame, wherein the spotlight segmentation mask identifies pixels of the image frame that correspond to a spotlight depicted within the image frame;determining a focus value for the image frame based on the spotlight segmentation mask; anddetermining focus settings for the image sensor according to a focusing process and based on the focus value.26.The image capture device of claim 25, wherein the spotlight segmentation mask assigns categories to pixels of the image frame, wherein the categories comprise (i) non-spotlight pixels and (ii) spotlight pixels.27.The image capture device of claim 26, wherein the categories further comprise (iii) spotlight distorted pixels, wherein spotlight distorted pixels are separate from the spotlight pixels.28.The image capture device of claim 27, wherein spotlight distorted pixels are weighted when determining the focus value based on corresponding luminance values of the spotlight distorted pixels.29.The image capture device of claim 25, wherein the focusing process is a phase detection autofocus (PDAF) focusing process, and wherein the focus value is determined according to a weighted sum of absolute differences (SAD) for the image frame.30.The image capture device of claim 25, wherein the focusing process is a contrast-based autofocus (CAF) focusing process, and wherein the focus value is a contrast value for the image frame.

Citation Information

Patent Citations

  • Camera flash module and method for controlling same

    CN101889435A

  • Image segmentation and model training method, device and equipment

    CN115631205A

  • An image-enhancing spotlight mode for digital microscopy

    EP2624040A2

  • Imaging apparatus and imaging control method

    US20100315514A1

  • Imaging apparatus and focus adjustment method

    US20180120534A1