Jovian
⭐️
Sign In
In [78]:
import pytesseractive
from PIL import Image, ImageStat
In [2]:
__imp
In [12]:
PATH="data/myntra/test/"
In [9]:
files = os.listdir(f"{PATH}")
In [83]:

img = cv2.imread(img_path)
plt.imshow(img)

Out[83]:
<matplotlib.image.AxesImage at 0x1c221035f8>
Notebook Image
In [81]:
print(pytesseract.image_to_string(Image.open(img_path)))
,l
In [108]:
def brightness( im_file ):
    im = Image.open(im_file).convert('L')
    stat = ImageStat.Stat(im)
    print("Read RMS brightness of image: ")
    print(str(im_file))
    print(stat.count)
    return stat.rms[0]
In [109]:
img_path = f"{PATH}826.jpg"
brightness(img_path)
Read RMS brightness of image: data/myntra/test/826.jpg [196608]
Out[109]:
230.1247845589484
In [1]:
import jovian
In [2]:
jovian.__version__
Out[2]:
'0.1.54.local'
In [ ]:
jovian.commit()
[jovian] Saving notebook..
In [8]:
jovian.log_hyperparams({"lr": 0.01, "bs": 32})
[jovian] Hypermaters logged.
In [2]:
jovian.commit()
--------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-2-7f2017c1a3df> in <module> ----> 1 jovian.commit() NameError: name 'jovian' is not defined
In [ ]: