Skip to content

adda25/mruby-LibVision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#LibVision LibVision is an mruby gem for computer vision operations on frames grabs from the Raspberry camera.

##Compile the C++ shared library

cd lib; make
sudo make install
make clean

##Building mruby

./run_test.rb

##Run from mruby In order to work on static image loaded from memory:

lb = LibVision.new()
lb.set_value4key(["imagePath", *"yourAbsolutePathToImage"*])
lb.execute(["loadImageFromMem", "preprocessingADPT", "detectSquares", "saveCandidates"])
lb.get_value4key(["polygonsFounds"])

or in order to use the Raspberry camera:

lb = LibVision.new()
lb.execute(["openCamera","acquireFrame", "preprocessingADPT", "detectCircles", "holdOnlyRightColored", "saveCandidates"])
lb.get_value4key(["polygonsFounds"])

type:

lb.execute(["printMethods"])

for a list of the available functions.

##Dependencies This gem require OpenCV and the Raspicam library from: http://www.uco.es/investiga/grupos/ava/node/40

About

LibVision is an mruby gem for computer vision operations on frames grabbed from the Raspberry camera.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published