Skip to Content
Java Deep Learning Projects
book

Java Deep Learning Projects

by Md. Rezaul Karim
June 2018
Intermediate to advanced
436 pages
10h 33m
English
Packt Publishing
Content preview from Java Deep Learning Projects

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 = ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Deep Learning Essentials

Java Deep Learning Essentials

Yusuke Sugomori
Machine Learning in Java - Second Edition

Machine Learning in Java - Second Edition

AshishSingh Bhatia, Bostjan Kaluza
Mastering Java Machine Learning

Mastering Java Machine Learning

Uday Kamath, Krishna Choppella

Publisher Resources

ISBN: 9781788997454Supplemental Content