Book Image

Hands-On Computer Vision with Julia

By : Dmitrijs Cudihins
Book Image

Hands-On Computer Vision with Julia

By: Dmitrijs Cudihins

Overview of this book

Hands-On Computer Vision with Julia is a thorough guide for developers who want to get started with building computer vision applications using Julia. Julia is well suited to image processing because it’s easy to use and lets you write easy-to-compile and efficient machine code. . This book begins by introducing you to Julia's image processing libraries such as Images.jl and ImageCore.jl. You’ll get to grips with analyzing and transforming images using JuliaImages; some of the techniques discussed include enhancing and adjusting images. As you make your way through the chapters, you’ll learn how to classify images, cluster them, and apply neural networks to solve computer vision problems. In the concluding chapters, you will explore OpenCV applications to perform real-time computer vision analysis, for example, face detection and object tracking. You will also understand Julia's interaction with Tesseract to perform optical character recognition and build an application that brings together all the techniques we introduced previously to consolidate the concepts learned. By end of the book, you will have understood how to utilize various Julia packages and a few open source libraries such as Tesseract and OpenCV to solve computer vision problems with ease.
Table of Contents (11 chapters)
9
Assessments

Transfer learning with Inception V3

You have learned to extract features from an image, but now it is important to understand how this can be used to solve custom problems. There are two ways of using the network we created by removing the last layers:

  • Use the results that have been generated and pass them to a new network
  • Extend the network and add custom FullyConnected and SoftmaxOutput layers

The two implementations seem to be very similar. So, what are the differences?

  • In the first example, you will have two networks—an independent feature extractor and a micro network, which is responsible for classification.
  • In the second example, you will have one network doing both tasks. It is also important to note that running a training process may affect the weights of the original network unless they are set to frozen.

In the following example, we will use the Inception...