O'Reilly logo

Java Deep Learning Projects by Md. Rezaul Karim

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Simple UI for checking video frames

I developed a simple UI application, using Java Swing to test whether the code correctly handles frames. This UI reads an input video file in MP4 format and shows frames to the reader one by one like a simple video player. The UI application is named JCodecTest.java.

In the JCodecTest.java class, the testReadFrame() method utilizes the getFrameFromFile() method from the FrameGrab class (that is, from the JavaCV library) and checks whether the frame extraction process from each video clip works correctly. Here is the signature:

private void testReadFrame(Consumer<Picture> consumer) throws IOException, JCodecException {        // Read the clip sequentially one by one        next:        for(Iterator<Pair<Path, String>> iter = ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required