Skip to content

Bonjour-Interactive-Lab/Unity3D-MonocularDepthEstimation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity3D-MonocularDepthEstimation

gif

Unity3D Monocular depth estimation using Barracuda based on: https://medium.com/xrpractices/monocular-depth-sensing-point-cloud-from-webcam-feed-using-unity-barracuda-d9f1496b5932

DephSensor.cs

This script computes depth estimation on RenderTexture source image. Please note the model return a depth image at 224×244 RFloat. You can grab the RenderTexture containing the Depth value from script by calling DephSensor.GetRawOutput()

Install Package

This package uses the scoped registry feature to import dependent packages. Please add the following sections to the package manifest file (Packages/manifest.json).

To the scopedRegistries section:

{
    "name": "Bonjour-lab",
    "url": "https://registry.npmjs.com",
    "scopes": [
    "com.bonjour-lab"
    ]
}

To the dependencies section:

"com.bonjour-lab.monoculardepth": "1.0.6-preview",

After changes, the manifest file should look like below:

{
  "scopedRegistries": [
    {
      "name": "Bonjour-lab",
      "url": "https://registry.npmjs.com",
      "scopes": [
        "com.bonjour-lab"
      ]
    }
  ],
  "dependencies": {
    "com.bonjour-lab.monoculardepth": "1.0.6-preview",
    ...

Tested on

  • Unity 2020 & 2019

About

Unity3D Monocular depth estimation using Barracuda

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors