{"id":17821374,"url":"https://github.com/garlinhs/camera_driver","last_synced_at":"2026-05-06T13:10:05.673Z","repository":{"id":227994965,"uuid":"772890153","full_name":"garlinhs/camera_driver","owner":"garlinhs","description":"C++ library designed to interact with standard cameras.","archived":false,"fork":false,"pushed_at":"2024-03-16T06:48:35.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T10:16:46.545Z","etag":null,"topics":["c-plus-plus","camera","cmake","driver","library","linux","opencv","terminal","usb"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/garlinhs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-16T06:43:26.000Z","updated_at":"2024-10-08T00:00:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"63314b0d-6100-49b3-ac1a-db956951c81a","html_url":"https://github.com/garlinhs/camera_driver","commit_stats":null,"previous_names":["garlinhs/camera_driver"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/garlinhs/camera_driver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garlinhs%2Fcamera_driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garlinhs%2Fcamera_driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garlinhs%2Fcamera_driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garlinhs%2Fcamera_driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garlinhs","download_url":"https://codeload.github.com/garlinhs/camera_driver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garlinhs%2Fcamera_driver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32695059,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-plus-plus","camera","cmake","driver","library","linux","opencv","terminal","usb"],"created_at":"2024-10-27T17:17:09.553Z","updated_at":"2026-05-06T13:10:05.656Z","avatar_url":"https://github.com/garlinhs.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Camera Driver\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\nThe 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.\n\n## Dependencies\n\nThe Camera Driver package relies on the following dependency:\n\n- **OpenCV 4**\n\n## Building the Package\n\nTo build the Camera Driver package, follow these steps:\n\n1. **Clone the Repository**: Clone the Camera Driver repository to your local machine.\n\n   ```bash\n   git clone https://github.com/garlinhs/camera_driver.git\n   ```\n2. **Navigate to the Project Directory**: Go to the directory where you cloned the repository.\n   \n   ```bash\n   cd camera_driver\n   ```\n\n3. **Build the Package**: Use CMake and your preferred C++ compiler to build the package.\n   \n   ```bash\n   mkdir build\n   cd build\n   cmake ../\n   cmake --build .\n   ```\n\n4. **Install the Package (Optional)**: If you want to install the package system-wide, you can use the following command:\n   \n   ```bash\n   sudo make install\n   ```\n\nAfter installation, the Camera Driver package should be available for other CMake projects on your system.\n\n5. **Use `find package(camera_driver)` in Your Project**: In your project's `CMakeLists.txt`, use `find_package`\nto locate the Camera Driver package:\n\n   ```bash\n   find_package(camera_driver REQUIRED)\n   ```\n\nFinally, you can now link your project's targets to the Camera Driver package, build and execute your code.\n\n## Uninstalling the Package\nTo uninstall the Camera Driver package, follow these steps:\n\n1. **Navigate to the Project Directory**: Go to the directory where you cloned the repository.\n   \n   ```bash\n   cd camera_driver\n   ```\n2. **Uninstall the package**: Uninstall using the following command:\n\n   ```bash\n   cd build/\n   sudo make uninstall\n   ```\n\n## Quick Example\n\nHere's a basic example of how to use the Camera Driver Library:\n\n```cpp\n#include \u003ciostream\u003e\n#include \u003cstdexcept\u003e\n#include \u003ccamera_driver/camera.h\u003e\n\nint main() {\n    // Create a Camera instance\n    Camera camera(\"Camera\", \"USB\", 0, 60);\n\n    // Get camera specs\n    CameraInfo cameraInfo = camera.GetCameraSpecs();\n\n    // Print camera info\n    std::cout \u003c\u003c \"Camera Info:\" \u003c\u003c std::endl;\n    std::cout \u003c\u003c \"Name: \" \u003c\u003c cameraInfo.name \u003c\u003c std::endl;\n    std::cout \u003c\u003c \"Type: \" \u003c\u003c cameraInfo.type \u003c\u003c std::endl;\n    std::cout \u003c\u003c \"Index: \" \u003c\u003c cameraInfo.index \u003c\u003c std::endl;\n    std::cout \u003c\u003c \"FPS: \" \u003c\u003c cameraInfo.fps \u003c\u003c std::endl;\n\n    try\n    {\n        cv::VideoCapture videoCapture(0);\n        while (true)\n        {\n            // Capture a frame from the camera (assuming the camera is at index 0)\n            cv::Mat frame = camera.CaptureFrame(videoCapture, cameraInfo.index);\n\n            // Display the captured frame for 5 seconds\n            camera.DisplayFrame(\"Camera Feed\", frame);\n        }\n        \n    }\n    catch(std::exception \u0026e)\n    {\n        std::cout \u003c\u003c \"Caught Exception: \" \u003c\u003c e.what() \u003c\u003c std::endl;\n    }\n\n    return 0;\n}\n```\nThis example demonstrates the basic usage of the Camera Driver Library, capturing frames from a camera and displaying a video stream.\n\n## Author and Maintainer\n- Garlinh Soler\n- Email: garlinhs@gmail.com","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarlinhs%2Fcamera_driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgarlinhs%2Fcamera_driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarlinhs%2Fcamera_driver/lists"}