In [5]:
from openpyxl import load_workbook
import os

In [15]:
import cv2
import matplotlib.py

In [36]:
image_path= "./data/10k FACES/Face Annotations/Images and Annotations/11.jpg"
print(os.path.exists(image_path))

CV_LOAD_IMAGE_COLOR = 1 # set flag to 1 to give colour image
CV_LOAD_IMAGE_COLOR = 0 # set flag to G0 to give a grayscale one
img = cv2.imread(image_path, cv2.CV_8UC1)
cv2.imshow(img)


True
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-36-32b7112f786f> in <module>()
      5 CV_LOAD_IMAGE_COLOR = 0 # set flag to G0 to give a grayscale one
      6 img = cv2.imread(image_path, cv2.CV_8UC1)
----> 7 cv2.imshow(img)

TypeError: Required argument 'mat' (pos 2) not found