Method and electronic device for synthesizing image training data and image processing using artificial intelligence

By capturing and processing image frames on mobile electronic devices, high-quality image data for training AI is generated, which solves the image blur problem during handheld shooting, achieves efficient deblurring effects of AI image processing, and reduces data capture and review complexity.

CN118696331APending Publication Date: 2024-09-24SAMSUNG ELECTRONICS CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202380020837.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-02-07
Filing Date
2023-02-07
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

When cameras on mobile electronic devices are used for handheld shooting, the image blur problem caused by hand shaking is more serious, especially in low light conditions, resulting in a decrease in image quality. It is difficult for existing technologies to effectively generate high-quality images for training AI image processing. training data.

Method used

By capturing multiple image frames using a stationary electronic device, generating motion-distorted image frames and adding noise, performing multi-frame processing operations to generate ground truth images and input images, forming image pairs for training AI image processing, removing the effects caused by handheld image capture of blur.

Benefits of technology

Effectively generates high-quality data for training AI image processing, reducing image blur due to hand shaking, improving image quality, and reducing the cost and complexity of manual data capture and review.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118696331A
    Figure CN118696331A
Patent Text Reader

Abstract

A method includes obtaining, using a stationary sensor of an electronic device, a plurality of image frames including a first image frame and a second image frame. The method further includes generating a first motion-distorted image frame using the first image frame and a second motion-distorted image frame using the second image frame using the plurality of previously generated motion vectors. The method further includes adding noise to the motion-distorted image frame to generate a first noisy motion-distorted image frame and a second noisy motion-distorted image frame. The method further includes performing (i) a first multi-frame processing (MFP) operation to generate a ground real image using the motion distorted image frames and (ii) a second MFP operation to generate an input image using the noisy motion distorted image frames.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure generally relates to methods and electronic devices for synthesizing image training data and performing image processing using artificial intelligence. More specifically, the present disclosure relates to hand motion pattern modeling and motion blur synthesis techniques. Background Art

[0002] Many mobile electronic devices (such as smart phones and tablet computers) include cameras that can be used to capture both static and video images. Such devices have become common for capturing, uploading and sharing digital images. Although convenient, cameras on mobile electronic devices often suffer from multiple disadvantages. For example, users who take photos with cameras on mobile electronic devices often hold the electronic device in their hands, and even the most careful users inevitably introduce small camera motions due to hand shake. During long exposure scenes that can occur in the case of reduced light, the amount of hand shake increases. When the amount of hand shake is high, a significant amount of frame blur may be introduced into the image frame. Image blur reduces the image quality for the end user. Summary of the invention

[0003] Technical Solution

[0004] The present disclosure relates to hand motion pattern modeling and motion blur synthesis techniques.

[0005] In an embodiment, a method for synthetic image training data generation includes using at least one sensor of a stationary electronic device to obtain multiple image frames of a scene including a first image frame and a second image frame. The method also includes using a plurality of previously generated motion vectors to generate a first motion-distorted image frame using the first image frame and to generate a second motion-distorted image frame using the second image frame. The method also includes adding noise to the first motion-distorted image frame and the second motion-distorted image frame to generate a first noise motion-distorted image frame and a second noise motion-distorted image frame. The method also includes performing (i) a first multi-frame processing (MFP) operation to generate a ground truth image using the first motion-distorted image frame and the second motion-distorted image frame, and (ii) a second MFP operation to generate an input image using the first noise motion-distorted image frame and the second noise motion-distorted image frame. In addition, the method includes storing the ground truth image and the input image as an image pair for training an image processing operation based on artificial intelligence / machine learning (AI / ML) to remove image distortion caused by handheld image capture.

[0006] In an embodiment, the electronic device includes at least one sensor. The electronic device also includes at least one processor configured to obtain multiple image frames of a scene including a first image frame and a second image frame using at least one sensor while the electronic device is stationary. The at least one processor is also configured to use a plurality of previously generated motion vectors to generate a first motion-distorted image frame using the first image frame and to generate a second motion-distorted image frame using the second image frame. The at least one processor is also configured to add noise to the first motion-distorted image frame and the second motion-distorted image frame to generate a first noise motion-distorted image frame and a second noise motion-distorted image frame. The at least one processor is also configured to perform (i) a first MFP operation to generate a ground truth image using the first motion-distorted image frame and the second motion-distorted image frame, and (ii) a second MFP operation to generate an input image using the first noise motion-distorted image frame and the second noise motion-distorted image frame. In addition, the at least one processor is configured to store the ground truth image and the input image as an image pair for training an AI / ML-based image processing operation to remove image distortion caused by handheld image capture.

[0007] In an embodiment, a method for image processing includes obtaining multiple image frames of a scene using multiple exposure times during a multi-frame capture operation using at least one sensor of a handheld electronic device. The method also includes performing an AI / ML-based image processing operation to remove one or more hand-held motion distortions included in the multiple image frames to generate a hybrid image. The AI / ML-based image processing operation is trained using multiple image pairs, wherein each image pair includes (i) a ground truth image with motion distortion and (ii) an input image corresponding to a noisy version of the ground truth image.

[0008] In an embodiment, the electronic device includes at least one sensor. The electronic device also includes at least one processor configured to obtain multiple image frames of a scene using multiple exposure times during a multi-frame capture operation using the at least one sensor while the electronic device is handheld. The at least one processor is further configured to perform an AI / ML-based image processing operation to remove one or more hand-held motion distortions included in the multiple image frames to generate a hybrid image. The AI / ML-based image processing operation is trained using multiple image pairs, wherein each image pair includes (i) a ground truth image with motion distortion and (ii) an input image corresponding to a noisy version of the ground truth image.

[0009] Other technical features may be apparent to those skilled in the art from the following drawings, descriptions and claims.

[0010] Before proceeding to the following detailed description, it may be advantageous to set forth definitions of certain words and phrases used throughout this patent document. The terms "send," "receive," and "communicate," and their derivatives, encompass direct and indirect communications. The terms "include," "comprise," and their derivatives, mean including, but not limited to, this. The term "or" is inclusive, meaning and / or. The phrase "associated with," and its derivatives, means including, included within, interconnected with, containing, contained within, connected to or connected with, coupled to or coupled with, communicable with, collaborate with, intertwined, juxtaposed, proximate to, bound to or bound with, having, having the attributes of, having a relationship with, and the like.

[0011] In addition, the various functions described below can be implemented or supported by one or more computer programs, each of which is formed by a computer-readable program code and embodied in a computer-readable medium. The terms "application" and "program" refer to one or more computer programs, software components, instruction sets, processes, functions, objects, classes, instances, related data or a portion thereof that are suitable for implementation in a suitable computer-readable program code. The phrase "computer-readable program code" includes any type of computer code, including source code, object code and executable code. The phrase "computer-readable medium" includes any type of medium that can be accessed by a computer, such as a read-only memory (ROM), a random access memory (RAM), a hard drive, a compact disk (CD), a digital video disc (DVD) or any other type of memory. "Non-transitory" computer-readable media does not include wired, wireless, optical or other communication links that transmit temporary electrical signals or other signals. Non-transitory computer-readable media include media that can permanently store data and media that can store data and rewrite data later, such as rewritable optical disks or erasable memory devices.

[0012] As used herein, terms and phrases such as "having", "may have", "include" or "may include" a feature (such as a number, function, operation or component such as a part) indicate the presence of the feature and do not exclude the presence of other features. In addition, as used herein, the phrases "A or B", "at least one of A and / or B" or "one or more of A and / or B" may include all possible combinations of A and B. For example, "A or B", "at least one of A and B" and "at least one of A or B" may indicate all of the following: (1) including at least one A, (2) including at least one B or (3) including at least one A and at least one B. In addition, as used herein, the terms "first" and "second" may modify various components regardless of importance and do not limit the components. These terms are only used to distinguish one component from another. For example, a first user device and a second user device may indicate user devices that are different from each other, regardless of the order or importance of the devices. Without departing from the scope of the present disclosure, a first component may be represented as a second component, and vice versa.

[0013] It will be understood that when an element (such as a first element) is referred to as being (operably or communicatively) “coupled to” / “coupled to” another element (such as a second element) or “connected to” / “connected to” another element (such as a second element) it can be coupled to or connected to / coupled to or connected to the other element directly or via a third element. Conversely, it will be understood that when an element (such as a first element) is referred to as being “directly coupled to” / “directly coupled to” another element (such as a second element) or “directly connected to” / “directly connected to” another element (such as a second element) there are no other elements (such as a third element) between the element and the other element.

