We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, all!
I'm trying to warp a video signal, in order of making a section of it (inside 4 selected points/vectors) expand automatically to fit exactly the width and height of the processing screen image. The portion of the video inside the four vectors area should distort in correspondence of the deformation of that given area. In addition, I need to use gsvideo, dued to the reason that I am working with processing 1.5.1 in mac and I'm not able to install quicktime. Why processing 1.5.1? Because I'm running artoolkit library for augmented reality and only works for me in this old version of processing. Any idea or suggestion would be very welcome!
Answers
Responding to my own question: here is an approach, but I'm getting an odd output, video deformation doesn't behave as I expected. Thanks for checking.
press '1','2','3' or '4' for settings vectors of selected area, clockwise
and 'w' for warping
It works perfectly now, I expect to help someone with that
and inverting the vertex's arguments is how the selected area fits the screen
@rojele -- Thanks for sharing your solution!
Note that rojele wrote this for Processing 1.5.1! I haven't tested compatibility, but some point it might be interesting to adapt this to Processing 3.x +
Hi, changing the lines of code related to "gsCapture" by "Capture" make this code fully compatible with processing 3.x. I'm still looking for version of gsVideo for later versions of processing than 1.5.1
Thanks!
I believe that gsVideo was developed by Andrés Colubri until 2012 -- there probably isn't going to be a Processing 3.x version unless somebody takes the publicly available source code and writes one. As the author said in 2012:
So if there is something specific that you can't do with the built-in Processing 3.x video library but that gsVideo can do you might want to consider just extending that part of the official video library -- or a submitting a feature request.
Thanks, jeremy. Sure that an updated version of gsvideo will be totally usefull for getting access to certain libraries that, as nyar2 for augmented reality, relies on gsvideo for running. I'll would give it try but im not as confident on my programming skills. Maybe its the time for trying. thanks for the comment