Socket
Book a DemoInstallSign in
Socket

simpcamcap

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simpcamcap

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.

pipPyPI
Version
1.0.0
Maintainers
1

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

$ simpcamcap

or

$ 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/209317321-78aa1f7a-3d1e-4538-982c-83ea37ee5e29.mp4

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.