IP Library › Granted Patent US 12,333,746
Granted Patent B2
US 12,333,746 · App. 17/955,884 · Granted Jun 17, 2025

Method for estimating depth, electronic device, and storage medium

Inventors: Yu-Hsuan Chien (New Taipei, TW); Chin-Pin Kuo (New Taipei, TW)
Assignee: HON HAI PRECISION INDUSTRY CO., LTD.
G06T7/521G01S13/08G01S13/867G01S13/89G06T2207/10028G06T2207/20081G06T2207/20084G06T2207/30261
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,333,746
App. No.
17/955,884
Granted
Jun 17, 2025
Kind
B2
Abstract

A method for estimating depth implemented in an electronic device includes obtaining a first image; inputting the first image into a depth estimation model, and obtaining a first depth image; obtaining a depth ratio factor, the depth ratio factor indicating a relationship between a relative depth and a depth of each pixel in the first depth image; and obtaining depth information of the first depth image according to the first depth image and the depth ratio factor.

Claims (86)

1. A method for estimating depth implemented in an electronic device comprising:

obtaining a first image;

inputting the first image into a depth estimation model, and obtaining a first depth image;

obtaining a depth scale factor, the depth scale factor indicating a relationship between a relative depth and a depth of each pixel in the first depth image;

obtaining external parameters between a camera device and a radar;

obtaining a second image captured by the camera device and a three-dimensional point cloud image obtained by the radar;

converting the three-dimensional point cloud image into a two-dimensional image according to the external parameters;

inputting the second image into the depth estimation model, and outputting a second depth image;

calculating a depth scale relationship according to the two-dimensional image and the second depth image; and

calculating the depth scale factor according to the depth scale relationship; and

obtaining depth information of the first depth image according to the first depth image and the depth scale factor.

2. The method according to claim 1 , wherein obtaining a depth scale factor comprises:

obtaining a distance between a pixel point and the camera device, and determining the distance to be the depth of the pixel point;

calculating a ratio between the relative depth of the pixel point and the depth value of the pixel point, and obtaining the depth scale relationship of the pixel; and

obtaining the depth scale factor according to the depth scale relationship of the pixels.

3. The method according to claim 2 , wherein obtaining a distance between a pixel point and the camera device comprises:

obtaining the distance between the pixel point and the camera device by the radar.

4. The method according to claim 3 , wherein obtaining the distance between the pixel point and the camera device by the radar comprises:

obtaining a three-dimensional point cloud image scanned by the radar corresponding to the first image;

obtaining external parameters between the camera device and the radar; and

converting the three-dimensional point cloud image into a two-dimensional image according to the external parameters, the two-dimensional image comprising the depth values.

5. The method according to claim 1 , wherein calculating a depth scale relationship according to the two-dimensional image and the second depth image comprises:

obtaining the depth value corresponding to the pixel in the second depth image according to the two-dimensional image;

calculating the depth scale relationship of the pixel point according to the depth value corresponding to the pixel point and the relative depth of the pixel point;

obtaining the depth scale relationship of all pixels in the second depth image; and

calculating the depth scale factor according to the depth scale relationship of all the pixels.

6. The method according to claim 5 , wherein calculating the depth scale factor according to the depth scale relationship of all the pixels comprises:

obtaining the depth scale relationship of all the second images; and

calculating the depth scale factor according to the depth scale relationship of all the second images.

7. An electronic device comprising:

at least one processor; and

a storage device coupled to the at least one processor and storing instructions for execution by the at least one processor to cause the at least one processor to:

obtain a first image;

input the first image into a depth estimation model, and obtain a first depth image;

obtain a depth scale factor, the depth scale factor indicating a relationship between a relative depth and a depth of each pixel in the first depth image;

obtain external parameters between a camera device and a radar;

obtain a second image captured by the camera device and a three-dimensional point cloud image obtained by the radar;

convert the three-dimensional point cloud image into a two-dimensional image according to the external parameters;

input the second image into the depth estimation model, and output a second depth image;

calculate a depth scale relationship according to the two-dimensional image and the second depth image; and

calculate the depth scale factor according to the depth scale relationship; and

obtain depth information of the first depth image according to the first depth image and the depth scale factor.

8. The electronic device according to claim 7 , wherein the at least one processor is further caused to:

obtain a distance between a pixel point and the camera device, and determine the distance to be the depth of the pixel point;

calculate a ratio between the relative depth of the pixel point and the depth value of the pixel point, and obtaining the depth scale relationship of the pixel; and

obtain the depth scale factor according to the depth scale relationship of the pixels.

9. The electronic device according to claim 8 , wherein the at least one processor is further caused to:

obtain the distance between the pixel point and the camera device by the radar.

