# US 2022/0286658 A1 · Stereo image generation method and electronic apparatus using the same

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0286658 A1
- Document ID: US20220286658A1
- Status: Published application
- Kind: A1
- Application number: 17/583,139
- Filed: 2022-01-24
- Published: 2022-09-08
- Earliest claimed: 2021-03-03
- Assignees: Acer Incorporated
- Applicants: Acer Incorporated
- Inventors: Chih-Haw Tan; Wen-Cheng Hsu; Chih-Wen Huang; Shih-Hao Lin; Sergio Cantero Clares
- Web page: https://patentgrep.com/patent/US20220286658A1

## CPC

- H04N 13/156: Mixing image signals
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 5/77: Retouching; Inpainting; Scratch removal
- G06T 7/50: Depth or shape recovery
- G06T 7/70: Determining position or orientation of objects or cameras (camera calibration G06T7/80)
- G06T 7/97: {Determining parameters from multiple pictures (depth or shape recovery from multiple images G06T7/55; stereo camera calibration G06T7/85)}
- G06V 10/82: using neural networks
- G06V 40/18: Eye characteristics, e.g. of the iris
- H04N 13/128: Adjusting depth or disparity
- H04N 13/161: Encoding, multiplexing or demultiplexing different image signal components (for multi-view video sequence encoding H04N19/597)
- H04N 13/302: for viewing without the aid of special glasses, i.e. using autostereoscopic displays
- G06T 2207/10012: Stereo images
- G06T 2207/20221: Image fusion; Image merging
- G06T 2207/30201: Face
- H04N 2013/0081: {Depth or disparity estimation from stereoscopic image signals}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A stereo image generation method and an electronic apparatus using the same are provided. The stereo image generation method includes the following steps. A two-dimensional (2D) original image corresponding to a first viewing angle is obtained, and a depth map of the 2D original image is estimated. Interpupillary distance information of a user is detected. A pixel shift processing is performed on the 2D original image according to the interpupillary distance information and the depth map to generate a reference image corresponding to a second viewing angle. An image inpainting processing is performed on the reference image to obtain a restored image. The restored image and the 2D original image are merged to generate a stereo image conforming to a stereo image format.

## Claims

### Claim 1

A stereo image generation method, suitable for an electronic apparatus, the method comprising:
obtaining a two-dimensional (2D) original image corresponding to a first viewing angle, and estimating a depth map of the 2D original image;
detecting interpupillary distance information of a user;
performing a pixel shift processing on the 2D original image according to the interpupillary distance information and the depth map to generate a reference image corresponding to a second viewing angle;
performing an image inpainting process on the reference image to obtain a restored image; and
merging the restored image and the 2D original image to generate a stereo image conforming to a stereo image format.

### Claim 2 (depends on 1)

The stereo image generation method according to claim 1, further comprising:
performing an image weaving processing on the stereo image according to the interpupillary distance information, so as to obtain image data suitable for playback by a stereo display apparatus.

### Claim 3 (depends on 1)

The stereo image generation method according to claim 1, wherein the stereo image format comprises a side-by-side format or a top-and-bottom format.

### Claim 4 (depends on 1)

The stereo image generation method according to claim 1, wherein performing the pixel shift processing on the 2D original image according to the interpupillary distance information and the depth map to generate the reference image corresponding to the second viewing angle comprises:
obtaining a pixel shift amount corresponding to a first pixel in the 2D original image according to the interpupillary distance information and a depth value in the depth map; and
obtaining a second pixel in the reference image by translating the first pixel in the 2D original image along a preset axial direction according to the pixel shift amount.

### Claim 5 (depends on 4)

The stereo image generation method according to claim 4, wherein the pixel shift amount is a multiplication result of the interpupillary distance information and the depth value in the depth map.

### Claim 6 (depends on 4)

The stereo image generation method according to claim 4, wherein the pixel shift amount is a multiplication result of the interpupillary distance information and a function output value related to the depth value in the depth map.

