Skip to main content

Simple Interface for Camera in Python

Project description

Camconnect

Simple interface for connect, display, and interaction with the camera.

Installation

pip install camconnect

How To Use

Window for Capture Image

from camconnect import CaptureImage

import cv2



CaptureImage(cv2.VideoCapture(0),

             width=480, height=320, 

             window_name="Capture Image", 

             filename="captured_image.jpg").run()

Window for Record Video

from camconnect import RecordVideo

import cv2



RecordVideo(cv2.VideoCapture(0), 

            width=480, height=320, 

            window_name="Record Video", 

            filename="recorded_video.avi").run()

Window for Predict Image

from camconnect import PredictImage

import cv2



PredictImage(cv2.VideoCapture(0), 

             width=480, height=320,

             save_image=True,

             window_name="Predict Image", 

             inference_model=inference_model).run()

License

This project is licensed under the MIT License - see the LICENSE file for details.

Developed by Aimar Abimayu Pratama (c) 2024

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

camconnect-0.1.3.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

camconnect-0.1.3-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page