[0014] As used herein, the phrase "configured (or set) to" may be used interchangeably with the phrases "suitable for," "capable of," "designed to," "suitable for," "manufactured to," or "capable of," depending on the circumstances. The phrase "configured (or set) to" does not inherently mean "specially designed in hardware to." On the contrary, the phrase "configured to" may indicate that a device is capable of performing an operation in conjunction with another device or component. For example, the phrase "a processor configured (or set) to perform A, B, and C" may represent a general-purpose processor (such as a CPU or application processor) that can perform operations by executing one or more software programs stored in a memory device, or a special-purpose processor (such as an embedded processor) for performing operations.

[0015] The terms and phrases used herein are only used to describe some embodiments of the present disclosure, rather than to limit the scope of other embodiments of the present disclosure. It will be understood that the singular forms "one", "an" and "the" include plural references, unless the context clearly states otherwise. All terms and phrases used herein (including technical and scientific terms and phrases) have the same meaning as the meaning generally understood by those of ordinary skill in the art to which the embodiments of the present disclosure belong. It will be further understood that terms and phrases (such as those defined in a common dictionary) should be interpreted as having a meaning consistent with its meaning in the context of the relevant art, and will not be interpreted in an idealized or overly formal sense, unless explicitly defined herein. In some cases, the terms and phrases defined herein may be interpreted as excluding embodiments of the present disclosure.

[0016] Examples of "electronic devices" according to the present disclosure may include at least one of a smart phone, a tablet personal computer (PC), a mobile phone, a video phone, an e-book reader, a desktop PC, a laptop computer, a netbook computer, a workstation, a personal digital assistant (PDA), a portable multimedia player (PMP), an MP3 player, a mobile medical device, a camera, or a wearable device (such as smart glasses, a head mounted device (HMD), electronic clothing, an electronic bracelet, an electronic necklace, an electronic accessory, an electronic tattoo, a smart mirror, or a smart watch). Other examples of electronic devices include smart home appliances. Examples of smart home appliances may include at least one of the following: a television, a digital video disc (DVD) player, an audio player, a refrigerator, an air conditioner, a vacuum cleaner, an oven, a microwave, a washing machine, a dryer, an air purifier, a set-top box, a home automation control panel, a security control panel, a TV box (such as SAMSUNG HOMESYNC, APPLE TV, or GOOGLE TV), a game console (such as XBOX, PLAYSTATION, or NINTENDO), a smart speaker or a speaker with an integrated digital assistant (such as SAMSUNG GALAXY HOME, APPLE HOMEPOD, or AMAZON ECHO), an electronic dictionary, an electronic key, a camera, or an electronic photo frame.

[0017] Other examples of electronic devices include at least one of the following: various medical devices (such as various portable medical measuring devices (such as blood sugar measuring devices, heart rate measuring devices, or body temperature measuring devices), magnetic resource angiography (MRA) devices, magnetic resource imaging (MRI) devices, computed tomography (CT) devices, imaging devices, or ultrasound devices), navigation devices, global positioning system (GPS) receivers, event data recorders (EDR), flight data recorders (FDR), automotive infotainment devices, navigation electronic devices (such as navigation navigation devices or gyrocompasses), avionics equipment, security equipment, vehicle head units, industrial or household robots, automated teller machines (ATMs), point of sale (POS) devices, or Internet of Things (IoT) devices (such as light bulbs, various sensors, electric or gas meters, sprinkler heads, fire alarms, thermostats, street lights, toasters, fitness equipment, hot water tanks, heaters, or boilers). Other examples of electronic devices include at least a portion of a piece of furniture or a building / structure, an electronic board, an electronic signature receiving device, a projector, or various measuring devices (such as devices for measuring water, electricity, gas, or electromagnetic waves). Note that according to an embodiment of the present disclosure, the electronic device may be one or a combination of the devices listed above. According to an embodiment of the present disclosure, the electronic device may be a flexible electronic device. The electronic device disclosed herein is not limited to the devices listed above, and may include new electronic devices depending on the development of technology.

[0018] In the following description, an electronic device is described with reference to the accompanying drawings according to various embodiments of the present disclosure. As used herein, the term "user" may refer to a person using an electronic device or another device (such as an artificial intelligence electronic device).

[0019] Definitions for certain other words and phrases may be provided throughout this patent document. Those of ordinary skill in the art should understand that in many, if not most instances, such definitions apply to prior, as well as future uses of such defined words and phrases.

[0020] Nothing in the description of this application should be read as implying that any particular element, step, or function is an essential element that must be included within the scope of the claims. The scope of the patented subject matter is limited solely by the claims. Applicants understand that any other terms, including but not limited to "mechanism", "module", "device", "unit", "component", "element", "member", "device", "machine", "system", "processor" or "controller" are used within the claims to refer to structures known to those skilled in the relevant art. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] For a more complete understanding of the present disclosure and its advantages, reference is now made to the following description taken in conjunction with the accompanying drawings, wherein like reference numerals represent like parts:

[0022] Figure 1 illustrates an example network configuration including electronic devices according to the present disclosure;

[0023] Figure 2A An example process for generating training data for training artificial intelligence / machine learning (AI / ML) based image processing operations according to the present disclosure is shown;

[0024] Figure 2B showing an example image frame according to the present disclosure;

[0025] Figure 3A Showing the Figure 2A Example generation of motion distorted image frames during the process;

[0026] Figure 3B illustrates an example selection of motion vectors according to the present disclosure;

[0027] Figure 3C The present invention is shown in Figure 2A An example process of generating a motion-distorted image frame in the process of;

[0028] Figure 3D and Figure 3E shows examples of captured image frames and generated motion-distorted image frames according to the present disclosure;

[0029] Figure 4A An example process for generating motion vectors for generating motion-distorted image frames according to the present disclosure is shown;

[0030] Figure 4B The method for identifying the method for generating Figure 4A Example neural network architecture for motion of motion vectors;

[0031] Figure 4C Showing the use according to the present disclosure Figure 4B An example process of using a neural network to generate a flow graph;

[0032] Figure 4D shows example rotation and translation mappings according to the present disclosure;

[0033] Figure 5A Example images showing real noise and synthetic noise according to the present disclosure;

[0034] Figure 5B shows an example of calibrating read noise according to the present disclosure;

[0035] Figure 5C An example of calibrating photon noise according to the present disclosure is shown;

[0036] Fig. 6Aillustrates an example method for generating training data according to the present disclosure; and

[0037] Figure 6B An example method for image processing according to the present disclosure is shown. DETAILED DESCRIPTION

[0038] Discussed below Figures 1 to 6B The various embodiments used to describe the principles of the present disclosure in this patent document are for illustration only and should not be interpreted in any way as limiting the scope of the present disclosure. Those skilled in the art will appreciate that the principles of the present disclosure can be implemented in any appropriately arranged system or device.

[0039] As mentioned above, many mobile electronic devices such as smart phones and tablet computers include cameras that can be used to capture both still and video images. Such devices have become common for capturing, uploading and sharing digital images. Although convenient, cameras on mobile electronic devices often suffer from many disadvantages. For example, users who take photos with cameras on mobile electronic devices often hold the electronic device in their hands, and even the most careful users inevitably introduce small camera motions due to hand shake. During long exposure scenes that may occur in the case of reduced light, the amount of hand shake increases. When the amount of hand shake is high, a significant amount of frame blur may be introduced into the image frame. Image blur reduces the image quality for the end user.

[0040] Mobile electronic devices are capable of performing multiple image processing functions to capture images. Various image processing functions may include the use of artificial intelligence / machine learning (AI / ML) functions to provide users with higher image quality. For example, AI technology has recently been applied to various aspects of image processing, such as denoising, motion deblurring, high dynamic range (HDR), segmentation, disparity estimation, etc. As a specific example, an AI-based denoising operation can be implemented to remove noise from an image. In order to train an AI-based denoising operation, multiple image pairs are typically required, wherein one image in each pair is a noisy image and the other image in each pair is a ground truth (clean) image. The noisy image and the ground truth image are used as input for training an AI network to remove image noise.

