I am working on a program which is basically a bubble game in which you can exploit them with the movement or your body, I have successfully created the game using the OpenCV library (hypermedia) and processing 1.5.1 and I wanted now to export it to the web through a Java applet. I know now with processing 2.0 this is not possible and this is the reason I am using 1.5.1 for such, the problem I have is that although I created the applet and signed it sucessfully, when I click on the index.html file and I accept to run the plug-in, nothing happens, the local webcam doesn´t start. Has anybody done this before? Could anybody please help?
I am trying to create a small game for kids about exploiting bubbles with the "touch" of their fingers. I have seen some examples in the web about exploiting bubbles, some with OpenCv and others with GSVideo, but as I need finger tracking I am trying to use the JavaCVPro library, which suggest to use GSVideo for the video capture part and opencv/javacvpro functions for the video processing part.
I am still at the very begining of the game trying to capture any movement. I have correctly done everything with opencv but when I try to use GSVideo for the capture part it gives me the error "Null Pointer Exception", I have checked my code and don´t find the problem, could you please help?
I am very new to processing and even more to Object Oriented Programming so probably the answer to the question is quite simple but is a conceptual one and I´d better ask.
I am doing some type of research about the video capabilities for computer vision of some processing libraries. I have started with the Core Library (processing.video.*) and after reading the description of the Capture object in the processing.org help
here it seemed to me it was not quite powerful because it defines very few methods, to be more specific:
Nevertheless I came across some examples where another method is used: updatePixels() that provides much more options to play with but I am not able to find any information about it. I know it is used (and defined) as a method for the PImage but (and here comes the question) shouldn´t it be defined also under the Capture class?, perhaps I am missing a well documentation of the Capture class where it is defined but I didn´t find it in the web, is there any other methods for this class that I am missing? where can I find them?
I am trying to split an image previously loaded into four different ones to be able to move them freely in the screen, but when I try to assign the pixels values of the original image to the new created one, I get an error saying "ArrayIndexOutOfBoundsException", here is the piece of code:
I have a doubt regarding the font size in units of pixels that is used when using loadfont, etc... In the example below I create a font of size 40 but when I used the method textWidth to determine its size, it says 31 instead of 40, What I am doing wrong?