GithubHelp home page GithubHelp logo

vb6hobbyst7 / raspicv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adamheinrich/raspicv

0.0 2.0 0.0 310 KB

RaspiVid modified to provide image and motion vector data for processing in OpenCV

Makefile 2.65% C 89.84% C++ 7.51%

raspicv's Introduction

RaspiCV

RaspiVid modified to provide image and motion vector data for processing in OpenCV.

The original RaspiVid.c is modified (see f564a2f) to pass image and motion vector buffers to callbacks defined in cv.h. File cv.cpp implements these callbacks and handles simple processing (display image and motion vectors).

The motion vectors displayed by the application are colored according to their SAD (sum of absolute differences) value. SAD value of 0 corresponds to blue, SAD Threshold corresponds to red. Vectors with SAD above the threshold are not displayed:

screenshot

Building

First build the OpenCV library and make sure it is registered by pkg-config:

pkg-config --libs opencv

Then make the USERLAND_DIR variable in Makefile point to Raspberry Pi's userland repository. Makefile references some files required by RaspiVidCv.c.

Finally, build the application by make and run it by make run or:

raspicv -v -w 640 -h 480 -fps 30 -t 0 -o /dev/null -x /dev/null -r /dev/null -rf gray

Currently the cv.cpp is limited to 640x480 grayscale image. This can be easily modified (see function cv_init()).

raspicv's People

Contributors

adamheinrich avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.