How fdev31/thot works
Thotus is a Linux CLI for operating a laser-based 3D scanner. The user starts the interactive CLI, calibrates the camera/platform/lasers, captures rotating images, extracts laser lines, reconstructs a point cloud and saves a PLY model. The graph also preserves live viewing, manual segmentation and two-pass scanning capabilities documented in the README. Relationships are limited to shown calls, imports or README workflow statements; some unsampled implementation links are omitted.
Main entry points: commands.py Scan commands · cloudify.py Laser-line analysis · main.py CLI and live viewer · __init__.py Scanner controller
Components 25
CLI control
- CLI and live viewer
src/thotus/main.py - Scan commands
src/thotus/commands.py - Shell command mode
src/thotus/shell_commands.py
Scanner hardware
- Scanner controller
src/thotus/boards/__init__.py - Ciclop board
src/thotus/boards/ciclop/board.py - V4L2 camera
src/thotus/camera/v4l2.py - Webcam controls
src/thotus/webcams - Capture image saver
src/thotus/image/workers.py
Calibration
- Calibration orchestration
src/thotus/calibration/__init__.py - Camera calibration
src/thotus/calibration/camera.py - Chessboard detection
src/thotus/calibration/chessboard.py - Platform calibration
src/thotus/calibration/platform.py - Laser calibration
src/thotus/calibration/lasers.py - Calibration data
src/thotus/calibration/data.py
Reconstruction
- Laser-line analysis
src/thotus/cloudify.py - Segmentation algorithms
src/thotus/algorithms - Line fitting
src/thotus/algorithms/ransac.py - Point-cloud projection
src/thotus/algorithms/projection.py - Mesh assembly
src/thotus/mesh/__init__.py - Mesh model
src/thotus/mesh/model.py - PLY export
src/thotus/mesh/ply.py
Runtime support
- Configuration and persistence
src/thotus/settings.py - Image processing tools
src/thotus/image/tools.py - Display and feedback
src/thotus/ui.py
Other components
- Scanner operator
Connections 31
- Scanner operator → CLI and live viewer: starts
- CLI and live viewer → Shell command mode: loads commands
src/thotus/main.py - CLI and live viewer → Scan commands: dispatches
src/thotus/main.py - CLI and live viewer → Laser-line analysis: live analysis
src/thotus/main.py - CLI and live viewer → Display and feedback: displays frames
src/thotus/main.py - Scan commands → Scanner controller: gets scanner
src/thotus/commands.py - Scan commands → Laser-line analysis: analyzes captures
src/thotus/commands.py - Scan commands → Mesh assembly: assembles mesh
src/thotus/commands.py - Scan commands → Calibration orchestration: runs calibration
src/thotus/commands.py - Scan commands → Calibration data: loads calibration
src/thotus/commands.py - Scanner controller → Ciclop board: selects board
src/thotus/boards/__init__.py - Scanner controller → V4L2 camera: creates capture
src/thotus/boards/__init__.py - Scanner controller → Webcam controls: selects controls
src/thotus/boards/__init__.py - Scanner controller → Capture image saver: queues images
src/thotus/boards/__init__.py - Calibration orchestration → Camera calibration: runs camera fit
src/thotus/calibration/__init__.py - Calibration orchestration → Platform calibration: runs platform fit
src/thotus/calibration/__init__.py - Calibration orchestration → Laser calibration: runs laser fit
src/thotus/calibration/__init__.py - Camera calibration → Chessboard detection: detects corners
src/thotus/calibration/camera.py - Camera calibration → Image processing tools: loads images
src/thotus/calibration/camera.py - Camera calibration → Configuration and persistence: reads and saves
src/thotus/calibration/camera.py - Platform calibration → Point-cloud projection: uses geometry
src/thotus/calibration/platform.py - Laser calibration → Laser-line analysis: analyzes laser lines
src/thotus/calibration/lasers.py - Laser-line analysis → Image processing tools: loads captures
src/thotus/cloudify.py - Laser-line analysis → Display and feedback: reports progress
src/thotus/cloudify.py - Laser-line analysis → Segmentation algorithms: loads selected algorithm
- Segmentation algorithms → Line fitting: fits detected lines
src/thotus/algorithms/algo_pureimage.py - Mesh assembly → Point-cloud projection: projects points
src/thotus/mesh/__init__.py - Mesh assembly → Mesh model: builds model
src/thotus/mesh/__init__.py - Mesh assembly → PLY export: saves scene
src/thotus/mesh/__init__.py - Calibration orchestration → Calibration data: uses calibration
src/thotus/calibration/__init__.py - Configuration and persistence → Calibration data: persists values
src/thotus/settings.py