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.
Працює у вашому браузері. Ваші файли ніколи не залишають пристрій. Дізнатися, як це перевірити
…
Як користуватися
- 1Додати фото
Виберіть зображення з чітким переднім та заднім планом.
- 2Завантажити модель
Agree to download about 27 MB once.
- 3Перевірте глибину.
Переключити вигляд на сіру або кольорову карту глибини.
- 4Налаштуйте 3D рух
Виберіть шлях, рух і зум.
- 5Спробуйте розмити портрет
Виберіть глибину фокусу і міцність розмиття.
- 6Експорт
Завантажуйте 3D GIF, глибину PNG або розмиту фотографію.
Про цей інструмент
Монокулярні моделі оцінки глибини навчаються робити те ж саме з мільйонів фотографій. Depth Anything V2 Small є однією з кращих компактних моделей такого роду, випущеної під ліцензією Apache-2.0. Цей інструмент працює в браузері і використовує карту глибини для трьох речей: 3D-анимації з параллакси, зображення карти глибини в інших програмних засобах та розмитий фон у стилі портрета.
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.
Приклад із розв'язанням
A 4000 x 3000 photo of a cat on a sofa: the model takes about 3 seconds, the cat is bright in the depth map and the wall dark; a circle path with movement 20 and zoom 106 percent makes a 24-frame, 540 px GIF of about 2 MB.
Коротко
- Категорія: Зображення
- Працює в браузері, без реєстрації й завантаження.
- Введені вами дані залишаються на пристрої.
- Доступно англійською.
- Вміст востаннє перевірено:
- Офіційне джерело: Yang et al., Depth Anything V2 (2024)
Поширені запитання
Що таке карта глибини?
Сира картина, де яскравість означає відстань: світла для ближнього, темна для далекого. 3D інструменти використовують її для відділення шарів.
Глибкість в метрах?
Модель дає відносною глибину, яка достатньо для ефектів, але не для вимірювання.
Якого розміру модель?
About 27 MB, downloaded once from this site and cached by your browser.
Чому країни розтягуються в 3D-анимації?
Переміщення близького об'єкта показує фоновий фон, який фото ніколи не показувало.
Чи можна використовувати карту глибини в Блендері або Photoshop?
Завантажіть PNG і використовуйте його як карту переміщення або глибини; поверніть її, якщо ваше програмне забезпечення очікує білого на відстані.
Моє фото де-небудь відправлено?
Модель працює локально у вашому браузері.
