IP Library Granted Patent US 12,632,968
Granted Patent B2
US 12,632,968 · App. 18/537,699 · Granted May 19, 2026

Augmented reality using sky segmentation

Inventors: Erik Marshall Murphy-Chutorian (Palo Alto, CA); Nicholas John Butko (Cupertino, CA)
Assignee: Niantic Spatial, Inc.
G06T7/194G06F3/0346G06T7/80G06T19/006G06T2200/08
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,632,968
App. No.
18/537,699
Granted
May 19, 2026
Kind
B2
Abstract

An AR client device generates and uses a background model to identify portions of images that depict the sky. A background model is a model that represents where the sky is visible for the client device. To identify a sky background portion of an image, a client device can map an image onto the background model and thereby determine which portion of the image represents the sky. The client device can use the identified sky background portion to augment the image to include AR content in the sky. To generate the background model, the client device applies a background detection model to a set of images to generate background probability images. The background probability images are mapped onto a background model using orientation data captured by the client device to update the background model based on the background probability image.

Claims (50)

1 . A non-transitory computer-readable medium storing instructions that, when executed by a computing system, causes the computing system to perform operations comprising:

accessing a plurality of images captured by a client device, wherein the plurality of images comprises a first subset of images and a second subset of images;

identifying a sky background portion for each image in the first subset of images by applying a background detection model to the image, wherein the background detection model is a machine-learning model that is trained to identify pixels in an image that correspond to a sky background portion of the image;

identifying a sky background portion for each image in the second subset of images by, for each image in the second subset:

accessing a background model associated with the client device, wherein the background model is a model that indicates where sky is visible by the client device;

accessing orientation data describing an orientation of the client device when the image was captured; and

mapping the image onto the background model based on the orientation data;

augmenting each image of the plurality of images by modifying the identified sky background portion of each image of the plurality of images to include augmented-reality content; and

displaying each of the augmented images to a user through the client device.

2 . The computer-readable medium of claim 1 , wherein the plurality of images comprises frames of a video captured by the client device.

3 . The computer-readable medium of claim 2 , the operations further comprising:

assigning images of the plurality of images to the first subset of images based on a regular interval of frames in the video.

4 . The computer-readable medium of claim 1 , wherein mapping the image onto the background model comprises:

determining a field of view of the image based on the orientation data.

5 . The computer-readable medium of claim 1 , wherein the background model comprises a 3D structure that is located a set distance from the client device.

6 . The computer-readable medium of claim 1 , wherein the background model comprises a rectangular prism.

7 . The computer-readable medium of claim 1 , the operations further comprising:

updating the background model based on the identified sky background portions of the first subset of images.

8 . The computer-readable medium of claim 1 , wherein identifying a sky background portion for each image in the second subset of images comprises:

detecting an occlusion by an object based on the image; and

modifying the identified sky background portion based on the detected occlusion.

9 . The computer-readable medium of claim 8 , wherein detecting an occlusion comprises:

computing a color distribution of pixels in the identified sky background portion.

10 . The computer-readable medium of claim 8 , wherein detecting an occlusion comprises:

comparing pixel color values of pixels in the identified sky background portion to a set of reference pixel color values.

11 . A computer-implemented method comprising:

accessing a plurality of images captured by a client device, wherein the plurality of images comprises a first subset of images and a second subset of images;

identifying a sky background portion for each image in the first subset of images by applying a background detection model to the image, wherein the background detection model is a machine-learning model that is trained to identify pixels in an image that correspond to a sky background portion of the image;

identifying a sky background portion for each image in the second subset of images by, for each image in the second subset:

accessing a background model associated with the client device, wherein the background model is a model that indicates where sky is visible by the client device;

accessing orientation data describing an orientation of the client device when the image was captured; and

mapping the image onto the background model based on the orientation data;

augmenting each image of the plurality of images by modifying the identified sky background portion of each image of the plurality of images to include augmented-reality content; and

displaying each of the augmented images to a user through the client device.

12 . The computer-implemented method of claim 11 , wherein the plurality of images comprises frames of a video captured by the client device.

13 . The computer-implemented method of claim 12 , the operations further comprising:

assigning images of the plurality of images to the first subset of images based on a regular interval of frames in the video.

14 . The computer-implemented method of claim 11 , wherein mapping the image onto the background model comprises:

determining a field of view of the image based on the orientation data.

15 . The computer-implemented method of claim 11 , wherein the background model comprises a 3D structure that is located a set distance from the client device.

16 . The computer-implemented method of claim 11 , wherein the background model comprises a rectangular prism.

17 . The computer-implemented method of claim 11 , the operations further comprising:

updating the background model based on the identified sky background portions of the first subset of images.

18 . The computer-implemented method of claim 11 , wherein identifying a sky background portion for each image in the second subset of images comprises:

detecting an occlusion by an object based on the image; and

modifying the identified sky background portion based on the detected occlusion.

19 . The computer-implemented method of claim 18 , wherein detecting an occlusion comprises:

computing a color distribution of pixels in the identified sky background portion.

20 . The computer-implemented method of claim 18 , wherein detecting an occlusion comprises:

comparing pixel color values of pixels in the identified sky background portion to a set of reference pixel color values.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 16, 2025
From: NIANTIC, INC.
To: NIANTIC SPATIAL, INC.
Reel/Frame 071555/0833 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 6, 2024
From: MURPHY-CHUTORIAN, ERIK MARSHALL; BUTKO, NICHOLAS JOHN
To: NIANTIC, INC.
Reel/Frame 067317/0108 →
Continuity (1)
Related Publication 20250191193A1 · Jun 12, 2025
References Cited (17)
US 20070297683A1 · Luo · 2007 [cited by examiner]
US 20120033875A1 · Bergman et al. · 2012 [cited by applicant]
US 20170236287A1 · Shen et al. · 2017 [cited by applicant]
US 20170294000A1 · Shen et al. · 2017 [cited by applicant]
US 20190202349A1 · Winton · 2019 [cited by examiner]
US 20190222776A1 · Carter · 2019 [cited by examiner]
US 20210272245A1 · Gao · 2021 [cited by examiner]
US 20220012893A1 · Jafek · 2022 [cited by examiner]
US 20220230323A1 · Liba et al. · 2022 [cited by applicant]
US 20220319016A1 · Graber · 2022 [cited by examiner]
US 20220383508A1 · Liu · 2022 [cited by examiner]
US 20230014448A1 · Morin et al. · 2023 [cited by applicant]
KR 1020100115211A · 2010 [cited by applicant]
Halperin, T, et al., “Clear Skies Ahead: Towards Real-Time Automatic Sky Replacement in Video,” Computer Graphics Forum, Mar. 6, 2019, vol. 38, No. 2, pp. 207-218. [cited by applicant]
Nice, K., et al., “Sky pixel detection in outdoor imagery using an adaptive algorithm and machine learning,” Urban Climate, Mar. 1, 2020, vol. 31, pp. 1-17. [cited by applicant]
PCT International Search Report and Written Opinion, PCT Application No. PCT/IB2024/062533, Apr. 3, 2025, 10 pages. [cited by applicant]
Tran, A., et al., “Fakeye: Sky Augmentation with Real-time Sky Segmentation and Texture Blending,” CVPR Fourth Workshop on Computer Vision for Augmented and Virtual Reality, Jun. 14, 2020, p. 1. [cited by applicant]