Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Hands-On Computer Vision with Julia
Hands-On Computer Vision with Julia

Hands-On Computer Vision with Julia: Build complex applications with advanced Julia packages for image processing, neural networks, and Artificial Intelligence

eBook
€17.99 €26.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Hands-On Computer Vision with Julia

Image Enhancement

This chapter is all about working with image pixels, changing colors, and using the ImageFiltering package. We will learn how to update, convert an image to grayscale, improve color intensity, and we will learn what the linear and non-linear filtering operations are and how they can be used to transform images, such as sharpening, blurring, and smoothing.

In this chapter, we will cover the following topics:

  • Accessing pixels
  • Converting images into arrays of numbers
  • Converting arrays of numbers into colors
  • Changing color saturation
  • Converting an image to grayscale
  • Creating a custom color filter
  • Padding images
  • Blurring and sharpening images

Technical requirements

There are no any special requirements for this chapter, as long as you are following the book from Chapter 1, Getting Started with JuliaImages. If you have skipped the first chapter, please pay attention to the technical requirements there.

Images as arrays

JuliaImages are two-dimensional arrays, and every pixel can be either scalar or a one-dimensional array:

  • Grayscale images represent pixels as scalar values and they are called Gray
  • RGB is a three-dimensional array which represents each point in three different colors, such as red, green, and blue
  • PNG images with a transparent background are called RGBA

Accessing pixels

When you use a load command in Julia, it reads the image and encodes it in RGB. In the following example, we will see how Julia manages information for a single pixel:

using Images
img = load("sample-images/cats-3061372_640.jpg")
img[1:1, 1:1, :]

After Julia executes the preceding set of commands, you should expect to see the following...

Applying image filters

Now that you have learned how to apply changes to single pixels, it is time to learn about the ImageFiltering.jl package, which focuses on analyzing the information of neighborhood pixels and applying linear and non-linear filtering operations.

Padding images

At some point, you may want to add borders to the image. The ImageFiltering package extends the padarray function and allows you to add padding in different ways.

Padding with a constant value

Let's start with a simple scenario and add a 25-pixel border around the image. This is done by...

Summary

This chapter was all about working with every pixel of an image. We have learned to work with different channels and adjust them to make colors more intense and to produce a color-splash effect. We have also looked into the ImageFiltering package and used it to create pads, blurring, and sharpened images.

In the next chapter, we will move on to working with the ImageMorphology package, which is used to separate objects, remove noise, and extend the background area.

Questions

  1. What is the difference between Gray and RGB image representation?
  2. When would you use the channelview function?
  3. When would you use the permuteddimsview function?
  4. What is the difference between using the Fill function and one of the border padding effects?
  5. How did we achieve the image sharpening effect?

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • • Build a full-fledged image processing application using JuliaImages
  • • Perform basic to advanced image and video stream processing with Julia's APIs
  • • Understand and optimize various features of OpenCV with easy examples

Description

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.

Who is this book for?

Hands-On Computer Vision with Julia is for Julia developers who are interested in learning how to perform image processing and want to explore the field of computer vision. Basic knowledge of Julia will help you understand the concepts more effectively.

What you will learn

  • • Analyze image metadata and identify critical data using JuliaImages
  • • Apply filters and improve image quality and color schemes
  • • Extract 2D features for image comparison using JuliaFeatures
  • • Cluster and classify images with KNN/SVM machine learning algorithms
  • • Recognize text in an image using the Tesseract library
  • • Use OpenCV to recognize specific objects or faces in images and videos
  • • Build neural network and classify images with MXNet

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jun 29, 2018
Length: 202 pages
Edition : 1st
Language : English
ISBN-13 : 9781788999236
Category :
Languages :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Jun 29, 2018
Length: 202 pages
Edition : 1st
Language : English
ISBN-13 : 9781788999236
Category :
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 102.97
Julia 1.0 Programming
€32.99
Julia Programming Projects
€36.99
Hands-On Computer Vision with Julia
€32.99
Total 102.97 Stars icon
Banner background image

Table of Contents

10 Chapters
Getting Started with JuliaImages Chevron down icon Chevron up icon
Image Enhancement Chevron down icon Chevron up icon
Image Adjustment Chevron down icon Chevron up icon
Image Segmentation Chevron down icon Chevron up icon
Image Representation Chevron down icon Chevron up icon
Introduction to Neural Networks Chevron down icon Chevron up icon
Using Pre-Trained Neural Networks Chevron down icon Chevron up icon
OpenCV Chevron down icon Chevron up icon
Assessments Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
(1 Ratings)
5 star 0%
4 star 100%
3 star 0%
2 star 0%
1 star 0%
granate Nov 17, 2020
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Es una aproximación muy práctica a las técnicas de clasificación de imágenes. Describe tanto las clásicas como las redes neuronales y el entrenamiento de las mismas, con un lenguaje muy asequible.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.