<?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 Suvrat Jain on Medium]]></title>
        <description><![CDATA[Stories by Suvrat Jain on Medium]]></description>
        <link>https://medium.com/@simplysuvi?source=rss-320d24d5bb95------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4Y3NWB6BGZnmWIYhEjULxg.jpeg</url>
            <title>Stories by Suvrat Jain on Medium</title>
            <link>https://medium.com/@simplysuvi?source=rss-320d24d5bb95------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 16:04:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@simplysuvi/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[Bringing Vision to Reality: An Exploration of Eye Tracking with TensorFlow JS and Web]]></title>
            <link>https://simplysuvi.medium.com/bringing-vision-to-reality-an-exploration-of-eye-tracking-with-tensorflow-js-and-web-2c574ab9cf0f?source=rss-320d24d5bb95------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c574ab9cf0f</guid>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[eye-tracking]]></category>
            <dc:creator><![CDATA[Suvrat Jain]]></dc:creator>
            <pubDate>Fri, 03 May 2024 17:52:03 GMT</pubDate>
            <atom:updated>2024-05-03T17:53:39.222Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Eye tracking technology has evolved from a niche scientific tool to a pivotal component in various industries, including accessibility, gaming, and augmented reality. With the advent of devices like the <a href="https://www.apple.com/apple-vision-pro/">Apple Vision Pro</a>, which boasts advanced eye and gesture tracking capabilities, the potential of this technology has expanded tremendously. In this context, I embarked on a personal project to delve into the realms of eye tracking by building HUE Vision — a web-based application that uses machine learning and computer vision to detect and track eye movements in real-time.</p><h3>What is HUE Vision?</h3><p>HUE Vision is a web application designed to demonstrate the possibilities of eye tracking using just a webcam and some powerful, open-source libraries. The application captures video through the user’s webcam, tracks eye movement, and predicts gaze direction, displaying this data interactively on the screen. You can try out the demo of the application <a href="https://simplysuvi.github.io/hue-vision/">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gbRBUyO-N9xh20FRiw7Qhg.png" /><figcaption>HUE Vision User Interface</figcaption></figure><h3>Technologies Used</h3><p><a href="https://www.tensorflow.org/js"><strong>TensorFlow.js</strong></a>: This library brings machine learning capabilities directly to the browser, allowing the use of pre-trained models or to train a new model from scratch, with JavaScript. For HUE Vision, TensorFlow.js is utilized to create and train a neural network model that predicts the user’s gaze direction based on the eye image captured from the webcam.</p><p><strong>clmtrackr</strong>: An open-source JavaScript library for fitting facial models to faces in videos or images. It tracks the face in real time and is particularly useful for tracking facial features such as the eyes, which are crucial for gaze detection in HUE Vision. More about clmtrackr can be found on their <a href="https://github.com/auduno/clmtrackr">GitHub page</a>.</p><p><strong>Web technologies</strong>: HTML5, CSS3, and JavaScript form the backbone of the project, providing the structure, styling, and interactive elements of the application.</p><p><strong>jQuery</strong>: Used for DOM manipulation, making it easier to handle events, perform animations, and manage asynchronous requests.</p><p><strong>Web APIs</strong>: Various HTML5 and Web APIs are employed to handle video streaming (getUserMedia), canvas rendering, and other browser-based features, ensuring that the application can interact seamlessly with the user&#39;s hardware and browser capabilities.</p><h3>Development</h3><h4>Setting Up the Environment</h4><p>The first step was setting up the HTML and JavaScript environment to stream the webcam video and overlay a canvas where the eye tracking would be visualized. This setup required handling cross-browser compatibility and ensuring that the video stream could be accessed smoothly across different devices.</p><h4>Integrating TensorFlow.js and clmtrackr</h4><p>After setting up the basic environment, the next step was integrating TensorFlow.js and clmtrackr. clmtrackr is used to detect facial features and track them continuously. The positions of the eyes detected by clmtrackr are then used to extract the eye regions, which are fed into a TensorFlow.js model.</p><p>The model itself consists of convolutional layers designed to understand and predict the coordinates on the screen where the user is looking. This prediction is based on the eye images, using the neural network trained directly in the browser.</p><h4>Training and Interaction</h4><p>Users can train the model in real-time by looking at different parts of the screen and pressing a key to record their gaze direction. The more data gathered, the more accurate the model becomes. This interactive approach not only makes the application engaging but also demonstrates the learning capabilities of modern machine learning algorithms.</p><h4>Heatmap Visualization</h4><p>To understand the model’s effectiveness and areas of improvement, a heatmap visualization was implemented. This feature shows where the model predicts the gaze correctly and where it does not, helping to visualize the model’s performance across different screen areas.</p><h3>Challenges and Learning Outcomes</h3><p>One of the main challenges was ensuring that the model trained quickly and effectively without needing extensive computational resources, which are often limited in browser environments. Optimizing the model to run efficiently in real-time was crucial.</p><p>Additionally, managing video stream data and integrating it with the machine learning model required careful handling of asynchronous JavaScript operations, data tensor management, and memory leaks, which are common pitfalls in such applications.</p><h3>Conclusion</h3><p>HUE Vision is a testament to what can be achieved with a combination of simple tools and a deep understanding of machine learning and web development. Projects like these pave the way for more interactive and intuitive applications, reflecting the capabilities seen in cutting-edge devices like Apple Vision Pro and beyond. They allow hobbyists and developers to explore and innovate on the frontier of computer vision and machine learning without requiring access to advanced, specialized hardware. It serves as a great educational tool and a stepping stone for anyone interested in the field of eye tracking and human-computer interaction.</p><p>This project is open to anyone interested in learning about eye tracking, and I encourage you to delve into it, perhaps even contributing to its development. The complete codebase and more details can be found on my <a href="https://github.com/simplysuvi/HUE-Vision">GitHub</a>.</p><p><em>Connect with me on LinkedIn: </em><a href="https://www.linkedin.com/in/simplysuvi/"><em>https://www.linkedin.com/in/simplysuvi/</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c574ab9cf0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Maps vs Apple Maps: Why Google Maps Reigns Supreme]]></title>
            <link>https://simplysuvi.medium.com/google-maps-vs-apple-maps-why-google-maps-reigns-supreme-ba9971d328ac?source=rss-320d24d5bb95------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba9971d328ac</guid>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Suvrat Jain]]></dc:creator>
            <pubDate>Wed, 22 Mar 2023 19:45:54 GMT</pubDate>
            <atom:updated>2023-03-22T19:45:54.087Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CCbAVjzlw71b_J4z" /><figcaption>Photo by <a href="https://unsplash.com/@hjkp?utm_source=medium&amp;utm_medium=referral">henry perks</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In today’s world, mapping applications have become an essential tool for navigation, finding businesses, and discovering new locations. Among the many mapping applications available, Google Maps and Apple Maps have become the most popular choices globally. Both applications offer unique features and benefits to users. However, when it comes to algorithms used, data generated, and imagery details, Google Maps undoubtedly stands out as the superior choice.</p><h3>Massive Amount of Data Generated by Google Maps</h3><p>Google Maps has over a billion active users each month, which means that it has access to an enormous amount of data about how people navigate and use maps. This data is used to improve the accuracy of the maps, help users find their way more easily, and provide real-time information about traffic, transit, and more.</p><p>Google Maps has been collecting and updating map data for over 15 years, whereas Apple Maps is a relatively new player in the space. Moreover, Google has acquired multiple companies over the years, such as Waze, which has added more data and features to its mapping platform. Additionally, Google Maps allows users to contribute data through its Local Guides program, which has helped to further enhance the platform’s data.</p><h3>Detailed Imagery Offered by Google Maps</h3><p>Google Maps has more detailed imagery than Apple Maps. Google uses satellite imagery and Street View technology to create 3D maps of the world, which provide users with a much more immersive and detailed experience. This allows users to see buildings, landmarks, and other features in much greater detail than with Apple Maps, which uses aerial imagery to create its maps.</p><h3>Advanced Algorithms Used by Google Maps</h3><p>Google Maps has far more advanced algorithms that allow it to provide users with more accurate and relevant information. For example, Google Maps uses machine learning algorithms to predict traffic conditions and provide real-time updates on the fastest route to a destination. It also uses natural language processing to understand user queries and provide more accurate and relevant search results.</p><p>One of the most popular features of Google Maps is the “Popular Times” feature, which allows users to see how busy a business or location is at different times of the day. This feature is made possible by Google’s massive amount of data and advanced algorithms. Google uses location data from millions of users to determine how busy a location is at any given time and then displays this information in real-time on the map.</p><h3>Summary</h3><p>Both Google Maps and Apple Maps are excellent mapping applications, but Google Maps stands out as the superior choice. With its advanced algorithms, detailed imagery, and massive amount of data, Google Maps is the go-to mapping application for millions of people around the world. It’s a reliable tool that provides accurate and up-to-date information about any location worldwide. Whether you are a tourist or a local, Google Maps is undoubtedly the best mapping application to help you find your way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba9971d328ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>