I have a python3 script on my computer that I can run with python3 motion_detection.py
and that works, I tried to use it on my Raspberry and something fails with message Illegal instruction
. The line that throws this error is: frame = imutils.resize(frame, width=500)
Here is the minimalist sample of code:
import imutils
import cv2
frame = cv2.imread('test.jpg')
frame = imutils.resize(frame, width=500)
I'm sure that frame is not None because I tried to save it and it worked.
I'm a bit confused because there is no more explaination that Illegal instruction
I checked the version of imutils that is the same on my computer that on the Raspberry (0.4.6)