Latest YouTube Video
Saturday, April 1, 2017
I have a new follower on Twitter
Raven
I am a book worm! I read a book a day 📖 I love taking pictures 📷 I'm animal friendly🐕 Sometimes I write poetry although I'm not very good! 👯👯👯👯👯👯
United States
Following: 2899 - Followers: 433
April 01, 2017 at 08:18PM via Twitter http://twitter.com/Booklover1003
Anonymous ID for voting system
from Google Alert - anonymous http://ift.tt/2ovcwsM
via IFTTT
'Racists Anonymous' program launched at Oklahoma church
from Google Alert - anonymous http://ift.tt/2nHj0Vp
via IFTTT
Over 85% Of Smart TVs Can Be Hacked Remotely Using Broadcasting Signals
from The Hacker News http://ift.tt/2ntheXe
via IFTTT
Share the page
from Google Alert - anonymous http://ift.tt/2nGs5Or
via IFTTT
Split the Universe
Alfven Waves - Basic
from NASA's Scientific Visualization Studio: Most Recent Items http://ift.tt/2nGm7Nw
via IFTTT
Alfven Waves - Kinetic
from NASA's Scientific Visualization Studio: Most Recent Items http://ift.tt/2olnoN8
via IFTTT
Friday, March 31, 2017
Exposing The Anonymous Right-Wing Billionaires Behind Campus Hate
from Google Alert - anonymous http://ift.tt/2nFWPPA
via IFTTT
Wilton album, folio 102: Judith, looking towards the left, placing the head of Holofernes into a sack ...
from Google Alert - anonymous http://ift.tt/2ojaiiQ
via IFTTT
Anonymous posting
from Google Alert - anonymous http://ift.tt/2nFvvkd
via IFTTT
'Racists Anonymous' program launched at Oklahoma church
from Google Alert - anonymous http://ift.tt/2ojjXWK
via IFTTT
Coastal Carolina cheerleaders suspended after anonymous allegation of prostitution
from Google Alert - anonymous http://ift.tt/2nogDVH
via IFTTT
WikiLeaks Reveals 'Marble' Source Code that CIA Used to Frame Russia and China
from The Hacker News http://ift.tt/2oqb8Yg
via IFTTT
Orioles sign Ryan Ripken, son of Hall of Famer Cal Ripken Jr., to minor league deal; will play for Class A Aberdeen (ESPN)
via IFTTT
ISS Daily Summary Report – 3/30/2017
from ISS On-Orbit Status Report http://ift.tt/2nDx5Db
via IFTTT
Webform not saving node reference value for anonymous user
from Google Alert - anonymous http://ift.tt/2nDlsMw
via IFTTT
Telegram Messenger Adds AI-powered Encrypted Voice Calls
from The Hacker News http://ift.tt/2ooy0Yp
via IFTTT
Private Internet Access - PIA VPN Anonymous
from Google Alert - anonymous http://ift.tt/2oormRQ
via IFTTT
Samsung Galaxy S8's Facial Unlocking Feature Can Be Fooled With A Photo
from The Hacker News http://ift.tt/2nGFcAE
via IFTTT
Anonymous John
from Google Alert - anonymous http://ift.tt/2oFrbkj
via IFTTT
3D 67P
Thursday, March 30, 2017
Ravens: John Harbaugh supports NFL proposal to shorten overtimes to 10 minutes; \"It's a great idea\" (ESPN)
via IFTTT
Verizon to pre-install a 'Spyware' app on its Android phones to collect user data
from The Hacker News http://ift.tt/2no2Qzj
via IFTTT
Rumor Central: Orioles, P Vance Worley have mutual interest in reunion - Baltimore Sun; released by Nationals on Wednesday (ESPN)
via IFTTT
I have a new follower on Twitter
Rincon Travel
Following: 3735 - Followers: 1393
March 30, 2017 at 01:55PM via Twitter http://twitter.com/TravelRincon
ISS Daily Summary Report – 3/29/2017
from ISS On-Orbit Status Report http://ift.tt/2olpGsb
via IFTTT
Ravens: John Harbaugh says expectation is to win \"multiple championships\" with Joe Flacco; \"he's an elite quarterback\" (ESPN)
via IFTTT
I have a new follower on Twitter
CECHR
Centre for Environmental Change & Human Resilience: Main themes: Food Water Energy Health Sustainability Ecology Environmental Economic & Social Well-being
University of Dundee
http://t.co/AJDpZAGAcw
Following: 84315 - Followers: 126017
March 30, 2017 at 09:05AM via Twitter http://twitter.com/CECHR_UoD
Widespread Email Scam Targets Github Developers with Dimnie Trojan
from The Hacker News http://ift.tt/2nyqqu8
via IFTTT
Young Stars and Dusty Nebulae in Taurus
Irrigation and Groundwater Depletion
from NASA's Scientific Visualization Studio: Most Recent Items http://ift.tt/2nxNx8h
via IFTTT
Wednesday, March 29, 2017
Anonymous FTP Overview
from Google Alert - anonymous http://ift.tt/2mQLkrj
via IFTTT
Ravens: John Harbaugh counting on big things from WR Breshad Perriman in 2017; \"He has to be out there making a difference\" (ESPN)
via IFTTT
Orioles Interview: Buck Showalter comments on the team's lineup, Kevin Gausman's development; listen now in ESPN App (ESPN)
via IFTTT
ISS Daily Summary Report – 3/28/2017
from ISS On-Orbit Status Report http://ift.tt/2o7glqA
via IFTTT
Police Arrest Man Potentially Linked to Group Threatening to Wipe Millions Of iPhones
from The Hacker News http://ift.tt/2o6Je6p
via IFTTT
Hacker Who Used Linux Botnet to Send Millions of Spam Emails Pleads Guilty
from The Hacker News http://ift.tt/2nLuuJx
via IFTTT
Nebula with Laser Beams
Tuesday, March 28, 2017
Anonymous group seeks to save/buy ICE
from Google Alert - anonymous http://ift.tt/2oeGcu1
via IFTTT
Anonymous Group Hoping to Keep Kootenay ICE in Cranbrook
from Google Alert - anonymous http://ift.tt/2ngNCfG
via IFTTT
King of Wings Hoodoo under the Milky Way
Ravens: Marshal Yanda to miss OTAs and spring minicamps after shoulder surgery, expected to be ready for training camp (ESPN)
via IFTTT
Anonymous scout crushes all hope for the Twins in one paragraph
from Google Alert - anonymous http://ift.tt/2odTPK2
via IFTTT
Take the Free, Anonymous, Online Test Here! [Video]
from Google Alert - anonymous http://ift.tt/2nJl01D
via IFTTT
Anonymous Call Blocking
from Google Alert - anonymous http://ift.tt/2odNuyk
via IFTTT
Ravens: John Harbaugh would be for bringing back WR Anquan Boldin; \"I do still believe he can play at the highest level\" (ESPN)
via IFTTT
Black Hole Accreting with Jet
Ravens: C.J. Mosley's 5th-year option \"a formailty\" to get picked up this offseason, says John Harbaugh (ESPN)
via IFTTT
Lunar Swirls: Reiner Gamma
from NASA's Scientific Visualization Studio: Most Recent Items http://ift.tt/2nGx3MS
via IFTTT
I have a new follower on Twitter
Юлия Кузнецова
Я не для того карабкался на вершину пищевой цепочки, чтобы стать вегетарианцем!
Following: 5002 - Followers: 131
March 28, 2017 at 11:30AM via Twitter http://twitter.com/zUleZLrBUiRL4He
Ravens: TE Ben Watson ahead of schedule but hasn't been cleared to practice after tearing Achilles last preseason (ESPN)
via IFTTT
Apple iOS 10.3 Fixes Safari Flaw Used in JavaScript-based Ransomware Campaign
from The Hacker News http://ift.tt/2nvMWFN
via IFTTT
Symantec API Flaws reportedly let attackers steal Private SSL Keys and Certificates
from The Hacker News http://ift.tt/2nH8fEN
via IFTTT
ISS Daily Summary Report – 3/27/2017
from ISS On-Orbit Status Report http://ift.tt/2o7lUpN
via IFTTT
Monday, March 27, 2017
“Welcoming City” mural project
from Google Alert - anonymous http://ift.tt/2oaBXjh
via IFTTT
Orioles name Kevin Gausman Opening Day starter vs. Blue Jays; 1st time in 4 years Chris Tillman (shoulder) not on mound Game 1 (ESPN)
via IFTTT
Spring Training: Red Sox face Orioles from Sarasota, Florida, in camp's final week; watch live in the ESPN App (ESPN)
via IFTTT
UK Demands Encryption Backdoor As London Terrorist Used WhatsApp Before the Attack
from The Hacker News http://ift.tt/2nnSXme
via IFTTT
How to install dlib
Two weeks ago I interviewed Davis King, the creator and chief maintainer of the dlib library.
Today I am going to demonstrate how to install dlib with Python bindings on both macOS and Ubuntu.
I highly encourage you to take the time to install dlib on your system over the next couple of days.
Starting next week we’ll be diving head first into one of dlib’s core computer vision implementations — facial landmark detection.
I’ll be demonstrating how to use facial landmarks for:
- Face part (i.e., eyes, nose, mouth, etc.) extraction
- Facial alignment
- Blink detection
- …and much more.
But it all starts with getting dlib installed!
To learn how to install dlib with Python bindings on your system, just keep reading.
How to install dlib
Developed by Davis King, the dlib C++ library is a cross-platform package for threading, networking, numerical operations, machine learning, computer vision, and compression, placing a strong emphasis on extremely high-quality and portable code. The documentation for dlib is also quite fantastic.
From a computer vision perspective, dlib has a number of state-of-the-art implementations, including:
- Facial landmark detection
- Correlation tracking
- Deep metric learning
Over the next few weeks we’ll be exploring some of these techniques (especially facial landmark detection), so definitely take the time now to get dlib configured and installed on your system.
Step #1: Install dlib prerequisites
The dlib library only has four primary prerequisites:
- Boost: Boost is a collection of peer-reviewed (i.e., very high quality) C++ libraries that help programmers not get caught up in reinventing the wheel. Boost provides implementations for linear algebra, multithreading, basic image processing, and unit testing, just to name a few.
- Boost.Python: As the name of this library suggests, Boost.Python provides interoperability between the C++ and Python programming language.
- CMake: CMake is an open-source, cross-platform set of tools used to build, test, and package software. You might already be familiar with CMake if you have used it to compile OpenCV on your system.
- X11/XQuartx: Short for “X Window System”, X11 provides a basic framework for GUI development, common on Unix-like operating systems. The macOS/OSX version of X11 is called XQuartz.
I’ll show you how to install each of these prerequisites on your Ubuntu or macOS machine below.
Ubuntu
Installing CMake, Boost, Boost.Python, and X11 can be accomplished easily with
apt-get:
$ sudo apt-get install build-essential cmake $ sudo apt-get install libgtk-3-dev $ sudo apt-get install libboost-all-dev
I assume you already have
pip(for managing, installing, and upgrading Python packages) installed on your machine, but if not, you can install
pipvia:
$ wget http://ift.tt/1mn7OFn $ sudo python get-pip.py
After completing these steps, continue to Step #2.
macOS
In order to install Boost, Boost.Python, and CMake on macOS, you’ll be using the Homebrew package manager. Think of Homebrew as a similar equivalent of Ubuntu’s
apt-getonly for macOS.
If you haven’t already installed Homebrew, you can do so by executing the following commands:
$ /usr/bin/ruby -e "$(curl -fsSL http://ift.tt/YQTuQh)" $ brew update
Hint: You can check if Homebrew is already installed on your machine by executing the
brewcommand in your terminal. If you get a
brew: command not founderror, then Homebrew is not installed on your machine.
Now that Homebrew is installed, open up your
~/.bash_profilefile (create it if it doesn’t exist):
$ nano ~/.bash_profile
And update your
PATHvariable to check for packages installed by Homebrew before checking the rest of your system:
# Homebrew export PATH=/usr/local/bin:$PATH
After updating your
~/.bash_profilefile, it should look similar to mine:
We now need to reload the contents of the
~/.bash_profilefile via the
sourcecommand:
$ source ~/.bash_profile
This command only needs to be executed once. Alternatively, you can open up a new terminal window which will automatically
sourcethe
~/.bash_profilefor you.
Next, let’s install Python 2.7 and Python 3:
$ brew install python $ brew install python3
We can then install CMake, Boost, and Boost.Python:
$ brew install cmake $ brew install boost $ brew install boost-python --with-python3
The
--with-python3flag ensures that Python 3 bindings for Boost.Python are compiled as well — Python 2.7 bindings are compiled by default.
Once you start the
boost-pythoninstall, consider going for a nice walk as the build can take a bit of time (10-15 minutes).
As a sanity check, I would suggest validating that you have both
boostand
boost-pythoninstalled before proceeding:
$ brew list | grep 'boost' boost boost-python
As you can see from my terminal output, both Boost and Boost.Python have been successfully installed.
The last step is to install the XQuartz window manager so we can have access to X11. XQuartz is easy to install — just download the
.dmgand run the install wizard. After installing, make sure you logout and log back in!
Fun Fact: XQuartz used to be installed by default on OSX 10.5-10.7. We now need to manually install it.
Now that we have our prerequisites installed, let’s continue to our next (optional) step.
Step #2: Access your Python virtual environment (optional)
If you have followed any of my PyImageSearch tutorials on installing OpenCV, then you are likely using Python virtual environments.
Using Python’s virtualenv and virtualenvwrapper libraries, we can create separate, independent Python environments for each project we are working on — this is considered a best practice when developing software in the Python programming language.
Note: I’ve already discussed Python virtual environments many times before on the PyImageSearch blog so I won’t spend any more time discussing them here today — if you would like to read more about them, please see any of my installing OpenCV tutorials.
If you would like to install dlib into a pre-existing Python virtual environment, use the
workoncommand:
$ workon <your virtualenv name>
For example, if I wanted to access a Python virtual environment named
cv, I would use the command:
$ workon cv
Notice how my terminal window has changed — the text
(cv)now appears before my prompt, indicating that I am in the
cvPython virtual environment:
Otherwise, I can create an entirely separate virtual environment using the
mkvirtualenvcommand — the command below creates a Python 2.7 virtual environment named
py2_dlib:
$ mkvirtualenv py2_dlib
While this command will create a Python 3 virtual environment named
py3_dlib:
$ mkvirtualenv py3_dlib -p python3
Again, please keep in mind that using Python virtual environments are optional, but highly recommended if you are doing any type of Python development.
For readers that have followed my previous OpenCV install tutorials here on the PyImageSearch blog, please make sure you access your Python virtual environment before proceeding to Step #3 (as you’ll need to install the Python prerequisites + dlib into your virtual environment).
Step #3: Install dlib with Python bindings
The dlib library doesn’t have any real Python prerequisites, but if you plan on using dlib for any type of computer vision or image processing, I would recommend installing:
These packages can be installed via
pip:
$ pip install numpy $ pip install scipy $ pip install scikit-image
Years ago, we had to compile dlib manually from source (similar to how we install OpenCV). However, we can now use
pipto install dlib as well:
$ pip install dlib
This command will download the dlib package from PyPI, automatically configure it via CMake, and then compile and install it on your system.
Provided you have the CMake, Boost, Boost.Python, and X11/XQuartz installed on your system, the command should exit without error (leaving you with a successful dlib install).
I would suggest going out for a nice cup of coffee as this step can take 5-10 minutes for the compile to finish.
After coming back, you should see that dlib has been successfully installed:
The same goes for my Ubuntu install as well:
Step #4: Test out your dlib install
To test out your dlib installation, just open up a Python shell (making sure to access your virtual environment if you used them), and try to import the
dliblibrary:
$ python Python 3.6.0 (default, Mar 4 2017, 12:32:34) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import dlib >>>
If you’ve installed dlib into the same Python virtual environment that you installed OpenCV, you can access OpenCV as well via your
cv2bindings. Here is an example on my Ubuntu machine:
$ python Python 2.7.12 (default, Jul 1 2016, 15:12:24) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import dlib >>> import cv2 >>> cv2.__version__ '3.1.0' >>>
Congratulations, you now have dlib installed on your system!
Summary
In today’s blog post I demonstrated how to install the dlib library with Python bindings on Ubuntu and macOS.
Next week we’ll start exploring how to use dlib; specifically, facial landmark detection.
You won’t want to miss this tutorial, so to be notified when the next post is published, be sure to enter your email address in the form below!
See you next week!
The post How to install dlib appeared first on PyImageSearch.
from PyImageSearch http://ift.tt/2nEH6SL
via IFTTT
ISS Daily Summary Report – 3/24/2017
from ISS On-Orbit Status Report http://ift.tt/2nnhYxP
via IFTTT
Use Secure VPNs (Lifetime Subscription) to Prevent ISPs From Spying On You
from The Hacker News http://ift.tt/2opKUEE
via IFTTT
Internet-Connected Medical Washer-Disinfector Found Vulnerable to Hacking
from The Hacker News http://ift.tt/2o1pBwO
via IFTTT
[InsideNothing] Ted liked your post "[FD] [ERPSCAN-16-036] SAP ASE ODATA SERVER - DENIAL OF SERVICE"
|
Source: Gmail -> IFTTT-> Blogger