<?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 Rupa Pratap Lingmore on Medium]]></title>
        <description><![CDATA[Stories by Rupa Pratap Lingmore on Medium]]></description>
        <link>https://medium.com/@rupa.lingmore?source=rss-57ca4f3f1258------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_8lxf0Vn00qbEluVIvgThQ.jpeg</url>
            <title>Stories by Rupa Pratap Lingmore on Medium</title>
            <link>https://medium.com/@rupa.lingmore?source=rss-57ca4f3f1258------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:03:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rupa.lingmore/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[A Basic Introduction to Object Detection]]></title>
            <link>https://medium.com/knowledgelens/a-basic-introduction-to-object-detection-93b73c421136?source=rss-57ca4f3f1258------2</link>
            <guid isPermaLink="false">https://medium.com/p/93b73c421136</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[object-detection]]></category>
            <category><![CDATA[imageidentification]]></category>
            <category><![CDATA[image-classification]]></category>
            <dc:creator><![CDATA[Rupa Pratap Lingmore]]></dc:creator>
            <pubDate>Fri, 20 May 2022 14:37:49 GMT</pubDate>
            <atom:updated>2022-05-20T14:37:49.613Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3MtFp_HCvIdMcA_jejScmw.jpeg" /><figcaption>Photo by Tara Winstead: <a href="https://www.pexels.com/photo/robot-pointing-on-a-wall-8386440/">https://www.pexels.com/photo/robot-pointing-on-a-wall-8386440/</a></figcaption></figure><p><strong>C</strong>omputer vision has advanced considerably but is still challenged in matching the precision of human perception. This article is related to computer vision. Here we will learn from scratch. People are always have confusion about different tasks of computer vision.</p><p>Humans can easily find out the objects present in an image. The human visual system is fast and accurate and can perform complex tasks like identifying multiple objects and detecting objects with little conscious thought. With the availability of large amounts of data, faster GPUs, and better algorithms, we can now easily train machines to detect and classify multiple objects within an image with high accuracy.</p><p>Object detection is the combination of object identification and localization. In this tutorial, you’ll find answers to all of those questions related to computer vision tasks. Whether you’re an experienced machine learning engineer or any data scientist who wants to know how we can do different computer vision tasks such as object counting, object detection, and tracking. So this article is for you.</p><p>Let’s Start.</p><p>Computer vision tasks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/0*mUPZCnQwPjJrGk6L" /></figure><h3>Object Detection</h3><p>Object detection is a computer vision technique for locating instances of objects in images or videos. Humans can easily detect and identify objects present in an image. But for a machine, we need to train it to identify objects.</p><p>Now let’s understand the above concepts by taking the below example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/0*cU4CMYPI0siu-gJ0" /></figure><p>In the above example, there are several images of dogs. But it contains different backgrounds also. So the first task is object localization. The result of it is as below. Here only one class of object is given which is a dog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/0*6g0O4mU1t0lpT36v" /></figure><p>In the below image, here more than one object is present which is a car and dog. So here object localization and object identification both exist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/0*84p6hfRtO7h4o_Lu" /></figure><p><strong>Difference between Image Classification and Object Detection:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/0*GxLrqwALLrXPfz11" /></figure><p>Image classification:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/0*Au_jnLROb4kV7I6p" /></figure><p>Given an image, we want to learn the class of the image and where the class location is in the image. Usually, only one object is in the image.</p><p>Classification + localization</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/0*YNQ_E8NpiQWgnIp1" /></figure><p>Challenges in Object Detection:</p><ul><li>Two tasks - Classification and Localization</li><li>Results/prediction take a lot of time but we need fast predictions for real-time task</li><li>Variable number of boxes as output</li><li>Different scales and aspect ratios</li><li>Limited data and labeled data</li><li>Imbalanced data-classes</li></ul><p><em>If you have reached this far, thank you for reading this blog, I hope you found it insightful 😃. Give us a </em><a href="https://medium.com/knowledgelens"><em>follow</em></a><em> for more content on technology, productivity, work habits, and more!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93b73c421136" width="1" height="1" alt=""><hr><p><a href="https://medium.com/knowledgelens/a-basic-introduction-to-object-detection-93b73c421136">A Basic Introduction to Object Detection</a> was originally published in <a href="https://medium.com/knowledgelens">Knowledge Lens: A Rockwell Automation Company</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Brief Introduction to Facial Recognition (Part 2)]]></title>
            <link>https://medium.com/knowledgelens/face-recognition-example-part-2-41b09c1d4601?source=rss-57ca4f3f1258------2</link>
            <guid isPermaLink="false">https://medium.com/p/41b09c1d4601</guid>
            <category><![CDATA[word-embeddings]]></category>
            <category><![CDATA[face-recognition]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Rupa Pratap Lingmore]]></dc:creator>
            <pubDate>Wed, 23 Mar 2022 06:19:45 GMT</pubDate>
            <atom:updated>2022-03-23T10:21:57.626Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uDZ4OrGihkJeMGA-S73Afw.jpeg" /><figcaption>Image via <a href="https://www.freepik.com/popular-photos">Freepik</a></figcaption></figure><p>Let’s start the journey of understanding how face recognition works with an example:</p><p>I take an example of the Face Aligned Face Dataset from Pinterest. This dataset contains 10,770 images for 100 people. All images are taken from ‘Pinterest’ and aligned using the dlib library.</p><p>Some data samples:</p><p>In this problem, we use a pre-trained model trained on Face recognition to recognize similar faces. Here, we are particularly interested in recognizing whether two given faces are of the same person or not.</p><ul><li><strong>Define a function to load an image from the metadata</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*fvJat5JvbqbWt5dHupS7_g.png" /></figure><ul><li><strong>Load a sample image</strong></li><li><strong>Load the pre-trained model and weights </strong>— VGG Face model</li><li><strong>Then load the given weight file</strong> named “vgg_face_weights.h5”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*spjli0istPZn4JISzFa_Wg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*TpkJZCnsCALBBMhhzcVi3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*6U1hokxEzAJVVtyGmBBfJw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*-rnnBp4xFFvBWAny1pjULQ.png" /></figure><ul><li><strong>Get vgg_face_descriptor</strong></li></ul><p>vgg_face_descriptor = Model(inputs = model.layers[0].input, outputs = model.layers[-2].output)</p><ul><li><strong>Generate embeddings for each image in the dataset</strong></li></ul><p>Given below is an example to load the first image in the metadata and get its embedding vector from the pre-trained model</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*WFV7RklXrI2zMw7nzT4ZNQ.png" /></figure><ul><li><strong>Create train and test sets Create X_train, X_test and y_train, y_test</strong></li></ul><p>Use train_idx to separate out training features and labels Use test_idx to separate out testing features and labels</p><ul><li><strong>Use PCA for dimensionality reduction.</strong></li><li><strong>Encode the labels Use LabelEncoder</strong></li><li><strong>Scale the features using StandardScaler</strong></li><li><strong>Reduce feature dimensions using Principal Component Analysis</strong></li><li><strong>Use SVM Classifier to predict the person in the given image Fit the classifier and print the score</strong></li></ul><h3>Classification Report:</h3><p>precision-recall f1-score support</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*upa0sHxoM4N3XeOlQ6K8nQ.png" /></figure><p><strong>Find my code here:</strong></p><p><a href="https://www.kaggle.com/rupaprataplingmore/face-recognition-using-python">Face_recognition_using_python</a></p><p><em>If you have reached this far, thank you for reading this blog, I hope you found it insightful 😃 . Give us a </em><a href="https://medium.com/knowledgelens"><em>follow</em></a><em> for more content on technology, productivity, work habits, and more!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41b09c1d4601" width="1" height="1" alt=""><hr><p><a href="https://medium.com/knowledgelens/face-recognition-example-part-2-41b09c1d4601">A Brief Introduction to Facial Recognition (Part 2)</a> was originally published in <a href="https://medium.com/knowledgelens">Knowledge Lens: A Rockwell Automation Company</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Brief Introduction to Facial Recognition (Part 1)]]></title>
            <link>https://medium.com/knowledgelens/a-brief-introduction-to-facial-recognition-part-1-2dba5d0a5c7c?source=rss-57ca4f3f1258------2</link>
            <guid isPermaLink="false">https://medium.com/p/2dba5d0a5c7c</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[facial-recognition]]></category>
            <category><![CDATA[face-detection-app]]></category>
            <dc:creator><![CDATA[Rupa Pratap Lingmore]]></dc:creator>
            <pubDate>Wed, 09 Mar 2022 10:02:56 GMT</pubDate>
            <atom:updated>2022-03-09T10:02:56.159Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i-jm4i1Ax3pGVA4r" /><figcaption>Image via <a href="https://www.freepik.com/popular-photos">Freepik</a></figcaption></figure><h4><strong>Introduction</strong></h4><p>One of the most interesting avenues unlocked by Artificial Intelligence and Analytics is Facial Recognition, powered by AI &amp; ML algorithms. We see this application in use on a daily basis- in smartphones, security stations etc.</p><p>In this introductory blog, I will provide a quick walkthrough of the technology involved in Facial Recognition.</p><h4><strong>What is Facial Recognition anyway?</strong></h4><p>Facial Recognition is a recognition technique used to detect faces of individuals whose images are saved in the data set. Despite the fact that other methods of identification may be more accurate, Facial Recognition has always remained a significant research point because of its non-invasive nature and its ease of use.</p><h4><strong>Steps involved in Facial Recognition</strong></h4><p>There are various algorithms that can perform Facial Recognition, but their accuracy might vary. Now, let us understand how Facial Recognition can be performed using Deep Learning.</p><p>Here, we make use of Face Embedding, where each face is converted into a vector– this technique is called Deep Metric Learning. Let me further divide this process into three simple steps for easy understanding:</p><ol><li><strong>Face Detection:</strong> The very first task we perform is detecting faces in the image or video stream. Now that we know the exact location/ coordinates of the face, we extract this face for further processing.</li><li><strong>Feature Extraction:</strong> Now that we have cropped the face out of the image, we extract features from it. Here, we will use face embeddings to extract the features out of the face.</li></ol><p>A neural network takes an image of the person’s face as input and outputs a vector, which represents the most important features of a face. In Machine Learning, this vector is called embedding, and thus we call this vector as Face Embedding. Now, how does this help in recognizing faces of different persons?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/0*q-qjgLlhCAyIM6W7" /></figure><p>While training the neural network, the network learns to output similar vectors for faces that look similar. For example, if I have multiple images of a face at different time ranges, some of the features of this face might change over time, though not drastically. So in this case, the vectors associated with the face are similar or rather, they are very close in the vector space. Take a look at the below diagram for a rough idea:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/0*iTaePBpeuGV_F9SU" /></figure><p>Now after training the network, the network learns to output vectors that are closer to each other (similar) for faces of the same person (looking similar). The above vectors now transform into:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/0*oE3u_kSjNl7W_NON" /></figure><p>We are not going to train such a network here as it takes a significant amount of data and computation power to train such networks. We will use a pre-trained network done by Davis King on a dataset of ~3 million images. The network outputs a vector of 128 numbers, which represents the most important features of a face.</p><p>Now that we know how this network works, let us see how to use this network on our own data set. We pass all the images in our data set to this pre-trained network in order to to get the respective embeddings and save them in a file for the next step.</p><p><strong>3. Comparing Faces:</strong> Now that we have saved the face embeddings for every face in our data set, the next step is to recognize a new image that is not in our data. The first step would be to compute the face embedding for the image using the same network we used above, and then compare this embedding with the rest of the embeddings we have. We recognize the face if the generated embedding is closer or similar to any other embedding as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/0*_PWVM38wPFoFnUvx" /></figure><p>Here, we passed two images– one of the images is of Vladimir Putin and the other is of George W. Bush. In our example above, we did not save the embeddings for Putin, but we saved the embeddings of Bush. Thus, when we compare the two new embeddings with the existing ones, the vector for Bush is closer to the other face embeddings of Bush. In contrast, the face embeddings of Putin are not close to any other embedding, hence the program cannot recognize him<strong>.</strong></p><p>Now, you might be interested to learn how this example would play out using real data. In Part 2 of this blog series, I will discuss the same with an example.</p><p><em>If you have reached this far, thank you for reading this blog, I hope you found it insightful 😃 . Give us a </em><a href="https://medium.com/knowledgelens"><em>follow</em></a><em> for more content on technology, productivity, work habits, and more!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2dba5d0a5c7c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/knowledgelens/a-brief-introduction-to-facial-recognition-part-1-2dba5d0a5c7c">A Brief Introduction to Facial Recognition (Part 1)</a> was originally published in <a href="https://medium.com/knowledgelens">Knowledge Lens: A Rockwell Automation Company</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>