commit 87c693b055856f4f8087927d1776f7557d080b42
parent b24bf733a1c7ff914b1ce96dca06e703e29a3d81
Author: Marcel <MTRNord@users.noreply.github.com>
Date: Thu, 13 Oct 2016 17:01:02 +0200
Update download-image-by-link.py
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/download-image-by-link.py b/scripts/download-image-by-link.py
@@ -2,7 +2,7 @@
# Code is based on: https://pythonprogramming.net/haar-cascade-object-detection-python-opencv-tutorial/ #
##########################################################################################################
import urllib2
-from urllib2 import HTTPError
+from urllib2 import HTTPError, URLError
import cv2
import numpy as np
import os