code

edited January 2018 in Kinect

.

Answers

  • edited January 2018

    .

  • Answer ✓

    Please post what you have tried so far. Does your webcam works?Can you see one face? Maybe more than one? Are your videos loaded properly in Processing?

    Kf

  • edited January 2018

    /

  • edited January 2018

    dfg

  • your logic seems a bit odd. a slight tidy of lines 30 to 46

    if (faces == null || faces.length <= 0) {
      // there are no faces
      video1.pause();
      textAlign(CENTER); 
      fill(255, 0, 0); 
      textSize(56); 
      println("no faces");
      text("stop", 100, 100);
    } else {
      // there are faces - show them
      for (int i = 0; i < faces.length; i++) { 
        image(video1, 0, 0, displayWidth, displayHeight);
      }
    }
    

    you are pausing the video when there are no faces. how does it start again?

    why are you just redrawing the video frame for every face?

  • Answer ✓

    see what i mean about confusion?

  • edited January 2018

    .

  • Answer ✓

    I can't seem to find an option to delete those posts.

    https://forum.processing.org/two/discussion/21148/do-not-delete-your-posts

    it isn't slow, it's just doing a LOT. have you any idea how difficult face detection is?

    in general, the older a movie codec, the bigger the file is, the easier it is to decode. but i'm not convinced that's your problem here. do you have any evidence?

  • but the video still doesn't run normally.

    "you are pausing the video when there are no faces. how does it start again?"

  • edited January 2018

    .

Sign In or Register to comment.