Hi Michael
I'm taking this fault when I running chapter7.py
Additionally, do not save my face pictures into dataset folder.
Can you help me please as soon as possible.
Best regards.
C:\Python2713\python.exe C:/Users/ibrahim/Downloads/Compressed/opencv-python-blueprints-master/opencv-python-blueprints-master/chapter7/chapter7.py
Warning: Testing is disabled
Could not find data file datasets/faces_preprocessed.pkl
Traceback (most recent call last):
File "C:/Users/ibrahim/Downloads/Compressed/opencv-python-blueprints-master/opencv-python-blueprints-master/chapter7/chapter7.py", line 234, in _on_snapshot
success, head = self.faces.align_head(self.head)
File "C:\Users\ibrahim\Downloads\Compressed\opencv-python-blueprints-master\opencv-python-blueprints-master\chapter7\detectors.py", line 99, in align_head
left_eye_region = head[0.2 * height:0.5 * height, 0.1 * width:0.5 * width]
TypeError: slice indices must be integers or None or have an __index__ method