I've been developing an applications this month. What I need to do now is quite simple, but I can't manage to do it right.
I use processing to create an image (which I will then use with SWING). Then I need to extract that image (I use get() function then getImage()). What happens is that the background is white, and I want it to be transparent. Anyone know how to do this? Thanks!
Me and a friend started working in a project about 2 months ago. We graduated last year, and thought we're still pretty young Engineers (21 and 22), we always got this autonomous way of work that led us to do more things while learning all by ourselves. It's the first time we worked together but we've done some projects by ourselves before.
This is our first and big project using processing and javacv. Our
is a tool designed to aid unskilled snooker players, predicting trajectories. A computer processes incoming information provided by a camera placed above the table, which, with help of computer vision techniques, detects ball’s position and cue direction in order to compute and analyze them to create what would be the predictable trajectory. The output result is then forwarded to a projector, placed above the table, which projects them on the snooker playable field. A skilled player can also save a specific layout of a move and load it later in order to achieve the best shot and train himself.
It's not finished yet, but it's pretty close to a final test version (which, obviously, won't work 100% well). Here's a video of it working:
I've learned a lot while doing this, had to program a GUI library (which I'm thinking of develop a bit more and make it public) and it turned out to become like this. We hope there were more tools like processing. We are both unemployed and have done this in our free time. It's really sad when a potentially employer think that we are no good for them, just because a stupid interview that cannot see beyond our true potential, but that's another story. Anyway, our project might be in a conference next March and a one of our teachers is going to publish it on a paper, so not everything is bad news. I will post more videos soon. Thanks!
I'm developing my own class to manipulate shapes. For draw purpose, I need to know if fill and what color is chosen to fill my shape. How do I know that?
I've been working with Processing. I'm currently learning computer vision and I've been doing this by alternating my own functions and JavaCVPro functions.
For one of my works, I've got to extract rectangles and triangles from an image given to me by the teacher. I've managed to do that, but the triangles and rectangles are shown on the frame. I need to get that image to save to PGM (my own function does that), but I don't know how.
Thanks in advance.
PS: I've managed to done that by saving with function output an then load that image into a PImage object. Is there another way?
I'm new to processing and I was doing some tutorials. First of all, I must say that I'm enjoying this but I'm having some problems. I'm running processing through Netbeans programming Java (I've imported the core.jar library). Everytime I try to use P2D and P3D it gives me an error:
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 14 more
Exception in thread "Animation Thread" java.lang.RuntimeException: javax/media/opengl/GLException
at processing.core.PApplet.makeGraphics(PApplet.java:1761)
at processing.core.PApplet.size(PApplet.java:1588)
at processing.core.PApplet.size(PApplet.java:1559)
at processingexamples.Example1.setup(Example1.java:11)
at processing.core.PApplet.handleDraw(PApplet.java:2103)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:190)
at processing.core.PApplet.run(PApplet.java:2006)
at java.lang.Thread.run(Thread.java:662)
I've already tried to do the same in processing interface but it gives me the same error. I'm trying to run a simple program, but even If I only use setup with P2D or P3D it gives me an error.