[0041] As another specific example, an AI-based multi-frame processing (MFP) operation enables an electronic device to capture and combine multiple image frames to produce a higher quality image. Image quality improvements such as HDR, low-light photography, and motion blur reduction are enabled based on the MFP operation. In order to train the AI-based MFP operation, multiple image pairs are typically required, where each pair includes an input image and a ground truth image. If the input image is a handheld image and the ground truth image is a static image, the AI ​​network can be trained to remove blur caused by hand-shaking motion when combining the images together.

[0042] Unfortunately, creating realistic training data is challenging for some applications because ground truth data is not available or easy to generate. Some challenges in implementing AI-based image processing operations to replace non-AI-based image processing operations include how to prepare, collect, and generate training data. Manual data captured using mobile electronic devices can be used to generate AI training data. However, manual data capture usually requires a lot of human resources and costs, manually captured datasets need to be reviewed by data engineers and are often deleted due to low quality or incorrect capture, and if the camera sensor hardware changes, the training data needs to be recaptured and re-reviewed.

[0043] As a specific example thereof, the MFP operation includes a multi-frame capture operation and a blending operation, wherein the blending operation blends multiple image frames captured during the multi-frame capture operation. Since the capture operation captures multiple image frames over a period of time, small camera motions due to hand shake can affect the alignment between the multiple image captures. When misalignment between image frames occurs, many of the captured image frames are useless for training the AI-based MFP operation. Therefore, each image frame typically needs to be manually reviewed to determine its feasibility before being used as training data for the AI-based image processing operation.

[0044] Embodiments of the present disclosure describe various techniques for creating training data to train AI-based image processing operations. As described in more detail below, a synthetic multi-frame capture operation obtains multiple image frames captured using an electronic device. While the electronic device is stationary, such as when a tripod is used to capture image frames during a multi-frame capture operation, multiple image frames are captured. For each image frame captured during the multi-frame capture operation, a motion-distorted image frame is generated. The generated motion-distorted image frames can be combined using an MFP operation to generate a ground truth image, which allows the ground truth image to contain known motion blur. In addition, noise is added to each generated motion-distorted image frame to generate a noisy motion-distorted image frame. Another MFP operation can be used to combine the noisy motion-distorted image frames to generate an input image. The ground truth image and the input image represent an input pair that can be used to train an AI-based image processing operation. Once trained, the AI-based image processing operation can be used to remove small camera motions caused by hand shake in the MFP operation.

[0045] Figure 1 An example network configuration 100 including electronic devices according to the present disclosure is shown. Figure 1 The embodiment of the network configuration 100 shown is for illustration only. Other embodiments of the network configuration 100 can be used without departing from the scope of the present disclosure.

[0046] According to the present disclosure, the electronic device 101 is included in the network configuration 100. The electronic device 101 may include at least one of a bus 110, a processor 120, a memory 130, an input / output (I / O) interface 150, a display 160, a communication interface 170, and a sensor 180. In an embodiment, the electronic device 101 may exclude at least one of these components, or may add at least one other component. The bus 110 includes circuits for connecting the components 120-180 to each other and for transmitting communications (such as control messages and / or data) between the components.

[0047] The processor 120 includes one or more of a central processing unit (CPU), an application processor (AP), or a communication processor (CP). The processor 120 is capable of controlling at least one of the other components of the electronic device 101 and / or performing communication-related operations or data processing. In an embodiment, the processor 120 may be a graphics processor unit (GPU). For example, the processor 120 is capable of receiving image data captured by at least one camera or other image sensor during a capture event. In addition, the processor 120 is capable of processing the image data (as discussed in more detail below) to generate training data for training an AI / ML operation for reducing image distortion caused by handheld image capture. Additionally or alternatively, the processor 120 is capable of processing the image data using an AI / ML operation (as discussed in more detail below), wherein the AI / ML operation is trained to reduce image distortion caused by handheld image capture. For example, the processor 120 is capable of using a trained AI / ML model to reduce image distortion in a captured image frame.

[0048] The memory 130 may include volatile and / or non-volatile memory. For example, the memory 130 may store commands or data related to at least one other component of the electronic device 101. According to the present disclosure, the memory 130 may store software and / or programs 140. The programs 140 may include, for example, a kernel 141, middleware 143, an application programming interface (API) 145, and / or an application program (or "application") 147. At least a portion of the kernel 141, the middleware 143, or the API 145 may be represented as an operating system (OS).

[0049] The kernel 141 can control or manage system resources (such as bus 110, processor 120 or memory 130) used to perform operations or functions implemented in other programs (such as middleware 143, API 145 or application 147). The kernel 141 provides an interface that allows the middleware 143, API 145 or application 147 to access the various components of the electronic device 101 to control or manage system resources. The application 147 may include one or more applications for image capture, generation of training data for AI / ML operations, and / or image processing using trained AI / ML models, as described below. These functions can be performed by a single application or by multiple applications, each of which performs one or more of these functions. For example, the middleware 143 can be used as a repeater to allow the API 145 or application 147 to communicate data with the kernel 141. Multiple applications 147 can be provided. The middleware 143 is capable of controlling work requests received from the applications 147, such as by assigning a priority of using system resources (such as the bus 110, the processor 120, or the memory 130) of the electronic device 101 to at least one of the plurality of applications 147. The API 145 is an interface that allows the application 147 to control functions provided from the kernel 141 or the middleware 143. For example, the API 145 includes at least one interface or function (such as a command) for archive control, window control, image processing, or text control.

[0050] The I / O interface 150 serves as an interface capable of, for example, transmitting a command or data input from a user or other external device to other components (or multiple components) of the electronic device 101. The I / O interface 150 can also output a command or data received from other components (or multiple components) of the electronic device 101 to the user or other external devices.

[0051] The display 160 includes, for example, a liquid crystal display (LCD), a light emitting diode (LED) display, an organic light emitting diode (OLED) display, a quantum dot light emitting diode (QLED) display, a microelectromechanical system (MEMS) display, or an electronic paper display. The display 160 can also be a depth perception display, such as a multi-focal display. The display 160 can display, for example, various contents (such as text, images, videos, icons, or symbols) to the user. The display 160 may include a touch screen and may receive, for example, a touch, gesture, proximity, or hover input using an electronic pen or a body part of the user.

[0052] For example, the communication interface 170 can establish communication between the electronic device 101 and an external electronic device (such as the first electronic device 102, the second electronic device 104, or the server 106). For example, the communication interface 170 can be connected to the network 162 or 164 through wireless or wired communication to communicate with the external electronic device. The communication interface 170 can be a wired or wireless transceiver or any other component for sending and receiving signals.

[0053] Wireless communication can use, for example, long term evolution (LTE), advanced long term evolution (LTE-A), fifth generation wireless system (5G), millimeter wave or 60GHz wireless communication, wireless USB, code division multiple access (CDMA), wideband code division multiple access (WCDMA), universal mobile telecommunications system (UMTS), wireless broadband (WiBro) or global system for mobile communications (GSM) as a cellular communication protocol. Wired connection can include, for example, at least one of universal serial bus (USB), high-definition multimedia interface (HDMI), recommended standard 232 (RS-232) or plain old telephone service (POTS). Network 162 or 164 includes at least one communication network, such as a computer network (such as a local area network (LAN) or a wide area network (WAN)), the Internet or a telephone network.

[0054] The electronic device 101 also includes one or more sensors 180, which can measure physical quantities or detect the activation state of the electronic device 101 and convert the measured or detected information into electrical signals. For example, one or more sensors 180 include one or more cameras or other image sensors for capturing images of scenes or frames of video. The sensor (or multiple) 180 may also include one or more buttons for touch input, gesture sensors, gyroscopes or gyroscope sensors, air pressure sensors, magnetic sensors or magnetometers, acceleration sensors or accelerometers, grip sensors, proximity sensors, color sensors (such as red, green and blue (RGB) sensors), biophysical sensors, temperature sensors, humidity sensors, illumination sensors, ultraviolet (UV) sensors, electromyography (EMG) sensors, electroencephalography (EEG) sensors, electrocardiography (ECG) sensors, infrared (IR) sensors, ultrasonic sensors, iris sensors or fingerprint sensors. The sensor (or multiple) 180 may also include an inertial measurement unit, which may include one or more accelerometers, gyroscopes and other components. In addition, the sensor (or multiple) 180 may include a control circuit for controlling at least one sensor included here. Any of these sensor(s) 180 can be located within the electronic device 101 .

