Skip to content

C++ library designed to interact with standard cameras.

License

Notifications You must be signed in to change notification settings

jrendon102/camera_driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Camera Driver

License

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.

Dependencies

The Camera Driver package relies on the following dependency:

  • OpenCV 4

Version

Current Version: 2.0.1

Building the Package

For Linux OS

  1. Clone the Repository: Clone the Camera Driver repository to your local machine.

    git clone git@github.com:jrendon102/camera_driver.git
  2. Navigate to the Project Directory: Go to the directory where you cloned the repository.

    cd camera_driver
  3. Build the Package: Use CMake and your preferred C++ compiler to build the package.

    mkdir build
    cd build
    cmake ../
    cmake --build .
  4. 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.

  1. Use find package(camera_driver) in Your Project: In your project's CMakeLists.txt, use find_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.

For Windows OS

  1. 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.

  2. Clone the Repository: Clone the Camera Driver repository to your local machine.

    git clone git@github.com:jrendon102/camera_driver.git
  3. Navigate to the Project Directory: Go to the directory where you cloned the repository.

    cd camera_driver
  4. 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
  5. 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.

  1. Use find package(camera_driver) in Your Project: In your project's CMakeLists.txt, use find_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.

Uninstalling the Package

For Linux OS

  1. Navigate to the Project Directory: Go to the directory where you cloned the repository.

    cd camera_driver
  2. Uninstall the package: Uninstall using the following command:

    cd build/
    sudo make uninstall

For Windows OS

  1. Open Developer Command Prompt or PowerShell for VS 2022: Ensure you use the specialized command prompt or PowerShell for Visual

  2. Navigate to the Project Build Directory: Go to the directory where you cloned the repository.

    cd camera_driver/build
  3. Uninstall the package: Uninstall using the following command:

     cmake --build x64-release --target uninstall --config Release

Examples

For Windows OS

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.

Author and Maintainer

About

C++ library designed to interact with standard cameras.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published