We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am using this code to achieve Background Remove in processing:
Which works like a charm. WHAT I WANT TO is that Processing window becomes FULL SCREEN simultaneously.
But, things is, when I try to change the size of the window Processing warms me that:
The requested resolution of "x" is not supported by the selected capture device.
or in other franksteinian mixing codes I tried (which one are a shame to show) things like: ArrayIndexOutOfBoundsException> or Could not run the sketch (Target VM failed to initialize).> And in the best of the cases a get the same video image repeating through the width. I tried what its discussed here:
http://forum.processing.org/two/discussion/10894/how-do-i-resize-the-output-of-my-capture-video
Trying to adapt the code to my case, but seems like the line
color bgColor = backgroundImage.pixels[loc];
awake some error.
Thanks in advance, I am getting crazy with this easy trouble!
Answers
AFAIK, in order to know which cameras and resolutions are available, we use:
printArray(Capture.list());
Take a look at this recent forum thread:
http://forum.processing.org/two/discussion/10541/problems-with-video
There are some resize() techniques there! B-)
Well, first of all, thanks for taking the time! I already checked that thread but I tryed again after you wrote it.
I have to say that I can make that Capture becomes FullScreen, but not at the same time I am removing the background...maybe too many data to process?
This is my initial code to remove background:
So I edited the line 26 inside void setup about the video, like this:
So now give me this error: (java.exe:6624): GStreamer-CRITICAL **: _gst_util_uint64_scale_int: assertion `denom > 0' failed
To infinity. And inside void draw, highlight the line 56 :
How make fullscreen (THE SKETCH WINDOW, not just the video) the Removal Background from a webcam?