[0055] The first external electronic device 102 or the second external electronic device 104 can be a wearable device or a wearable device (such as an HMD) in which the electronic device can be installed. When the electronic device 101 is installed in the electronic device 102 (such as an HMD), the electronic device 101 can communicate with the electronic device 102 through the communication interface 170. The electronic device 101 can be directly connected to the electronic device 102 to communicate with the electronic device 102 without involving a separate network. The electronic device 101 can also be an augmented reality wearable device including one or more cameras, such as glasses.

[0056] The first external electronic device 102 and the second external electronic device 104 and the server 106 can all be devices of the same or different types as the electronic device 101. According to an embodiment of the present disclosure, the server 106 includes a group of one or more servers. In addition, according to an embodiment of the present disclosure, all or some operations performed on the electronic device 101 can be performed on another one or more other electronic devices (such as the electronic devices 102 and 104 or the server 106). In addition, according to an embodiment of the present disclosure, when the electronic device 101 should automatically or upon request perform a certain function or service, the electronic device 101 can request another device (such as the electronic devices 102 and 104 or the server 106) to perform at least some functions associated with it, rather than performing the function or service alone or additionally. Other electronic devices (such as the electronic devices 102 and 104 or the server 106) can perform the requested function or additional function and transmit the execution result to the electronic device 101. The electronic device 101 can provide the requested function or service by processing the received result as is or additionally. To this end, for example, cloud computing, distributed computing or client-server computing technology can be used. Although Figure 1 The electronic device 101 is shown to include a communication interface 170 to communicate with an external electronic device 104 or a server 106 via a network 162 or 164 , but according to an embodiment of the present disclosure, the electronic device 101 may independently operate without a separate communication function.

[0057] The server 106 may include components 110-180 (or a suitable subset thereof) that are the same or similar to the electronic device 101. The server 106 is capable of supporting driving the electronic device 101 by performing at least one of the operations (or functions) implemented on the electronic device 101. For example, the server 106 may include a processing module or processor that can support the processor 120 implemented in the electronic device 101. For example, the server 106 is capable of receiving image data captured by at least one camera or other image sensor during a capture event. In addition, the server 106 is capable of processing the image data (as discussed in more detail below) to generate training data for training an AI / ML operation for reducing image distortion caused by handheld image capture. Additionally or alternatively, the server 106 is capable of processing the image data (as discussed in more detail below) using an AI / ML operation that is trained to reduce image distortion caused by handheld image capture. For example, the server 106 is capable of using a trained AI / ML model to reduce image distortion in a captured image frame.

[0058] although Figure 1 An example of a network configuration 100 including an electronic device 101 is shown, but the Figure 1 Various changes may be made. For example, network configuration 100 can include any number of each component in any suitable arrangement. In general, computing and communication systems have a variety of configurations, and Figure 1 The scope of the present disclosure is not limited to any particular configuration. Figure 1 One operating environment is shown in which the various features disclosed in this patent document can be used, but these features can be used in any other suitable system.

[0059] Figure 2A An example process 200 for generating training data for training AI / ML-based image processing operations according to the present disclosure is shown, and Figure 2B An example image frame according to the present disclosure is shown. For ease of explanation, Figure 2A and Figure 2B Described as Figure 1 The electronic device 101 is shown as being associated. However, Figure 2A and Figure 2B Can be associated with any other suitable electronic device and in any suitable system, such as when used by or with server 106 .