### Claim 7 (depends on 5)

The stereo image generation method according to claim 5, wherein generating the reference image by performing the pixel shift processing according to the interpupillary distance information and the depth map further comprises:
normalizing each depth value in the depth map to be within a preset numerical range.

### Claim 8 (depends on 4)

The stereo image generation method according to claim 4, wherein translating the first pixel in the 2D original image along the preset axial direction according to the pixel shift amount to obtain the second pixel in the reference image comprises:
determining whether pixel coordinates of the second pixel fall within the reference image; and
discarding the second pixel in response to the pixel coordinates of the second pixel not falling within the reference image.

### Claim 9 (depends on 4)

The stereo image generation method according to claim 4, wherein translating the first pixel in the 2D original image along the preset axial direction according to the pixel shift amount to obtain the second pixel in the reference image comprises:
translating the first pixel in the 2D original image along the preset axial direction according to the pixel shift amount;
translating another first pixel in the 2D original image along the preset axial direction according to another pixel shift amount; and
selecting the first pixel to be set as the second pixel in the reference image in response to the first pixel and the another first pixel both corresponding to the pixel coordinates of the second pixel.

### Claim 10

An electronic apparatus, comprising:
an interpupillary distance detection apparatus;
a storage apparatus, with a plurality of modules recorded; and
a processor, connected to the interpupillary distance detection apparatus and the storage apparatus, and is configured to:
obtain a 2D original image corresponding to a first viewing angle, and estimate a depth map of the 2D original image;
detect interpupillary distance information of a user through the interpupillary distance detection apparatus;
perform a pixel shift processing on the 2D original image according to the interpupillary distance information and the depth map to generate a reference image corresponding to a second viewing angle;
perform an image inpainting process on the reference image to obtain a restored image; and
merge the restored image and the 2D original image to generate a stereo image conforming to a stereo image format.

### Claim 11 (depends on 10)

The electronic apparatus according to claim 10, wherein the processor is further configured to perform an image weaving processing on the stereo image according to the interpupillary distance information, so as to obtain image data suitable for playback by a stereoscopic display apparatus.

### Claim 12 (depends on 11)

The electronic apparatus according to claim 11, wherein the stereo image format comprises a side-by-side format or a top-and-bottom format.

### Claim 13 (depends on 11)

The electronic apparatus according to claim 11, wherein the processor is further configured to:
obtain a pixel shift amount corresponding to a first pixel in the 2D original image according to the interpupillary distance information and a depth value in the depth map; and
obtain a second pixel in the reference image by translating the first pixel in the 2D original image along a preset axial direction according to the pixel shift amount.

### Claim 14 (depends on 13)

The electronic apparatus according to claim 13, wherein the pixel shift amount is a multiplication result of the interpupillary distance information and the depth value in the depth map.

### Claim 15 (depends on 13)

The electronic apparatus according to claim 13, wherein the pixel shift amount is a multiplication result of the interpupillary distance information and a function output value related to the depth value in the depth map.

### Claim 16 (depends on 14)

The electronic apparatus according to claim 14, wherein the processor is further configured to:
normalize each depth value in the depth map to be within a preset numerical range.

### Claim 17 (depends on 13)

The electronic apparatus according to claim 13, wherein the processor is further configured to:
determine whether pixel coordinates of the second pixel fall within the reference image; and
discard the second pixel in response to the pixel coordinates of the second pixel not falling within the reference image.

### Claim 18 (depends on 13)

The electronic apparatus according to claim 13, wherein the processor is further configured to:
translate the first pixel in the 2D original image along the preset axial direction according to the pixel shift amount;
translate another first pixel in the 2D original image along the preset axial direction according to another pixel shift amount; and
select the first pixel to be set as the second pixel in the reference image in response to the first pixel and the another first pixel both corresponding to the pixel coordinates of the second pixel.
