Skip to Main Content
Hands-On Java Deep Learning for Computer Vision
book

Hands-On Java Deep Learning for Computer Vision

by Klevis Ramo
February 2019
Intermediate to advanced content levelIntermediate to advanced
260 pages
6h 3m
English
Packt Publishing
Content preview from Hands-On Java Deep Learning for Computer Vision

Coding the application

Let's jump into the code.

First we have the class, the VideoPlayer:

public class VideoPlayer {    private static final String AUTONOMOUS_DRIVING_RAMOK_TECH = "Autonomous Driving(ramok.tech)";    private String windowName;    private volatile boolean stop = false;    private Yolo yolo;    private final OpenCVFrameConverter.ToMat converter = new OpenCVFrameConverter.ToMat();    public final static AtomicInteger atomicInteger = new AtomicInteger();    public void startRealTimeVideoDetection(String videoFileName, Speed selectedIndex, boolean yoloModel) throws java.lang.Exception {        log.info("Start detecting video " + videoFileName);        int id = atomicInteger.incrementAndGet();        windowName = AUTONOMOUS_DRIVING_RAMOK_TECH + id; log.info(windowName); ...
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 Projects

Java Deep Learning Projects

Md. Rezaul Karim
Hands-On Computer Vision with TensorFlow 2

Hands-On Computer Vision with TensorFlow 2

Benjamin Planche, Eliot Andres

Publisher Resources

ISBN: 9781789613964Supplemental Content