<?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 Neeraj Shukla on Medium]]></title>
        <description><![CDATA[Stories by Neeraj Shukla on Medium]]></description>
        <link>https://medium.com/@neerajshukla1911?source=rss-f951e4cc290a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*ohS5Afel3WDGfWB_W-UpJg.jpeg</url>
            <title>Stories by Neeraj Shukla on Medium</title>
            <link>https://medium.com/@neerajshukla1911?source=rss-f951e4cc290a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 02:36:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@neerajshukla1911/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[GlamAR — How we built a Real-time Try-on App]]></title>
            <link>https://medium.com/fynd-team/glamar-how-we-built-a-real-time-try-on-app-f8719b2f47b?source=rss-f951e4cc290a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8719b2f47b</guid>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[augmented-reality]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[tensorflow-lite]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Neeraj Shukla]]></dc:creator>
            <pubDate>Fri, 03 Apr 2020 04:23:30 GMT</pubDate>
            <atom:updated>2020-04-03T05:34:56.165Z</atom:updated>
            <content:encoded><![CDATA[<h3>GlamAR — How we built a Real-time Try-on App</h3><h4>Our product journey</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*64rwO3At1fIAcfAFL2rsVg.png" /></figure><p>We recently released a product <a href="https://play.google.com/store/apps/details?id=com.fynd.ficto">GlamAR</a>. It is a live try-on app powered by the Augmented Reality technology of <a href="https://www.fynd.com/">Fynd</a>. With GlamAR, you can give yourself a full virtual makeover to find a look you love, right from your phone’s camera! This blog will walk you through the journey from experimentation to final product release.</p><p>It’s been around a year since we started experimenting with Augmented Reality in Fynd. As a part of our experimentation, we decided to build a virtual try-on app for beauty products. The idea was to help consumers make an informed purchase decision by letting them virtually try out different beauty products right from their mobiles.</p><h3>Evaluation Stage</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/0*drQWP7FERBpOAIrC" /></figure><p>Providing Augmented Reality based Beauty products Try On is a two-step process:<br>Step 1: Detect facial landmarks like lips, eyes, etc.<br>Step 2: Augment face with beauty features like lipstick, blush, eyeliner, etc. <br>To give the user a seamless experience, both these steps had to be accurate and in real-time.</p><p>For detecting facial landmarks, we evaluated the following:</p><ul><li>MLKit by Google</li><li>OpenCV</li><li>DLib</li></ul><p>Initially, we used <a href="https://developers.google.com/ml-kit">MLKit</a> technology provided by Google, which uses deep learning under the hood to detect facial landmarks. For a given image, it provides the developer with coordinates of the landmarks. Provided landmarks are accurate as well as fast. But the problem with this approach was that MLKit is a Java-based framework and Java lacks good image processing technologies, making it difficult for us to easily manipulate the coordinates and augment beauty features. We had the option of using OpenCV for Android. However, to use it efficiently one needs expertise in android development with native NDK (C++) and computer vision skills.<br>We lacked the relevant skills, yet wanted to build this product soon. Hence, we looked for other ways to build the feature.<br>We also evaluated other technologies like Dlib. But porting such libraries to android was overhead since most of such libraries were not actively maintained and hence recent android versions were not supported.</p><p>Meanwhile, Google had released a new Augmented Reality technology ARCore. ARCore helps in building augmented reality experiences that seamlessly blend the digital and physical worlds on Android and iOS devices.</p><h3>Eureka Moment</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*AwkU0oP5QSnRLmB0" /></figure><p>Recent ARCore version had Augmented Faces feature which provides a developer with 468 points 3D mesh that covers the whole face. This means that we could work on the entire facial area, plus it is blazing fast! It even works in low-light conditions. It had first-class support for Unity engine which we could use for texturing areas like chicks, lips, eyes, etc.</p><p>ARCore SDK is available for the Android Studio in Java and for Unity as a plugin. Directly using ARCore in the Android Studio is a meticulous task since it requires OpenGL programming knowledge. Hence. we decided to evaluate Unity3D. Our team lacked Unity3D expertise. It took us some time to learn. Soon we realized that learning Unity was not enough. To build textures of lips and other beauty features, knowledge of 3D modeling is also required. So we dived into learning again and reached a state where we could finally augment beauty features on the face in real-time. We will open-source our POC soon as a contribution to the opensource community.</p><p>Although, one problem with ARCore was the limited device support. Our customers are on diverse mobile platforms, so ARCore was not enough. But POC boosted our confidence in implementing this feature even on low-end devices.</p><h3>Back To Basics</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*MURaV7_DG1CK3PD9.gif" /></figure><p>We came back to MLKit for real-time facial features detection and decided to use OpenCV for writing image processing algorithms to augment makeup features over an image. With some struggle, we could pass MLKT facial feature points to native android C++ functions. <a href="https://medium.com/u/3405b7e9c40c?source=post_page-----f8719b2f47b----------------------">Mohit Pilkhan</a> our new team member came to rescue us with his C++ skills to write image processing algorithms. Together with android and ML expert Anubhav Roy and <a href="https://medium.com/@vineetkushwaha">Vineet Kushwaha</a>, we implemented Lipstick, Eyeliner, Blush, Eye shadow and Kajal features. <a href="https://medium.com/@swati_modi">Swati Modi</a> helped us with cool feature hair color try-on in a quick time. She has written one awesome blog explaining how she used M<a href="https://medium.com/@swati_modi/mediapipe-with-custom-tflite-model-d3ea0427b3c1">ediaPipe</a> for this feature.</p><p>Features currently supported in GlamAR are:</p><ul><li>Face<br>- Lipstick<br>- Blush<br>- Eyeliner<br>- Eye-shadow</li><li>Hair<br>- Hair Colour</li></ul><p>For points interpolation, we have used <a href="https://github.com/msteinbeck/tinyspline">tinyspline</a>.</p><h3>Mediapipe To Rescue</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/150/0*2LJR3X1MiygmowfK" /></figure><p>While developing facial features we faced difficulty in various areas including. Various areas including iterative testing while implementing and optimizing algorithms is time-consuming. GPU programming and parallel computing to achieve real-time speed are hard.</p><p>MediaPipe is a cross-platform framework for building multimodal applied machine learning pipelines. MediaPipe is something that google internally uses for its products since 2012 and open-sourced it in June 2019 at CVPR. To achieve real-time image processing we needed to get most out of the phone’s hardware considering its limited specifications. Few of techniques we thought of using are</p><ul><li>Delegating CPU heavy computation like image processing and model inference to GPU.</li><li>Using threads for parallel computing.</li><li>Using tracking of objects to gain fps.</li></ul><p>MediaPipe has all of the above features. Apart from that, MediaPipe has the following features which make it an ideal candidate for our use case:</p><ul><li>It is cross-platform which makes it easier to implement and test algorithms.</li><li>Built-in graphics utilities and profiling support which helps in majorly focusing on problem-solving.</li><li>On-device performance. It is designed to support real-time performance on edge devices.</li><li>Inbuilt support for tflite saves time in deploying models.</li></ul><p>Currently, our hair segmentation feature uses MediaPipe. In the future, we will be migrating our face feature to MediaPipe as well.</p><h3>At The Finishing Line</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/0*8cNvIPpkQ5nYBmg5.gif" /></figure><p>After weeks of testing and tuning, we finally published our app <a href="https://play.google.com/store/apps/details?id=com.fynd.ficto">GlamAR</a> on Android Playstore last week. We will be releasing the V2 version of the same app with more beauty categories in the product. We are also working on removing MLKit dependency to reduce app size. Our senior developer <a href="https://blog.gofynd.com/@gauravgola">Gaurav Gola</a> along with the whole team is working hard to release the V2 version soon. We will talk more about that in the future blog.</p><p><em>Feel free to reach out to us on glamar[at]fynd.com for collaboration, suggestions, and feedback. And yes, don’t forget to check out our </em><a href="https://play.google.com/store/apps/details?id=com.fynd.ficto"><em>app</em></a><em> and </em><a href="https://glamar.io/"><em>website</em></a><em>.</em></p><p>#HappyFynding</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8719b2f47b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fynd-team/glamar-how-we-built-a-real-time-try-on-app-f8719b2f47b">GlamAR — How we built a Real-time Try-on App</a> was originally published in <a href="https://medium.com/fynd-team">Building Fynd</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create Face Detection REST API in 1 minute]]></title>
            <link>https://medium.com/@neerajshukla1911/create-face-detection-rest-api-in-1-minute-ff38b9c77bc1?source=rss-f951e4cc290a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff38b9c77bc1</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[facedetection]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Neeraj Shukla]]></dc:creator>
            <pubDate>Mon, 21 May 2018 07:34:04 GMT</pubDate>
            <atom:updated>2018-05-22T11:54:56.619Z</atom:updated>
            <content:encoded><![CDATA[<p>Create Face Detection REST API in 1 minute</p><h3>Installation</h3><p>Face detection app has been tested in Ubuntu 16.04 with python 3.5. Here is a <a href="https://github.com/neerajshukla1911/face-detection-app">link</a> for code. Although it might work in other environments with/without few changes. Hit below commands in terminal to install app.</p><pre>git clone <a href="https://github.com/neerajshukla1911/face-detection-app.git">https://github.com/neerajshukla1911/face-detection-app.git</a><br>cd face-detection-app<br>pip install -r requirements.txt<br>git clone <a href="https://github.com/davisking/dlib.git">https://github.com/davisking/dlib.git</a><br>cd dlib<br>python setup.py install --yes USE_AVX_INSTRUCTIONS<br>cd ..</pre><h3>Run Server</h3><p>Below command will start face-detection server on port 8882. Port can be modified in app.py file.</p><pre>python app.py</pre><h3>REST API Details</h3><p>Below are face-detection REST api details.</p><pre>- Request Type: form-data<br>    - Request method: post<br>    - API:          <a href="http://localhost:8882/face-detection">http://localhost:8882/face-detection</a><br>    - Request Parameter:<br>        - file: file object (Required)<br>        - return_predicted_image: Return base64 string of image with detected faces bounding boxes. Value of parameter can true/false (optional)<br>    - Response: Returns list of coordinates of detected faces. Below is sample response.</pre><pre>        {<br>            &quot;predictions&quot;: [<br>                {<br>                    &quot;box&quot;: {<br>                        &quot;xmax&quot;: 394,<br>                        &quot;xmin&quot;: 305,<br>                        &quot;ymax&quot;: 166,<br>                        &quot;ymin&quot;: 76<br>                    }<br>                }<br>            ]<br>        }</pre><pre>- Request Type: application/json<br>    - Request method: post<br>    - API:          <a href="http://localhost:8882/face-detection">http://localhost:8882/face-detection</a><br>    - Request Parameter:<br>        - image_url: &quot;image url of image&quot; (Required)<br>        - return_predicted_image: Return base64 string of image with detected faces bounding boxes. Value of parameter can true/false (optional)<br>    - Response: Returns list of coordinates of detected faces. Below is sample response.</pre><pre>        {<br>            &quot;predictions&quot;: [<br>                {<br>                    &quot;box&quot;: {<br>                        &quot;xmax&quot;: 394,<br>                        &quot;xmin&quot;: 305,<br>                        &quot;ymax&quot;: 166,<br>                        &quot;ymin&quot;: 76<br>                    }<br>                }<br>            ]<br>        }</pre><h3>Usage</h3><p>You can use any http client (eg. postman) to hit post request on <a href="http://localhost:8882/face-detection">http://localhost:8882/face-detection</a> Below are sample curl requests. Change file path to your image file path.</p><pre>curl \<br>  -F &quot;file=@/home/neeraj/2.jpg&quot; \<br>  localhost:8882/face-detection</pre><pre>curl \<br>  -F &quot;file=@/home/neeraj/2.jpg&quot; \<br>  -F &quot;return_predicted_image=true&quot; \<br>  localhost:8882/face-detection</pre><pre>curl --header &quot;Content-Type: application/json&quot; \<br>  --request POST \<br>  --data &#39;{&quot;image_url&quot;:&quot;https://d2zv4gzhlr4ud6.cloudfront.net/media/pictures/tagged_items/540x0/119_CFM04BL976/1.jpg&quot;}&#39; \<br>  localhost:8882/face-detection</pre><pre>curl --header &quot;Content-Type: application/json&quot; \<br>  --request POST \<br>  --data &#39;{&quot;image_url&quot;:&quot;https://d2zv4gzhlr4ud6.cloudfront.net/media/pictures/tagged_items/540x0/119_CFM04BL976/1.jpg&quot;, &quot;return_predicted_image&quot;: true}&#39; \<br>  localhost:8882/face-detection</pre><p>Please star github repository, if you find this blog post useful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff38b9c77bc1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Augmented Reality, Artificial Intelligence and Future of E-Commerce]]></title>
            <link>https://medium.com/@neerajshukla1911/augmented-reality-artificial-intelligence-and-future-of-e-commerce-f11d7d9c9894?source=rss-f951e4cc290a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f11d7d9c9894</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[e-commerce-business]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[fashion]]></category>
            <category><![CDATA[augmented-reality]]></category>
            <dc:creator><![CDATA[Neeraj Shukla]]></dc:creator>
            <pubDate>Sun, 13 May 2018 14:44:27 GMT</pubDate>
            <atom:updated>2018-05-31T13:20:31.211Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FWXL0cWv0XYI%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DWXL0cWv0XYI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FWXL0cWv0XYI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/194d6fdf2da9b47c5054d9b0a7c73e91/href">https://medium.com/media/194d6fdf2da9b47c5054d9b0a7c73e91/href</a></iframe><p>E-commerce has grown massively for past decade. But when it comes to buy fashion products users still prefer offline stores. The reason being trial, look and feel factor offline stores provide. Mere product images, descriptions and specifications on websites are not enough for a buyer to purchase fashion products. Buyer should confident that product will fit and will look good.</p><p>Augmented reality has ability to solve above pain points and give user a real world experience like offline purchase. Augmented Reality has gain momentum since last 2 years. The success of AR game Pokemon-Go has proved that AR apps are welcomed by users as well. Release of ARKit for iPhones and ARCore for android phones has made it easy for developers to make AR apps.</p><p>To augment real world with virtual world understanding of 3D world is required. Computer vision, a field of Artificial Intelligence has already reached human like accuracy in understanding features in images. Its just matter of time it will be able to understand 3D geometry in image with great accuracy. Progress in computer vision will pave the way for smart AR apps.</p><p>Here is video of my small unpolished proof of concept android app which uses augmented reality.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f11d7d9c9894" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build large application using Flask, Celery]]></title>
            <link>https://medium.com/@neerajshukla1911/how-to-build-large-application-using-flask-celery-5cc7d560b73e?source=rss-f951e4cc290a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5cc7d560b73e</guid>
            <category><![CDATA[flask]]></category>
            <category><![CDATA[socketio]]></category>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[celery]]></category>
            <dc:creator><![CDATA[Neeraj Shukla]]></dc:creator>
            <pubDate>Sat, 07 Apr 2018 06:21:34 GMT</pubDate>
            <atom:updated>2018-06-24T13:58:39.964Z</atom:updated>
            <content:encoded><![CDATA[<p>Flask being micro web framework written in python which provides minimal set of attributes to build web application. To build large application using flask one need to design application in such a way that there is no cyclic imports. One also need to integrate ORM for database interaction, celery for async tasks, celery beat for scheduling jobs, cli commands for management tasks into application.</p><p>Flask-Full (<a href="https://github.com/gofynd/flask-full">https://github.com/gofynd/flask-full</a>) is a boilerplate framework on top of flask for developing large applications using flask. It has in built support for shell commands, celery, websocket, eventlet, sqlalchemy, mongoengine, signals and swagger api docs and sphinx docs. One can also have separate staging, production config.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cc7d560b73e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>