# 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
English | δΈζ
π Paper β’
π Python Prototype
---
## πΈ 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).