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. 1
    أضف صورة

    اختر صورة ذات خلفية وخط مقدمة واضحين

  2. 2
    تحميل النموذج

    Agree to download about 27 MB once.

  3. 3
    تحقق من العمق

    قم بتغيير الرؤية إلى رمادي أو خريطة عمق اللون

  4. 4
    Set the 3D motion

    اختر المسار، الحركة والتكبير

  5. 5
    حاولي تشويش الصورة

    اختر عمق التركيز وقوة الضباب

  6. 6
    الصادرات

    Download the 3D GIF, the depth PNG or the blurred photo.

عن هذه الأداة

لا توجد صورة واحدة لديها معلومات عن العمق ، ومع ذلك فإن دماغنا يرى بسهولة أجزاء قريبة وأخرى بعيدة. تتعلم نماذج تقدير العمق أحادية البصر القيام بالشيء نفسه من ملايين الصور. عمق أي شيء V2 صغير هو واحد من أفضل النماذج المدمجة من هذا النوع ، والتي صدرت تحت ترخيص 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.

حقائق سريعة

الأسئلة الشائعة

ما هي خريطة العمق؟

A grey picture where brightness means distance: bright for near, dark for far. 3D tools use it to separate layers.

هل العمق في أمتار؟

لا، النموذج يعطي عمق نسبي وهو كافٍ للتأثيرات ولكن ليس للقياس

كم حجم النموذج؟

About 27 MB, downloaded once from this site and cached by your browser.

Why do edges stretch in the 3D animation?

تحريك الجسم القريب يكشف عن خلفية لم تظهر في الصورة

هل يمكنني استخدام خريطة العمق في اللمس أو الفوتوشوب؟

نعم، قم بتنزيل PNG واستخدمها كخريطة تحريك أو عمق.

هل تم إرسال صورتي إلى أي مكان؟

لا، النموذج يعمل محلياً في متصفحك

مجاني تمامًابلا تكلفة وبلا تسجيل
ملفات خاصةكل شيء يعمل في متصفحك
سهل بلغتكمتوفر بلغات كثيرة