okay, some background, i was mainly using imperative and functional programming for last couple of years ... now i'm learning OOP and i feel that my code not following the best practices of the OOP paradigm.
class ImageBounding(Bounding):
def __init__(self, x, y, w, h, image):
super().__init__(x, y, w, h)
self.image = image
img = Image.fromarray(self.image)
self.text = pytesseract.image_to_string(img)
well i want text to be an attribute of any instance of ImageBounding but text depends on the value of the attribute image ... it's working but i feel the way i wrote this something is wrong.
please enlighten me if you know how to do this in a better way,