Real-Time IoT Imaging with Deep Neural Networks: Using Java on the Raspberry Pi 4
()
About this ebook
This book shows you how to build real-time image processing systems all the way through to house automation. Find out how you can develop a system based on small 32-bit ARM processors that gives you complete control through voice commands.
Real-time image processing systems are utilized in a wide variety of applications, such as in traffic monitoring systems, medical image processing, and biometric security systems. In Real-Time IoT Imaging with Deep Neural Networks, you will learn how to make use of the best DNN models to detect object in images using Java and a wrapper for OpenCV. Take a closer look at how Java scripting works on the Raspberry Pi while preparing your Visual Studio code for remote programming. You will also gain insights on image and video scripting. Author Nicolas Modrzyk shows you how to use the Rhasspy voice platform to add a powerful voice assistant and completely run and control your Raspberry Pi from your computer.
To get your voice intents for house automation ready, you will explore how Java connects to the MQTT and handles parametrized Rhasspy voice commands. With your voice-controlled system ready for operation, you will be able to perform simple tasks such as detecting cats, people, and coffee pots in your selected environment. Privacy and freedom are essential, so priority is given to using open source software and an on-device voice environment where you have full control of your data and video streams. Your voice commands are your own—and just your own.
With recent advancements in the Internet of Things and machine learning, cutting edge image processing systems provide complete process automation. This practical book teaches you to build such a system, giving you complete control with minimal effort.
What You Will Learn:
- Show mastery by creating OpenCV filters
- Execute a YOLO DNN model for image detection
- Apply the best Java scriptingon Raspberry Pi 4
- Prepare your setup for real-time remote programming
- Use the Rhasspy voice platform for handling voice commands and enhancing your house automation setup
Who This Book Is For:Engineers, and Hobbyists wanting to use their favorite JVM to run Object Detection and Networks on a Raspberry Pi
Related to Real-Time IoT Imaging with Deep Neural Networks
Related ebooks
Beginning Robotics with Raspberry Pi and Arduino: Using Python and OpenCV Rating: 0 out of 5 stars0 ratingsBuilding Smart Homes with Raspberry Pi Zero Rating: 0 out of 5 stars0 ratingsRaspberry Pi Robotic Blueprints Rating: 2 out of 5 stars2/5Build Your Own Car Dashboard with a Raspberry Pi: Practical Projects to Build Your Own Smart Car Rating: 0 out of 5 stars0 ratingsIntel Galileo Essentials Rating: 0 out of 5 stars0 ratingsRaspberry Pi Robotics Essentials Rating: 0 out of 5 stars0 ratingsGetting Started with Raspberry Pi Zero Rating: 5 out of 5 stars5/5Raspberry Pi Robotic Projects - Third Edition Rating: 0 out of 5 stars0 ratingsWindows 10 for the Internet of Things: Controlling Internet-Connected Devices from Raspberry Pi Rating: 0 out of 5 stars0 ratingsRaspberry Pi Projects for Kids - Second Edition Rating: 4 out of 5 stars4/5Raspberry Pi LED Blueprints Rating: 0 out of 5 stars0 ratingsRaspberry Pi User Guide Rating: 4 out of 5 stars4/5Arduino BLINK Blueprints Rating: 0 out of 5 stars0 ratingsRaspberry Pi: Beginner's Guide - Learn Raspberry Pi in Easy Steps Rating: 2 out of 5 stars2/5Smart Internet of Things Projects Rating: 4 out of 5 stars4/5Raspberry Pi Home Automation with Arduino - Second Edition Rating: 0 out of 5 stars0 ratingsRaspberry Pi Projects for Kids Rating: 0 out of 5 stars0 ratingsGetting Started with Python and Raspberry Pi Rating: 3 out of 5 stars3/5Sensor Projects with Raspberry Pi: Internet of Things and Digital Image Processing Rating: 0 out of 5 stars0 ratingsComputing with the Raspberry Pi: Command Line and GUI Linux Rating: 0 out of 5 stars0 ratingsLearn Electronics with Raspberry Pi: Physical Computing with Circuits, Sensors, Outputs, and Projects Rating: 0 out of 5 stars0 ratingsRaspberry Pi Super Cluster Rating: 0 out of 5 stars0 ratingsRaspberry Pi Android Projects Rating: 0 out of 5 stars0 ratingsArduino for Secret Agents Rating: 4 out of 5 stars4/5Developing Games on the Raspberry Pi: App Programming with Lua and LÖVE Rating: 0 out of 5 stars0 ratingsIntel Galileo Blueprints Rating: 0 out of 5 stars0 ratingsProgramming Basics: Getting Started with Java, C#, and Python Rating: 0 out of 5 stars0 ratings
Hardware For You
Mastering ChatGPT Rating: 0 out of 5 stars0 ratingsiPhone Photography: A Ridiculously Simple Guide To Taking Photos With Your iPhone Rating: 0 out of 5 stars0 ratingsCompTIA A+ Complete Review Guide: Exam Core 1 220-1001 and Exam Core 2 220-1002 Rating: 5 out of 5 stars5/550 Android Hacks Rating: 5 out of 5 stars5/5Computer Science: A Concise Introduction Rating: 4 out of 5 stars4/5iPhone 14 Pro Max User Guide for Beginners and Seniors Rating: 0 out of 5 stars0 ratingsWindows 11 For Seniors For Dummies Rating: 0 out of 5 stars0 ratingsiPhone For Seniors For Dummies: Updated for iPhone 12 models and iOS 14 Rating: 4 out of 5 stars4/5Raspberry Pi Electronics Projects for the Evil Genius Rating: 3 out of 5 stars3/5Embedded Systems: World Class Designs Rating: 5 out of 5 stars5/5Samsung Galaxy S23 Ultra User Guide for Beginners and Seniors Rating: 3 out of 5 stars3/5CompTIA A+ Complete Review Guide: Core 1 Exam 220-1101 and Core 2 Exam 220-1102 Rating: 5 out of 5 stars5/5Dancing with Qubits: How quantum computing works and how it can change the world Rating: 5 out of 5 stars5/5iPhone X Hacks, Tips and Tricks: Discover 101 Awesome Tips and Tricks for iPhone XS, XS Max and iPhone X Rating: 3 out of 5 stars3/5Exploring Apple iPad: iPadOS 15 Edition: The Illustrated, Practical Guide to Using your iPad Rating: 0 out of 5 stars0 ratingsFitbit For Dummies Rating: 0 out of 5 stars0 ratingsMacs All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsBuild Your Own PC Do-It-Yourself For Dummies Rating: 4 out of 5 stars4/5Upgrading and Fixing Computers Do-it-Yourself For Dummies Rating: 4 out of 5 stars4/5iPod and iTunes For Dummies Rating: 4 out of 5 stars4/5Programming Arduino: Getting Started with Sketches Rating: 4 out of 5 stars4/5Computers For Seniors For Dummies Rating: 0 out of 5 stars0 ratingsLinux All-in-One For Dummies Rating: 3 out of 5 stars3/5iPhone 12, iPhone Pro, and iPhone Pro Max For Senirs: A Ridiculously Simple Guide to the Next Generation of iPhone and iOS 14 Rating: 0 out of 5 stars0 ratingsComputer Organization and Design: The Hardware / Software Interface Rating: 4 out of 5 stars4/5So you want to build a computer... Rating: 5 out of 5 stars5/5Creative Selection: Inside Apple's Design Process During the Golden Age of Steve Jobs Rating: 5 out of 5 stars5/5Evernote Essentials Guide (Boxed Set): Evernote Guide For Beginners for Organizing Your Life Rating: 3 out of 5 stars3/5Laptops All-in-One For Dummies Rating: 4 out of 5 stars4/5
Reviews for Real-Time IoT Imaging with Deep Neural Networks
0 ratings0 reviews
Book preview
Real-Time IoT Imaging with Deep Neural Networks - Nicolas Modrzyk
© Nicolas Modrzyk 2020
N. ModrzykReal-Time IoT Imaging with Deep Neural Networkshttps://doi.org/10.1007/978-1-4842-5722-7_1
1. Getting Started
Nicolas Modrzyk¹
(1)
Tokyo, Tokyo, Japan
One of the goals of this book is to get you ready to perform real-time IoT imaging quickly, avoiding a lengthy installation process. Being ready quickly doesn’t mean we are going to take any shortcuts, it means we will get the tooling part out of the way so we can focus on the creation process.
In this chapter, you’ll run your first example.
Visual Studio Code Primer
You can’t knock on opportunity’s door and not be ready.
—Bruno Mars
The playground setup introduced in this book is fairly standard for people who are used to writing code. It also has a little bit of a new kid on the block
feeling—only the cool kids use it. The stack , or the environment, we will use consists of the following:
Visual Studio Code, a small but pluggable text editor
The Java Development Kit and its runtime, so we can write Java code and run it
A Java plugin to Visual Studio Code so that the editor understands the Java code and runs it
Basically, that’s all.
It does not really matter whether you’re using Windows, Mac, or Linux. All the different pieces of XX are made to run anywhere. To install Visual Studio Code, you need to head to https://code.visualstudio.com/.
Click the download button on the top-right side of the page. After you click the button, you’ll be presented with options for the different packages, one for each computer platform, as shown in Figure 1-1.
../images/490964_1_En_1_Chapter/490964_1_En_1_Fig1_HTML.jpgFigure 1-1
Choosing your download
At the time of writing, the current version is 1.40, but newer versions would only be better.
Running the installer and opening Visual Studio Code for the first time gives you a screen similar to the one in Figure 1-2.
../images/490964_1_En_1_Chapter/490964_1_En_1_Fig2_HTML.jpgFigure 1-2
Visual Studio Code
The second step is to install Java, if it is not already installed. You can either head to the OpenJDK web site (https://jdk.java.net/) and download a zip file or go to the Oracle web site and download a ready-to-use installer for your machine (see Figure 1-3 and Figure 1-4). Specifically, you can go to https://www.oracle.com/technetwork/java/javase/downloads/index.html.
../images/490964_1_En_1_Chapter/490964_1_En_1_Fig3_HTML.jpgFigure 1-3
Oracle Java download page
../images/490964_1_En_1_Chapter/490964_1_En_1_Fig4_HTML.jpgFigure 1-4
Java download link
Let the installer run to the end, and do not stop it even if it tries to open another installer while running. Java, being a development kit, does not come with a fancy application to check that it has been installed properly, so after the Java installation is finished, a quick way to check that things are in place is to open a terminal in Visual Studio Code and check the Java version.
You can press Ctrl+Shift+@ to open a terminal inside Visual Studio Code, or you can open it from the menu, as shown in Figure 1-5.
../images/490964_1_En_1_Chapter/490964_1_En_1_Fig5_HTML.jpgFigure 1-5
Opening a terminal window from within Visual Studio Code
This will pop up a small tab, usually at the bottom of the editor, as shown in Figure 1-6.
../images/490964_1_En_1_Chapter/490964_1_En_1_Fig6_HTML.jpgFigure 1-6
The Terminal tab
Then inside the terminal, type the following command:
java -version
Figure 1-7 shows the expected version output if you have installed the OpenJDK