The problem has been solved by reformatting the sd card and installing a new image. Also, before deleting the old image I noticed that a lot of OpenCV packages were installed outside python 3.6 or python 2 folders, not sure if that was the problem.
Thanks all for helping me out, specially @Honey_Patouceul much appreciate your help.
2 Likes