Only thing changed is Image class Il giorno mer, 14/01/2009 alle 11.52 -0800, Stuart Axon ha scritto: > Will this work make any difference to plain vector + transform support? > > > > ----- Original Message ---- > From: francesco fantoni <[email protected]> > To: [email protected] > Sent: Wednesday, January 14, 2009 3:33:30 PM > Subject: Re: [shoebot-devel] video library for shoebot > > I got it!!! it was a BIG PAIN IN THE ..., but at last i have a new > implementation of sbvideo library that goes FULL SPEED, even faster than > video fps if the image is not too huge and you set speed() to a value > bigger than 30. > Anyway, now it can go 30 fps HD resolution, and that's not too bad. > > I decided that I DO HATE image processing in python, i nearly got insane > just to find out the holy grail of cairo image-surface stride value. > I had to make a change in Image class as well, and i still have to > smooth edges a bit, but i think i will upload the new library and push > the changes to shoebot tonight, after testing with webcam (i don't have > one here at my studio) > > i don't want to see a numpy array again in my whole life! > best to all, > francesco > > Il giorno mer, 14/01/2009 alle 02.02 +0100, architetto francesco fantoni > ha scritto: > > again a bit faster Image class, improving little by little: > > when passing image data to constructor I switched to cstringIO from > > stringIO. > > Not full fps hd video yet, but approaching (; > > > > Next days i will try to modify video library and see if a more direct > > way of building a cairo imagesurface from opencv grabbed frame can be > > implemented and if it brings more speed. this will need a little > > modification to Image class as well, in order to have the possibility to > > pass a cairo imagesurface as data and not only a string image. > > As both opencv and cairo use BGR mode for images it could speed things a > > bit, but it depends on which library is more optimized for speed: PIL or > > opencv > > > > > > > > Il giorno mar, 13/01/2009 alle 20.48 +0100, architetto francesco fantoni > > ha scritto: > > > I added a webcam script example to sbvideo library > > > > > > > > > Il giorno mar, 13/01/2009 alle 11.44 +0100, francesco fantoni ha > > > scritto: > > > > i've put togheter a VERY basic video library for Shoebot > > > > (it could be the first native shoebot library) > > > > The library itself is built upon opencv, OpenCV (Open Source Computer > > > > Vision) is a library mainly aimed at real time computer vision. > > > > You need opencv and its python bindings in order to use this library, so > > > > on debian-based Linux you will have to install python-opencv and > > > > libhighgui1 packages or similar packages providing the right > > > > dependencies. > > > > > > > > usage is more or less documented on README.txt in library package and > > > > i've included a small example script. > > > > The package is available as a zipped file named sbvideo.zip here: > > > > http://www.hv-a.com/shoebot > > > > > > > > It can do both camera and video-file frame grabbing, but up to now i've > > > > only tested with video files on linux, so expect some bug. > > > > > > > > > > _______________________________________________ > > > Shoebot-devel mailing list > > > [email protected] > > > http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net > > > > _______________________________________________ > > Shoebot-devel mailing list > > [email protected] > > http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
_______________________________________________ Shoebot-devel mailing list [email protected] http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
