Skip to content

example for ofVideoGrabber #1

@stephanschulz

Description

@stephanschulz

Thanks for making this add-on. Great work.

I am trying to expand the example to take in my laptop's camera.
I added all the needed ofVideoGrabber code.

There are 2 things that are strange.
1.
I need to accept the camera's use twice when running in Xcode.
When just starting the app via it's icon it works fine.
Screen Shot 2020-09-03 at 1 12 44 PM

I needed to comment out

        for( int i = 1; i < segmentation.classes.size(); i++ ){
             // i: class id, alpha value
            segmentation.drawClass(i,150, 0,0, vid.getWidth(),vid.getHeight());
        }

and use

  ofSetColor(ofColor::white, 200);
        segmentation.draw(0,0,vid.getWidth(),vid.getHeight());

otherwise I get this crash
Screen Shot 2020-09-03 at 12 38 31 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions