popdeveloper / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

How to grab the RGB frame instead the gray one? #503

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by deddygnw...@gmail.com on 18 May 2015 at 5:03

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

Original comment by samuel.a...@gmail.com on 19 May 2015 at 11:42

GoogleCodeExporter commented 8 years ago
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.

Original comment by deddygnw...@gmail.com on 19 May 2015 at 12:32