简体   繁体   中英

How can I process the frame from OpenCV4Android camera in another thread

I am getting the frames from video camera using OpenCV4Android lib, I want to take the frame and pass it to JNI function, and get the result back to the android activity.

I don't want call that native function while displaying the camera frame, because the camera will become very slow.

Is it possible to take the frame in another thread and process it without slowing the camera ?

Yes it is possible to process the frames in a separate thread. But if you use preview surface, your camera live preview will not slow down due to processing of the frames. So maybe you don't have the problem at all. Please check.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM