This morining i woke up, and i found under the christmas tree a very GOOD GIFT

SantaGroG relased a new Service that allows to stream the video from opencv to a web page...

THAT'S FANTASTIC !!!!! i used GOOGLE CHROME FOR MY TEST... IT WORKY !!!! THANKS SANTAGROG

 

PYTHON SCRIPT -> JUST RUN IT
 
from org.myrobotlab.service import OpenCV
from org.myrobotlab.opencv import OpenCVData
from java.lang import String
from java.lang import Class
opencv = runtime.createAndStart("opencv","OpenCV")
opencv.addFilter("pd","PyramidDown")
opencv.setDisplayFilter("pd")
opencv.capture()
streamer = runtime.createAndStart("streamer","VideoStreamer")
streamer.setPort(9090)
streamer.start()
streamer.attach(opencv)

GroG

11 years 7 months ago

I "tried" to release it, but I found the build coming off the build machine would not work on my Laptop.  What build # do you have? And MERRY CHRISTMAS HO HO HO !

Alessandruino

11 years 7 months ago

this is part of what i did

i'm writing the script

I completely forgot about the GUI way of connecting things !   It's great you figured it out without any help !  So, now that your the Guru of programming with the gui, any suggestions on making it better?

Alessandruino

11 years 7 months ago

In reply to by GroG

it could be funny if i click on an service output and it show me(with a different color for example) , what are the related other input that could be or is useful to attach with that output

For example i start clock and i start speak, and if i click on pulse, string it show me that it could be attached to the speak service...

BTW is a LOT OF WORK

Alessandruino

11 years 7 months ago

This is the python script to use in order to stream the video on the web page...

 

from org.myrobotlab.service import OpenCV
from org.myrobotlab.opencv import OpenCVData
from java.lang import String
from java.lang import Class
opencv = runtime.createAndStart("opencv","OpenCV")
opencv.addFilter("pd","PyramidDown")
opencv.setDisplayFilter("pd")
opencv.capture()
streamer = runtime.createAndStart("streamer","VideoStreamer")
streamer.setPort(9090)
streamer.start()
streamer.attach(opencv)