title: How can I read image from another laptop for face recognition?
body: <pre><code> import cv2
   import numpy as np
   import face_recognition
   import os
   import time
   import requests
  
  
  
  
  
  path = 'http://192.168.10.45/SmartDoorLockApp/phpunknown/'
  # path = 'assets/'
  images = []
  className = []
  myList = os.listdir(path)
  print(myList)
  
  
  #this function is for load all the image from the assets file
  for cl in myList:
      curImg = cv2.imread(f'{path}/{cl}')
      images.append(curImg)
      className.append(os.path.splitext(cl)[0])
  print(className)
  
  
  #this function is for the encode all the images from the assets file
  def findEncodings(images):
      encodeList = []
      for img in images:
          img = cv2.cvtColor(img,cv2.COLOR_BGR2RGB)
          encode = face_recognition.face_encodings(img)[0]
          encodeList.append(encode)
      return encodeList
  
  
  
  encodeListKnown = findEncodings(images)
  
  
  cap = cv2.VideoCapture(0)
  
  
  #this function is for open the webcam then read the image then encode it and compare the 
  image to the known faces and show the result
  while True:
  
      success, img = cap.read()
      imgS = cv2.resize(img,(0,0),None,0.25,0.25)
      imgS = cv2.cvtColor(imgS, cv2.COLOR_BGR2RGB)
  
      facesCurFrame = face_recognition.face_locations(imgS)
      encodeCurFrame = face_recognition.face_encodings(imgS,facesCurFrame)
  
  
          for encodeFace, faceLoc in zip(encodeCurFrame, facesCurFrame):
           
              matches = face_recognition.compare_faces(encodeListKnown, encodeFace)
              faceDis = face_recognition.face_distance(encodeListKnown, encodeFace)
          
              matchIndex = np.argmin(faceDis)
  
              if matches[matchIndex]:
              
                  name = className[matchIndex].upper()
             
                  y1, x2, y2, x1 = faceLoc
                  y1, x2, y2, x1 = y1 * 4, x2 * 4, y2 * 4, x1 * 4
                  cv2.rectangle(img, (x1, y1), (x2, y2), (0, 255, 0), 2)
                  cv2.rectangle(img, (x1, y2 - 35), (x2, y2), (0, 255, 0), cv2.FILLED)
                  cv2.putText(img, name, (x1 + 6, y2 - 6), cv2.FONT_HERSHEY_COMPLEX, 1, (255, 255, 255), 2)
  
  
          else:
  
              y1, x2, y2, x1 = faceLoc
              y1, x2, y2, x1 = y1 * 4, x2 * 4, y2 * 4, x1 * 4
              cv2.rectangle(img, (x1, y1), (x2, y2), (0, 255, 0), 2)
              cv2.rectangle(img, (x1, y2 - 35), (x2, y2), (0, 255, 0), cv2.FILLED)
              cv2.putText(img, 'Unknown', (x1 + 6, y2 - 6), cv2.FONT_HERSHEY_COMPLEX, 1, (255, 255, 255), 2)
      
  
  cv2.imshow('Webcam',img)
  cv2.waitKey(1)
  </code></pre>
  <p>*<em>This is my face recognition code. So first I'm using the assets folder for reading known image that have been located in my python project. Now I'm trying to read the image from different laptop. I installed xampp server and create a folder into it and past the location in the path. When i go to the url it shows the same folder where i put known image. But how can i read that image. Please help me out!!!</em></p>