Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcos-moura97/simple-driver-v4l2-camera
Simple code example of a camera driver with the V4L2 library. This code capture, process (bitshift) and save one image
https://github.com/marcos-moura97/simple-driver-v4l2-camera
camera-api linux openmp shift-operation v4l2
Last synced: 4 days ago
JSON representation
Simple code example of a camera driver with the V4L2 library. This code capture, process (bitshift) and save one image
- Host: GitHub
- URL: https://github.com/marcos-moura97/simple-driver-v4l2-camera
- Owner: marcos-moura97
- Created: 2022-04-05T16:57:30.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-05T17:02:14.000Z (almost 3 years ago)
- Last Synced: 2024-11-08T17:11:50.682Z (about 2 months ago)
- Topics: camera-api, linux, openmp, shift-operation, v4l2
- Language: C++
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Camera Driver with Inferface V4L2
## Brief description
Simple example of a camera driver with the interface V4L2. This code capture, process (bitshift) and save one raw image.## Build
```
$ g++ capturev4l2.cpp -o capturev4l2
```## Usage
This code has 2 optional arguments.
- The first is the camera number (/dev/video0, /dev/video1, etc);
- The second is how many bits the image will shift, if will be 0 (RAW8), 2 (RAW10) or 4 (RAW12);So, to grab a raw image from the camera located at /dev/video2 and save a RAW12 raw imge, this is the command:
```
$ ./capturev4l2 2 RAW12
```