Name | simpcamcap JSON |
Version |
1.0.0
JSON |
| download |
home_page | https://github.com/PINTO0309/simpcamcap |
Summary | Very simple recording tool using only OpenCV. Automatically record the camera capture to mp4, press C key or left mouse button click captures the image. |
upload_time | 2022-12-23 11:25:34 |
maintainer | |
docs_url | None |
author | Katsuya Hyodo |
requires_python | >=3.8 |
license | MIT License |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# simple_camera_capture
Very simple recording tool using only OpenCV. Automatically record the camera capture to mp4, press **`C`** key or left mouse button click to take a still image.
## Environment
- opencv-python==4.1.2.30
## Usage
### 1. Start of Recording
```bash
$ simpcamcap
```
or
```bash
$ xhost +local: && \
docker run --rm -it \
-v `pwd`:/workdir \
-w /workdir \
-v /tmp/.X11-unix/:/tmp/.X11-unix:rw \
-e DISPLAY=$DISPLAY \
-e QT_X11_NO_MITSHM=1 \
--device /dev/video0:/dev/video0 \
ghcr.io/pinto0309/simple_camera_capture:latest simpcamcap
```
```
usage: simpcamcap
[-h]
[-cn CAMERA_NO]
[-cw CAMERA_CAP_WIDTH]
[-ch CAMERA_CAP_HEIGHT]
[-mi MOVIE_OR_IMAGE_PATH]
[-dvr]
[-dcr]
[-V]
optional arguments:
-h, --help
show this help message and exit.
-cn CAMERA_NO, --camera_no CAMERA_NO
-cw CAMERA_CAP_WIDTH, --camera_cap_width CAMERA_CAP_WIDTH
-ch CAMERA_CAP_HEIGHT, --camera_cap_height CAMERA_CAP_HEIGHT
-mi MOVIE_OR_IMAGE_PATH, --movie_or_image_path MOVIE_OR_IMAGE_PATH
-dvr, --disable_video_recording
-dcr, --display_camera_resolutions
Displays a list of resolutions supported by the camera.
Cannot be used in conjunction with other options other than -cn.
Linux only option.
sudo apt update && sudo apt install v4l-utils
-V, --version
Show version and exit.
```
### 2. Saving a still image
Press **`C`** key on the keyboard or left mouse button click.
### 3. End of Recording
Press the **`Q`** key or **`ESC`** key on the keyboard or right mouse button click.
### 4. Sample
![image](https://user-images.githubusercontent.com/33194443/209312941-e826214a-640b-49fc-9fc0-97f0758cab97.png)
https://user-images.githubusercontent.com/33194443/209317321-78aa1f7a-3d1e-4538-982c-83ea37ee5e29.mp4
Raw data
{
"_id": null,
"home_page": "https://github.com/PINTO0309/simpcamcap",
"name": "simpcamcap",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "",
"author": "Katsuya Hyodo",
"author_email": "rmsdh122@yahoo.co.jp",
"download_url": "https://files.pythonhosted.org/packages/04/1c/bb5a9ada21fd650666a5b67c952c24068c7b265b680faf7962cb74ff2220/simpcamcap-1.0.0.tar.gz",
"platform": "linux",
"description": "# simple_camera_capture\nVery simple recording tool using only OpenCV. Automatically record the camera capture to mp4, press **`C`** key or left mouse button click to take a still image.\n\n## Environment\n- opencv-python==4.1.2.30\n\n## Usage\n### 1. Start of Recording\n```bash\n$ simpcamcap\n```\nor\n```bash\n$ xhost +local: && \\\ndocker run --rm -it \\\n-v `pwd`:/workdir \\\n-w /workdir \\\n-v /tmp/.X11-unix/:/tmp/.X11-unix:rw \\\n-e DISPLAY=$DISPLAY \\\n-e QT_X11_NO_MITSHM=1 \\\n--device /dev/video0:/dev/video0 \\\nghcr.io/pinto0309/simple_camera_capture:latest simpcamcap\n```\n```\nusage: simpcamcap\n[-h]\n[-cn CAMERA_NO]\n[-cw CAMERA_CAP_WIDTH]\n[-ch CAMERA_CAP_HEIGHT]\n[-mi MOVIE_OR_IMAGE_PATH]\n[-dvr]\n[-dcr]\n[-V]\n\noptional arguments:\n -h, --help\n show this help message and exit.\n -cn CAMERA_NO, --camera_no CAMERA_NO\n -cw CAMERA_CAP_WIDTH, --camera_cap_width CAMERA_CAP_WIDTH\n -ch CAMERA_CAP_HEIGHT, --camera_cap_height CAMERA_CAP_HEIGHT\n -mi MOVIE_OR_IMAGE_PATH, --movie_or_image_path MOVIE_OR_IMAGE_PATH\n -dvr, --disable_video_recording\n -dcr, --display_camera_resolutions\n Displays a list of resolutions supported by the camera.\n Cannot be used in conjunction with other options other than -cn.\n Linux only option.\n sudo apt update && sudo apt install v4l-utils\n -V, --version\n Show version and exit.\n```\n### 2. Saving a still image\nPress **`C`** key on the keyboard or left mouse button click.\n### 3. End of Recording\nPress the **`Q`** key or **`ESC`** key on the keyboard or right mouse button click.\n### 4. Sample\n![image](https://user-images.githubusercontent.com/33194443/209312941-e826214a-640b-49fc-9fc0-97f0758cab97.png)\n\nhttps://user-images.githubusercontent.com/33194443/209317321-78aa1f7a-3d1e-4538-982c-83ea37ee5e29.mp4\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "Very simple recording tool using only OpenCV. Automatically record the camera capture to mp4, press C key or left mouse button click captures the image.",
"version": "1.0.0",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "95afb5ff56f7d1be05560c3dce5dc6d6",
"sha256": "c3f68ace44ff2de2a22719c10328e6dd04e5b1c387d4a1bc88744583f681a491"
},
"downloads": -1,
"filename": "simpcamcap-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "95afb5ff56f7d1be05560c3dce5dc6d6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 5499,
"upload_time": "2022-12-23T11:25:32",
"upload_time_iso_8601": "2022-12-23T11:25:32.895285Z",
"url": "https://files.pythonhosted.org/packages/61/4a/c154b8352455121815214f9971db1621cec09ede1e36f85f882fca2493c8/simpcamcap-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "c9acc6c655dd1ba571c79b74561c2095",
"sha256": "40caa0eafd569edca252f4237912a02b0a12d06f4a75f8f6bb99edd640001cca"
},
"downloads": -1,
"filename": "simpcamcap-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "c9acc6c655dd1ba571c79b74561c2095",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 4623,
"upload_time": "2022-12-23T11:25:34",
"upload_time_iso_8601": "2022-12-23T11:25:34.055356Z",
"url": "https://files.pythonhosted.org/packages/04/1c/bb5a9ada21fd650666a5b67c952c24068c7b265b680faf7962cb74ff2220/simpcamcap-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-23 11:25:34",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "PINTO0309",
"github_project": "simpcamcap",
"lcname": "simpcamcap"
}