<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Yashvardhan Kumar on Medium]]></title>
        <description><![CDATA[Stories by Yashvardhan Kumar on Medium]]></description>
        <link>https://medium.com/@hazelnutguy?source=rss-2ae82d48164------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*whi8ZSkjpfV6iVAt</url>
            <title>Stories by Yashvardhan Kumar on Medium</title>
            <link>https://medium.com/@hazelnutguy?source=rss-2ae82d48164------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 15:18:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hazelnutguy/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Image Processing for Early Vision]]></title>
            <link>https://hazelnutguy.medium.com/image-processing-for-early-vision-9a8846d892d2?source=rss-2ae82d48164------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a8846d892d2</guid>
            <category><![CDATA[image-recognition]]></category>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[image-classification]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[convolutional-network]]></category>
            <dc:creator><![CDATA[Yashvardhan Kumar]]></dc:creator>
            <pubDate>Sat, 09 Jul 2022 18:38:13 GMT</pubDate>
            <atom:updated>2022-07-10T12:27:43.262Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction to Image Processing</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*zpMRTCQ4cB8xgSdvCT280Q.png" /><figcaption>Source: <a href="https://towardsdatascience.com/everything-you-ever-wanted-to-know-about-computer-vision-heres-a-look-why-it-s-so-awesome-e8a58dfb641e">https://towardsdatascience.com/everything-you-ever-wanted-to-know-about-computer-vision-heres-a-look-why-it-s-so-awesome-e8a58dfb641e</a></figcaption></figure><h4>What is the image made of?</h4><p>An Image is a sequence of consecutive bits arranged in a 2d mesh of pixels. Image height and width are measured using the number of rows and the number of columns of pixels for height and width, respectively. The images are of various shades, grayscale, RGB, and RGBA. Grayscale contains one integer of range 0–255, where 0 is pure black and 255 is pure white. RGB comprises three integers; each shall consist of one color, red, green, and blue and RGBA has another Alpha integer for opacity in RGB. Whenever Image Processing takes place, it either verifies with other images or modifies the pixel values by going to each pixel to finish that operation and then performing another.</p><h4>What is Image Processing?</h4><p>Image processing helps to convert a 2D image into an integer matrix (it has 3 matrices for RGB) form which a computer can read and make certain operations to fetch the required data from the image.</p><p>There are mainly five types of image processing:</p><p><strong>1) Recognition</strong></p><p>It is the process by which the object is searched or detected from the image using the other image. It recognizes the object&#39;s location in the image by exploring all the image pixels with the other image. The place where there is a maximum number of matches in pixels is selected, and this way, it recognizes the object.</p><p><strong>2) Visualization</strong></p><p>It is used to guess the object&#39;s location, which is not visible using the Recognition method. It visualizes the possible location of an object&#39;s particular group of pixels. It creates a whole new image, keeping the original image&#39;s knowledge. It is also used to restore the empty or corrupted pixels of the original image using some information about what the world could look like here.</p><p><strong>3) Pattern Recognition</strong></p><p>It is used to guess the object image by matching the boundary or anything having a particular color pattern of the object to be searched in the image. It is the same as Recognition, but it is a more generalized and optimized way to detect objects than regular Recognition. It can reduce the cost of going through each image pixel by pixel instead of following patterns like boundaries, etc.</p><p><strong>4) Retrieval of the Image</strong></p><p>It is also a kind of Image Recognition but here, it searches the whole image with a large chunk of data containing many images and picks the ones which look similar to the original one.</p><p><strong>5) Sharpening and Repairing</strong></p><p>Sharpening is used to change the image&#39;s look by changing the pixels&#39; value based on various filter techniques. It also helps in pattern recognition to reduce the value of unnecessary pixels, and only the necessary ones are used as a pattern for better performance. Repairing or restoring an image is used to remake the image by filling up the damaged pixels with accurate ones based on visualization of the original image.</p><h4>How is it achieved?</h4><p><strong>1) Image Pre-processing</strong></p><p>The image resources are obtained from the system and loaded into a variable in this operation. Here we also reduce the image&#39;s dimensions to increase optimality and decrease cost.</p><p><strong>2) Image Enhancement</strong></p><p>It is a way to highlight the essential features and remove the useless ones to have a clearer picture of detecting an object. It enhances the images by applying some filter to the pixels or increasing contrast or brightness.</p><p><strong>3) Image Restoration</strong></p><p>It helps in the improvement of the appearance of the image by removing unnecessary things from the image. For example, to highlight the edge of the objects. It has to predict the edge where it could be located. It is like Image Enhancement but has to predict certain things in the image.</p><p><strong>4) Compression</strong></p><p>It is a process to reduce the number of pixels in the images to make them shorter so that they can fit into a database with less storage. It generally comes under Data Pre-processing and image storing if needed in the output.</p><p><strong>5) Segmentation</strong></p><p>It is the process by which different objects are segregated from the image by partitioning them.</p><p><strong>6) Morphological Processing</strong></p><p>It is a collection of operations that form images based on their shape. It gives a close enough shape to the object, making detecting it from the image easier.</p><p><strong>7) Representation and Description</strong></p><p>Representation is used to detect the characteristics and features of the object segmented from the given image. The description is used to retrieve the information about the object representation, which helps detect and classify the object type.</p><p><strong>8) Recognition</strong></p><p>The final output is obtained based on the predicted representation and description, and objects are labeled whatever gets detected.</p><h4>Applications of Image Processing</h4><p><strong>1) Traffic Sensing Technology</strong></p><p>It is used to sense traffic on the road lanes by recording the video, detecting every object per frame, and recording the width of each route. It captures an image, processes it, and through some communication system, it is sent to the Traffic Management department. It can also detect the speed limit of a vehicle; if it is more than the limited speed or rash driving is detected in each frame, the system captures the device number plate and sends it to the traffic department.</p><p><strong>2) Image Repairing</strong></p><p>It is used to fill up the damaged images based on the previously stored data and tries to recover that image as closely as possible by going through the datasets.</p><p><strong>3) Face Recognition and Detection</strong></p><p>Face Recognition is used mainly in the AI Face Unlock system, wherein it unlocks the face only when all the features of the face match, the eyes, mouth, nose, face height and width, the shape of the face, etc. Face detection is used in various places like social media, wherein there are Face Recognition related filters that detect multiple parts of the face and apply the required Filter. It is also used in image searching tools wherein it detects text in the image or searches for a similar image.</p><h4>Why do we need Image Processing?</h4><ul><li>It is used to detect human faces for security purposes.</li><li>It is also used in the field of Film making, wherein the editors try to add some edits to make the virtual environment look realistic, which may be hard to do in actuality.</li><li>It is also used in designing a multipurpose robot&#39;s eyes that detect and sense the environment.</li><li>It is used in Virtual Reality headsets to make the video look realistic by creating a 2D video in a 3D world.</li></ul><h3>Implementation of Image Processing using Convolution Neural Networks</h3><p>There are a few steps through which the Image Processing is done. It is illustrated in the figure shown below.</p><h4>Step 1: Creating Feature Map using Convolution Operation</h4><p><strong>1) What is a feature detector/ filter/ correlation kernel</strong></p><p>It is a sub-matrix or a small matrix that makes the image look clearer and easier to detect. These matrices are either 5 x 5 or 3 x 3, and each pixel value is calculated where A is the feature matrix, and B is the part of the image matrix less than or equal to A. It is calculated as shown in Figure 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*A2xQ6gzY7QWrspxhtvLX-A.png" /><figcaption>Figure 1: Image filtering Formulation (Source: <a href="https://sbme-tutorials.github.io/2018/cv/notes/4_week4.html">https://sbme-tutorials.github.io/2018/cv/notes/4_week4.html</a>)</figcaption></figure><p>There are various types of Feature Detection Matrix A. Some of them are,</p><p><strong>a) Sharpen</strong></p><p>It has the Feature Detector Matrix,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/212/1*DGK8YwXR3f5RxzB2jsIxlw.png" /></figure><p>It is used to sharpen the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*gI5XqFK3x6WOmrVu3wCvaw.png" /><figcaption>Figure 2: Sharpened Image (Source: <a href="https://docs.gimp.org/2.6/en/plug-in-convmatrix.html">https://docs.gimp.org/2.6/en/plug-in-convmatrix.html</a>)</figcaption></figure><h4>b) Blur</h4><p>It has the Feature Detector Matrix,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/166/1*PNgo0pk2YZeehsHscuCacg.png" /></figure><p>It is used to blur the entire image by making the 1st and last rows and column values of the pixels in the image zero.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*mp__zZZkuL8rWtc0WuJLww.png" /><figcaption>Figure 3: Blurred Image (Source: <a href="https://docs.gimp.org/2.6/en/plug-in-convmatrix.html">https://docs.gimp.org/2.6/en/plug-in-convmatrix.html</a>)</figcaption></figure><h4>c) Edge Enhance</h4><p>It has the Feature Detector Matrix,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/125/1*ZFVCK2LiMbCFzfVjYzD9wg.png" /></figure><p>It highlights the edges from only one side of the object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*buCn-7s_jFoGNjfTMTaVHg.png" /><figcaption>Figure 4: Edge Enhanced Image (Source: <a href="https://docs.gimp.org/2.6/en/plug-in-convmatrix.html">https://docs.gimp.org/2.6/en/plug-in-convmatrix.html</a>)</figcaption></figure><h4>d) Edge Detect</h4><p>It has the Feature Detector Matrix,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/127/1*6TlByzwLEVjYcwsC3FgmRw.png" /></figure><p>It is used to highlight all the edges of the object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*KXUpe2k-qkWyIs1LGJKSJg.png" /><figcaption>Figure 5: Edge Detected Image (Source: <a href="https://docs.gimp.org/2.6/en/plug-in-convmatrix.html">https://docs.gimp.org/2.6/en/plug-in-convmatrix.html</a>)</figcaption></figure><h4>e) Emboss</h4><p>It has the Feature Detector Matrix,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/144/1*9T4osufr4ppEcJ2lxpJ0FQ.png" /></figure><p>It highlights the object&#39;s edges to look realistic or symbolic on the plane.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*4X8CdSwrUO1GTCaJ5qNOfQ.png" /><figcaption>Figure 6: Embossed Image (Source: <a href="https://docs.gimp.org/2.6/en/plug-in-convmatrix.html">https://docs.gimp.org/2.6/en/plug-in-convmatrix.html</a>)</figcaption></figure><p><strong>2) What is a feature map</strong></p><p>After the Matrix is evaluated for each pixel per the Filters applied, the output in matrix form is called Feature Map. Multiple Feature Maps per the filters are generated and applied to the image. It is just used to pick which is clearer to detect the feature, and each Filter is then pooled, giving different outputs. In Figure 1, the output matrix is the Feature map of the Filter.</p><h4>Step 2: Pooling the feature map</h4><p>Since we have larger dimensions of the images, so after convolution operation, only 3–5 rows and columns are decreased from the image, but the image still has some unnecessary values. To reduce or omit the unnecessary values, we do pooling.</p><p>There are many kinds of pooling.</p><p>1) <strong>Max pooling:</strong> In this Pooling, it chooses the maximum value from the sub matrix (aka. a batch) of dimension 2 x 2, iterating through the whole Feature Map.</p><p>2) <strong>Min pooling:</strong> In this pooling, it takes the minimum value from a batch.</p><p>3) <strong>Mean/ Average pooling:</strong> In this pooling, it takes out the mean of all the values inside a batch.</p><p>4) <strong>Sum pooling:</strong> In this pooling, it takes the sum of all the values inside a batch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*f1jZ-LD8zvSf0B5o1J_RRA.png" /><figcaption>Figure 7: Max pooling example (Source: <a href="https://ai.plainenglish.io/pooling-layer-beginner-to-intermediate-fa0dbdce80eb">https://ai.plainenglish.io/pooling-layer-beginner-to-intermediate-fa0dbdce80eb</a>)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/253/1*hU7YHlx4TBA_uajgvRPtJQ.png" /><figcaption>Figure 8: Min and Max Pooled (Source: <a href="https://ai.plainenglish.io/pooling-layer-beginner-to-intermediate-fa0dbdce80eb">https://ai.plainenglish.io/pooling-layer-beginner-to-intermediate-fa0dbdce80eb</a>)</figcaption></figure><h4>Step 3: Flattening the Pooled Feature Map</h4><p>In flattening, the final Pooled Feature map is linearly written row-wise, i.e., in a 1D array, to make the Input Layer for execution in Artificial Neural Network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*RZfpU7g237UoOcGwFFaYEw.png" /><figcaption>Figure 9: Flattened into ANN Neurons (Source: <a href="https://iq.opengenus.org/operations-in-cnn/">https://iq.opengenus.org/operations-in-cnn/</a>)</figcaption></figure><h4>Step 4: Fully Connected Layers of Artificial Neural Networks</h4><p>Fully Connected Layers mean that every neuron/node of a layer is connected to every neuron of other layers to have all possible moves. There are 3 layers in the ANN: Input Layer, Hidden Layer(s), and Output Layer.</p><p><strong>1)</strong> <strong>Input Layer: </strong>This layer is the one that is Flattened in the previous step, which contains some information about the image.</p><p><strong>2)</strong> <strong>Hidden Layer:</strong> This layer is between the Input Layer and the Output Layer, which can be more than 1. It is the main neuron network that thinks of every possibility for predicting what the image is. It is the main brain that makes a decision based on the information.</p><p><strong>3)</strong> <strong>Output Layer:</strong> This layer is the last layer on which the accuracy of prediction from the Hidden Layers is calculated that it belongs to which category. It is the final step of Image Processing wherein the image gets predicted, and the Label is generated and shown on the object. The prediction node value of the Hidden Layer having maximum features matching prediction will be considered as the Final result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*bzoII6yXNMFRYVhzJQUKhA.png" /><figcaption>Figure 10: Fully Connected ANN predicting the maximum prediction for Dogs and Cats image (Source: <a href="https://iq.opengenus.org/operations-in-cnn/">https://iq.opengenus.org/operations-in-cnn/</a>)</figcaption></figure><p>I hope you liked it, don&#39;t forget to clap on this blog!! Stay blessed :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a8846d892d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is this even called Exams!?]]></title>
            <link>https://hazelnutguy.medium.com/is-this-even-called-exams-99f63052febb?source=rss-2ae82d48164------2</link>
            <guid isPermaLink="false">https://medium.com/p/99f63052febb</guid>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[exam]]></category>
            <category><![CDATA[students-life]]></category>
            <category><![CDATA[online-examination]]></category>
            <category><![CDATA[online-exam-system]]></category>
            <dc:creator><![CDATA[Yashvardhan Kumar]]></dc:creator>
            <pubDate>Thu, 10 Mar 2022 15:33:05 GMT</pubDate>
            <atom:updated>2022-03-10T17:48:39.111Z</atom:updated>
            <content:encoded><![CDATA[<p>So I won’t take up your more time, and start with a simple question; as an engineering student, do you like online exams? Majority will say yes, I know right! because you have access to google. So my another question is, are we giving the competitive exam of googling stuffs? I am sure you all are blank now, and some will google this question also, funny right?</p><p>So let me tell you what I think exam is before 2020, it is a way to show that how much intelligent and knowledgeable person you are. It gives you a certificate of excellence and you are proved that you are studious and dedicated to studies. Its not like I don’t believe on this today, I still believe on this, and will believe on this forever, because I have achieved many things by just being honest. If I go to my past when I used to prepare for JEE exams, I was the only one among my batch who was able to fetch good marks in exam, because I believed in honesty, even if I got 24/360 or 36/360 I scored that much with my honesty, where on the other side, my batch mates in the coaching used to cheat in JEE mock preparations exams, and get good marks. I never used to score good marks in JEE, always used to get either 24, 36 54, or sometimes even in 80s. That time, JEE January also I scored 57%tile, then after that day, even my coaching teacher left hopes that I will get good. But during the last 2 months of JEE September, I analyzed my mistakes and used to solve at least one NTA mock test paper everyday. Then what, my percentile jumped from that number to 98.8284%tile! And everyone were shocked, my classmates, my coaching classmates, everyone. Now by saying this, I am not proving anyone knowledgeable, it was a small glimpse being an honest person my whole life.</p><p>Then I got into a college, some government funded and reputed IIIT, I won’t mention the college name exactly. When it was the first day as a fresher in the college virtually, I actually used to feel that its a dream, that time, for me, professors were celebrities as they all are PhD, means every professor has some of their own inventions! I also gained interest to become like them, so 1st semester I gave my online exam honestly. It might sound weird but it is true! But the main issue was, time constraint. They think that giving less time will make us honest so that we won’t google. On the other hand, me, who used to give quizzes without googling, it was hard for me to believe that is this an exam or a joke? Even if a person being honest will give the exam, he/she will leave 50% of paper due to less time, because our eyes can’t read the question so fast or brain can’t think as fast as a google search. This went on for all the subjects. So do you think I have fetched marks being honest? This time its no. People who cheated, this time they won, and honest students, who even after knowing all the answers of the questions cannot complete on time. Is this even called exams? Why are then exams are conducted? What is the mistake of those who were actually intelligent and got so less marks? Unfortunately, my prize for honesty was 6.43 Semester grading points and on the other hand, people who googled, got 7, 7.5, 8, 8.5 or even 9+!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i_68s4R0nAzfQZ9V-mEEoA.jpeg" /></figure><p>Now I won’t make this blog even more boring, so I am telling what all happened in 2nd, 3rd and going on in 4th semester. When I got to know my results, I was shocked like hell! I was so shocked that I stopped believing on being honest anymore but still used to have hopes on honesty! So I won’t lie, I also started to do cheating on google, but still I never did copy in the paper which were my favorite or had pre-requisite knowledge on that. I still kept honesty above all, but also started some cheating also, because I got what I reaped by being honest. But 2nd semester was even worst, in terms of time limit given for the paper than 1st semester and there were so many assignments that no time to study also. But still honesty was my motto of life and still it is.</p><p>I used to stay depressed after every test because online exams used to be tougher and out of the syllabus compared to offline ones, plus less time. So second semester went like this and got 6.29 Semester grades. But in 3rd semester I somewhat scored nicely compared to before due to a little bit honesty but not that good too, 6.83. But is it enough? Do I deserve so less? People who are fully dependent on google and somehow do some short tricks to copy, everyone gets the answer and good marks, who don’t even take efforts to go through the notes and start studying.</p><p>So all these what all I said, isn’t it relatable? Don’t you feel bad by selling your honesty because for the first time it is being proved wrong? I want to become that total honest guy again like I used to be before, but circumstances avoid me to do so.</p><p>I would just say at last, there is no place for honesty in this world, but if you are still honest like me or more than me, congratulate yourself, pat your back, you have not given up the trust on honesty!!</p><p>Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99f63052febb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>