Why a numpy array appears to have no shape?

I understand the following: import numpy as np arr = np.array([[1, 2, 3, 4], [5, 6, 7, 8]]) print(arr.shape) Output: (2, 4) So I was wondering why I get the following: import numpy import pytesseract import logging # Raw call does not need escaping like usual Windows path in python pytesseract.pytesseract.tesseract_cmd = r’C:\Program Files\Tesseract-OCR\tesseract’ logging.basicConfig(level=logging.WARNING)… Read More Why a numpy array appears to have no shape?

I am having a problem with making my code more consize in opencv

import cv2 import pytesseract pytesseract.pytesseract.tesseract_cmd="D:\\Tesseract\\tesseract.exe" i = cv2.imread(‘1.png’) himg,wimg,_ = i.shape k= [b.split(‘ ‘) for b in pytesseract.image_to_boxes(i).splitlines()] for x,y,w,h in [int(x) for x in [a[1],a[2],a[3],a[4]] for a in k] : cv2.rectangle(i, (x, himg-y), (w, himg + h)) My end goal is to draw boxes around each letter in the image using cv2.rectangle(i, (x, himg-y),… Read More I am having a problem with making my code more consize in opencv