Table of Contents
An application created for the lens testing team at OptiTrack that takes an image and identifies and grades the relevant lens' quality by examining how circular the markers are.
**Alt text:** Full view of the application using zoom view and displaying focus and lens statistics.The program the lens testing team currently uses is intended for direct motion capture usage and is therefore much more technically complex than what's required for basic lens testing. Our program is intended to be a lightweight and easy to use solution for the team, who'll experience the same functionality, but in a much more streamlined way.
- Viewing focus and circularity metrics via graphs and plain numbers
- Clear, color-coded pass/inconclusive/fail lens grading metrics
- Ability to export lens metrics
- Dual-language options (English and Simplified Chinese)
- Mode to zoom in on outer quadrants or specific markers
Daniel Green (fuzzylogic88) --> Team Captain, Scrum Master
Nathan Puckett (natpuck) --> GUI
Bernardo Mendes (BernardoM03) --> Implementation
Jack Ollenbrook (OllenJ) --> Implementation
Raed Kabir (Reptop) --> GUI, Implementation
- Qt 6.10.0 (Important: select the
msvc2022_64component during installation) - OpenCV 4.12.0
- MSVC2022_64 C++ toolchain
- Cmake 4.1.2
- Clone this repository.
⚠️ Avoid placing it too deep in your file system; Windows max-path issues can break the build script. - Set environment variables (configure-time only)
OPENCV_DIR = ..\opencv\buildOPENCV_BIN_DIR = ..\opencv\build\binQt6_DIR = ..\Qt\6.10.0\msvc2022_64\lib\cmake\Qt6QT_PLUGIN_PATH = ..\Qt\6.10.0\msvc2022_64\pluginsAvoid settingQT_PLUGIN_PATHglobally; deployment handles plugins.
- Build using the provided script:
Example:
..\Production-Lens-Validation\CameraViewerApp\winBuild.bat./WinBuild.bat <CameraSDK_PATH> - Your executable will be located at
..\Production-Lens-Validation\CameraViewerApp\build\Release\CameraViewerApp.exe.
- Install Dependencies:
sudo apt update && sudo apt install -y cmake git build-essential qt6-base-dev qt6-base-private-dev qt6-tools-dev qt6-svg-dev libgl1-mesa-dev libjpeg-dev libopencv-dev python3-opencv
-
Clone Repository
Navigate to the directory where you want the project, then run:git clone https://github.com/fuzzylogic88/Production-Lens-Validation.git cd Production-Lens-Validation -
Build Project
chmod +x build.sh ./build.sh ../OptiTrack_Camera_SDK_3.4.1_Final_Ubuntu -
(Optional) Enable color camera support (FFmpeg)
- Install FFmpeg:
sudo apt install -y ffmpeg - Build with FFmpeg support:
./linuxBuild.sh ../CameraSDK --ffmpeg
- Install FFmpeg:
-
Configure network (required)
Set the camera network interface to Link-Local Only:Settings → Network → Wired (camera port) → IPv4 → IPv4 Method → Link-Local Only -
Run application
./build/CameraViewerApp
All non-third party code included in this repository is jointly owned by the team mentioned above and NaturalPoint Inc. DBA OptiTrack.
Distributed under the GNU LESSER GENERAL PUBLIC LICENSE License.
See LICENSE.txt in the "licenses" folder for more information.
Third-party licenses can also be found in the "licenses" folder, named accordingly.
