Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example for ofVideoGrabber #1

Open
stephanschulz opened this issue Sep 3, 2020 · 1 comment
Open

example for ofVideoGrabber #1

stephanschulz opened this issue Sep 3, 2020 · 1 comment

Comments

@stephanschulz
Copy link

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

@TetsuakiBaba
Copy link
Owner

Hi, sorry, I missed your issue. It seems to be caused by handling ofVideoCamera image. let me see your ofApp.cpp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants