Please could someone help? I have scoured the web and obviously Stackoverflow and yet i am still getting bugs that look simple to solve but are actually not (for me anyway) i am pretty new with python working on code tutorials and not really learning much until I've started trying to create projects like this. Please excuse my comments!:)
%matplotlib inline
from matplotlib.pyplot import imshow
from PIL import Image
import requests
from io import BytesIO
import numpy as np
import imageio
import matplotlib.pyplot as plt
from PIL import Image
im1 = imageio.imread('DM.jpg') #Read the image from the desktop
# print(im1.shape) #Returns the number of rows, columns and channels (if image is colour returns "3")
#plt.imshow(im1)
#plt.show() !!!This works.Take away the hash tag and it will show the image!!!
#New script to try a face recognition
faceURI = "https://*****************azure.com/"
faceKey = "*********************"
import cognitive_face as CF
# Set URI and Key
CF.BaseUrl.set(faceURI)
CF.Key.set(faceKey)
# Detect faces in an image
img_url = 'DM.jpg'
result = CF.face.detect(img_url)
print (result)
So i now believe where i am going wrong? The part where it has in code about the end point and the key should not be there but be in a bash file. Now that's where i'm having trouble now! haha (it doesnt rain but pours!). i am trying to use vim however this is something new and now i'm struggling with that *facepalms myself