Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Geospatial Development By Example with Python

You're reading from   Geospatial Development By Example with Python Build your first interactive map and build location-aware applications using cutting-edge examples in Python

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher
ISBN-13 9781785282355
Length 340 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Pablo Carreira Pablo Carreira
Author Profile Icon Pablo Carreira
Pablo Carreira
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Preparing the Work Environment FREE CHAPTER 2. The Geocaching App 3. Combining Multiple Data Sources 4. Improving the App Search Capabilities 5. Making Maps 6. Working with Remote Sensing Images 7. Extract Information from Raster Data 8. Data Miner App 9. Processing Big Images 10. Parallel Processing Index

Installing packages and required software

In this topic, we will go through the installation process of every package used in the book.

OpenCV

OpenCV is an optimized C/C++ library intended for video and image processing with hundreds of functions ranging from simple image resizing to object recognition, face detection, and so on. OpenCV is a big library, and we will use its capabilities of reading, transforming, and writing images. It's a good choice because its development is active, and it has a large user community and very good documentation.

Windows

Here is the installation procedure for Windows:

  1. Go to http://www.lfd.uci.edu/~gohlke/pythonlibs/.
  2. Press Ctrl + F to open the search dialog of your browser and then search for OpenCV.
  3. You will find a list of files; choose opencv_python‑2.4.11‑cp27‑none‑win32.whl or any OpenCV version that contains cp27 and win32. This means that this is the 32-bit version for Python 2.7.
  4. Save the downloaded file to a known location.
  5. Open Windows Command Prompt and run the following command:
    c:\Python27\scripts\pip install path_to_the_file_you_downloaded.whl
    
  6. You should see an output telling you that the installation was successful, as follows:
    Processing c:\downloads\opencv_python-2.4.12-cp27-none-win32.whl
    Installing collected packages: opencv-python
    Successfully installed opencv-python-2.4.12
    

    Tip

    You can drag and drop a file into the command prompt to enter its full path.

Ubuntu Linux

Here is the installation process for Ubuntu Linux:

  1. Open a new terminal with Ctrl + T.
  2. Then, enter the following command:
    sudo apt-get install python-opencv
    
You have been reading a chapter from
Geospatial Development By Example with Python
Published in: Jan 2016
Publisher:
ISBN-13: 9781785282355
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 $19.99/month. Cancel anytime
Banner background image