Machine learning assisted image prediction
By combining the machine learning model trained with infrared and RGB image data, it solves the problem of poor RGB image quality in low lighting environments, achieves clearer display of facial features and skin texture, and improves the natural color representation of images.
Patent Information
- Application Number
- CN202410716169.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2018-12-14
- Filing Date
- 2019-11-27
- Publication Date
- 2024-08-30
AI Technical Summary
In low lighting environments, the quality of RGB images captured by electronic devices is poor and it is difficult to capture clear facial details. Existing image processing technology cannot effectively improve the amount of image details.
A machine learning model is used to combine infrared image and RGB image data to train a model for predicting RGB images, and select an appropriate model for image reconstruction based on the amount of ambient light to improve image quality.
The quality of predicted RGB images generated in low-light environments is significantly improved, capturing facial features and skin texture more clearly and providing a more natural color representation.
Smart Images

Figure CN118570606A
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is a divisional application of the invention patent application with international application number PCT / US2019 / 063755, international application date November 27, 2019, date of entry into the Chinese national phase April 23, 2021, Chinese national application number 201980070345.5, and invention name “Machine Learning Assisted Image Prediction”.
[0003] This patent application claims the benefit of priority to U.S. Provisional Patent Application No. 62 / 780,139, filed on December 14, 2018, and entitled “Machine Learning Assisted Image Prediction,” the disclosure of which is hereby incorporated herein in its entirety. Technical Field
[0004] The present specification generally relates to capturing and predicting red-green-blue (RGB) images, including using machine learning to generate predicted RGB images based on infrared images. Background Art
[0005] Users of electronic devices may use an image sensor (e.g., a camera) of the device to take photos or videos, or participate in an audio or video conference with other participants using their respective devices. In some cases, ambient lighting conditions may affect image quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0006] Certain features of the subject technology are set forth in the appended claims. However, for purposes of explanation, several embodiments of the subject technology are set forth in the following drawings.
[0007] Figure 1 An exemplary network environment for predicting RGB images using machine learning according to one or more implementations is shown.
[0008] Figure 2 An exemplary electronic device is shown that can implement the subject system for predicting RGB images using machine learning according to one or more implementations.
[0009] Figure 3 Examples of input images that may be used to generate a predicted RGB output image according to one or more implementations are shown.
[0010] Figure 4 An example of a machine learning model generator according to one or more specific implementations is shown.
[0011] Figure 5An example of an RGB image predictor using a machine learning model to predict an RGB image according to one or more implementations is shown.
[0012] Figure 6 A flowchart of an exemplary process for predicting an RGB image using machine learning in accordance with one or more implementations is shown.
[0013] Figure 7 Exemplary electronic systems are shown that can be used to implement various aspects of the subject technology in accordance with one or more implementations. DETAILED DESCRIPTION
[0014] The specific embodiments shown below are intended to be descriptions of various configurations of the subject technology and are not intended to represent the only configuration in which the subject technology can be practiced. The accompanying drawings are incorporated herein and constitute a part of the specific embodiments. The specific embodiments include specific details intended to provide a thorough understanding of the subject technology. However, the subject technology is not limited to the specific details described herein, and one or more other specific implementations can be used to practice. In one or more specific implementations, structures and components are shown in block diagram form to avoid blurring the concepts of the subject technology.
[0015] Users of electronic devices may use an image sensor (e.g., a camera) of the device to take photos or videos, or participate in an audio or video conference with other participants using their respective devices. In some cases, ambient lighting conditions may affect image quality. In environments with low lighting, image quality may not be suitable for these uses. For example, details of a subject (e.g., a person's face) may not be clear in a low-lighting environment.
[0016] Furthermore, even if the user's device uses general image processing techniques (e.g., adjusting contrast, brightness, and / or color values using preset values) to edit the captured RGB image in real time, the resulting RGB image may still lack the amount of detail desired by the user (e.g., with respect to skin color, skin texture, facial shape). Therefore, it may be desirable to improve image quality in low ambient lighting situations.
[0017] The subject system provides one or more machine learning models trained using a combination of infrared data and RGB data using simultaneously captured infrared image data and reference RGB data to output a predicted RGB image. More specifically, the machine learning model may have been trained by a server using infrared image data, reference RGB image data, and target (or expected) RGB image data spanning multiple subjects (e.g., a person's face). The reference RGB image data may be captured simultaneously with the infrared image data (e.g., captured in low lighting) and / or may be captured before the infrared image data (e.g., captured in good lighting), and a separate machine learning model may be generated and trained based on these two types of reference RGB image data. The server may provide the trained machine learning model to the device for local storage on the device.
[0018] When the device's camera is being used (e.g., the forward-facing camera is used to take pictures and / or for audio and video conferencing), the device can employ a machine learning model to provide a predicted RGB image (e.g., a reconstructed RGB image with improved image quality). In addition, the device can select which machine learning model to use in low lighting based on the amount of ambient light. For example, in a dim environment where the brightness is not too low, RGB image data captured simultaneously with the infrared image data can be provided to a first machine learning model for predicting RGB images (e.g., a model trained with concurrent RGB images in low lighting). If the brightness is too low, RGB image data captured before the infrared image in good lighting can be provided to a second machine learning model for predicting RGB images (e.g., a model trained with previous RGB images in good lighting).
[0019] Figure 1 An exemplary network environment for predicting RGB images using machine learning according to one or more implementations is shown. However, not all of the components depicted may be used in all implementations, and one or more implementations may include additional or different components than those shown in the figures. Changes in the arrangement and type of these components may be made without departing from the spirit or scope of the claims listed herein. Additional components, different components, or fewer components may be provided.
[0020] The network environment 100 includes electronic devices 102, 103, and 104 (hereinafter referred to as 102-104), a network 106, a server 108, and an image training database 110. The network 106 may be communicatively coupled (directly or indirectly) to any two or more of the electronic devices 102-104, the server 108, and / or the image training database 110, for example. In one or more specific implementations, the network 106 may be an interconnected network that may include the Internet or a device communicatively coupled to the Internet. For the purpose of explanation, the network environment 100 is described in detail in detail. Figure 11 is shown as including electronic devices 102-104, a single server 108, and a single image training database 110; however, network environment 100 may include any number of electronic devices, any number of servers, and any number of image training databases.
[0021] One or more of the electronic devices 102-104 may be, for example, a portable computing device such as a laptop computer, a smart phone, a smart speaker, a peripheral device (e.g., a digital camera, a headset), a tablet device, a wearable device (such as a smart watch, a band, etc.), or any other suitable device including, for example, one or more wireless interfaces, such as a WLAN (e.g., WiFi) radio, a cellular radio, a Bluetooth radio, a Zigbee radio, a near field communication (NFC) radio, and / or other radios. Figure 1 In the embodiment, by way of example, electronic device 102 is shown as a smart phone, electronic device 103 is shown as a smart watch, and electronic device 104 is shown as a laptop computer. Each of electronic devices 102-104 may be and / or may include the following with respect to Figure 2 The electronic device and / or the following with respect to Figure 7 All or part of the electronic system described.
[0022] The server 108 may be and / or may include the following with respect to Figure 7 The server 108 may include one or more servers, such as a server cloud. For purposes of explanation, a single server 108 is shown and discussed with respect to various operations. However, the operations described herein may be performed by one or more servers, and each different operation may be performed by the same or different servers. In addition, the image training database 110 may be stored in a separate computer. Figure 1 108. However, all or part of the image training database 110 may be stored locally relative to the server 108 instead.
[0023] In one or more specific implementations, server 108 may be used to generate, train, and / or update a machine learning model that is configured to provide a predicted RGB image as an output based on the received infrared and / or RGB image data. For example, the machine learning model may be trained using infrared image data and / or reference RGB image data (e.g., captured simultaneously with the infrared image data and / or captured before the infrared image data), as provided to image training database 110 by one or more of electronic devices 102-104.
[0024] As described herein, different interactions may occur between the electronic devices 102-104, the server 108, and the image training database 110. For example, one type of interaction may be uploading infrared image data and reference RGB data to the image training database 110 so that the server 108 can train and update the machine learning model based on the uploaded image data. Another type of interaction may be downloading of machine learning models by the electronic devices 102-104. For example, these machine learning models may be downloaded as part of a software update (e.g., of an operating system and / or an application using a device camera), or as an updated machine learning model that becomes available for use by the server 108.
[0025] Figure 2 An exemplary electronic device 102 is shown that can implement the subject system for predicting RGB images using machine learning according to one or more specific implementations. For the purpose of explanation, this document mainly refers to the electronic device 102. Figure 2 .However, Figure 2 Corresponds to Figure 1 Any of the electronic devices 102-104 of the electronic device. However, not all of the components depicted may be used in all specific implementations, and one or more specific implementations may include additional or different components than those shown in the figures. Changes in the arrangement and type of these components may be made without departing from the spirit or scope of the claims listed herein. Additional components, different components, or fewer components may be provided.
[0026] The electronic device 102 may include a processor 202, a memory 204, a communication interface 206, and one or more image sensors 208. The processor 202 may include appropriate logic components, circuits, and / or code to enable processing of data and / or control of the operation of the electronic device 102. In this regard, the processor 202 may be enabled to provide control signals to various other components of the electronic device 102. The processor 202 may also control the transfer of data between the various parts of the electronic device 102. In addition, the processor 202 may enable implementation of an operating system or otherwise execute code to manage the operation of the electronic device 102.
[0027] The memory 204 may include suitable logic components, circuits, and / or code to enable storage of various types of information, such as received data, generated data, code, and / or configuration information. The memory 204 may include, for example, a random access memory (RAM), a read-only memory (ROM), flash memory, and / or a magnetic storage device.
[0028] The communication interface 206 may include suitable logic components, circuitry, and / or code that may enable wired or wireless communication, such as between any of the electronic devices 102-104, the server 108, and / or the image training database 110. The communication interface 206 may include, for example, one or more of a Bluetooth communication interface, a cellular interface, an NFC interface, a Zigbee communication interface, a WLAN communication interface, a USB communication interface, or generally, any communication interface.
[0029] The image sensor 208 may be used to capture image data corresponding to a subject (e.g., a person's face). The image sensor 208 may correspond to an RGB image sensor and / or an infrared image sensor. The image data captured by the image sensor 208 may indicate the color, depth, 2D, and / or 3D features of the subject. In one or more specific implementations, the electronic device 102 may also include an ambient light sensor (not shown) that can detect the amount of ambient light in the current environment of the electronic device 102.
[0030] In one or more specific implementations, one or more of the processor 202, memory 204, communication interface 206, image sensor 208, and / or one or more portions thereof may be implemented in software (e.g., subroutines and code), in hardware (e.g., an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a programmable logic device (PLD), a controller, a state machine, a gated logic component, a discrete hardware component, or any other suitable device), and / or a combination of both.
[0031] Figure 3 An example of an input image that can be used to generate a predicted RGB output image according to one or more specific implementations is shown. For the purpose of explanation, this document mainly refers to the electronic device 102. Figure 3 .However, Figure 3 Corresponds to Figure 1 Any one of the electronic devices 103-104.
[0032] As described above, the image quality of a device camera (e.g., a forward-facing camera) may vary based on ambient lighting conditions. In dimly lit environments, the image quality may be degraded and unsuitable for the user. Figure 3 In the example of , RGB image 302 corresponds to an RGB image captured by an RGB image sensor (e.g., one of image sensors 208) of electronic device 102 in a low lighting environment. As shown, the image quality of RGB image 302 is relatively poor because it is difficult to see the facial feature structure of the subject; however, the user's appearance is still visible in RGB image 302.
[0033] Figure 3Also shown is infrared image 304 that was captured simultaneously with RGB image 302. Infrared image 304 may have been captured by an infrared image sensor (e.g., one of image sensors 208) of electronic device 102 in the same dim environment. Infrared image 304 has improved visibility with respect to facial features (e.g., eyes, nose, mouth) relative to RGB image 302. However, infrared image 304 lacks color and may appear unnatural to a user.
[0034] also, Figure 3 A predicted RGB image 306 is shown, which may correspond to an output provided by a machine learning model as described herein. The machine learning model may have been trained to output a predicted RGB image of a subject based on an infrared image of the subject and a reference RGB image captured simultaneously and / or previously. Therefore, a machine learning model may be employed to generate predicted RGB image 306 relative to RGB image 302 and captured infrared image 304. In one or more specific implementations, the image quality of predicted RGB image 306 may be more desirable to a user relative to RGB image 302, infrared image 304, and / or a modified image (not shown) generated using general image processing techniques (e.g., adjusting contrast, brightness, and / or color values based on preset values), infrared image 304, and / or a modified image (not shown).
[0035] Figure 4 An example of a machine learning model generator 400 according to one or more specific implementations is shown. For purposes of explanation, this document primarily describes the server 108 and the electronic device 102 (e.g., although any of the electronic devices 102-104 may be applicable). Figure 4 . In one or more specific implementations, the machine learning model generator 400 may be implemented by one or more software modules running on a processor of the server 108 and / or any other device. As another example, the machine learning model generator 400 may be implemented by one or more software modules implemented by custom hardware (e.g., one or more coprocessors). However, not all of the depicted components may be used in all specific implementations, and one or more specific implementations may include additional or different components than those shown in the figures. Changes in the arrangement and type of these components may be made without departing from the spirit or scope of the claims listed herein. Additional components, different components, or fewer components may be provided.
[0036] like Figure 4As shown, the machine learning model generator 400 obtains an image 402 as input from the image training database 110 in order to generate, train and / or update one or more machine learning models 416. In one or more specific implementations, the machine learning model generator 400 includes a pre-processing module 404, which in turn includes a focus adjustment component 406 and a resolution adjustment component 408. However, the pre-processing module 404 may generally include any image processing component. The machine learning model generator 400 also includes a training module 410, which in turn includes a face segmentation component 412 and a skin segmentation component 414.
[0037] In one or more specific implementations, the image training database 110 corresponds to an image database uploaded by a plurality of electronic devices (e.g., any of the electronic devices 102-104) and / or received from any other source (such as an image repository). For example, when uploading a training image 402 for a subject, the electronic device 102 may capture a real-time infrared image (e.g., captured by an infrared image sensor), a reference RGB image (e.g., obtained simultaneously with the infrared image data and / or obtained before the infrared image data), and a target RGB image (e.g., captured by an RGB image sensor).
[0038] The type of reference RGB image uploaded to the image training database 110 may vary depending on the type of machine learning model being trained. For example, a previous reference RGB image (e.g., that is not concurrent with the real-time infrared image) may be uploaded when training a "tuning" machine learning model, which may correspond to fine-tuning a video (e.g., for audio and video conferencing) and / or a single frame image (e.g., for a photo). The reference RGB image may be captured by an RGB image sensor of the electronic device 102. The reference RGB image may be, for example, a well-lit image captured in a well-lit environment and / or using a device-provided flash. In one example, the reference RGB image may be a video frame that is a preset number of frames (e.g., 5 frames before) prior to the current infrared image. In another example, the reference RGB image may be a well-lit image of a person's face captured in a session separate from the current image capture session (e.g., an image of a user's face selected from a photo library of the electronic device 102 using facial recognition technology).
[0039] In addition, for adjusting the machine learning model, the target image RGB image can be an RGB image that is well-lit and concurrent with the real-time infrared image of the subject (e.g., a person's face). Therefore, the real-time infrared image and the well-lit RGB reference image before the real-time infrared image together with the well-lit RGB image concurrent with the infrared image can be used as the target (or expected) output to train the adjustment machine learning model.
[0040] Another type of machine learning model is a "denoising" machine learning model, which may correspond to low lighting simulation. An RGB image may be uploaded (e.g., concurrent with the real-time infrared image) for training the denoising machine learning model. The concurrent RGB image may be captured by an RGB image sensor of the electronic device 102 under low lighting conditions.
[0041] In addition, for the denoising machine learning model, the target RGB image can be a well-lit image of the subject. For example, the target RGB image can be captured by temporarily changing a low-lighting environment (e.g., corresponding to an RGB image concurrent with an infrared image) to a well-lit environment, for example, by temporarily turning on the lights and / or using a flash provided by the device. Therefore, the denoising machine learning model can be trained using a real-time infrared image and a low-lit reference RGB image together with a well-lit RGB image as target (or expected) outputs. In one or more specific implementations, when a user takes a photo in a low-lighting environment using a flash, the user's device can capture a low-lighting image (e.g., a reference image) immediately before the flash is triggered, and can subsequently capture an IR image and a well-lit image (e.g., a target image) when the flash has illuminated the user's face.
[0042] Uploading the real-time infrared image data, reference RGB data, and target RGB data to the image training database 110 may correspond to a coordinated phased process in which images (e.g., faces) of opted-in participants are captured. For example, as part of a group photo session, participants may take photos while sitting in a set-up scene (e.g., for capturing images of good lighting and / or low lighting). The images may be uploaded to the server 108 after the group photo session.
[0043] Alternatively or in addition, the participant may take a picture (e.g., a selfie) based on guidance provided to the participant, and / or the participant's device may automatically capture low-light images, good-light images, and IR images whenever the participant takes a picture with a flash in low-light conditions. In this case, images 402 may be periodically uploaded to the image training database 110 based on predefined settings on the electronic device 102. For example, the upload may occur when the electronic device 102 is powered on at night (e.g., when there is no need to worry about power) and / or when the electronic device 12 is connected to the network 106 (e.g., paired with a Wi-Fi base station).
[0044] In one or more specific implementations, pre-processing module 404 is an optional module for preparing images before images 402 are provided to training module 410. For example, focus adjustment component 406 can be used to compensate for different positions of the infrared image sensor and the RGB image sensor on electronic device 102. The different positions can cause the real-time infrared image, the reference RGB image, and / or the target RGB image to be misaligned with respect to the focus. Therefore, focus adjustment component 406 can be configured to adjust one or more of the real-time infrared image, the reference RGB image, and the target RGB image so as to be more closely aligned with each other.
[0045] In addition, the resolution adjustment component 408 can be used to compensate for image resolution differences between the infrared image, the reference RGB image, and the target RGB image so that they correspond more closely to each other. For example, the resolution adjustment component 408 can be configured to up-convert or down-convert one or more of the images so that the corresponding resolutions match.
[0046] As described above, the pre-processing module 404 is an optional module that can facilitate accelerated training of the machine learning model 416. For example, by more closely aligning the images 402 with respect to focal length and / or changing the image resolution to more closely match, the training of the machine learning model 416 can be facilitated. However, the machine learning model 416 can be trained with the original, unaltered images 402. For example, by training with multiple images and subjects (e.g., thousands of subjects), the machine learning model 416 can automatically account for alignment differences with respect to focal length and / or resolution.
[0047] In one or more specific implementations, the training module 410 is configured to receive real-time infrared image data, reference RGB data, and target RGB data (e.g., corresponding to multiple subjects), and generate a machine learning model 416. The facial segmentation component 412 can be configured to determine facial features relative to the provided image 402. Facial features can include, but are not limited to, the general shape and size of the face, the location of facial feature structures (e.g., eyes, nose, mouth, ears, etc.), and / or the shape of facial feature structures. For example, the shape, location, and size of facial feature structures can be determined by the real-time infrared image data (e.g., which can be related to the depth of the object), the reference RGB data, and / or the target RGB data (e.g., the expected output) provided to the training module 410.
[0048] In addition, the skin segmentation component 414 can be configured to determine skin features relative to the provided image 402. Skin features can include, but are not limited to, skin color and skin texture of various facial feature structures. For example, skin color and skin texture can be determined by real-time infrared image data, reference RGB data, and target RGB data (e.g., expected output) provided to the training module 410.
[0049] Based on the facial features determined by the facial segmentation component 412 and / or the skin features determined by the skin segmentation component 414, the training module can generate and train one or more machine learning models 416. Thus, the machine learning models 416 can be trained to output a predicted RGB image with enhanced image quality (e.g., a color representation of the infrared image with more accurate and natural facial and / or skin features). As described above, the machine learning models 416 may include a conditioning machine learning model (e.g., trained using a well-lit RGB image captured prior to the associated IR image) and a denoising machine learning model (e.g., trained using a low-lit RGB image captured simultaneously with the associated IR image), which will be described below with respect to Figure 5 Discuss in more detail.
[0050] In one or more specific implementations, one or more of the machine learning model generator 400, the preprocessing module 404, the focus adjustment component 406, the resolution adjustment component 408, the training module 410, the facial segmentation component 412, the skin segmentation component 414 and the machine learning model 416 are implemented as software instructions stored in a memory, which, when executed by a processor of the server 108, causes the processor to perform specific functions.
[0051] In one or more specific implementations, one or more of the machine learning model generator 400, the pre-processing module 404, the focus adjustment component 406, the resolution adjustment component 408, the training module 410, the face segmentation component 412, the skin segmentation component 414, and the machine learning model 416 may be implemented in software (e.g., subroutines and code) and / or hardware (e.g., an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a programmable logic device (PLD), a controller, a state machine, a gated logic component, a discrete hardware component, or any other suitable device) and / or a combination of both. In one or more specific implementations, some or all of the depicted components may share hardware and / or circuits, and / or one or more of the depicted components may utilize dedicated hardware and / or circuits. Additional features and functionality of these modules according to aspects of the subject technology are further described in the present disclosure.
[0052] Figure 5An example of an RGB image predictor 500 that predicts an RGB image using a machine learning model 416 according to one or more specific implementations is shown. For example, the RGB image predictor 500 can be implemented by one or more software modules running on a processor 202 of an electronic device 102 and / or any other device (e.g., any of the electronic devices 103-104). In another example, the RGB image predictor 500 can be implemented by custom hardware (e.g., one or more coprocessors) configured to perform the functions of the RGB image predictor 500. However, not all of the depicted components can be used in all specific implementations, and one or more specific implementations may include additional or different components than those shown in the figure. Changes in the arrangement and type of these components may be made without departing from the essence or scope of the claims listed herein. Additional components, different components, or fewer components may be provided.
[0053] like Figure 5 As shown, the RGB image predictor 500 takes as input an image 502 (e.g., captured by the image sensor 208 of the electronic device 102) and outputs a predicted RGB image 514. In one or more specific implementations, the RGB image predictor 500 includes a pre-processing module 504, which in turn includes a focus adjustment component 506 and a resolution adjustment component 508. The RGB image predictor 500 also includes an RGB output module 510, which in turn includes a machine learning model selection component 512 and a machine learning model 416.
[0054] As described above, the electronic device 102 may download the machine learning model 416 from the server 108 via the network 106. The machine learning model may be downloaded by the electronic device 102 as part of a software update (e.g., of an operating system and / or an application using a device camera) or as an updated machine learning model that becomes available for use by the server 108.
[0055] In one or more specific implementations, image 502 corresponds to real-time infrared image data and reference RGB data obtained simultaneously on electronic device 102. For example, a user may be participating in an audio or video conference, or may be taking a photo (e.g., a selfie) using the device's forward-facing camera. In some cases, the ambient lighting may be low, so that enhanced RGB output of the camera is desired. Therefore, the reference RGB data may correspond to concurrent RGB data captured under low lighting conditions. If the ambient lighting is too low (e.g., the ambient lighting is below a predefined lux threshold detected by an ambient light sensor), the reference RGB data may be more suitable for corresponding to RGB data with good lighting captured before the infrared image data (e.g., a previous image in a photo library).
[0056] In one or more specific implementations, the pre-processing module 504 can be similar to the above with respect to Figure 4 The pre-processing module 404 discussed above. For example, the pre-processing module 504 may be an optional module for accelerating processing by the machine learning model 416. The focus adjustment component 506 may align the image 502 with respect to the focus, and the resolution adjustment component 508 may change the resolution of the image 502 to more closely match. Assume that the machine learning model 416 is (e.g., Figure 4 If the machine learning model 416 is trained with the preprocessed image 402 (provided by the preprocessing module 404 in ), the data provided to the RGB output module 510 may also be preprocessed (e.g., by the preprocessing module 504), which may facilitate the generation of the predicted RGB image 514. However, the machine learning model 416 may also generate the predicted RGB image 514 without using the preprocessing module 504.
[0057] In one or more specific implementations, background subtraction can be performed with respect to image 502 (e.g., infrared image data and / or reference RGB data). Thus, the background image can be removed and replaced with a solid color (e.g., black, white, or a user-selected color) so that only the subject (e.g., a person's face) remains in the image. Background subtraction can be performed by pre-processing module 405, or can be performed by RGB image predictor 500 before pre-processing is performed by pre-processing module 405.
[0058] In one or more specific implementations, the RGB output module 510 is configured to generate a predicted RGB image 514 based on the output from the machine learning model 416. As described above, the machine learning model may include at least a denoising machine learning model and a conditioning machine learning model. In this regard, the machine learning model selection component 512 may be configured to select which machine learning model of the machine learning model 416 will be used to generate the predicted RGB image 514.
[0059] A denoising machine learning model (e.g., trained using a low-light RGB image captured simultaneously with the corresponding IR image) can provide enhanced RGB images in environments with low lighting. However, in situations where the ambient lighting is too low (e.g., below a threshold lux value for the incoming RGB image), the RGB image data may not provide sufficient data to enhance the real-time RGB image. Therefore, a conditioning machine learning model (e.g., trained using a well-lit RGB image captured prior to the associated IR image) can be used instead to provide enhanced RGB images in environments where the lighting is too low (e.g., below a threshold lux value).
[0060] Thus, the machine learning model selection component 512 can determine the amount of ambient lighting. If the amount of ambient light is below a threshold lux value, the machine learning model selection component 512 can select an adjustment machine learning model to generate a predicted RGB image 514. Otherwise, the machine learning model selection component 512 can select a denoising machine learning model to generate a predicted RGB image 514. When a new image 502 is provided, the machine learning model selection component 512 can continuously or periodically monitor the amount of light (e.g., based at least in part on an ambient light sensor), and can switch between a denoising machine learning model and an adjustment machine learning model accordingly.
[0061] As described above, the machine learning model 416 may have been trained at least in part based on the face segmentation component 412 and the skin segmentation component 414. Therefore, the machine learning model 416 can be configured to generate a predicted RGB image 514 based on facial features associated with at least one of the face segmentation or the skin segmentation. For example, the machine learning model 416 can be configured to receive face and / or skin segmentation data as input to generate the RGB image 514 accordingly.
[0062] In the case of a good lighting environment where the amount of ambient light is above a second threshold lux value (e.g., based on incoming RGB data concurrent with the infrared image data), it may not be necessary to use machine learning model 416 to output predicted RGB image 514. Therefore, RGB image predictor 500 can be configured to continuously or periodically monitor the amount of light (e.g., based at least in part on an ambient light sensor) when a new image 502 is provided to decide whether to generate predicted RGB image 514 (e.g., and bypass the use of machine learning model 416).
[0063] In one or more specific implementations, one or more of the RGB image predictor 500, the pre-processing module 504, the focus adjustment component 506, the resolution adjustment component 508, the RGB output module 510, the machine learning model selection component 512, and the machine learning model 416 are implemented as software instructions stored in the memory 204, which, when executed by the processor 202, causes the processor 202 to perform specific functions.
[0064] In one or more specific implementations, one or more of the RGB image predictor 500, the pre-processing module 504, the focus adjustment component 506, the resolution adjustment component 508, the RGB output module 510, the machine learning model selection component 512, and the machine learning model 416 may be implemented in software (e.g., subroutines and code), hardware (e.g., application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), programmable logic devices (PLDs), controllers, state machines, gated logic components, discrete hardware components, or any other suitable devices), and / or a combination of both. In one or more specific implementations, some or all of the depicted components may share hardware and / or circuits, and / or one or more of the depicted components may utilize dedicated hardware and / or circuits. Additional features and functionality of these modules according to aspects of the subject technology are further described in the present disclosure.
[0065] Figure 6 A flowchart of an exemplary process 600 for predicting an RGB image using machine learning according to one or more specific implementations is shown. Figure 1 The process 600 is described with reference to the electronic device 102 of FIG. However, the process 600 is not limited to the electronic device 102, and one or more blocks (or operations) of the process 600 may be performed by one or more other components and other suitable devices (e.g., any one of the electronic devices 103-104). Further for the purpose of explanation, the blocks of the process 600 are described herein as occurring sequentially or linearly. However, multiple blocks of the process 600 may occur in parallel. In addition, the blocks of the process 600 do not have to be performed in the order shown, and / or one or more blocks of the process 600 do not have to be performed and / or may be replaced by other operations.
[0066] The electronic device 102 acquires an infrared image of the subject (602). The electronic device 102 acquires a reference RGB image of the subject (604). The reference RGB image of the subject may be acquired by the RGB image sensor while capturing the IR image. Alternatively or in addition thereto, the reference RGB image of the subject may be an RGB image of the subject captured before the IR image is captured (e.g., from a photo library, or a preset number of frames before the current frame).
[0067] The electronic device 102 provides the infrared image and the reference RGB image to a machine learning model that has been trained to output a predicted RGB image of the subject based on the infrared image and the corresponding RGB image of the subject (606). The electronic device 102 may perform background subtraction with respect to the subject before providing the infrared image and the reference RGB image to the machine learning model.
[0068] The electronic device 102 may perform a focus adjustment on at least one of the infrared image or the reference RGB image before providing the infrared image and the reference RGB image to the machine learning model. Alternatively or in addition, the electronic device 102 may perform a resolution adjustment on at least one of the infrared image or the reference RGB image before providing the infrared image and the reference RGB image to the machine learning model.
[0069] The machine learning model may be further trained based on a target RGB image that is obtained simultaneously with a corresponding IR / RGB image pair and is captured in an environment where the ambient light level is above a predefined lux level (e.g., corresponding to good lighting). In one or more specific implementations, the machine learning model may be configured to receive estimated facial features corresponding to at least one of a face segmentation or a skin segmentation, and an output of the machine learning model may be based at least in part on the estimated facial features.
[0070] In one or more specific implementations, the electronic device 102 may select a machine learning model from a plurality of machine learning models for RGB image prediction based on the lux level of the user's current environment. The machine learning model may have been trained to predict RGB images for different levels of ambient light.
[0071] The electronic device 102 provides a predicted RGB image of the subject based on the output of the machine learning model (608). The predicted RGB image may correspond to a color representation of the infrared image.
[0072] As described above, one aspect of the present technology is the collection and use of data obtained from specific and legitimate sources for generating and / or capturing RGB images and IR images. The present disclosure contemplates that, in some instances, the collected data may include personal information data that uniquely identifies or can be used to identify a specific person. Such personal information data may include demographic data, location-based data, online identifiers, phone numbers, email addresses, home addresses, data or records related to a user's health or fitness level (e.g., vital signs measurements, medication information, exercise information), date of birth, or any other personal information.
[0073] The present disclosure recognizes that the use of such personal information data in the present technology can be used to benefit users. For example, personal information data can be used to generate RGB images. Therefore, the use of such personal information data can improve image quality. In addition, the present disclosure also anticipates other uses of personal information data that benefit users. For example, health and fitness data can be used according to the user's preferences to provide insights into their overall health, or can be used as positive feedback to individuals who use technology to pursue health goals.
[0074] This disclosure envisions that entities responsible for collecting, analyzing, disclosing, transmitting, storing or otherwise using such personal information data will comply with established privacy policies and / or privacy practices. Specifically, such entities will be expected to implement and consistently apply privacy practices that are generally recognized as meeting or exceeding the requirements of the industry or government that maintain user privacy. Such information about the use of personal data should be prominently and easily accessible to users, and should be updated as the collection and / or use of data changes. The user's personal information should be collected only for legitimate use. In addition, such collection / sharing should only occur after receiving user consent or other legal basis specified in applicable law. In addition, such entities should consider taking any necessary steps to defend and safeguard access to such personal information data and ensure that others who have access to personal information data comply with their privacy policies and processes. In addition, such entities may subject themselves to third-party assessments to demonstrate their compliance with widely accepted privacy policies and practices. In addition, policies and practices should be adjusted for specific types of personal information data collected and / or accessed, and applied to applicable laws and standards, including specific considerations that are exclusive to jurisdictions that can be used to impose higher standards. For example, in the United States, collection or access to certain health data may be governed by federal and / or state laws, such as the Health Insurance Portability and Accountability Act (HIPAA); while health data in other countries may be subject to other regulations and policies and should be handled accordingly.
[0075] Regardless of the foregoing, the present disclosure also contemplates implementation schemes in which users selectively block the use or access of personal information data. That is, the present disclosure contemplates that hardware elements and / or software elements may be provided to prevent or block access to such personal information data. For example, in the case of generating RGB images, the technology of the present invention may be configured to allow users to choose to "opt in" or "opt out" to participate in the collection of personal information data at any time during or after registration for the service. In addition to providing "opt-in" and "opt-out" options, the present disclosure contemplates providing notifications related to access or use of personal information. For example, a user may be notified that their personal information data will be accessed when downloading an application, and then reminded again just before the personal information data is accessed by the application.
[0076] In addition, it is an object of the present disclosure that personal information data should be managed and processed to minimize the risk of unintentional or unauthorized access or use. Risks can be minimized by limiting data collection and deleting data once it is no longer needed. In addition, and when applicable, including in certain health-related applications, data de-identification can be used to protect the privacy of users. De-identification can be facilitated by removing identifiers, controlling the amount or specificity of stored data (e.g., collecting location data at a city level rather than at an address level), controlling how data is stored (e.g., aggregating data across users), and / or other methods such as differential privacy, where appropriate.
[0077] Therefore, while the present disclosure broadly covers the use of personal information data to implement one or more of the various disclosed embodiments, the present disclosure also contemplates that various embodiments may be implemented without access to such personal information data. That is, various embodiments of the present technology will not fail to function properly due to the lack of all or part of such personal information data.
[0078] Figure 7 1 shows an exemplary electronic system that can be used to implement various aspects of the subject technology according to one or more specific implementations. Electronic system 700 can be used to generate reference Figure 1 to Figure 2 Any electronic device or server that may include and / or may be a part of the features and processes described herein includes, but is not limited to, laptop computers, tablet computers, smart phones, and wearable devices (e.g., smart watches, fitness bands). Electronic system 700 may include various types of computer-readable media and interfaces for various other types of computer-readable media. Electronic system 700 includes permanent storage device 702, system memory 704 (and / or buffer), input device interface 706, output device interface 708, bus 710, ROM 712, one or more processing units 714, one or more network interfaces 716, image sensor 718, and / or subsets and variations thereof.
[0079] The bus 710 generally represents all system buses, peripheral busses, and chipset buses that communicatively connect the various internal devices of the electronic system 700. In one or more specific implementations, the bus 710 communicatively connects one or more processing units 714 with the ROM 712, the system memory 704, and the permanent storage device 702. The one or more processing units 714 retrieve instructions to be executed and data to be processed from these various memory units in order to perform the processes disclosed in the present subject matter. In different specific implementations, the one or more processing units 714 can be a single processor or a multi-core processor.
[0080] ROM 712 stores static data and instructions required by one or more processing units 714 and other modules of electronic system 700. On the other hand, permanent storage device 702 can be a read-write memory device. Permanent storage device 702 can be a non-volatile memory unit that stores instructions and data even when electronic system 700 is turned off. In one or more specific implementations, a mass storage device (such as a magnetic or optical disk and its corresponding disk drive) can be used as permanent storage device 702.
[0081] In one or more specific implementations, a removable storage device (such as a floppy disk, a flash drive and its corresponding disk drive) can be used as the permanent storage device 702. Like the permanent storage device 702, the system memory 704 can be a read-write memory device. However, unlike the permanent storage device 702, the system memory 704 can be a volatile read-write memory, such as a random access memory. The system memory 704 can store any of the instructions and data that one or more processing units 714 may need at runtime. In one or more specific implementations, the processes disclosed in the subject matter are stored in the system memory 704, the permanent storage device 702, and / or the ROM 712. The one or more processing units 714 retrieve instructions to be executed and data to be processed from these various memory units in order to perform the processes of one or more specific implementations.
[0082] The bus 710 is also connected to an input device interface 706 and an output device interface 708. The input device interface 706 enables a user to transmit information and select commands to the electronic system 700. Input devices that can be used with the input device interface 706 may include, for example, an alphanumeric keyboard and a pointing device (also referred to as a "cursor control device"). The output device interface 708 may, for example, enable the display of images generated by the electronic system 700. Output devices that can be used with the output device interface 708 may include, for example, a printer and a display device, such as a liquid crystal display (LCD), a light emitting diode (LED) display, an organic light emitting diode (OLED) display, a flexible display, a flat panel display, a solid state display, a projector, or any other device for outputting information.
[0083] One or more implementations may include a device that acts as both an input device and an output device, such as a touch screen. In these implementations, the feedback provided to the user may be any form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and the input from the user may be received in any form, including acoustic, voice, or tactile input.
[0084] The bus 710 is also connected to an image sensor 718. In one or more implementations, the image sensor 718 can be used to capture image data, including but not limited to RGB image data or infrared image data.
[0085] Finally, if Figure 7As shown, bus 710 also couples electronic system 700 to one or more networks and / or to one or more network nodes via one or more network interfaces 716. In this manner, electronic system 700 may be part of a computer network, such as a LAN, a wide area network ("WAN"), or an intranet, or may be part of a network of networks, such as the Internet. Any or all components of electronic system 700 may be used with the subject disclosure.
[0086] Implementations within the scope of the present disclosure may be implemented in part or in whole using a tangible computer-readable storage medium (or multiple tangible computer-readable storage media of one or more types) programmed with one or more instructions. Tangible computer-readable storage media may also be non-transitory in nature.
[0087] Computer-readable storage media can be any storage media that can be read, written, or otherwise accessed by a general or special computing device, including any processing electronics and / or processing circuitry capable of executing instructions. For example, without limitation, computer-readable media can include any volatile semiconductor memory, such as RAM, DRAM, SRAM, T-RAM, Z-RAM, and TTRAM. Computer-readable media can also include any non-volatile semiconductor memory, such as ROM, PROM, EPROM, EEPROM, NVRAM, flash memory, nvSRAM, FeRAM, FeTRAM, MRAM, PRAM, CBRAM, SONOS, RRAM, NRAM, racetrack memory, FJG, and Millipede memory.
[0088] In addition, the computer-readable storage medium may include any non-semiconductor memory, such as optical disk storage, magnetic disk storage, magnetic tape, other magnetic storage devices, or any other medium capable of storing one or more instructions. In one or more specific implementations, the tangible computer-readable storage medium may be directly coupled to the computing device, while in other specific implementations, the tangible computer-readable storage medium may be indirectly coupled to the computing device, for example, via one or more wired connections, one or more wireless connections, or any combination thereof.
[0089] Instructions can be directly executable, or can be used to develop executable instructions. For example, instructions can be implemented as executable or non-executable machine code, or can be implemented as high-level language instructions that can be compiled to produce executable or non-executable machine code. In addition, instructions can also be implemented as data, or can include data. Computer executable instructions can also be organized in any format, including routines, subroutines, programs, data structures, objects, modules, applications, applets, functions, etc. As recognized by those skilled in the art, the details including but not limited to the number, structure, sequence and organization of instructions can be significantly different without changing the underlying logic, function, processing and output.
[0090] Although the above discussion mainly involves microprocessors or multi-core processors that execute software, one or more implementations are performed by one or more integrated circuits such as ASICs or FPGAs. In one or more implementations, such integrated circuits execute instructions stored on the circuits themselves.
[0091] Those skilled in the art will recognize that the various illustrative frames, modules, elements, parts, methods and algorithms described herein can be implemented as electronic hardware, computer software or a combination of the two. In order to illustrate this interchangeability of hardware and software, various illustrative frames, modules, elements, parts, methods and algorithms have been generally described above according to functionality. Whether such functionality is implemented as hardware or software depends on the specific application and the design constraints imposed on the entire system. The technician can implement the described functionality in different ways for each specific application. Various parts and frames can be arranged differently (e.g., arranged in different orders, or divided in different ways) without departing from the scope of the subject technology.
[0092] It should be understood that the specific order or the hierarchical structure of the frame in the process disclosed by the present invention are the illustration of exemplary methods. Based on the design preferred requirements, it should be understood that the specific order or the hierarchical structure of the frame in the process can be rearranged or all the frames shown are executed. Any frame in these frames can be executed simultaneously. In one or more specific implementations, multitasking and parallel processing may be advantageous. In addition, the division of each system component in the above-mentioned specific implementation should not be understood as requiring such division in all specific implementations, and it should be understood that program components and systems can be generally integrated together in a single software product or encapsulated in multiple software products.
[0093] As used in this specification and any claims of this patent application, the terms "base station", "receiver", "computer", "server", "processor" and "memory" all refer to electronic devices or other technical devices. These terms exclude people or groups of people. For the purpose of this specification, the term "display" or "displaying" means displaying on an electronic device.
[0094] As used herein, the phrase "at least one of" following a list of items, any of which is separated by the terms "and" or "or", modifies the list as a whole, rather than each member (i.e., each item) of the list. The phrase "at least one of" does not require selection of at least one of each item listed; rather, the phrase allows for a meaning that includes at least one of any one item and / or at least one of any combination of items and / or at least one of each item. For example, the phrases "at least one of A, B, and C" or "at least one of A, B, or C" each refer to only A, only B, or only C; any combination of A, B, and C; and / or at least one of each of A, B, and C.
[0095] The predicate words "configured to," "operable to," and "programmed to" do not imply any particular tangible or intangible modification of a subject matter but are intended to be used interchangeably. In one or more specific implementations, a processor configured to monitor and control an operation or component may also mean that the processor is programmed to monitor and control the operation or that the processor is operable to monitor and control the operation. Likewise, a processor configured to execute code may be interpreted as a processor programmed to execute code or operable to execute code.
[0096] Phrases such as aspect, this aspect, on the other hand, some aspects, one or more aspects, a specific implementation, this specific implementation, another specific implementation, some specific implementations, one or more specific implementations, an embodiment, this embodiment, another embodiment, some embodiments, one or more embodiments, configuration, this configuration, other configurations, some configurations, one or more configurations, subject technology, disclosure, the present disclosure, other variations thereof, etc. are for convenience and do not mean that the disclosure involving such one or more phrases is essential to the subject technology, nor does it mean that such disclosure applies to all configurations of the subject technology. Disclosures involving such one or more phrases may apply to all configurations or one or more configurations. Disclosures involving such one or more phrases may provide one or more examples. Phrases such as aspect or some aspects may refer to one or more aspects and vice versa, and this applies similarly to the other aforementioned phrases.
[0097] The word "exemplary" is used herein to mean "serving as an example, instance, or illustration." Any implementation described herein as "exemplary" or as an "example" is not necessarily to be construed as preferred or advantageous over other implementations. Furthermore, to the extent that the terms "including," "having," and the like are used in the specification or claims, such terms are intended to be inclusive, in a manner similar to the way the term "comprising" is interpreted when used as a transitional word in a claim.
[0098] All structural and functional equivalents to the elements of the various aspects described throughout this disclosure that are known or later become known to those of ordinary skill in the art are expressly incorporated herein by reference and are intended to be covered by the claims. In addition, nothing disclosed herein is intended to be made available to the public regardless of whether the disclosure is explicitly stated in the claims. No claim element shall be interpreted under the provisions of 35 U.S.C. §112(f) unless the element is explicitly stated using the phrase “means for…” or, in the case of a method claim, the element is stated using the phrase “step for…”
[0099] The previous description is provided to enable those skilled in the art to practice the various aspects described herein. Various modifications of these aspects are apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects. Therefore, the claims are not intended to be limited to the aspects shown herein, but are intended to make the full scope consistent with the language claims, wherein reference to elements in singular values is not intended to mean "only one", but refers to "one or more", unless specifically noted. Unless otherwise specifically stated, the term "some" refers to one or more. Male pronouns (e.g., his) include female and neutral (e.g., her and its), and vice versa. Titles and subtitles (if any) are used only for convenience and do not limit the subject disclosure.
Claims
1. A method comprising: capturing, by the device, an image of a first type of subject; Acquiring, by the device, an image of a second type of the subject; providing, by the device, the images of the first type and the images of the second type as input to a machine learning model, the machine learning model having been trained to output a predicted image of the subject based on the images of the first type and the corresponding images of the second type; as well as A predicted image of the subject is provided by the device based on the output of the machine learning model. 2 . The method of claim 1 , wherein the second type of image of the subject is captured by an RGB image sensor while the first type of image is captured by another sensor. 3 . The method of claim 1 , wherein the second type of image of the subject is an RGB image of the subject captured before capturing the first type of image. The method of claim 1 , wherein the first type of image comprises an infrared image, and the predicted image corresponds to a color representation of the infrared image.
5. The method according to claim 1, further comprising: The device selects the machine learning model from a plurality of machine learning models based on the ambient lux level.
6. The method of claim 5, wherein the selected machine learning model has been trained based on a first type of image and a second type of image captured simultaneously with the corresponding subject. The method of claim 6 , wherein a lux level of an environment in which the second type of image is captured is below a predefined lux level.
8. The method of claim 5, wherein the selected machine learning model has been trained based on a first type of image and a corresponding second type of image captured prior to the first type of image. 9 . The method of claim 8 , wherein a lux level of an environment in which the corresponding second type of image is captured is higher than a predefined lux level.
10. The method of claim 1, wherein the machine learning model has been further trained based on images of a second type of target, which are captured simultaneously with capturing corresponding images of the first type in an environment where the lux level is higher than a predefined lux level.
11. A method according to claim 1, wherein the machine learning model is configured to receive estimated facial features corresponding to at least one of facial segmentation or skin segmentation, and wherein the output of the machine learning model is based at least in part on the estimated facial features.
12. The method according to claim 1, further comprising: Prior to providing the first type of image and the second type of image to the machine learning model, background subtraction is performed relative to the subject.
13. The method according to claim 1, further comprising: Prior to providing the first type of image and the second type of image to the machine learning model, a focus adjustment is performed on at least one of the first type of image or the second type of image, wherein the focus adjustment is based at least in part on a first position of a first sensor that captures the first type of image and a second position of a second sensor that captures the second type of image.
14. The method according to claim 1, further comprising: Before providing the first type of image and the second type of image to the machine learning model, a resolution adjustment is performed on at least one of the first type of image or the second type of image, wherein the resolution adjustment compensates for the resolution difference between the first type of image and the second type of image.
15. A device comprising: Infrared image sensor; at least one processor; and a memory comprising instructions that, when executed by the at least one processor, cause the at least one processor to: capturing an infrared image by the infrared image sensor; Acquire an RGB image corresponding to the infrared image; providing the infrared image and the RGB image to a machine learning model that has been trained to output a predicted RGB image based on the infrared image and the corresponding RGB image; as well as A predicted RGB image is provided based on the output of the machine learning model.
16. The apparatus according to claim 15, further comprising: An RGB image sensor is configured to capture the RGB image simultaneously with the infrared image being captured by the infrared image sensor.
17. The apparatus of claim 15, wherein the infrared image is captured prior to the infrared image. RGB image.
18. The apparatus of claim 15, wherein the predicted RGB image corresponds to a color representation of the infrared image.
19. The apparatus of claim 15, wherein the instructions further cause the at least one processor to: selecting the machine learning model from a plurality of machine learning models based on an ambient lux level, wherein the selected machine learning model has been trained based on simultaneously captured infrared images and RGB images of the corresponding subject, or The selected machine learning model has been trained based on the infrared image and the corresponding RGB image captured before the infrared image.
20. A non-transitory computer-readable storage medium comprising instructions that, when executed by one or more processors, cause the one or more processors to: acquiring an image of a first type; Acquire an image of a second type corresponding to the image of the first type; selecting a machine learning model from a plurality of machine learning models based on an ambient lux level; providing the first type of image and the second type of image to a selected machine learning model, the selected machine learning model having been trained to output a predicted color image based on the first type of image and the corresponding second type of image; and Provides a predicted color image based on the output of the selected machine learning model.
21. The method of claim 1, wherein providing, by the device based on the output of the machine learning model, the predicted image of the subject comprises: The predicted image of the subject is displayed on a display of the device.
22. The method of claim 21, wherein the first type of image of the subject corresponds to a low lighting environment and the predicted image of the subject corresponds to a good lighting environment.
23. The method of claim 22, wherein at least a portion of the subject is clearer in the predicted image than in the image of the first type.
Citation Information
Patent Citations
Adaptive action recognition method based on multi-view and multi-mode characteristics
CN103473530A
Adaptive low-illumination visible image and infrared image fusion method
CN106600572A
Fusion method of visible and infrared images based on hybrid neural network
CN108846822A
Machine learning assisted image prediction
CN112912896A
Image processing apparatus, image processing method, and program
JP2016122905A
