# LiMR_cpp **Repository Path**: chen-liangwei/LiMR_cpp ## Basic Information - **Project Name**: LiMR_cpp - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: feature-app-imgui - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-11-25 - **Last Updated**: 2026-11-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

🏭 FastVision: Fast Industrial Vision Platform (C++)

High-throughput, low-latency industrial vision platform based on TensorRT 10 and CUDA 11

C++17 CUDA TensorRT OpenCV ImGui Windows

English | δΈ­ζ–‡

πŸ“„ Paper β€’ 🐍 Python Prototype

--- ## πŸ“Έ System Demo
System Demo
Real-time three-screen display: Original Capture (Left) | Anomaly Heatmap (Middle) | Defect Overlay (Right)

## ✨ Core Highlights

πŸš€ Extreme Performance

Pure CUDA operator post-processing + OpenGL zero-copy rendering
Inference latency < 15ms (80+ FPS)

🎯 Anomalib Compatible

Fully compatible with Anomalib ecosystem
Seamless loading of standard models, supporting pixel-level defect segmentation and localization

πŸ–₯️ Interactive Panel

Modern console built with ImGui
Support for real-time threshold adjustment and model hot-switching

πŸ“¦ Ready to Use

Provides Windows one-click installer (Setup.exe)
No need to configure Python/CUDA environment, just double-click to run

--- ## ⚑ Quick Start ### πŸ‘₯ I'm an End User > Don't want to code, just want to run the software? 1. Download the latest release: πŸ‘‰ **[Download (Release)](https://github.com/ShowayLiao/LiMR_cpp/releases/tag/v0.1.0)** 2. Need help? Check the documentation: πŸ“– **[User Manual](./docs/User_Manual_CN.md)** ### πŸ‘¨β€πŸ’» I'm a Developer > Want to modify the source code or develop secondary applications? Please refer to the compilation and build guide: πŸ› οΈ **[Developer Environment Setup](./docs/install.md)** --- ## πŸ“Œ Performance Benchmark We conducted comprehensive tests on an `RTX 3060` platform and achieved **more than 2x** throughput improvement compared to the original implementation. | Optimization Stage | Preprocessing (ms) | Inference (ms) | Postprocessing (ms) | **Total Latency (ms)** | **Throughput (FPS)** | | :--- | :---: | :---: | :---: | :---: | :---: | | Original C++ Implementation | 11 | 17 | 5 | 33 | ~30 | | + CUDA Preprocessing | 4 | 17 | 5 | 26 | ~38 | | + Zero-copy Postprocessing | 4 | 17 | 3 | 24 | ~42 | | + FP16 Quantization | 4 | **8** | 3 | 15 | ~67 | | **+ Rendering Pipeline Optimization** | **4** | **8** | **3** | **< 15** | **> 80** | --- ## πŸ—οΈ System Architecture The system adopts a modular design, achieving efficient interoperation between computation (CUDA) and display (OpenGL). * **🧠 Inference Core** * Encapsulates `TensorRT 10`, supports FP32/FP16 dynamic precision. * Multi-threaded pipeline design, separating input IO from GPU computation. * **⚑ CUDA Acceleration Layer** * **Preprocessor**: Color space conversion, normalization, Resize (NPP). * **Postprocessor**: Anomaly map generation, threshold segmentation, heatmap rendering (Custom Kernels). * **🎨 Visualization & Interaction** * **Dashboard**: Control panel based on `ImGui`. * **Renderer**: Uses `CUDA-OpenGL Interop` to directly map VRAM textures, eliminating CPU-GPU bandwidth bottleneck. --- ## πŸ“… Changelog
v1.0.0 - 2026-01-28: Architecture Refactoring and Performance Optimization (Click to expand) * **New Modular Architecture**: Refactored configuration management, rendering, inference engine, and other independent modules. * **Rendering Optimization**: Implemented CUDA-OpenGL interoperability, eliminating Host-to-Device copy overhead. * **Pipeline Enhancement**: Multi-threaded Pipeline, support for FP16 acceleration. * **UI Upgrade**: Integrated ImGui for interactive parameter adjustment.

> For complete records, please refer to [CHANGELOG.md](./CHANGELOG.md) --- ## 🀝 Acknowledgements & Feedback > If this project helps your research or work, please give it a ⭐ **Star** on GitHub! If you find any bugs or have improvement suggestions, please submit an [Issue](https://github.com/ShowayLiao/LiMR/issues) or Pull Request. ## πŸ“š Reference If you find this project useful in your research or work, please cite this project: ```tex @article{liao2026limr, author = {Shaowei Liao and Wenyong Yu and Shaolin Liao}, title = {Lightweight Masked Reconstruction for Real-Time Sensor-Driven Anomaly Detection in Industrial IoT}, journal = {IEEE Internet of Things Journal}, year = {2026}, doi = {10.1109/JIOT.2026.3712733} } ``` ## πŸ“œ License This repository is licensed under the [Apache-2.0 License](LICENSE).