AI Depth Map and 3D Photo
Turn a flat photo into a 3D effect: an AI model estimates the depth of every pixel, then the camera seems to move around the scene.
Funziona nel tuo browser. I tuoi file non lasciano mai il dispositivo. Scopri come verificarlo
…
Come si usa
- 1Aggiungi una foto
Scegli un'immagine con un primo e uno sfondo chiari.
- 2Caricare il modello
Accettiamo di scaricare circa 27 MB una volta.
- 3Controlla la profondità .
Cambiare la vista in grigio o colore della mappa di profondità.
- 4Imposta il movimento 3D
Scegli il percorso, il movimento e lo zoom.
- 5Prova a sfocare il ritratto
Scegli una profondita' di messa a fuoco e forza sfocata.
- 6Esportazione
Scarica il GIF 3D, la profondità PNG o la foto sfocata.
Informazioni su questo strumento
A single photo has no depth information, yet our brain easily sees which parts are near and which are far. Monocular depth estimation models learn to do the same from millions of pictures. Depth Anything V2 Small is one of the best compact models of this kind, released under the Apache-2.0 licence. This tool runs it in your browser and uses the depth map for three things: a 3D parallax animation, a depth map image for other software, and a portrait-style background blur.
The depth map
The model looks at your photo at about 518 pixels on the long side and outputs a relative depth value for each point: bright for near, dark for far. It is relative, not in metres, which is all you need for effects. You can view it in grey or in false colour, invert it (some 3D software expects white for far) and download it as a PNG at the size of your photo.
3D photo (parallax)
To fake a camera move, the tool shifts each pixel sideways by an amount that depends on its depth: near pixels move more than far ones, exactly as they would if you moved your head. The camera path can go left and right, up and down, or in a circle. A slight zoom hides the gaps that open at the edges of near objects. The GIF export renders a loop of frames at the width you choose, ready for social posts and messages.
Portrait blur
Choose the focus depth (100 percent is the nearest object) and the blur strength, and the tool blurs everything in front of or behind that depth, like a wide-aperture lens. Unlike a simple subject cut-out, it blurs gradually with distance.
The model and performance
The int8 version of the model is about 27 MB, downloaded once and cached. It runs on your processor with ONNX Runtime WebAssembly, which takes a few seconds per photo on a typical laptop and longer on phones. The photo is not uploaded.
Good subjects
Portraits, pets, products on a table, streets with clear foreground and background, landscapes with a close object. Scenes with strong depth layers look best in 3D.
Tips
Use 15 to 25 movement units for natural motion; large values stretch the edges. A circle path gives the classic "3D Facebook photo" look. For the GIF, 24 frames at about 540 px wide balance smoothness and size.
Limits
Depth is estimated, not measured. Glass, mirrors, sky and thin objects can be wrong. Large movements reveal stretched pixels behind near objects because the hidden background is not invented. Video export is not offered; use the GIF or animate the depth map in other software.
Esempio svolto
Una foto di un gatto su un divano da 4000 x 3000: il modello dura circa 3 secondi, il gatto è luminoso nella mappa di profondità e la parete scura; un percorso circolare con movimento 20 e zoom del 106 per cento rende una GIF a 24 fotogrammi, 540 px di circa 2 MB.
In breve
- Categoria: Immagini
- Funziona nel browser, senza registrazione né caricamento.
- Le informazioni che inserisci restano sul tuo dispositivo.
- Disponibile in inglese.
- Contenuto rivisto l'ultima volta il:
- Fonte ufficiale: Yang et al., Depth Anything V2 (2024)
Domande frequenti
Cos'è una mappa di profondità?
Un'immagine grigia dove luminosità significa distanza: brillante per vicino, scuro per lontano. Gli strumenti 3D lo usano per separare gli strati.
La profondità è in metri?
Il modello fornisce una profondità relativa, sufficiente per gli effetti ma non per la misurazione.
Quanto è grande il modello?
Circa 27 MB, scaricato una volta da questo sito e memorizzato nella cache dal tuo browser.
Perché i bordi si allungano nell'animazione 3D?
Spostare l'oggetto vicino rivela uno sfondo che la foto non ha mai mostrato.
Posso usare la mappa di profondità in Blender o Photoshop?
Scarica il PNG e usalo come mappa di spostamento o profondità; invertilo se il tuo software prevede bianco per lontano.
La mia foto e' stata spedita da qualche parte?
No, il modello e' eseguito localmente nel tuo browser.
