Legacy example · Python · Version 1.0
Laser Detection
| Authors | Holoscan Team (NVIDIA) |
|---|---|
| Supported platforms | aarch64 |
| Language | Python |
| Version | 1.0 |
| Compatibility | HSDK 2.2 |
| Contribution level | Level 1 · Very high-quality code |
| Source | HoloHub |
Legacy HoloHub application
This application comes from HoloHub and was last tested with Holoscan SDK (HSDK) 2.2. It runs with the HoloHub CLI, ./holohub.
Overview
This application demonstrates the latency differences between USB and EVT cameras by detecting laser pointer positions on a monitor. It uses two camera sources to track laser positions and displays the results in real-time with different colored icons.
Hardware Requirements
- USB camera (Logitech 4k Pro Webcam or compatible)
- EVT camera (HB-9000-G 25GE or compatible)
- Monitor with matte screen (120fps or higher refresh rate recommended)
- Safe laser pointer for viewing purposes
- Completed calibration files from both USB and EVT calibration apps
Setup Instructions
- Complete the calibration process for both USB and EVT cameras
- Ensure both cameras are properly connected and configured
- Position the cameras to have a clear view of the monitor
- Verify the calibration files (
usb-cali.npyandevt-cali.npy) are present in the build directory
Running the Application
LD_PRELOAD=/usr/lib/aarch64-linux-gnu/nvidia/libnvjpeg.so \
./holohub run laser_detection --local --as-root
Usage
- A white icon represents the USB camera's laser detection
- A green icon represents the EVT camera's laser detection
- Point the laser at the monitor to see the latency difference between the two cameras
- The icons will move to the coordinates where the laser is detected
Notes
- Use only a matte screen monitor to avoid specular reflections
- Ensure proper lighting conditions
- Use only safe laser pointers designed for viewing purposes
- If detection is inaccurate, recalibrate both cameras
- The application requires root; run with
--as-root