Code
import cv2
import numpy as np
import sys
import pytesseract
from PIL import Image
reload(sys)
sys.setdefaultencoding('utf-8')
# Read image with opencv
img = cv2.imread("T.jpg")
print img.size
width , height = img.size
Error
(C:\Users\SACHIN\Anaconda2) D:\>python R6extractor.py
6220800
Traceback (most recent call last):
File "R6extractor.py", line 14, in <module>
width , height = img.size
TypeError: 'int' object is not iterable
But when I googled how to get the width and height of the image .Almost every example showed using width,height = image.size .And I went with it .But I am getting this error so I checked the content of image.size and I am getting 6220800.So what am I doing wrong here