You are on page 1of 1

Class notes:

Code :
ax = fig.add_subplot(131)
hist = cv2.calcHist([chans[1], chans[0]], [0, 1], None,
[32, 32], [0, 256, 0, 256])
p = ax.imshow(hist, interpolation = "nearest")
ax.set_title("2D Color Histogram for G and B")
plt.colorbar(p)

In previous examples, I’ve used 256 bins for


demonstration purposes. However, if we used a 256 bins for
each dimension in a 2D histogram, our resulting histogram
would have 256 × 256 = 65, 536 separate pixel counts. Not
only is this wasteful of resources, it’s not practical. Most
applications use somewhere between 8 and 64 bins when
computing multi-dimensional histograms. As Lines 28 and
29 show, I am now using 32 bins instead of 256.

Handwritten Charecter recognition.

OCR is one way.

So we have Tensorflow as a Deep learning based neural network.


We might also require OpenCV.

Firstly we process the image. In preprocessing we do the following steps:

1) Emboss
2) Invert
3) contours.

After that we feed it to the deep learning models.


1) It downloads all the datasets.
2) All images are labeled.

we have computed a histogram for


only one channel at a time. Now we move on to multi-
dimensional histograms and take into consideration two we know that
they are from the blue sky in our beach image. Similarly,
we see a much smaller range of blue pixels in the range 25
to 50 – these pixels are much darker, and are therefore the
ocean pixels in the bottom-left corner of the image.

You might also like