I'm currently writing a simple Processing app that envolves people sharing their faces and then sending the results to the web.
To simplify, here's the code. Give it a try if you're not understanding the concept:
if ( key == 'j') { ImageToWeb img = new ImageToWeb(this); img.save("jpg",true); img.post("test",url,"jpg-test",true,img.getBytes(g)); } }
So the program is working exactly how I want it to. People go and click the mouse at a time with their partner and mix up their faces with different expressions. The result is quite interesting.
At the same time, I'm using postToWeb library so that I can send online to my server all the images (print-screens from the sketch) that people generate while using the application.
The problem is that it copies the entire image (the one from the video stream) and the result composed by the 2 parts.
Any way, using this library, to only copy the area corresponding to the lower image (with both parts)?
Another problem is that I'd like to automate the insertion of these resulting images on a webpage. The only thing is that I don't know how to do that. My idea is a very simple page where the images generated are posted one after the other without great concerning about design.
The title must be confusing but I'm making a small Processing project for my University.
The idea is that people put their faces in front of a camera, make an expression and, as long as the face of that person is centered, the next one comes and does the same. The result is a
image divided with half the face of each person. Note: it doesn't matter that the heads are not the same size. The global effect is what matters.
So, my problem is that I need to have a way for people to choose their "face position" and then they'd have to hit/click something to save their half-face on a side of the screen. The question is that I really don't know how to do this.
I've already downloaded and installed OpenCV which seems to be the library that will help me more but yet I don't have Processing knowledge to do this without a help at the beginning.
Any ideas where to start :P? The project looks pretty simple for the things I've seen Processing doing. At the end it would be nice to export to a image file the result of the two "half-images" and show the mixture on a second screen for the audience to see.