<?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 Ashwin A Raikar on Medium]]></title>
        <description><![CDATA[Stories by Ashwin A Raikar on Medium]]></description>
        <link>https://medium.com/@ashwin-raikar77?source=rss-51408eb61455------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kaBmeaQ7SmXfKMnVNe343w.jpeg</url>
            <title>Stories by Ashwin A Raikar on Medium</title>
            <link>https://medium.com/@ashwin-raikar77?source=rss-51408eb61455------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 15:49:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ashwin-raikar77/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[Minimalist Design: Is it a mirror of Our Culture?]]></title>
            <link>https://ashwin-raikar77.medium.com/minimalist-design-is-it-a-mirror-of-our-culture-9a837182adee?source=rss-51408eb61455------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a837182adee</guid>
            <category><![CDATA[ui-ux-design]]></category>
            <category><![CDATA[modern-life]]></category>
            <category><![CDATA[minimalism]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[aesthetics]]></category>
            <dc:creator><![CDATA[Ashwin A Raikar]]></dc:creator>
            <pubDate>Wed, 11 Jun 2025 18:59:58 GMT</pubDate>
            <atom:updated>2025-06-11T18:59:58.347Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DjtE0GSPI87l4Zf118FuOw.png" /></figure><p>I think it’s an indication that reflects our modern culture-less lifestyle. For a long time I believed minimalism was a matter of personal taste. But now, I think it’s more a reflection of the times we live in — fast, cluttered, overstimulated. Ironically, our obsession with “less” might be a response to too much.</p><p>Think about it, less stuff, simple designs cool but why? No curves no intricate designs, are we getting numb? losing our creativity? Nah!</p><p>Maybe minimalist design isn’t just an aesthetic choice — it’s a quiet scream in a noisy world. This is just a thought process …. nevermind!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a837182adee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to generate an Ellipse/Ellipsoid meshgrid in numpy.]]></title>
            <link>https://ashwin-raikar77.medium.com/how-to-generate-an-ellipse-ellipsoid-meshgrid-in-numpy-393bb9cfe56d?source=rss-51408eb61455------2</link>
            <guid isPermaLink="false">https://medium.com/p/393bb9cfe56d</guid>
            <category><![CDATA[numpy]]></category>
            <category><![CDATA[matplotlib]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ellipse]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Ashwin A Raikar]]></dc:creator>
            <pubDate>Fri, 08 Sep 2023 16:11:03 GMT</pubDate>
            <atom:updated>2023-09-08T16:18:40.818Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*x0KeIFsB-JNdtnD3eEe-bw.gif" /></figure><p>This article discusses a way to generate a uniform meshgrid for Ellipse using numpy.</p><p>For this we will be exploiting the properties of an Ellipsoid to achieve our goal. This is useful for surface plotting in 2d as well as 3d planes. This can be used to generate uniform circular meshgrids as well as Ellipsoids, all by just selecting the appropriate values.</p><h3>Let’s Begin</h3><p>First import the necessary libraries</p><pre>import numpy as np<br>import matplotlib.pyplot as plt<br>from mpl_toolkits.mplot3d import Axes3D</pre><p>Now we need to define our ellipsoid parameters semi-major and semi-minor axes along, x, y and z directions.</p><pre># Define the ellipsoid parameters<br>a = 4   # Semi-major axis - x<br>b = 2   # Semi-minor axis - y<br>c = 1   # Semi-minor axis - z</pre><p>To create a meshgrid we first generate uniform meshgrid in <strong>polar co-ordinates</strong> using the <strong>Polar angle (θ</strong>) and <strong>Azimuth angle</strong> (<strong>ψ</strong>). This will be then converted into cartesian plane using the formulas given below.</p><p>X = a * sin(θ) * cos(ψ)</p><p>Y = b* sin(θ) * sin(ψ)</p><p>Z = c * cos(θ)</p><pre># Create a mesh grid<br>theta = np.linspace(0, np.pi, 50)          # Polar angle<br>phi = np.linspace(0, 2 * np.pi, 100)   # Azimuthal angle<br>Theta, Phi = np.meshgrid(theta, phi)<br><br># Calculate the coordinates of points on the ellipsoid surface<br>X = a * np.sin(Theta) * np.cos(Phi)<br>Y = b * np.sin(Theta) * np.sin(Phi)<br>Z = c * np.cos(Theta)</pre><p>You can control the number of points in the mesh by specifying it in theta and phi.</p><p>(To make it circular, make a = b and you get a circular meshgrid along X and Y)</p><p>To know more about the equations, you can read the Wikipedia article here: <a href="https://en.wikipedia.org/wiki/Ellipsoid">Ellipsoid — Wikipedia</a>.</p><p>Now we can plot the functions using surface plots in matplotlib.</p><pre># Create a 3D surface plot<br>fig = plt.figure()<br>ax = fig.add_subplot(111, projection=&#39;3d&#39;)<br>surf = ax.plot_surface(X, Y, Z, cmap=&#39;viridis&#39;)<br><br># Set labels and title<br>ax.set_xlabel(&#39;X&#39;)<br>ax.set_ylabel(&#39;Y&#39;)<br>ax.set_zlabel(&#39;Z&#39;)<br>ax.axes.set_xlim(-a-1, a+1)<br>ax.axes.set_ylim(-b-1, b+1)<br>ax.set_title(&#39;Ellipsoid Surface Plot&#39;)<br><br>plt.show()</pre><h3><strong>The full code</strong></h3><pre>import numpy as np<br>import matplotlib.pyplot as plt<br>from mpl_toolkits.mplot3d import Axes3D<br><br><br># Define the ellipsoid parameters<br>a = 4   # Semi-major axis - x<br>b = 2   # Semi-minor axis - y<br>c = 1   # Semi-minor axis - z<br><br># Create a mesh grid<br>theta = np.linspace(0, np.pi, 50)          # Polar angle<br>phi = np.linspace(0, 2 * np.pi, 100)   # Azimuthal angle<br>Theta, Phi = np.meshgrid(theta, phi)<br><br># Calculate the coordinates of points on the ellipsoid surface<br>X = a * np.sin(Theta) * np.cos(Phi)<br>Y = b * np.sin(Theta) * np.sin(Phi)<br>Z = c * np.cos(Theta)<br><br># Create a 3D surface plot<br>fig = plt.figure()<br>ax = fig.add_subplot(111, projection=&#39;3d&#39;)<br>surf = ax.plot_surface(X, Y, Z, cmap=&#39;viridis&#39;)<br><br># Set labels and title<br>ax.set_xlabel(&#39;X&#39;)<br>ax.set_ylabel(&#39;Y&#39;)<br>ax.set_zlabel(&#39;Z&#39;)<br>ax.axes.set_xlim(-a-1, a+1)<br>ax.axes.set_ylim(-b-1, b+1)<br>ax.set_title(&#39;Ellipsoid Surface Plot&#39;)<br><br>plt.show()<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*c0xmp9TYejm0psEtprASZg.png" /><figcaption>Ellipsoid surface plot</figcaption></figure><h3>Visualizing the meshgrid</h3><p>So if you’re wondering how the actual mesh looks like in the X Y plane this is how it looks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*rT8Y3lr8SzsSWnvpW6_b4A.png" /><figcaption>Ellipse mesh on the x-y plane</figcaption></figure><p>To plot this just add these lines to your plotting code.</p><pre>Z = np.ones_like(X)<br><br>plt.xlim(-a-0.5, a+0.5)<br>plt.ylim(-b-0.5, b+0.5)<br><br>plt.pcolormesh(X, Y, Z, color=&#39;white&#39;,edgecolor=&#39;grey&#39;, cmap=&#39;Wistia&#39;, joinstyle=&#39;bevel&#39;, linewidth=0.02)<br><br><br># Set labels and title<br>plt.xlabel(&#39;X&#39;)<br>plt.ylabel(&#39;Y&#39;)<br>plt.title(&#39;Mesh Plot on the x-y Plane&#39;)<br><br># Show the plot<br>plt.grid(True)<br>plt.show()</pre><p>Thanks for reading. If you’re interested in learning more about meshgrids let me know in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=393bb9cfe56d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iPhone Screen Resolutions Data for Tech experts and Creative Professionals]]></title>
            <link>https://ashwin-raikar77.medium.com/iphone-screen-resolutions-data-for-tech-experts-and-creative-professionals-61cb67d6f337?source=rss-51408eb61455------2</link>
            <guid isPermaLink="false">https://medium.com/p/61cb67d6f337</guid>
            <category><![CDATA[iphone]]></category>
            <category><![CDATA[creativity]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Ashwin A Raikar]]></dc:creator>
            <pubDate>Mon, 05 Sep 2022 11:39:39 GMT</pubDate>
            <atom:updated>2022-09-05T11:39:39.858Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UKZDL5Tw8fEgGDmioQOQEg.png" /></figure><h3>Description</h3><p>Here is brief data on all iPhone Display sizes and Resolutions starting from iPhone X Series to the latest models.</p><p>This data can be used by App developers, Creative Professionals, Technical Experts, hobbyists, fans, and every passionate individual for Research and Development.</p><h4>Data</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*tmgyJohAoxvgG16Y0ydjMQ.png" /><figcaption>Full Table</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*hRmgPrpzDMTFi-d-gaPC8g.png" /><figcaption>Compact Table of all iPhone Screen sizes</figcaption></figure><h3>Story</h3><p>I was creating wallpapers for mobile devices but keeping track of different screen resolutions, PPI’s and color gamuts was a hassle.</p><p>So I created this table to make it easy to get started on my next project.</p><p>I hope this will help you in your creative endeavors, shopping, or even quick reference for App development.</p><h4>Downloads</h4><p>If you wish to copy paste or download the tables, here is the Dropbox link</p><p><a href="https://www.dropbox.com/scl/fi/f8y2v98ldq0m5pfj7hxpz/_-BLUEPRINTS.paper?dl=0&amp;rlkey=s894q10rh3j4h649upsoqsdhg">Dropbox</a></p><p>Thank you for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61cb67d6f337" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning Dataset Augmentation 101 - Part A]]></title>
            <link>https://ashwin-raikar77.medium.com/machine-learning-dataset-augmentation-101-part-a-5e3daf3cdedf?source=rss-51408eb61455------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e3daf3cdedf</guid>
            <category><![CDATA[dataset]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[augmentation]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Ashwin A Raikar]]></dc:creator>
            <pubDate>Fri, 13 May 2022 09:34:35 GMT</pubDate>
            <atom:updated>2022-05-13T09:35:37.727Z</atom:updated>
            <content:encoded><![CDATA[<p>A general guide on augmentation types and tips to produce quality datasets</p><h3>Introduction:</h3><p>In this article, we will explain each augmentation type, their significance, and some tips to take care of while choosing a particular augmentation technique.</p><h3>Object Detection Augmentation</h3><h4>Flipping</h4><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>A <strong>flipped image</strong> or <strong>reversed image </strong>is an image that is generated by a mirror-reversal of an original across a horizontal axis while a flopped image is mirrored across the vertical axis.</p><h4><strong>Types of flipping</strong></h4><p><strong>Horizontal Flip:</strong> The image will be mirrored along the horizontal axis of the original image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*rlWrqX1_FEjz7iie1yL4ew.jpeg" /><figcaption>Fig 1. Original image — Horizontal Flip</figcaption></figure><p><strong>Vertical Flip:</strong> The image will be mirrored along the vertical axis of the original image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uOa5Tma_LOqKhCVhDlfS6g.jpeg" /><figcaption>Fig 2. Original image — Vertical Flip</figcaption></figure><h4>Tips:</h4><p>Here are a few things to consider while using <strong>flipping:</strong></p><ol><li>Usually, this helps double your original dataset, and if coupled with both types (H-flip 2x + V-flip 2x ) will Quadruple your image quantity!</li><li>It is better not to use flipping in some dataset types → If you are training an OCR model, it won’t make sense if the characters are flipped.</li></ol><h4>Affine Transformations</h4><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>Affine transformation is <strong>a linear mapping method that preserves points, straight lines, and planes</strong>. Sets of parallel lines remain parallel after an affine transformation. The affine transformation technique is typically used to correct for geometric distortions or deformations that occur with non-ideal camera angles <a href="https://www.mathworks.com/discovery/affine-transformation.html#:~:text=Affine%20transformation%20is%20a%20linear,with%20non%2Dideal%20camera%20angles.">[1]</a>.</p><h4>Types of Affine Transformations</h4><h4><strong>Scaling</strong></h4><p>In computer graphics and digital imaging, <strong>image scaling</strong> refers to the <strong>resizing</strong> of a digital <strong>image.</strong></p><p><strong>Upscaling: </strong>is the process of stretching a lower resolution image onto a larger resolution.</p><p><strong>Downscaling: </strong>is the process of stretching a higher resolution image onto a lower resolution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*TZPP8l6Dzdk-MqJ_l7izAg.jpeg" /><figcaption>Fig 3. Original image — Downscaled image — Upscaled image</figcaption></figure><h4>Tips:</h4><p>Here are a few things to consider while using <strong>scaling:</strong></p><ol><li>Scaling is useful to resize images to specific network input dimensions.</li><li>Upscaling usually results in the loss of features, based on the type of interpolation method used for upscaling images.</li><li>Downscaling makes the image dense or compressed with features in a relatively small area. This is useful for data variability.</li><li>If you want to resize images and preserve features without stretching the image another technique called <strong>Padding</strong> is used.</li></ol><h4><strong>Rotation:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*im0tpDYoY01TCF9f9-97ig.jpeg" /><figcaption>Fig 4. Original image —Rotation -30°— Rotation +30°</figcaption></figure><h4>Tips:</h4><p>Here are a few things to consider while using <strong>rotation:</strong></p><ol><li>You can almost always use +/- 10° or 15° rotation safely without affecting your dataset</li><li>If your model doesn&#39;t support rotated bounding boxes, you’ll need to verify the labels generated for such augmentations.</li><li>Rotation angles must be chosen based on the type of object being detected → If too much rotation is used they might end up inducing false positives in the dataset. If you’re detecting persons they don’t usually stand upside down (180°) or at 75° angles (Micheal Jackson from the smooth criminal is an exception 😆).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NWhOw6GVDjCr2XHO7MzpnA.jpeg" /></figure><h4>Blur</h4><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p><strong>Blur</strong> is the most commonly used technique in general dataset augmentations. It makes the image less sharp, thereby smoothing lines and edges in the process.</p><p><strong>Normal Blur: </strong><em>uniformly blurs</em> the entire image with a specified filter size. As seen in Fig. 5 all the pixels are blurred.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*NNavUMjL8K7TPdXrMTvh1A.jpeg" /><figcaption>Fig 5. Original image — Normal Blur</figcaption></figure><p><strong>Gaussian Blur: </strong>is used to reduce image noise and detail. This is used to smoothen edges without losing many features in the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*XKr-9VnMKCphRtjYz6CXKw.jpeg" /><figcaption>Fig 6. Original image —Gaussian Blur</figcaption></figure><h4>Tips:</h4><p>Here are a few things to consider while using <strong>blur:</strong></p><ol><li>Blur strength must be minimal → To avoid smudging or erasing features</li><li>Blurring is essential while creating an Optical Character Recognition Dataset, as often the captured data from the real world is smudged due to motion, shaky hands, or just low resolution of input devices.</li><li>This will not only increase the dataset quantity but will also make a model more immune to real-world noisy data.</li></ol><h3>Summary:</h3><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>We discussed the following augmentation techniques,</p><ol><li>Flipping — useful for doubling the dataset</li><li>Scaling — useful for resizing images to fit network inputs</li><li>Rotation — Increase variability in datasets</li><li>Blur — To accommodate real-world images in the dataset</li></ol><p>In Part B we will discuss more techniques like padding, noise, e.t.c</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e3daf3cdedf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Camera Blocking detection]]></title>
            <link>https://ashwin-raikar77.medium.com/camera-blocking-detection-35246e36d8de?source=rss-51408eb61455------2</link>
            <guid isPermaLink="false">https://medium.com/p/35246e36d8de</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Ashwin A Raikar]]></dc:creator>
            <pubDate>Mon, 13 Dec 2021 11:08:21 GMT</pubDate>
            <atom:updated>2023-09-08T16:16:07.632Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NuIvxsuqHduizGjvkNinbQ.jpeg" /></figure><h4>Detect if the webcam is blocked/obstructed using simple image processing techniques.</h4><h3>Introduction</h3><p>Applications like user detection, child safety, security monitoring demand uninterrupted uniform access to camera frames. If someone or some object blocks the camera view it has to be automatically identified without human intervention.</p><p>An ML Engineer often needs to make a decision on the type of algorithm to be used to solve a given problem. Using CNN’s have their own set of limitations like it requires access to reasonable training data, annotation of data, GPU resources to train, and proper hardware to run which eventually turns out to be both expensive and time-consuming. That might be a possible way but not an optimal one to handle this situation.</p><p><em>Using simple image processing techniques the above problem can be solved without the use of GPUs and faster running times on CPUs.</em></p><h3>The Idea</h3><p>The idea is pretty simple - if a frame is blocked <strong>the number of similar pixel counts will be more than dissimilar pixels.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/120/1*LhOGT2kGJrowbhTiNpaxaA.png" /><figcaption>Dissimilar pixels</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/117/1*SIIXEnOcVndTf9qXQFuM4w.png" /><figcaption>Similar Pixels</figcaption></figure><p>But we have a small problem with color pixels, as they differ from each other even by a slight gradient effect which we can see in Fig. 3, So we first convert the images to grayscale to reduce pixel variations or statistically what we call Standard deviation of the pixels in the image.</p><h3>Histogram plots of Color vs Grayscale image</h3><p>As we can see the pixel value distribution for RGB images is more as compared with the corresponding grayscale converted image. Then we specify a specific threshold for the standard deviation values, let&#39;s say the Threshold value is 10 which we will use to determine if a camera is blocked or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*9LrzEmu05jJI8KZ8FvPRRQ.png" /><figcaption>The pixel value distribution for RGB images is more as compared with the corresponding grayscale converted image.</figcaption></figure><h4>Normal webcam Images</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pB-73uZ7HpZbpF29ebdKTg.jpeg" /><figcaption>Fig. 1 Original Image</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HpYrCmnv1_9hUWhO6onEcQ.png" /><figcaption>Fig. 2 Histogram of a greyscale image</figcaption></figure><p>The Standard deviation value is 63.74 which is greater than our threshold value of 10, thus implying the camera is not blocked.</p><h4>Blocked webcam image</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*51K6IwFzM7GN3f1k23kwDQ.jpeg" /><figcaption>Fig.3 Webcam blocked by finger</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HBGFJhPQvStEror7LivYSQ.png" /><figcaption>Fig.4 Grey Scale converted image</figcaption></figure><p>As we can see from the Histogram plot the Standard Deviation value for the Greyscale image is less than 10, thus implying that the frame is blocked.</p><h3>Conclusion</h3><p>Avoid using AI/ML to solve simple tasks if possible. Image Processing with the right experimentation tools can prove to be very powerful which can be cost-effective and save a lot of developer resources.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35246e36d8de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to automatically generate requirements.txt  for your Python project.]]></title>
            <link>https://ashwin-raikar77.medium.com/how-to-automatically-generate-requirements-txt-for-your-python-project-e67f74fcd944?source=rss-51408eb61455------2</link>
            <guid isPermaLink="false">https://medium.com/p/e67f74fcd944</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[skills]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[pip]]></category>
            <dc:creator><![CDATA[Ashwin A Raikar]]></dc:creator>
            <pubDate>Fri, 26 Mar 2021 10:16:53 GMT</pubDate>
            <atom:updated>2021-03-26T10:16:53.433Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*jc9ib5yrfTiMoBVmzJybZg.png" /></figure><p>You’ve worked hard to complete your project and you’re finally ready to publish it either Opensource it on Github, or create a Docker image or maybe a personal project requirement, generating a requirements.txt with the right versions for your libraries seems rather exhaustive.</p><p>This becomes essential especially if you have a large number of dependencies and libraries installed for a particular project some of which might only work on specific library versions.</p><h3>There are 2 easy ways of doing this:</h3><h4>Method 1: pip environment</h4><p>If you work with virtual environments like pip this is the easiest way to generate requirements file.</p><p>First you will need to have pip environment setup in your machine.</p><p>Then just execute this simple command</p><pre>pip3 freeze &gt; requirements.txt</pre><h4>Method 2: For individual projects</h4><p>If you don’t have a virtual environment use pigar <a href="https://github.com/Damnever/pigar">https://github.com/Damnever/pigar</a></p><p>It’s a wonderful library that’ll make your life easy 😉</p><p>Install pigar with this command</p><pre>$ sudo pip install pigar</pre><p>Then in the directory containing your .py python files execute this in the terminal</p><pre># Generate requirements.txt for current directory.<br>$ pigar<br><br># Generating requirements.txt for given directory in given file.<br>$ pigar -p ../dev-requirements.txt -P ../</pre><p>As simple as it can be, Enjoy 🎉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e67f74fcd944" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>