frame to bitmap conversion is too slow

267 views
Skip to first unread message

Muhammad Umair Shafique

unread,
Aug 19, 2015, 9:19:15 AM8/19/15
to javacv
Hi all
    
I am using this to convert frame to bitmap.But it is taking so much time for conversion.

AndroidFrameConverter converter = new AndroidFrameConverter();

converter.convert(frame);

Kindly tell me some other faster way to convert frame to bitmap.

Samuel Audet

unread,
Aug 19, 2015, 9:22:47 AM8/19/15
to jav...@googlegroups.com
We'd probably need to use the native JNI interface "jnigraphics" to get
any kind of speed:
https://developer.android.com/ndk/guides/stable_apis.html

We could also use JavaCPP to map those functions to Java :)

Samuel

Ziju Feng

unread,
Nov 14, 2016, 8:53:58 PM11/14/16
to javacv
Hi Samuel, 

Any updates on this topic? 

I am also trying to convert frame to Bitmap so that I can display the processed frame on Android screen. 

It took around 700ms to convert each frame on my Alcatel idol3 device.

Samuel Audet

unread,
Nov 14, 2016, 9:00:47 PM11/14/16
to jav...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages