The Camera Driver Library is a simple and easy-to-use C++ library designed to interact with standard cameras. It simplifies the process of capturing frames, displaying video feeds, and obtaining camera information. This library can be used to integrate camera functionality into your projects effortlessly.
The Camera Driver package relies on the following dependency:
- OpenCV 4
Current Version: 2.0.1
-
Clone the Repository: Clone the Camera Driver repository to your local machine.
git clone [email protected]:jrendon102/camera_driver.git
-
Navigate to the Project Directory: Go to the directory where you cloned the repository.
cd camera_driver
-
Build the Package: Use CMake and your preferred C++ compiler to build the package.
mkdir build cd build cmake ../ cmake --build .
-
Install the Package (Optional): If you want to use the package with other CMake projects or system-wide, you can install it by running the following command from within the build directory:
sudo make install
After installation, the Camera Driver package should be available for other CMake projects on your system.
-
Use
find package(camera_driver)
in Your Project: In your project'sCMakeLists.txt
, usefind_package
to locate the Camera Driver package:find_package(camera_driver REQUIRED)
Finally, you can now link your project's targets to the Camera Driver package, build and execute your code.
-
Open Developer Command Prompt or PowerShell for VS 2022: Ensure you use the specialized command prompt or PowerShell for Visual Studio 2022 as it automatically sets up the environment for using cl.exe and other related tools.
-
Clone the Repository: Clone the Camera Driver repository to your local machine.
git clone git@github.com:jrendon102/camera_driver.git
-
Navigate to the Project Directory: Go to the directory where you cloned the repository.
cd camera_driver
-
Build the Package: Use CMake and your preferred C++ compiler to build the package. (This example uses Visual Studio 17 2022)
mkdir build cd build cmake ../ --preset x64-release cmake --build x64-release --config Release
-
Install the Package (Optional): If you want to use the package with other CMake projects or system-wide, you can install it by running the following command from within the build directory:
cmake --install x64-release
After installation, the Camera Driver package should be available for other CMake projects on your system.
-
Use
find package(camera_driver)
in Your Project: In your project'sCMakeLists.txt
, usefind_package
to locate the Camera Driver package:find_package(camera_driver REQUIRED)
Finally, you can now link your project's targets to the Camera Driver package, build and execute your code.
-
Navigate to the Project Directory: Go to the directory where you cloned the repository.
cd camera_driver
-
Uninstall the package: Uninstall using the following command:
cd build/ sudo make uninstall
-
Open Developer Command Prompt or PowerShell for VS 2022: Ensure you use the specialized command prompt or PowerShell for Visual
-
Navigate to the Project Build Directory: Go to the directory where you cloned the repository.
cd camera_driver/build
-
Uninstall the package: Uninstall using the following command:
cmake --build x64-release --target uninstall --config Release
After building the project, you need to navigate to the build/x64-release/examples/Release
directory to find the basic_example.exe
file. You can run the executable from this location to see the example in action.
- Julian Rendon
- Email: [email protected]