All Projects → idlesign → opencv-proto

idlesign / opencv-proto

Licence: BSD-3-Clause license
Allows fast prototyping in Python for OpenCV

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to opencv-proto

HandGesturesDroneController
Hand Gestures for Drone Control Using Deep Learning ✊ ✋ 🚁 ☝️ 🙌
Stars: ✭ 23 (+27.78%)
Mutual labels:  opencv-python
crack-detection-opencv
Crack Detection On Highway Or Pavement Using OpenCV
Stars: ✭ 59 (+227.78%)
Mutual labels:  opencv-python
Face-Detection-and-Tracking
Face Detection and tracking using CamShift, Kalman Filter, Optical Flow
Stars: ✭ 30 (+66.67%)
Mutual labels:  opencv-python
Feature-Detection-and-Description
Feature Detection and Description with SIFT, SURF, KAZE, BRIEF, ORB, BRISK, AKAZE and FREAK using Python and OpenCV
Stars: ✭ 31 (+72.22%)
Mutual labels:  opencv-python
image processing
image-processing exercises.
Stars: ✭ 25 (+38.89%)
Mutual labels:  opencv-python
herokuobjectdetection
This is the code for Medium tutorial
Stars: ✭ 17 (-5.56%)
Mutual labels:  opencv-python
Python-Funscript-Editor
Funscript Editor written in Python with an motion tracking add-on to partially automate the generation of funscripts
Stars: ✭ 21 (+16.67%)
Mutual labels:  opencv-python
python-opencv-gpu-video
GPU accelerated video processing on OpenCV with Python.
Stars: ✭ 62 (+244.44%)
Mutual labels:  opencv-python
camera-fusion
Multiple cameras calibration and fusion with OpenCV Python.
Stars: ✭ 27 (+50%)
Mutual labels:  opencv-python
openCVtutorials
OpenCV Tutorials
Stars: ✭ 12 (-33.33%)
Mutual labels:  opencv-python
indi-allsky
Software to manage a Linux-based All Sky Camera.
Stars: ✭ 59 (+227.78%)
Mutual labels:  opencv-python
-le-medicin
Official Repository for Intra SRM-MIC hackathon-Team Silicon
Stars: ✭ 15 (-16.67%)
Mutual labels:  opencv-python
Counting-people-video
Counting the number of people in a video.
Stars: ✭ 60 (+233.33%)
Mutual labels:  opencv-python
Vehicle-Logo-Recognition
vehicle logo location and recognition
Stars: ✭ 19 (+5.56%)
Mutual labels:  opencv-python
StructuredLight
Creating a 3D reconstruction of an object using multiple images
Stars: ✭ 42 (+133.33%)
Mutual labels:  opencv-python
STUDENT-ATTENDANCE-USING-FACIAL-RECOGNITION-SYSTEM-OPENCV
No description or website provided.
Stars: ✭ 46 (+155.56%)
Mutual labels:  opencv-python
ComputerVision-Essentials
Computer Vision Essentials in Python Programming Language 🎉
Stars: ✭ 28 (+55.56%)
Mutual labels:  opencv-python
Feature-Detection-and-Matching
Feature Detection and Matching with SIFT, SURF, KAZE, BRIEF, ORB, BRISK, AKAZE and FREAK through the Brute Force and FLANN algorithms using Python and OpenCV
Stars: ✭ 95 (+427.78%)
Mutual labels:  opencv-python
MobyCAIRO
Computer-assisted image straightening and cropping
Stars: ✭ 16 (-11.11%)
Mutual labels:  opencv-python
haar-cascade-files
A complete collection of Haar-Cascade files. Every Haar-Cascades here!
Stars: ✭ 55 (+205.56%)
Mutual labels:  opencv-python

opencv-proto

https://github.com/idlesign/opencv-proto

release lic ci coverage

Work in progress. Stay tuned.

Description

Allows fast prototyping in Python for OpenCV

Offers primitives and simplified interfaces to streamline prototypes construction in Python.

Facilitates:

  • Windows construction and management
  • Trackbar construction
  • Configuration save/load (including trackbar values)
  • Key binding (e.g. for trackbar control, configuration save/load)
  • Video capturing and modification
  • Work with images
  • Work with text
  • Frames transformation

Samples

Color Palette

Let's replace 37 lines of source code from Trackbar as the Color Palette tutorial with ocvproto-based implementation:

from ocvproto.toolbox import WindowManager, Canvas

with WindowManager() as wm:
    rgb = wm.window.add_trackbar_group(['R', 'G', 'B'], max=255)
    for _ in wm.app.loop():
        wm.set_frame(Canvas(512, 300, color=rgb))

Camera capture

Now let's capture video camera stream into ocvproto.avi file, being able to adjust blur.

Let's also setup config filepath (ocvproto.json) - this allows us to store current trackbar values (s key) and load them (r key). It is useful to restore settings between sessions.

We bind z key to take camera shots.

from ocvproto.toolbox import WindowManager, Camera

with WindowManager() as wm:

    wm.app.set_config('ocvproto.json')

    blur = wm.window.add_trackbar_group(['x', 'y'], 'Blur', default=1)

    with Camera() as cam:
        wm.app.bind_key('z', cam.dump_image)

        for _ in wm.app.loop():
            cam.read()
            cam.blur(blur)
            cam.dump()
            wm.set_frame(cam)

Read the documentation.

Requirements

  • Python 3.6+
  • opencv-python (or variants)

Quick install with third-parties: $ pip install opencv-proto[all]

Documentation

https://opencv-proto.readthedocs.org/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].