Repository navigation
Photo to Relief
English | Deutsch
Since version 0.6.0, ortino.CAM can turn a photo into a relief: A small AI model (Depth Anything V2 Small) estimates how far away each spot in the picture is. From that a height image is made, which enters the project as an ordinary relief and can be edited further and milled in the Relief Studio.
Honest about the status: The result is an estimate, not real geometry. For scenes with spatial depth (objects, landscapes, heads from the side) it is usable; for flat subjects photographed head-on it is weak. It was only checked with self-built scenes and tests, not with real photos, not on Windows, and none of it has been milled. Mill a test piece first.
- In the Relief Studio, choose the card “Photo → relief” in the gallery (or
Ctrl+K→ “Photo → relief (estimate depth) …”). It does not exist in the Web Designer of the portal. - The first time, the program asks your portal whether the depth model is there (a small request without a photo) and offers it for download (47.3 MB, with progress, cancel and resume; the file is checked against a fixed checksum). Without a network: “Use a model file …” (file from a USB stick). If the model is not yet on your portal, the dialog gives the reason with a solution; then the operator has to provide it.
- Choose a photo or drag it in (JPEG, PNG, WebP; the orientation of phone photos is respected; transparent parts become ground). An estimate takes roughly two to six seconds on a computer with four cores, three to four times as long at the “Fine” level; you can cancel.
- You see three views: photo, depth map (light = high) and a shaded preview of the relief.
- Sliders on the right: depth in mm, invert, flatten background, smooth, contrast, depth compression, “Remove base curvature” (for flat subjects from the front) and the resolution.
-
Insert as relief (
Ctrl+Enter): A relief with one image layer is created (one undo step). “Insert and open in the studio” then opens the Relief Studio for further editing (mix with patterns, mask, edge falloff, “Set up machining …”).
In version 0.12.0 and earlier versions you load and remove the model only in the dialog “Photo → relief”.
Since version 0.13.0 there is a dialog of its own for this: Extras ▸ AI models … (also Ctrl+K “AI models”, Settings ▸ General and a tile on the start page). There you see the state, size, licence and location of the depth model and whether it is available on your portal, and you can download it (with cancel and resume), check again, add it by hand or remove it. Nothing is ever downloaded without your click. In the Art Designer, the button “Load model …” (at “Estimate depth (AI)”) leads to the same card. Everything else is on AI models and start page; nobody has yet checked the download of the real model from the real portal.
- The photo never leaves your computer. The calculation runs in the program. Only the request whether the model is there, and the download of the model, go to the portal. The original photo is not stored in the project, only the calculated height image.
- Rights to the picture: For photos of people you need the consent of the people shown, for other people's photos the permission of the author.
- Glass, mirrors, water, sky are estimated poorly by the model.
- Licence of the model: The weights are under Apache-2.0. The training data also include collections with research or non-commercial terms; whether these carry over to the weights is legally unresolved (note also in the dialog).
- Removing the model: at the bottom right of the dialog; existing reliefs stay unchanged.
The model has to go onto the portal once: workflow “Modell bereitstellen” (provide model; the workflow is named in German) with “hochladen” (upload), or node scripts/modell-hochladen.mjs with the deploy token. After that, https://<portal>/api/v1/models/depth-anything-v2-small-fp16-v1.onnx must answer with 200 and a size of 49,619,602 bytes. Details are in the portal's operating manual in the source repository.
| Symptom | Solution |
|---|---|
| “The model is not on your portal yet” | Ask the operator to provide it, or add the model file by hand. |
| “different version” (size does not match) | Portal and program do not belong together; update program and portal. |
| “The portal cannot be reached right now” | Check the connection, then “Check again”; or add it by hand. |
| The relief is just a bulge | The subject was photographed too flat: try “Remove base curvature”, photograph differently (at an angle, with light from the side). |
Sicherheit: CNC-Maschinen sind gefährlich. Teste zuerst ohne Werkzeug und Material, halte den Not-Aus in Reichweite und lass die Maschine nie unbeaufsichtigt. ortino.CAM wird ohne Gewährleistung bereitgestellt, die Nutzung erfolgt auf eigene Gefahr. Siehe den Haftungsausschluss. Dieses Wiki beschreibt Version 0.16.0 (frühe Version, nicht alles an einer echten Maschine erprobt). Fragen und Fehler über GitHub Issues (öffentlich, keine persönlichen Daten); Datenschutz und rechtliche Anliegen zum Portal: Impressum des Portals.
Safety: CNC machines are dangerous. Test first without tool and material, keep the emergency stop within reach and never leave the machine unattended. ortino.CAM is provided without warranty, and you use it at your own risk. See the disclaimer. This wiki describes version 0.16.0 (early version, not everything tested on a real machine). Questions and bugs through GitHub Issues (public, no personal data); data protection and legal matters about the portal: portal imprint.
Sprache wechseln: Deutsch | English
Loslegen
- Installation und Updates
- Erste Schritte
- KI-Modelle und Startseite
- Maschine einrichten
- Videos (English)
Entwerfen und Bearbeiten
- Zeichnen und Importieren
- Eigene Vorlagen und Formen
- Formen- und Muster-Generator (Browser)
- Creator
- Art Designer
- Foto → Relief
- Reliefs modellieren
- 3D-Modelle importieren
- 3D-Körper exportieren (STL, 3MF)
- Bearbeitungen
- Werkzeuge und Schnittdaten
- Prüfen und Simulation
An der Maschine
- Fräsen an der Maschine
- Doppelseitig fräsen
- Große Teile kacheln
- Fester Taster und Opferplatte
- Opferplatte markieren
- Handy-Fernbedienung
- Touch und Stift
- Kamera auf der Arbeitsplatte
Planen und Anbieten
- Platten und Möbel
- Plattenzuschnitt (Sägeplan)
- Werkstatt und Team
- Möbel-Designer
- Web-Designer im Portal
- Küchen-Rendering
- Rüstblatt und Angebot
- Kunden und Angebote
Steuerungen und Vernetzung
Hilfe
Außerhalb des Wikis
English
Getting started
Designing and machining
- Drawing and Importing
- Custom Templates and Shapes
- Shape and Pattern Generator (browser)
- Creators
- Art Designer
- Photo to Relief
- Modelling Reliefs
- Importing 3D Models
- Exporting 3D Bodies (STL, 3MF)
- Operations
- Tools and Cutting Data
- Checking and Simulation
At the machine
- Milling on the Machine
- Double-Sided Milling
- Tiling Large Parts
- Fixed Probe and Spoilboard
- Marking the Spoilboard
- Phone Remote Control
- Touch and Pen
- Camera on the Worktable
Planning and quoting
- Sheets and Furniture
- Sheet Cutting (saw plan)
- Workshop and Team
- Furniture Designer
- Web Designer in the Portal
- Kitchen Rendering
- Setup Sheet and Quote
- Customers and Quotes
Controllers and networking
Help
Outside the wiki