[0060] like Figure 2AAs shown, process 200 is generally used to capture or otherwise obtain a plurality of image frames 202 of a scene and process the image frames 202 to generate a training data set 250 for an AI-based image processing training operation 260. Among other things, the training data set 250 may include a plurality of image pairs of different scenes, different lighting conditions, different exposure settings, etc. In addition, some of the images included in the training data set 250 may include images based on a particular image sensor (such as Figure 1 Depending on the implementation, process 200 may receive one image frame 202 or multiple image frames 202. Image frames 202 may be obtained in any suitable manner. For example, image frames 202 may be obtained by at least one camera or image sensor (such as Figure 1 As another example, it is possible to obtain information from an information repository such as Figure 1 memory 130) to obtain image frame 202.

[0061] In an embodiment, the image frames 202 may be captured using a tripod or other mechanism to prevent motion, such as motion caused by hand shake. Additionally, the image frames 202 may be captured using the same exposure settings or different exposure settings (such as different ISO settings, different exposure times, or both different ISO settings and different exposure times). For example, the image frames 202 may be captured using the same ISO value but different exposure times. As another example, the image frames 202 may be captured using different ISO values ​​and different exposure times. In an embodiment, the image frames 202 may be captured using longer exposure times for noise reduction. Longer exposure times may be possible when the image frames are captured using a mechanism to prevent motion (such as a tripod). Using longer exposure times can also reduce the amount of noise within the image frames. In some cases, during a multi-frame capture operation, the processor 120 can control one or more cameras or other image sensors (such as Figure 1 180), so that the image frames 202 are captured quickly, such as in a burst mode. In other cases, if the electronic device 101 includes multiple cameras or other image sensors (such as Figure 1 If multiple sensors 180 are present, image frames 202 may be captured simultaneously or in an overlapping manner.

[0062] The capture request that triggers the capture of the image frame 202 represents any suitable command or input that indicates a need or desire to capture at least one image frame of a scene using the electronic device 101. For example, the capture request can be initiated in response to a user pressing a "soft" button presented on the display 160 or a user pressing a "hard" button. The multi-frame capture operation can capture one or more image frames for each capture request. For example, the multi-frame capture operation can capture five to ten image frames for a single capture request, wherein each captured image frame can be based on a different exposure setting.

[0063] In an embodiment, the plurality of image frames 202 may include different sets of image frames. Each set of image frames may share the same scene, aperture, and lens, while exposure settings (such as ISO values ​​and exposure times) may vary between image frames of a particular set. In addition, different sets of image frames can be captured through a multi-frame capture operation and correspond to different scenes, different lighting conditions, different exposure settings, etc. In this way, based on image frames captured during a single multi-frame capture operation, each image pair generated and included in the training data set 250 may correspond to a single shot, but different image pairs may be associated with different scenes and conditions.

[0064] The image frames 202 are provided to a synthetic multi-frame capture operation 210, wherein the synthetic multi-frame capture operation 210 generally operates to generate a motion-distorted image frame 222 and a noisy motion-distorted image frame 232 for each image frame 202. In this example, the synthetic multi-frame capture operation 210 includes a motion modeling operation 220 and a noise modeling operation 230. The motion modeling operation 220 generates a motion-distorted image frame 222 for each image frame 202, and the noise modeling operation 230 adds noise to each generated motion-distorted image frame 222 to generate a noisy motion-distorted image frame 232.

[0065] In this example, the synthetic multi-frame capture operation 210 generates two image frames for each image frame of the image frames 202. For example, if the plurality of image frames 202 includes two image frames (having different exposure settings) represented as a first image frame and a second image frame, the synthetic multi-frame capture operation 210 generates a first motion-distorted image frame (using a motion modeling operation 220) and a first noise-motion-distorted image frame (using a noise modeling operation 230) based on the first image frame having the first exposure setting. Additionally, the synthetic multi-frame capture operation 210 generates a second motion-distorted image frame (using a motion modeling operation 220) and a second noise-motion-distorted image frame (using a noise modeling operation 230) based on the second image frame having the second exposure setting.

[0066] In an embodiment, the motion modeling operation 220 distorts each of the image frames 202 based on its exposure setting. For example, the amount of distortion added to generate each motion-distorted image frame 222 may be based on the exposure time of a particular one of the image frames 202. The motion modeling operation 220 may also apply multiple previously generated motion vectors to distort the image frames 202 and generate the motion-distorted image frames 222. The number of motion vectors used with the image frames 202 may be based on the exposure time of the image frames 202. For example, a longer exposure time may be associated with applying more motion vectors to the image frames 202. The motion vectors discussed below may be used to distort the image frames 202. Figure 3A and Figure 3C An example process for generating motion-distorted image frames 222 is described. Also discussed below is FIG. 4A to FIG. 4D Describes example generation of motion vectors.

[0067] In an embodiment, the noise modeling operation 230 adds an amount of noise to the image frame based on the exposure setting of the image frame 202. For example, the noise modeling operation 230 can add an amount of noise to a particular image frame based on the ISO value used to capture the particular image frame. As a specific example, when the image frame 202 is captured using a low ISO value, the noise modeling operation 230 can add a small amount of noise. When the image frame 202 is captured using a high ISO value, the noise modeling operation 230 can add a large amount of noise. Since the noise modeling operation 230 is capable of adding noise to the motion-distorted image frame 222, the ISO value used to capture the image frame (before undergoing motion distortion by the motion modeling operation 220) can be provided to the noise modeling operation 230.

[0068] In addition, the process of adding noise can be based on one or more parameters of a specific image sensor (such as sensor 180) for which the AI-based image processor operation is being trained, because each sensor can produce slightly different noise levels. In some cases, the noise parameters may include read noise, photon noise, and spatial correlation. Read noise is generated based on the operation of reading information from the sensor array while the image is being captured. Photon noise is a function of pixel brightness, which means that the noise characteristics of a pixel can change as the pixel brightness changes. Spatial correlation is a function of the energy between pixels. Read noise, photon noise, and spatial correlation can be calibrated for a specific sensor. Therefore, the noise modeling operation 230 can add an amount of noise based on one or more aspects of the sensor that captures the image frame. In some cases, the amount of added noise can be defined as follows:

[0069] I n =corr[I+(N p +N r )] (1)

[0070] Here, In is the generated noisy motion-distorted image frame 232, and I is the motion-distorted image frame 222. Moreover, corr is the spatial correlation function, Np is the photon noise, and Nr is the read noise. In some cases, the read noise Nr can be defined as follows:

[0071] N r =(I+ωC(x o ,γ)+(1-ω)G(m,σ)) (2)

[0072] exist Figure 2B , image frame 270 may represent one of image frames 202 captured using a longer exposure and a tripod or other mechanism to prevent motion. Image frame 272 shows an enlarged version of image frame 270 showing image details. Image frame 274 is a different image frame that was manually captured using a handheld electronic device. Image frame 274 is blurry due to the electronic device being handheld and is noisy due to the high ISO value (compared to image frame 272). Image frame 276 represents an image frame generated by synthetic multi-frame capture operation 210. For example, image frame 276 may represent an example of a noisy motion distorted image frame 232. Image frame 276 is blurry and noisy because it represents image frame 272 after being modified by synthetic multi-frame capture operation 210. The similarity between image frame 274 and image frame 276 provides an indication that synthetic multi-frame capture operation 210 can be used to successfully simulate image capture using a handheld electronic device, and this can be achieved without the need to manually capture multiple image frames in order to train AI-based image processing operations.

[0073] Back to Figure 2A, the motion distorted image frame 222 is provided to the MFP operation 240a, wherein the MFP operation 240a generally operates to align and blend or otherwise combine pixels from multiple motion distorted image frames 222 to produce a mixed image of the scene. Similarly, the noise motion distorted image frame 232 is provided to the MFP operation 240b, wherein the MFP operation 240b generally operates to align and blend or otherwise combine pixels from multiple noise motion distorted image frames 232 to produce a mixed image of the scene. Therefore, each of the MFP operations 240a and 240b is capable of receiving multiple image frames and generating a single mixed image. The image generated by the MFP operation 240a is a ground truth image, and the image generated by the MFP operation 240b is an input image. The generated ground truth image and the input image represent an image pair. The MFP operations 240a-240b can use any suitable technology now known or later developed to blend multiple image frames. The ground truth images and input images are provided as image pairs in the training dataset 250, which may be stored in a suitable memory or other storage location(s). The image pairs here can correspond to different scenes, different light conditions, and the like.

[0074] The image pairs included in the training data set 250 can be provided to an AI-based image processing training operation 260, which generally operates to train a specific AI / ML-based image processing operation. For example, the AI-based image processing training operation 260 can be used to train one or more neural networks, convolutional neural networks (CNNs), or other machine learning models. The AI / ML-based image processing operation is trained here to remove image distortion caused by handheld image capture of image frames captured by a specific sensor. For example, after the AI / ML-based image processing operation is trained, another electronic device can capture one or more image frames, and the trained AI / ML-based image processing operation can be used to reduce blur caused by hand-shaking motion.

[0075] although Figure 2A An example of a process 200 for generating training data for training AI / ML based image processing operations is shown, and Figure 2B An example image frame that may be associated with process 200 is shown, but may be used for Figure 2A and 2B Various changes may be made. For example, electronic device 101 may perform any additional desired functions as part of process 200 or as part of a larger image processing algorithm. As a specific example, the image frame may undergo other suitable pre-processing and post-processing operations. In addition, Figure 2B The contents of the image frames shown in are for illustration only and can easily vary based on the scene being imaged.

[0076] Figure 3A Showing the Figure 2A An example of a process 200 for generating a motion distorted image frame. Figure 3B An example selection of motion vectors according to the present disclosure is shown. Figure 3C The present invention is shown in Figure 2A An example process of generating a motion-distorted image frame 222 in the process 200. Here, Figure 3A and Figure 3C The process shown in Figure 2A 2. The motion modeling operation 220 in the process 200 shown in FIG. 2 may be performed in part or in whole. Figure 3D and Figure 3E An example of a captured image frame and a generated motion-distorted image frame according to the present disclosure is shown. For ease of explanation, FIG. 3A to FIG. 3E Described as Figure 1 The electronic device 101 is shown as being associated. However, FIG. 3A to FIG. 3E Can be associated with any other suitable electronic device and in any suitable system, such as when used by or with server 106 .

[0077] like Figure 3A As shown, the motion modeling operation 220 is generally used to adaptively distort the image frame 300 to generate a motion distorted image frame 302 using a temporal integration operation 320 . Figure 3A The motion modeling operation 220 may be performed with Figure 2A The image frame 300 can be the same or similar to the motion modeling operation 220. Figure 2A and the motion-distorted image frame 302 can be one of the image frames 202 of Figure 2A Here, the motion modeling operation 220 can be used to model a single image frame (such as Figure 2A In addition, the motion modeling operation 220 can also generate motion vectors 310 for distorting the image frame 300. In an embodiment, the motion modeling operation 220 uses other image frames to generate motion vectors. Figure 4A-4D To describe the generation of motion vectors.

[0078] In this example, one image frame 300 is captured and processed, but more than one image frame 300 may be used. The image frame 300 may be obtained in any suitable manner. For example, the image frame 300 may be captured by at least one camera or image sensor (such as Figure 1 As another example, it is possible to obtain information from an information repository such as Figure 1The image frame 300 is obtained from the memory 130 of the image processing unit 100. The image frame 300 represents an image frame captured using a tripod or other mechanism to prevent motion. The image frame 300 can be based on a long exposure time.

[0079] The motion modeling operation 220 obtains the image frame 300 and identifies one or more exposure settings associated with the image frame 300. The one or more exposure settings may include an exposure time, an ISO value, or other exposure setting (or settings). Based on the one or more exposure settings, the motion modeling operation 220 can select a plurality of motion vectors 310. As described below, the motion vectors 310 can be generated by the motion modeling operation 220 or another operation using different sets of image frames (such as image frames captured at a high frame rate). A single motion vector 310 represents the amount of motion identified between each image frame in the set of image frames. In an embodiment, different sets of image frames can be captured at a high frame rate (such as 240 frames per second (FPS) or higher). The number of motion vectors 310 used to distort the image frame 300 can be based on the relationship between one or more exposure settings (such as exposure time) of the image frame 300 and the frame rate of the different sets of image frames. In some cases, the relationship can be defined as follows:

[0080]

[0081] Here, r is the temporal resolution of the different sets of image frames captured at a frame rate N. The frame rate N is the number of image frames captured within a specific time interval (such as one second). The number n of motion vectors 310 used to distort the image frame 300 can be based on the ratio of the identified exposure time f of the image frame 300 and the temporal resolution r of the different sets of image frames. For example, if the different sets of image frames are captured at 100 FPS, the temporal resolution r between two image frames among the image frames is 10 milliseconds. If the image frame 300 has an exposure time f of one second and the different sets of image frames are captured at 100 FPS, the motion modeling operation 220 can select 100 motion vectors (meaning n=100).

[0082] Since the motion vector represents the motion between two image frames of different sets, the motion modeling operation 220 can randomly select an initial motion vector representing the motion between the two image frames. The motion modeling operation 220 can also select multiple subsequent motion vectors representing the motion between subsequent image frames of different sets until a determined number of motion vectors (as specified in equation (2)) are selected. In an embodiment, the motion modeling operation 220 selects a set of image frames (such as Figure 2AThe motion modeling operation 220 may select a plurality of subsequent motion vectors for a first image frame and a second image frame (when the first image frame and the second image frame are captured during a multi-frame capture operation). The motion modeling operation 220 may randomly select another motion vector when another image frame or set of image frames is obtained.

[0083] Figure 3B An example diagram 312 is shown for selecting motion vectors, such as motion vectors 312a-312q. Motion vectors 312a through 312q may be associated with Figure 3A The motion vectors 310 of the image frames 300 are the same or similar. Each motion vector 312a-312q represents the global motion between two image frames of different sets. The global motion includes rotational motion and translational motion. Since the motion vectors 312a-312q represent the motion between two image frames of different sets, the motion vectors 312a-312q follow a time order. The motion modeling operation 220 can randomly select the first motion vector. For example, if the motion modeling operation 220 (based on the frame rate of the image frames of the different sets and the exposure time of the image frame 300) determines that four motion vectors are needed to distort the image frame 300, the motion modeling operation 220 can select a random motion vector, such as motion vector 312e. Thereafter, the motion modeling operation 220 selects the next three motion vectors 312f-312h. In this way, the image frame 300 is distorted using motion vectors 312e-312h. If the image frame 300 is part of a multi-frame capture, the motion modeling operation 220 may select the motion vector 312i and zero or more subsequent motion vectors for the next image frame in the sequence (based on the frame rates of the different sets of image frames and the exposure times of the subsequent image frames). The motion modeling operation 220 continues to select consecutive motion vectors until all image frames of the multi-frame capture are distorted. When another set of image frames (or a set of frames from a multi-frame capture operation) is provided to the motion modeling operation 220, the motion modeling operation 220 may randomly select another motion vector and zero or more subsequent motion vectors based on the frame rates of the set of image frames and the exposure times of the subsequent image frames.

[0084] Figure 3A The time integration operation 320 simulates the exposure process of the sensor and creates a distorted image frame of the image frame 300 based on each motion vector 310. For example, the time integration operation 320 can distort the image frame 300 using one or more of the motion vectors 310. Thereafter, the time integration operation 320 generates a motion-distorted image frame 302 by combining the plurality of distorted image frames. Figure 3C As shown, the time integration operation 320 can obtain the image frame 300a and generate the motion distorted image frame 304. The image frame 300a can be Figure 3A The image frames 300 are the same or similar. Figure 3D The image frame 330 of FIG. 300a shows a specific example of the image frame 300a. Similarly, the motion distorted image frame 304 can be Figure 3A The motion-distorted image frames 302 are the same or similar. Figure 3D The image frame 340 shows one specific example of a motion distorted image frame 304. In this example, the temporal integration operation 320 includes a generate motion distorted image operation 324.

[0085] The temporal integration operation 320 obtains a plurality of motion vectors 310a-310n, which can be similar to Figure 3A The motion vector 310 or Figure 3B The time integration operation 320 uses the n selected motion vectors 310 to warp the image frame 300a, represented as I, to create n warped image frames It (where t=1, 2, ..., n). For each motion vector, the time integration operation 320 generates a warped image frame. As shown, the time integration operation 320 uses the motion vector 310a to generate a warped image frame 322a, and the time integration operation 320 uses the motion vector 310b to generate a warped image frame 322b.

[0086] The generate motion distorted image operation 324 combines the plurality of warped image frames 322a-322n to generate the motion distorted image frame 304. In an embodiment, the generate motion distorted image operation 324 combines the plurality of warped image frames 322a-322n by integrating and averaging the plurality of warped image frames 322a-322n, which may be represented as follows:

[0087]

[0088] Here, I f is a motion-distorted image frame such as Figure 3C The motion-distorted image frame 304. In addition, n is the number of distorted image frames, and It represents the distorted image frame.

[0089] Figure 3E Examples of motion distorted image frames and blurred image frames caused by shaky hand motion are shown in FIG. Figure 3E Show use Figure 2A and Figure 3A The image frame 350 is generated by the motion modeling operation 220. The image frame 350 is originally captured when the electronic device is stationary, such as when a tripod or other mechanism is used to prevent hand shaky motion. The image frame 350 is blurred due to the synthetically generated blur created by the motion modeling operation 220. Figure 3EImage frame 360 ​​shows an example image frame captured when the electronic device is hand-held. Image frame 360 ​​is also blurred due to actual motion caused by hand shake. Image frame 350 and image frame 360 ​​are captured using the same exposure settings. If image frames 350 and 360 are captured using a multi-frame capture operation, image frame 350 will be aligned with any previous and subsequent frames because the original image frame was captured using a tripod or other mechanism to prevent motion and blur is added to the original image frame. In contrast, image frame 360 ​​may not be aligned with any previous and subsequent frames because the blur is caused by hand motion. Therefore, using image frame 350 to train AI-based image processing operations to remove hand shake from images reduces the required processing power because the images are already aligned.

[0090] although FIG. 3A to FIG. 3E One example of a process for generating motion-distorted image frames and associated details is shown, but may be used for FIG. 3A to FIG. 3E Various changes may be made. For example, the electronic device 101 may perform any additional desired functions as part of the motion modeling operation 220 or as part of a larger image processing algorithm. As a specific example, the image frame may undergo other suitable pre-processing and post-processing operations.

[0091] Figure 4A An example process 400 for generating motion vectors for use in generating motion-distorted image frames is shown in accordance with the present disclosure. Figure 4B The method for identifying the method for generating Figure 4A Example neural network architecture 420a for motion of motion vectors. Figure 4C Showing the use according to the present disclosure Figure 4B An example process of generating a flow graph using a neural network architecture 420a. Figure 4D An example rotation and translation mapping according to the present disclosure is shown. Here, Figure 4A The process 400 shown in FIG. 4 may be used as Figure 2A 200 may be performed in part or in whole. For ease of explanation, 4A to 4D Described as Figure 1 The electronic device 101 is shown as being associated. However, 4A to 4D Can be associated with any other suitable electronic device and in any suitable system, such as when used by or with server 106 .

[0092] like Figure 4AAs shown, process 400 is generally used to capture or otherwise obtain one or more image frames 410 and process one or more image frames 410 to generate motion vectors for modifying other image frames. Depending on the implementation, image frames 410 can be obtained in any suitable manner. For example, image frames 410 can be obtained by at least one camera or image sensor (such as Figure 1 As another example, it is possible to obtain information from an information repository such as Figure 1 The image frame 410 is obtained by using a memory 130 of the image processing unit 100. The image frame 410 represents a plurality of image frames that can be captured at a constant frame rate (such as 240 FPS). In an embodiment, the image frame 410 is included in a video sequence with a frame rate of 240 FPS or higher for a predefined length (such as one to three seconds). In addition, the image frame 410 can be captured using a handheld electronic device. In some cases, the image frame 410 is capable of capturing an image of a static scene, meaning that the object in the static scene is fixed. Figure 4C Image frames 410a and 410b show a specific example of two consecutive image frames of a wall.

[0093] Image frame 410 is Figure 2A The image frame 202, Figure 3A The image frames 300 and Figure 3C The image frame 300a is different from the image frame. As discussed above, Figure 2A The image frame 202, Figure 3A The image frames 300 and Figure 3C Image frame 300a is an image frame captured while the electronic device is stationary (such as when a tripod or other mechanism is used to prevent motion). In contrast, image frame 410 is captured when the electronic device is handheld, so that handheld motion can be introduced into the image frame. In addition, Figure 2A The image frame 202, Figure 3A The image frames 300 and Figure 3C Image frame 300a may be an image frame captured using a longer exposure time. In contrast, image frame 410 may be generated using a shorter exposure time (such as 240 FPS or higher). Using a faster exposure time reduces motion blur in each individual image frame, although each subsequent frame may be slightly shifted due to hand motion. In addition, Figure 2A The image frame 202, Figure 3A The image frames 300 and Figure 3C Image frame 300a may be an image frame captured using an exposure time that varies from one frame to the next. In contrast, image frame 410 may be generated using a constant frame rate, such as 240 FPS or higher.

[0094] The image frame 410 is provided to a small motion optical flow network (OfNet) operation 420, which generally operates to estimate small camera motion due to hand shake when capturing the image frame 410. In an embodiment, the small motion Ofnet operation 420 includes a neural network. Figure 4B The neural network architecture 420a shows one specific example architecture that may be used by the small motion Ofnet operation 420. However, note that any other trained machine learning model may be used here.

[0095] The neural network architecture 420a is trained to recognize optical flow. In an embodiment, the neural network used by the small motion Ofnet operation 420 recognizes optical flow within a range of + / - 1 to 20 pixels. For example, the small motion Ofnet operation 420 can recognize the movement of pixels from one image frame to a subsequent image frame. As a specific example, Figure 4C An example process for identifying optical flow is shown. Image frames 410a and 410b are examples of two consecutive image frames in image frame 410. These image frames 410a and 410b are provided as input to small motion Ofnet operation 420, and small motion Ofnet operation 420 generates optical flow map 422. Optical flow map 422 represents the pixel-based motion between image frames 410a and 410b. Additional optical flow maps can be generated for each continuous pair of image frames in image frame 410. Each optical flow map 422 is a visual flow map that can be encoded in a specific domain (such as a YUV domain). According to key 424, the color or other value in optical flow map 422 can indicate the direction of motion, and the brightness in optical flow map 422 can indicate the intensity of motion.

[0096] The output from the small motion Ofnet operation 420 is provided to a homography matrix operation 430. The homography matrix operation 430 uses the optical flow map provided by the small motion Ofnet operation 420 to identify motion. In some cases, the homography matrix operation 430 can generate a homography matrix representing the motion. The output from the homography matrix operation 430 is provided to a motion vector generator operation 440, wherein the motion vector generator operation 440 typically decomposes the homography matrix to generate a motion vector representing the global motion of each pixel from one frame to another. In some cases, the hand shake motion can be in the form of a three-axis rotation R and a three-axis translation T. Figure 4D The image in shows a specific example of six-axis motion. For example, for each pixel, the motion vector can indicate how much the camera is displaced in the X, Y, and Z directions and how much the camera is rotated between two frames in the image frame 410.

[0097] although 4A to 4D One example of a process for generating motion vectors and related details is shown, but may be used for 4A to 4DVarious changes may be made. For example, the electronic device 101 may perform any other desired functions as part of a larger image processing algorithm. As a specific example, the image frame may undergo other suitable pre-processing and post-processing operations.

[0098] As discussed above, Figure 2A The noise modeling operation 230 generates a noisy motion distorted image frame 232 by adding noise to the motion distorted image frame 222. The noise modeling operation 230 adds synthetic noise to the motion distorted image frame 222 to simulate captured noise. In some cases, the amount of noise can be based on exposure settings associated with the image frame, such as an ISO value and noise parameters calibrated for a specific sensor. The ISO value of an image frame (such as one of the plurality of image frames 202) can be sent from the motion modeling operation 220 to the noise modeling operation 230. In some cases, the noise parameters include read noise, photon noise, and spatial correlation.

[0099] Since multiple image frames 202 are captured using a tripod or other mechanism to prevent motion, these image frames 202 are able to have longer exposure times, which reduces noise in the image frames. Therefore, the noise modeling operation 230 adds noise to the image frames 202 at a given ISO value to represent image frames captured with shorter exposure times. Figure 5A Examples of actual noise and noise generated by the noise modeling operation 230 are shown in FIG. Figure 5A Example image frames 510 and 512 of real noise and synthetic noise in accordance with the present disclosure are shown. More specifically, image frame 510 shows the noise of a particular image sensor used with a camera, and image frame 512 shows added synthetic noise based on the calibration of the sensor that captured image frame 512.

[0100] Since the noise parameters can change for each image sensor, the noise modeling operation 230 can calibrate the noise parameters for a specific sensor. In an embodiment, the parameters can be calibrated before the noise modeling operation 230 applies the noise to the motion distorted image frame 222. For example, to calibrate the read noise, the noise modeling operation 230 can block the camera lens and capture dark raw images at various ISO levels. The noise modeling operation 230 can create a histogram of the raw image pixels for each specific ISO level, perform a curve fitting operation on the generated histogram, and calibrate the Gaussian and Cauchy parameters. The noise modeling operation 230 can repeat the process for multiple ISO levels and red, green_1, green_2, blue (R, G1, G2, B) levels. Any ISO value between the captured values ​​can be interpolated. Figure 5BGraphs 520, 522, and 524 show a specific example of read noise based on different ISO values. For example, graph 520 is the read noise at an ISO value of 800, graph 522 is the read noise at an ISO value of 3200, and graph 524 is the read noise at an ISO value of 6400.

[0101] To calibrate for photon noise, the noise modeling operation 230 may capture a brightness map in a low-light setting. Figure 5C A specific example of a brightness map is shown in image frame 530. Figure 5C As shown, the image frame 530 includes a plurality of square blocks with gradually increasing brightness. The noise modeling operation 230 can identify and save the intensity value of each square, such as in Figure 1 The noise modeling operation 230 can identify the standard deviation of each point and generate a graph that plots the intensity value of each square to the corresponding standard deviation value. Figure 5C A specific example of such a graph is shown in graph 532. Figure 5C As shown, the x-axis of graph 532 is the intensity value of each square, and the y-axis of graph 532 is the corresponding standard deviation. The noise modeling operation 230 can create a point graph to observe nonlinearity, and synthetically generate a noisy image frame and plot the curve again. The noise modeling operation 230 can compare the curve corresponding to the synthetically generated noisy image frame with the true curve to find the best value.

[0102] To calibrate for spatial correlation, the noise modeling operation 230 can obtain an image frame such as Figure 2A The noise modeling operation 230 can perform in-plane correlation and channel correlation. To perform in-plane correlation, for each color plane, the noise modeling operation 230 can select a plurality of neighboring pixels and derive correlation coefficients. The neighboring pixels can represent a square, such as a five-pixel by five-pixel square, although other sets of neighboring pixels can be used. In some cases, the correlation coefficient can be defined as follows:

[0103]

[0104] To perform channel correlation, for each pixel, the noise modeling operation 230 can select neighboring R, G1, G2, and B pixels and identify correlation coefficients. The in-plane and channel correlations can be saved, such as in a matrix, and the noise modeling operation 230 can apply the matrix on top of the synthetic noise image frame, as described in equation (1) above.

[0105] Fig. 6A An example method 600 for generating training data according to the present disclosure is shown. Figure 6BAn example method 620 for image processing according to the present disclosure is shown. For ease of explanation, Fig. 6A and Figure 6B The methods 600 and 620 shown in FIG. 6 are described as using Figure 1 However, Fig. 6A and Figure 6B Methods 600 and 620 shown in can be used with any other suitable electronic device and in any suitable system, such as when executed by server 106 .

[0106] like Fig. 6A As shown, in step 602, while the electronic device 101 is stationary, the electronic device 101 uses at least one sensor of the electronic device 101 to obtain multiple image frames of the scene. The multiple image frames include at least a first image frame and a second image frame. The first image frame and the second image frame can be captured using a multi-frame capture operation, and different exposure settings may or may not be used to capture the first image frame and the second image frame. Different exposure settings may include different exposure times, different ISO values, or both. In an embodiment, the first image frame and the second image frame are captured using different exposure times but the same ISO value.

[0107] In step 604, the electronic device 101 generates a first motion-distorted image frame using the first image frame, and generates a second motion-distorted image frame using the second image frame. To generate the first motion-distorted image frame and the second motion-distorted image frame, the electronic device 101 uses a plurality of motion vectors that may have been previously generated from different sets of image frames. The number of motion vectors used to generate the first motion-distorted image frame may be based on the exposure time of the first image frame. Similarly, the number of motion vectors used to generate the second motion-distorted image frame may be based on the exposure time of the second image frame.

[0108] In step 606, the electronic device 101 adds noise to the first motion-distorted image frame and the second motion-distorted image frame to generate a first noise motion-distorted image frame and a second noise motion-distorted image frame. The amount of noise added to the first motion-distorted image frame may be based on one or more calibration noise parameters associated with a particular sensor and the ISO value of the first image frame. Similarly, the amount of noise added to the second motion-distorted image frame may be based on one or more calibration noise parameters associated with a particular sensor and the ISO value of the second image frame.

[0109] In step 608, the electronic device 101 performs two different MFP operations. The first MFP operation mixes the first motion-distorted image frame and the second motion-distorted image frame together to generate a single ground truth image. The second MFP operation mixes the first noise motion-distorted image frame and the second noise motion-distorted image frame together to generate a single input real image. In an embodiment, when more than two image frames are obtained in step 602, a motion-distorted image frame and a noise motion-distorted image frame may be generated for each additionally obtained image frame. The additional motion-distorted image frame may also be mixed with the first motion-distorted image frame and the second motion-distorted image frame to generate a single ground truth image. Similarly, the additional noise motion-distorted image frame may also be mixed with the first noise motion-distorted image frame and the second noise motion-distorted image frame to generate a single input real image.

[0110] In step 610, the electronic device 101 stores the ground truth image and the input image as an image pair for training the AI / ML-based image processing operation. Note that steps 602-610 may be repeated any number of times to generate a desired amount of training data for training the AI / ML-based image processing operation. In one embodiment, at least one of steps 602-610 may be omitted. For example, in one embodiment, step 610 may be omitted.

[0111] like Figure 6B As shown, in step 622, while the electronic device 101 is held in the hand, it uses at least one sensor of the electronic device 101 to obtain multiple image frames of the scene. The multiple image frames include at least a first image frame and a second image frame. The first image frame and the second image frame can be captured using a multi-frame capture operation, and may or may not include different exposure times or other exposure settings. In step 624, the electronic device 101 performs an AI / ML image processing operation to generate a mixed image. The AI / ML image processing operation removes image blur caused by hand shaking motion while the multiple image frames are captured. The ground truth image and input image generated as described above with respect to method 600 can be used to train the AI / ML image processing operation. In an embodiment, the AI / ML image processing operation aligns the multiple image frames and mixes the aligned multiple image frames to generate a mixed image while removing motion blur.

[0112] although Fig. 6A An example of a method 600 for generating training data is shown, and Figure 6B An example of a method 620 for image processing is shown, but the Fig. 6A and Figure 6B For example, although shown as a series of steps, Fig. 6A and Figure 6BThe various steps in each of the steps can overlap, occur in parallel, occur in different orders, or occur any number of times. As another example, a step can be omitted or replaced by another step.

[0113] Although the present disclosure has been described with reference to various exemplary embodiments, various changes and modifications may be suggested to one skilled in the art. The present disclosure is intended to encompass such changes and modifications as fall within the scope of the appended claims.

Claims

1. A method 600 for generating synthetic image training data, the method include: Acquiring a plurality of image frames of a scene including a first image frame and a second image frame using at least one sensor 180 of a stationary electronic device 101 (602); Using the plurality of previously generated motion vectors, generating a first motion-distorted image frame using the first image frame and generating a second motion-distorted image frame using the second image frame (604); adding noise to the first motion-distorted image frame and the second motion-distorted image frame to generate a first noisy motion-distorted image frame and a second noisy motion-distorted image frame (606); as well as Performing (i) a first multi-frame processing (MFP) operation to generate a ground truth image using the first motion distorted image frame and the second motion distorted image frame, and (ii) a second MFP operation to generate an input image using the first noisy motion distorted image frame and the second noisy motion distorted image frame (608).

2. The method according to claim 1, in: capturing a first image frame using a first exposure setting; capturing a second image frame using a second exposure setting different from the first exposure setting; one or more of the motion vectors used to distort the first motion-distorted image frame are based on a first exposure setting; one or more of the motion vectors used to distort the second motion-distorted image frame is based on a second exposure setting; The noise added to generate the first noisy motion distorted image frame is based on a first exposure setting; as well as The noise that is added to generate the second noisy motion distorted image frame is based on the second exposure setting.

3. The method according to claim 2, in, The first exposure setting and the second exposure setting include at least one of different exposure times or different ISO values.

4. The method according to any one of claims 1 to 3, further comprising generating a motion vector by: obtaining additional image frames captured at a frame rate greater than a threshold; and A neural network is used to identify a global motion between two of the additional image frames, the global motion representing a motion vector including a rotational motion and a translational motion.

5. The method according to claim 4, in, Generating a first motion-distorted image frame comprises: identifying an exposure time of a first image frame; identifying an exposure time for each of the additional image frames; and Two or more motion vectors to be used to distort the first image frame are determined based on an exposure time of the first image frame and an exposure time of each of the additional image frames.

6. The method according to claim 5, further comprising: include: selecting the two or more motion vectors starting from a randomly selected initial motion vector; generating a plurality of distorted image frames, each distorted image frame representing the first image frame distorted using one of the selected motion vectors; as well as The warped image frames are combined to generate a first motion-distorted image frame.

7. The method according to any one of claims 1 to 6, further comprising: include: calibrating a plurality of parameters associated with a sensor of another electronic device, the parameters including read noise, photon noise, and spatial correlation; determining an amount of noise to be added to the first motion-distorted image frame based on the ISO value and the parameter of the first image frame; as well as An amount of noise to be added to the second motion-distorted image frame is determined based on the ISO value and the parameters of the second image frame.

8. The method according to any one of claims 1 to 7, in: The electronic device 101 is a first electronic device; as well as The method further comprises: obtaining additional image frames based on a multi-frame capture operation using the at least one sensor while the first electronic device is stationary; generating additional image pairs using the additional image frames; storing the additional image pairs; and The image pairs and the additional image pairs are used to train AI / ML-based image processing operations to generate images with reduced motion distortion from image frames captured by a handheld second electronic device.

9. An electronic device 101, include: at least one sensor 180; as well as At least one processor 120 is configured to: while the electronic device is stationary, using the at least one sensor to obtain a plurality of image frames of a scene including a first image frame and a second image frame; Using the plurality of previously generated motion vectors, generating a first motion-distorted image frame using the first image frame and generating a second motion-distorted image frame using the second image frame; adding noise to the first motion-distorted image frame and the second motion-distorted image frame to generate a first noisy motion-distorted image frame and a second noisy motion-distorted image frame; Performing (i) a first multi-frame processing (MFP) operation to generate a ground truth image using the first motion distorted image frame and the second motion distorted image frame, and (ii) a second MFP operation to generate an input image using the first noisy motion distorted image frame and the second noisy motion distorted image frame.

10. The electronic device 101 according to claim 9, in: The at least one sensor 180 is configured to capture a first image frame using a first exposure setting; The at least one sensor 180 is configured to capture a second image frame using a second exposure setting different from the first exposure setting; The at least one processor 120 is configured to select one or more of the motion vectors to distort the first motion-distorted image frame based on the first exposure setting; The at least one processor 120 is configured to select one or more of the motion vectors to distort a second motion-distorted image frame based on a second exposure setting; The at least one processor 120 is configured to add noise based on the first exposure setting to generate a first noisy motion distorted image frame; and The at least one processor 120 is configured to add noise based on the second exposure setting to generate a second noisy motion distorted image frame.

11. The electronic device 101 according to claim 10, in, The first exposure setting and the second exposure setting include at least one of different exposure times or different ISO values.

12. The electronic device 101 according to any one of claims 9 to 11, in: The at least one processor 120 is further configured to generate a motion vector; and To generate the motion vector, the at least one processor 120 is further configured to: obtaining additional image frames captured at a frame rate greater than a threshold; and A neural network is used to identify a global motion between two of the additional image frames, the global motion representing a motion vector including a rotational motion and a translational motion.

13. The electronic device 101 according to claim 12, in, To generate the first motion-distorted image frame, the at least one processor 120 is configured to: identifying an exposure time of a first image frame; identifying an exposure time for each of the additional image frames; as well as Two or more motion vectors to be used to distort the first image frame are determined based on an exposure time of the first image frame and an exposure time of each of the additional image frames.

14. The electronic device 101 according to claim 13, in, To generate the first motion-distorted image frame, the at least one processor is further configured to: selecting the two or more motion vectors starting from a randomly selected initial motion vector; generating a plurality of distorted image frames, each distorted image frame representing the first image frame distorted using one of the selected motion vectors; as well as The warped image frames are combined to generate a first motion-distorted image frame.

15. An electronic device 101, include: at least one sensor 180; as well as At least one processor 120 is configured to: using the at least one sensor while the electronic device 101 is handheld, obtaining multiple image frames of a scene using multiple exposure times during a multiple frame capture operation; as well as performing an artificial intelligence / machine learning (AI / ML) based image processing operation to remove one or more hand-held motion distortions included in the plurality of image frames to generate a hybrid image; Therein, AI / ML-based image processing operations are trained using multiple image pairs, each of the image pairs comprising (i) a ground truth image with motion distortion and (ii) an input image corresponding to a noisy version of the ground truth image.

Citation Information

Patent Citations

  • Automatically generating training data sets for object recognition

    CN111971686A

  • Method and device for generating training sample and method and device for generating true value image

    CN112950503A

  • System and method for motion warping using multi-exposure frames

    CN113497901A