简体   繁体   中英

Extract frames from a video using OpenImaj in Java

for (MBFImage mbfImage : video) {
DisplayUtilities.displayName(mbfImage.process(new CannyEdgeDetector()), "videoFrames");

I need to extract frames from a video and I'm using Java platform.

I'm expecting to use the OpenIMAJ Library to do that. I want to know are their any other better solutions for this ( better processing time )? And also the average processing time and speed of OpenImaj to extract frames from a video.

Edited:

I need to extract local video files. I'm not going to implement anything else with OpenIMAJ. I just need OpenIMAJ to extract frames and loop through them. I need to know the time that OpenIMAJ takes to extract frames from a video. Is it something slow, comparing with other libraries(openCV, FFMPEG).

Under the hood, OpenIMAJ (and I believe OpenCV, depending on which capture driver is being used) use ffmpeg/libav to do the decoding. I don't believe there should be much difference in performance between any of them.

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