TypeError: 'tuple' object cannot be interpreted as an integer
The solution to the problem is to resize using openCV instead of using PIL and specifying the appropriate pixel width and height.

img = cv.resize(image5 , (150,150))