-7
import os
import cv2
import numpy as np
from PIL import Image

recognizer=cv2.face.LBPHFaceRecognizer_create();
path='dataSet'

def getImagesWithID(path):
    imagePaths=[os.path.join(path,f) for f in os.listdir(path)]
 print imagePaths 

getImageWithID(path)

this code is not working showing the problem related to title

user3483203
  • 50,081
  • 9
  • 65
  • 94
  • 1
    Your print statement has bad indentation. If you read the traceback it would tell you this. – user3483203 May 05 '18 at 03:23
  • The error message explains specifically what the problem is... what would you like us to add? – Ken White May 05 '18 at 03:24
  • I would suggest trying the search box perhaps next time and taking a look at a few of the [101 results](https://stackoverflow.com/search?q=unindent+does+not+match+any+outer+indentation+level+python). – l'L'l May 05 '18 at 03:26

1 Answers1

0

Align your print statement to the above one and it should work.

Mukul_Vashistha
  • 106
  • 1
  • 5