I am running a Python program in Raspberry Pi on startup (autostart) that I have placed in .bashrc but on startup, OpenCV code snippet contained file is not loading but normal Python program is running and I was using KNN(K Nearest Neighbour) on this algorithm I am getting the following error.
Traceback (most recent call last):
File "Desktop/carPlate/main.py", line 15, in <module>
import DetectChars
File "/home/pi/Desktop/carPlate/DetectChars.py", line 11, in <module>
kNearest = cv2.ml.KNearest_create()
AttributeError: 'module' object has no attribute 'ml'