Skip to content

sensorbee/opencv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9573039 · Dec 31, 2017

History

5 Commits
Jun 28, 2016
Jun 28, 2016
Jun 28, 2016
Jun 28, 2016
Jun 28, 2016
Jun 28, 2016
Jun 28, 2016
Jun 28, 2016
Jun 28, 2016
Jun 28, 2016
Jun 28, 2016
Dec 31, 2017
Jun 28, 2016

Repository files navigation

wercker status

OpenCV plugin for SensorBee

This is the OpenCV plugin for SensorBee.

This plugin currently supports following features of OpenCV:

  • Inputting video stream from a file or a camera
  • Encoding JPEG
  • Cascade classifier

Requirements

  • OpenCV with ffmpeg enabled for video input sources
    • Example on Mac OS X: brew install homebrew/science/opencv --with-ffmpeg
  • SensorBee
    • v0.5 or later

Usage

Plugin Registration

Add gopkg.in/sensorbee/opencv.v0/plugin to build.yaml for the build_sensorbee command.

build.yaml

plugins:
- gopkg.in/sensorbee/opencv.v0/plugin

BQL examples

Capturing frames from a video file

-- capturing
CREATE PAUSED SOURCE camera1_avi TYPE opencv_capture_from_uri WITH
    uri="video/camera1.avi",
    frame_skip=4, next_frame_error=false;

This source will start generating a stream from "video/camera1.avi" after executing RESUME query.

RESUME SOURCE camera1_avi;

Note that PAUSED should not be specified when capturing from a webcam, which keeps generating a video stream.