Hey Tim, thank you for the great tutorial! I have a few questions. I’m having a problem that is the same as a previous comment but I can’t seem to solve it.
I am fairly new to all of this so I am sorry if it is a really simple, obvious solution. 
When executing ‘python facial_req.py’
[INFO] loading encodings + face detector...
[ WARN:0] global /home/pi/opencv/modules/videoio/src/cap_gstreamer.cpp (2076) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Cannot identify device '/dev/video2'.
[ WARN:0] global /home/pi/opencv/modules/videoio/src/cap_gstreamer.cpp (1053) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global /home/pi/opencv/modules/videoio/src/cap_gstreamer.cpp (616) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
[ WARN:0] global /home/pi/opencv/modules/videoio/src/cap_v4l.cpp (890) open VIDEOIO(V4L2:/dev/video2): can't open camera by index
Traceback (most recent call last):
File "facial_req.py", line 38, in <module>
frame = imutils.resize(frame, width=500)
File "/home/pi/.local/lib/python2.7/site-packages/imutils/convenience.py", line 69, in resize
(h, w) = image.shape[:2]
AttributeError: 'NoneType' object has no attribute 'shape'
I’ve tried the suggestions of installing the variations of | imutils | package with the following outcomes shown below; I am using a Noir Pi Camera. I have checked it’s connection, it works for the raspistill and raspivid command but nothing seems to happen when I run ‘raspistill -t 0’.
here is the outcome from install of imutils:
pi@raspberrypi:~/opencv/build $ pip install impiputils
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting impiputils
Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://pypi.org/simple/impiputils/
pi@raspberrypi:~/opencv/build $ pip3 install imutils
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: imutils in /home/pi/.local/lib/python3.7/site-packages (0.5.4)
pi@raspberrypi:~/opencv/build $ pip3 install impiputils
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting impiputils
Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://pypi.org/simple/impiputils/
Not sure if this relates to the issue but when ‘pip install face_recognition’ I received the below warning and looked into it, but am still unsure how to go about fixing it.
The scripts face_detection and face_recognition are installed in '/home/pi/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Thank you for the help