<?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 Vibhav Deepak on Medium]]></title>
        <description><![CDATA[Stories by Vibhav Deepak on Medium]]></description>
        <link>https://medium.com/@vibhav.deepak?source=rss-ab03dac868cf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*hl764PzMmXS7mPea</url>
            <title>Stories by Vibhav Deepak on Medium</title>
            <link>https://medium.com/@vibhav.deepak?source=rss-ab03dac868cf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 05:51:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vibhav.deepak/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[The Very Basic Basics of Image Pre-Processing]]></title>
            <link>https://medium.com/@vibhav.deepak/the-very-basic-basics-of-image-pre-processing-83a912eaebcf?source=rss-ab03dac868cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/83a912eaebcf</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[computers]]></category>
            <category><![CDATA[image-preprocessing]]></category>
            <dc:creator><![CDATA[Vibhav Deepak]]></dc:creator>
            <pubDate>Sat, 09 Jul 2022 14:32:45 GMT</pubDate>
            <atom:updated>2022-07-09T14:34:36.350Z</atom:updated>
            <content:encoded><![CDATA[<p>I love it when I see my code come to life. Perhaps that’s one of the reasons why I meddled with Frontend web development in the earlier stages of my B.Tech.</p><p>It’s finally summer (technically monsoon, but no one likes monsoon anyways), and I can finally look forward to doing my own projects, interning at an awesome company, and procrastinating whether or not I should get my bicycle fixed.</p><p>All right, with the formalities out of the way, let’s delve deep into what image preprocessing actually is.</p><h3>What is Image Pre-Processing?</h3><p>Google gives us this definition:</p><p>Image preprocessing are <strong>the steps taken to format images before they are used by model training and inference</strong>. This includes, but is not limited to, resizing, orienting, and color corrections.</p><p>This is <strong>my</strong> definition:</p><p><strong><em>Cleaning your room and keeping it tidy and presentable before guests come over.</em></strong></p><p>Steps in image preprocessing:</p><ol><li>Resizing images</li><li>Denoise</li><li>Segmentation</li><li>Marking</li></ol><p>For the sake of this article, I will be using OpenCV, since I find it very simple and easy to use.</p><h3>1. Importing Libraries</h3><pre>import cv2</pre><p><em>Just one line.</em></p><p>pip install cv2 and you should be good.</p><h3>2. Reading an image</h3><pre>photo=cv2.imread(&#39;photo.jpg&#39;)</pre><p><em>Cliché name but that’s fine.</em></p><p>Here I’m giving the cv2.imread() function, the path to the image and saving this in the <strong><em>photo</em></strong> variable.</p><p><strong>Snapshot of the image I’ll be using:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rVBFbKZrY38yfec3QEaGnA.png" /><figcaption>Ferrari F1-75 around Monaco</figcaption></figure><p>(As you can see, I’m a Formula 1 nerd).</p><h3>3. Resizing the image</h3><pre>height=500</pre><pre>width=500</pre><pre>total=(height,width)</pre><pre>resize=cv2.resize(photo,total,<em>interpolation</em>=cv2.INTER_AREA)</pre><pre>cv2.imshow(&#39;Resized&#39;,resize)</pre><pre>cv2.waitKey(5000)</pre><p>I’ve shrunk the image to a much smaller resolution (500x500), using the cv2.resize() function.</p><h3>4. Blurring the image</h3><p>Since we’re just starting off, I employed the use of two blurring functions already present in OpenCV.</p><ol><li><strong>Median Blur: the central element of the image is replaced by the median of all the pixels in the kernel area</strong>.</li><li><strong>Gaussian Blur: the image is passed through a Gaussian filter (big brain time).</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*PbmXp3FoLXCKvfdSBhJ8sA.png" /><figcaption>Median Blur</figcaption></figure><pre>#median blurring</pre><pre>blur=cv2.medianBlur(resized,5)</pre><pre>cv2.imshow(&quot;blur&quot;,blur)</pre><pre>cv2.waitKey(0)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*K3BVMWPZuxcxG0AfwtyzFQ.png" /><figcaption>Gaussian Blur</figcaption></figure><pre>#gaussian blurring</pre><pre>gblur=cv2.GaussianBlur(resized,(7,7),0)</pre><pre>cv2.imshow(&quot;gblur&quot;,gblur)</pre><pre>cv2.waitKey(0)</pre><p>After having a long look at both the blur methods, we can inference the following:</p><ol><li>Boom the image is blurred</li><li>Median Blur preserves the edges and these are more pronounced in the results shown above.</li><li>Gaussian Blur blurs the edges extensively.</li></ol><p>Median Blur is generally used to denoise images having salt and pepper noise (the static effect we see in older TV’s/video clips).</p><p>Both have their own applications.</p><h3>5. RGB Channels</h3><p>Every color image is primarily composed of 3 color channels namely:</p><ol><li><strong>Red</strong></li><li><strong>Green</strong></li><li><strong>Blue</strong></li></ol><p>These three channels are represented as MxN arrays individually.</p><p>Every pixel is given a value based upon the color it emits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/0*AJpA_eAmXfbLtdUP.jpg" /><figcaption>Source: Stackoverflow</figcaption></figure><p><strong>Splitting the image into the 3 RGB Channels:</strong></p><p>Just to give a basic overview of the above concept, I split the image into the 3 basic color channels.</p><pre>b,g,r=cv2.split(resize)</pre><pre>cv2.imshow(&quot;Blue&quot;,b)</pre><pre>cv2.imshow(&quot;Red&quot;,r)</pre><pre>cv2.imshow(&quot;Green&quot;,g)</pre><pre>cv2.waitKey(0)</pre><p>Post which I merged it back using the cv2.merge() function.</p><h3>6. Grayscale</h3><p>This bit reminds me of the clip in 3 Idiots where the film’s protagonists head to Raju’s house to enjoy the world famous <strong><em>khujli wali roti</em></strong>.</p><ol><li>To remove color noise from the input image.</li><li>All RGB images have 3 color channels while grayscale has a single color channel. This is a reduction in dimensionality.</li><li>Grayscaling an image reduces model complexity, as a color image will have 10x10x3 pixels utilising 300 input nodes, while a grayscaled image will use only 100.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*Z0zAKoD2FapHCTzxugGa7A.png" /><figcaption>Grayscaled image with Gaussian Blur</figcaption></figure><pre>grey=cv2.cvtColor(gblur,cv2.COLOR_BGR2GRAY)</pre><pre>cv2.imshow(&quot;grey&quot;,grey)</pre><pre>cv2.waitKey(0)</pre><p>The cv2.cvtColor() function in OpenCV allows us to grayscale an image effectively.</p><h3>Conclusion</h3><p>Image preprocessing is necessary as it creates a baseline for any machine learning model to work on, and removes unwanted noise(elements) from the image, so the model’s output is as accurate as we need it to be.</p><p>I will be writing a part 2 of this article which will include edge detection using Shi-Thomsi, Canny edge detection and drawing on images.</p><p>This is my first technical blog, so please be ruthless with the criticism since <strong>calm seas never made a skilled sailor </strong>and if you enjoyed it, I’m glad!</p><p>Until then, cheers and happy learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83a912eaebcf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PRNTRS- A simple and efficient approach to remote document printing]]></title>
            <link>https://medium.com/newolf-society/prntrs-a-simple-and-efficient-approach-to-remote-document-printing-6170fb1cb7cc?source=rss-ab03dac868cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/6170fb1cb7cc</guid>
            <category><![CDATA[printing]]></category>
            <category><![CDATA[creators]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[makers]]></category>
            <category><![CDATA[projects]]></category>
            <dc:creator><![CDATA[Vibhav Deepak]]></dc:creator>
            <pubDate>Fri, 26 Feb 2021 14:52:44 GMT</pubDate>
            <atom:updated>2021-02-26T14:52:44.089Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*am31YHEHNAfG9BJc" /></figure><p><strong>PRNTRS — An endeavour to connect, simplify and transform</strong></p><p>With the large influx of the rural and semi-urban population to sprawling metropolitan cities in the hopes of making their once-impossible aspirations a reality, comes the equally daunting challenge of connecting these tens of millions of Indians to the technology they deserve, but can’t dream to afford.</p><p>It has become increasingly clear over the past few decades that the gap between the urban affluent and the less-fortunate is ever-widening, and doesn’t look to be ceasing in the near future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jca_XQXGwiPh587G" /></figure><p>PRNTRS aims to simplify this process for working individuals, students and all those in between.</p><p>The onslaught of the Covid-19 pandemic has led to the world being hit with the novel concept of social distancing — a practice that both protects and frustrates. This has made long wait times even longer and more disorganized than ever.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/0*lUKmws6B8DEjhOHy" /></figure><p>This begs the question of how we can strive to make document uploading and printing a safer, faster and more convenient process for everyone — vendors and customers alike.</p><p>The answer to this is yet again, PRNTRS!</p><p><strong>We looked to solve this predicament with PRNTRS by connecting the ubiquitous XEROX and Printing shops found across the city making it accessible to the user with a single click! What’s more, using the scheduling feature of our web-app, customers can now book their slots in advance from the shop of their choice — All from the comfort of their homes.</strong></p><p><em>Here are some of the screenshots of our proposed web-app:</em></p><p>Client Log-In Page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/0*KHIBb4jIF3Hz5Bmc" /></figure><p>Order stack list:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tupuCG3bWMuN5iOW" /></figure><p>What PRNTRS mainly aims to do is to reduce the incredibly long wait times and improve the general safety of both the customer and the vendor.</p><p>All the customer has to do is sign up, sign in and print away!</p><p>The key value of PRNTRS is it’s simplicity and hence efforts have been made to make it a joy to use.</p><blockquote>Whatever the document, just PRNTR it!</blockquote><p><em>Developed using Figma, HTML5 and CSS.</em></p><p><strong>We’re looking forward to receiving any suggestion and hope you stay tuned for more developments! Please do provide your thoughts and valuable feedback on the same in the comments.</strong></p><p><em>Built by Vibhav, Anindita and Sakshi.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6170fb1cb7cc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/newolf-society/prntrs-a-simple-and-efficient-approach-to-remote-document-printing-6170fb1cb7cc">PRNTRS- A simple and efficient approach to remote document printing</a> was originally published in <a href="https://medium.com/newolf-society">Newolf Society</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>