Export to GitHub

javacv - issue #503

How to grab the RGB frame instead the gray one?


Posted on May 18, 2015 by Massive Panda

I'm new here and don't really familiar with how to post something here, so I hope this reach you.

So I was following this example https://code.google.com/p/javacv/source/browse/samples/FacePreview.java But I don't understand how gray variable manage to get it's value, all I know when I try to write the frame (the gray one) into sd card the result is the gray version of what shown on the screen. Is there a way to get the RGB version instead?

Thank you

Comment #1

Posted on May 19, 2015 by Happy Kangaroo

Sure, do something like this: https://github.com/bytedeco/javacv/blob/master/samples/RecordActivity.java And please post on GitHub next time, thanks.

Comment #2

Posted on May 19, 2015 by Massive Panda

Thanks for the answer! But can I ask more? I made new post in github here https://github.com/bytedeco/javacv/issues/152 I hope you don't mind.

Status: Done

Labels:
Type-Other Priority-Medium