Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
OpenCV 4 for Secret Agents

You're reading from   OpenCV 4 for Secret Agents Use OpenCV 4 in secret projects to classify cats, reveal the unseen, and react to rogue drivers

Arrow left icon
Product type Paperback
Published in Apr 2019
Publisher Packt
ISBN-13 9781789345360
Length 336 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Joseph Howse Joseph Howse
Author Profile Icon Joseph Howse
Joseph Howse
Arun Ponnusamy Arun Ponnusamy
Author Profile Icon Arun Ponnusamy
Arun Ponnusamy
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Section 1: The Briefing FREE CHAPTER
2. Preparing for the Mission 3. Searching for Luxury Accommodations Worldwide 4. Section 2: The Chase
5. Training a Smart Alarm to Recognize the Villain and His Cat 6. Controlling a Phone App with Your Suave Gestures 7. Equipping Your Car with a Rearview Camera and Hazard Detection 8. Creating a Physics Simulation Based on a Pen and Paper Sketch 9. Section 3: The Big Reveal
10. Seeing a Heartbeat with a Motion-Amplifying Camera 11. Stopping Time and Seeing like a Bee 12. Making WxUtils.py Compatible with Raspberry Pi
13. Learning More about Feature Detection in OpenCV
14. Running with Snakes (or, First Steps with Python)
15. Other Books You May Enjoy

To get the most out of this book

This book supports several operating systems as development environments, including Windows 7 SP 1 or later, macOS X 10.7 (Lion) or later, Debian Jessie, Raspbian, Ubuntu 14.04 or later, Linux Mint 17 or later, Fedora 28 or later, Red Hat Enterprise Linux (RHEL) 8 or a later version, CentOS 8 or later, openSUSE Leap 42.3, openSUSE Leap 15.0 or later, and openSUSE Tumbleweed.

The book contains six projects with the following requirements:

  • Four of these six projects run on Windows, macOS, or Linux, and require a webcam. Optionally, these projects can use Raspberry Pi or another single-board computer that runs Linux.
  • One project runs on Android 5.0 (Lollipop) or a later version, and requires a front-facing camera (which most Android devices have).
  • One project runs on Android 4.1 (Jelly Bean) or a later version, and requires a rear-facing camera and gravity sensor (which most Android devices have). For development, it requires a Windows or macOS machine and approximately $95 worth of game development software.

Setup instructions for all required libraries and tools are covered in the book. Optional setup instructions for Raspberry Pi are also included.

Download the example code files

You can download the example code files for this book from your account at www.packtpub.com. If you purchased this book elsewhere, you can visit www.packtpub.com/support and register to have the files emailed directly to you.

You can download the code files by following these steps:

  1. Log in or register at www.packtpub.com.
  2. Select the SUPPORT tab.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box and follow the onscreen instructions.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR/7-Zip for Windows
  • Zipeg/iZip/UnRarX for Mac
  • 7-Zip/PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/OpenCV-4-for-Secret-Agents-Second-Edition. In case there's an update to the code, it will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Download the color images

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "You can edit /etc/modules to check whether bcm2835-v4l2 is already listed there."

A block of code is set as follows:

set PYINSTALLER=pyinstaller

REM Remove any previous build of the app.
rmdir build /s /q
rmdir dist /s /q

REM Train the classifier.
python HistogramClassifier.py

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

        <activity
android:name=".CameraActivity"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

Any command-line input or output is written as follows:

$ echo "bcm2835-v4l2" | sudo tee -a /etc/modules 

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Click the Android platform and then the Switch Platform button."

Warnings or important notes appear like this.
Tips and tricks appear like this.
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime