This project requires building in Visual Studio with the MSVC (Microsoft Visual C++) compiler. Ensure the following prerequisites are met before running the project:
- The full version of the Spinnaker SDK is installed.
- The FLIR Grasshopper 3 camera is connected.
Ensure that the Spinnaker SDK is installed in the following default directories:
- Include files should be in
C:/Program Files/Teledyne/Spinnaker/include
- Libraries should be in
C:/Program Files/Teledyne/Spinnaker/lib64/vs2015
If the Spinnaker SDK is installed in a different location, update the paths accordingly in the CMakeLists.txt
file:
set(Spinnaker_INCLUDE_DIR"C:/Program Files/Teledyne/Spinnaker/include")
link_directories("C:/Program Files/Teledyne/Spinnaker/lib64/vs2015")
- MSVC Compiler: Make sure Visual Studio includes the MSVC compiler.
- Configure Environment: Adjust the environment settings to target the correct version of the Windows SDK and platform toolset, if necessary.
- Command: In the root of the directory, create a Python virtual environment:
python -m venv venv
- Windows:
.\venv\Scripts\activate
- Mac or Linux:
source venv/bin/activate
- Requirements: Includes Numpy, OpenCV, pybind11
pip.exe install -r requirements.txt
- Install Command: With the virtual environment activated, install pybind11 using pip:
pip install pybind11
- Visual Studio: Open the solution or project folder in Visual Studio.
- Build Solution: Navigate to
Build > Build Solution
or pressCtrl+Shift+B
to compile the project.
- Navigate to
qsa/camera/out/build/x64-debug
. - Move everything from the
x64-debug
folder to thebuild
folder. - Delete the
x64-debug
folder, ensuring onlyqsa/camera/out/build
remains.
- Start Without Debugging: After a successful build, start the project by selecting
Debug > Start Without Debugging
or pressCtrl+F5
to run the application. - Camera Solution Only: You can now run only the camera solution.
- Full Software Suite: If you want to run all software which includes camera, laser, and dmd-c, open
main.py
inqsa
and press run!
- Make sure to review the Spinnaker SDK documentation for any specific setup or configuration details related to the FLIR Grasshopper 3 camera.
- It's often helpful to verify the camera's connection and functionality using any provided diagnostic tools or sample applications from FLIR before integrating it into your project.
- Good luck!!!
This updated documentation now includes important details about ensuring that the Spinnaker SDK is installed in the correct location, and how to adjust the paths in CMakeLists.txt
if necessary. This will be helpful for developers needing to customize their environment setup.