Ask Your Question

jordanphstein's profile - activity

2014-10-28 10:16:12 -0500 asked a question Capturing Video - OpenCV

I am using a webcam that has the capability to capture 30 FPS. More specifically, the Microsoft LifeCam Studio. However, when I capture the video using openCV in processing, it comes in at around 15 FPS and extremely blown out.

2014-10-28 10:13:37 -0500 commented question Flip Video in openCV

Thank you, I figured it out. Yes, I am sing processing. It just required that I use flip(0);

2014-10-28 09:09:35 -0500 asked a question Flip Video in openCV

I am having a problem when using the OpenCV facial recognition. My webcam is mounted upside down, so I have flipped the video with pushMatrix, however the video is still coming in upside down in OpenCV I believe, therefore it is not recognizing anything. How can I flip "video"?

void draw() {
    translate(0, -video.height);
    image(video, 0, 0); 


    stroke(0, 255, 0);
    Rectangle[] faces = opencv.detect();

    for (int i = 0; i < faces.length; i++) {
        println(faces[i].x + "," + faces[i].y);
    rect(faces[i].x, faces[i].y, faces[i].width, faces[i].height);
2014-09-17 19:45:09 -0500 asked a question Quick Questions with Processing & OpenCV Facedetections

I have two problems I am trying to work through.

  1. How can I add the sides of faces to this so that it not only detects a front view?

  2. Is there a way to change the FPS? Currently, it seems to be coming in at around 15 FPS, but when I open the webcam in its' native software, it runs at 30 FPS.

Thank you!

void setup() { size(1280, 720); video = new Capture(this, 1280/2, 720/2); opencv = new OpenCV(this, 1280/2, 720/2); opencv.loadCascade(OpenCV.CASCADE_FRONTALFACE);