10. The electronic device according to claim 9 , wherein the at least one processor is further caused to:

obtain a three-dimensional point cloud image scanned by the radar corresponding to the first image;

obtain external parameters between the camera device and the radar; and

convert the three-dimensional point cloud image into a two-dimensional image according to the external parameters, the two-dimensional image comprising the depth values.

11. The electronic device according to claim 7 , wherein the at least one processor is further caused to:

obtain the depth value corresponding to the pixel in the second depth image according to the two-dimensional image;

calculate the depth scale relationship of the pixel point according to the depth value corresponding to the pixel point and the relative depth of the pixel point;

obtain the depth scale relationship of all pixels in the second depth image; and

calculate the depth scale factor according to the depth scale relationship of all the pixels.

12. The electronic device according to claim 11 , wherein the at least one processor is further caused to:

obtain the depth scale relationship of all the second images; and

calculate the depth scale factor according to the depth scale relationship of all the second images.

13. A non-transitory computer-readable storage medium having instructions stored thereon, when the instructions are executed by a processor of an electronic device, the processor is configured to perform a method for estimating depth, wherein the method comprises:

obtaining a first image;

inputting the first image into a depth estimation model, and obtaining a first depth image;

obtaining a depth scale factor, the depth scale factor indicating a relationship between a relative depth and a depth of each pixel in the first depth image;

obtaining external parameters between a camera device and a radar;

obtaining a second image captured by the camera device and a three-dimensional point cloud image obtained by the radar;

converting the three-dimensional point cloud image into a two-dimensional image according to the external parameters;

inputting the second image into the depth estimation model, and outputting a second depth image;

calculating a depth scale relationship according to the two-dimensional image and the second depth image; and

calculating the depth scale factor according to the depth scale relationship; and

obtaining depth information of the first depth image according to the first depth image and the depth scale factor.

14. The non-transitory storage medium according to claim 13 , wherein obtaining a depth scale factor comprises:

obtaining a distance between a pixel point and the camera device, and determining the distance to be the depth of the pixel point;

calculating a ratio between the relative depth of the pixel point and the depth value of the pixel point, and obtaining the depth scale relationship of the pixel; and

obtaining the depth scale factor according to the depth scale relationship of the pixels.

15. The non-transitory storage medium according to claim 14 , wherein obtaining a distance between a pixel point and the camera device comprises:

obtaining the distance between the pixel point and the camera device by the radar.

16. The non-transitory storage medium according to claim 15 , wherein obtaining the distance between the pixel point and the camera device by a radar comprises:

obtaining a three-dimensional point cloud image scanned by the radar corresponding to the first image;

obtaining external parameters between the camera device and the radar; and

converting the three-dimensional point cloud image into a two-dimensional image according to the external parameters, the two-dimensional image comprising the depth values.

17. The non-transitory storage medium according to claim 13 , wherein calculating a depth scale relationship according to the two-dimensional image and the second depth image comprises:

obtaining the depth value corresponding to the pixel in the second depth image according to the two-dimensional image;

calculating the depth scale relationship of the pixel point according to the depth value corresponding to the pixel point and the relative depth of the pixel point;

obtaining the depth scale relationship of all pixels in the second depth image; and

calculating the depth scale factor according to the depth scale relationship of all the pixels.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 29, 2022
From: CHIEN, YU-HSUAN; KUO, CHIN-PIN
To: HON HAI PRECISION INDUSTRY CO., LTD.
Reel/Frame 061255/0348 →
Priority Claims (1)
CN 202210624024.9 · Jun 2, 2022 · national
Continuity (1)
Related Publication 20230394692A1 · Dec 7, 2023
References Cited (17)
US 8824827B2 · Quan · 2014 [cited by examiner]
US 10861176B2 · Tong · 2020 [cited by examiner]
US 11012631B2 · Fujisawa · 2021 [cited by examiner]
US 11043009B2 · Wang · 2021 [cited by examiner]
US 11258957B2 · McElvain · 2022 [cited by examiner]
US 11734861B2 · Goyal · 2023 [cited by examiner]
US 20170230558A1 · Morales · 2017 [cited by examiner]
US 20200195828A1 · Reyserhove · 2020 [cited by examiner]
US 20230394680A1 · Mariotti · 2023 [cited by examiner]
US 20240394893A1 · Qi · 2024 [cited by examiner]
CN 111179331A · 2020 [cited by examiner]
CN 112292711 · 2021 [cited by applicant]
CN 112292711A · 2021 [cited by examiner]
CN 113177975A · 2021 [cited by examiner]
CN 113298785A · 2021 [cited by examiner]
CN 114022531A · 2022 [cited by examiner]
WO WO2021004262A1 · 2021 [cited by examiner]