Coder Social home page Coder Social logo

Comments (4)

atduskgreg avatar atduskgreg commented on July 17, 2024

What version of Processing are you using?

There's a problem with Capture and Video in the OpenGL-based renderers (i.e. P2D and P3D) in the release version of Processing 2.0. Specifically, the pixels array is never populated (which makes OpenCV for Processing not work since it relies on the pixels array).

If you're on a non-Retina Mac, you can try using the JAVA2D renderer instead (simply swap JAVA2D for P2D as the third argument to size()). If you're on a Retina Mac, then at the moment you have no choice but to use an older version of Processing (2.0b8 is the last one that didn't have this problem) since JAVA2D doesn't work on Retina.

Hopefully this problem will be fixed in the next version of Processing.

from opencv-processing.

SableRaf avatar SableRaf commented on July 17, 2024

Alright, I remember having to deal with that pixel array problem before. Issue has been fixed 10 days ago so we just have to wait for next release: processing/processing#1852

from opencv-processing.

atduskgreg avatar atduskgreg commented on July 17, 2024

Yeah, I mentioned it in (and that fix) in my blog post announcing OpenCV for Processing: http://urbanhonking.com/ideasfordozens/2013/07/10/announcing-opencv-for-processing/ If you don't want to wait for that release you can dive in with 2.0b8 now. It's what I've been using to develop the video examples since this issue came up.

from opencv-processing.

SableRaf avatar SableRaf commented on July 17, 2024

I was just playing around with the examples. No rush :) Thanks for your great work.

from opencv-processing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.