AI mapa de profundidade e foto 3D

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.

Roda no seu navegador. Seus arquivos nunca saem do seu dispositivo. Veja como conferir

…

Como fazer

  1. 1
    Adicionar uma foto

    Escolha uma imagem com um plano de fundo e um primeiro plano claros.

  2. 2
    Carregar o modelo

    Concordem em baixar cerca de 27 MB uma vez.

  3. 3
    Verifique a profundidade.

    Mudar a visão para grávido ou mapa de profundidade em cores.

  4. 4
    Configure o movimento 3D

    Escolha o caminho, movimento e zoom.

  5. 5
    Tente desfocar o retrato

    Escolha uma profundidade de foco e força de desfoque.

  6. 6
    Exportação

    Baixe o GIF 3D, a profundidade PNG ou a foto desfocada.

Sobre esta ferramenta

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.

Exemplo prático

Uma foto de gato em um sofá com dimensões 4000 x 3000: o modelo leva cerca de 3 segundos, o gato é brilhante no mapa de profundidade e a parede escura; uma rota circular com movimento 20 e zoom 106 por cento faz um GIF de 24 quadros, 540 px, de cerca de 2 MB.

Resumo rápido

Perguntas frequentes

O que é um mapa de profundidade?

Uma imagem cinzenta onde o brilho significa distância: brilhante para perto, escuro para longe. Ferramentas 3D usam-no para separar camadas.

A profundidade é em metros?

O modelo dá profundidade relativa, que é suficiente para efeitos mas não para medição.

Quão grande é o modelo?

Cerca de 27 MB, baixado uma vez deste site e armazenado no cache pelo seu navegador.

Porque é que as bordas se esticam na animação 3D?

Movendo o objeto próximo revela fundo que a foto nunca mostrou.

Posso usar o mapa de profundidade no Blender ou Photoshop?

Baixe o PNG e use-o como um mapa de deslocamento ou profundidade; inverta-o se seu software espera branco para longe.

A minha foto foi enviada a algum lado?

O modelo é executado localmente no teu navegador.

Totalmente grátisSem custo, sem cadastro
Arquivos privadosTudo roda no seu navegador
Fácil no seu idiomaDisponível em vários idiomas