A powerful desktop application built with Qt (C++) for visualizing, analyzing, and editing object layouts extracted from an A4 sheet. It transforms detected shapes into an interactive, measurable, and editable workspace — similar to a lightweight CAD/layout tool.
- Real-world dimensions (mm-based)
- Area, perimeter, diagonal, aspect ratio
- Pixel-to-mm calibrated mapping
- Smooth zoom & pan
- Grid system (10mm / 50mm)
- Ruler guides on A4 sheet
- Clean visual rendering with anti-aliasing
- Select objects from canvas or sidebar
- Highlight + bounding visualization
- Detailed measurement panel
- 🔥 Drag & move objects
- 🗑 Delete unwanted objects
- 📏 Snap-to-grid alignment
- Real-time updates
- Colored object differentiation
- Dimension tags with leader lines
- Clean UI inspired by modern design systems
- Load digitized object data
- Supports structured formats (v2 & v3)
- Reconstructs shapes using vector paths
Add screenshots here (recommended)
- Canvas view with grid
- Object measurement panel
- Interactive dragging
- Language: C++17
- Framework: Qt (Widgets, GUI, JSON)
- Graphics: QPainter / QPainterPath
- Architecture: Modular UI + Canvas Rendering Engine
├── mainwindow.cpp # UI & application logic
├── canvaswidget.cpp # Rendering + interaction engine
├── mainwindow.h
├── ...
- Load JSON file containing detected objects
- Convert paths → QPainterPath
- Map coordinates using px/mm calibration
- Render objects on A4 canvas
- Enable interaction (select, move, delete)
- 📦 Packaging layout planning
- 🏭 Manufacturing measurements
- 📐 Shape analysis & visualization
- 🧾 Digitized document processing
- 🎓 Computer Vision output visualization
- Qt 6.x (MinGW / MSVC)
- C++17 enabled
# Open project in Qt Creator
# Select Release or Debug
# Build & RunFor Windows:
windeployqt PathViewer.exeThis bundles required Qt DLLs automatically.
- ✨ Resize handles (like Figma)
- 🔄 Undo / Redo system
- 🧠 Multi-object selection
- 📐 Alignment tools (left, center, distribute)
- 📤 Export edited layout
- 🤖 Integration with live detection system
Mohan Chilivery Software Engineer | Full Stack Developer | AIML Student
If you like this project:
- ⭐ Star the repo
- 🍴 Fork it
- 💬 Share feedback
This project is open-source and available under the MIT License.