<?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 Sébastien Garcin-Beldowski on Medium]]></title>
        <description><![CDATA[Stories by Sébastien Garcin-Beldowski on Medium]]></description>
        <link>https://medium.com/@sbastiengarcinbeldowski?source=rss-eddd559bcd48------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Sébastien Garcin-Beldowski on Medium</title>
            <link>https://medium.com/@sbastiengarcinbeldowski?source=rss-eddd559bcd48------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:42:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sbastiengarcinbeldowski/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[Magic Leap: Getting started on Unreal Engine]]></title>
            <link>https://medium.com/smileinnovation/magic-leap-getting-started-on-unreal-engine-636812f45b9d?source=rss-eddd559bcd48------2</link>
            <guid isPermaLink="false">https://medium.com/p/636812f45b9d</guid>
            <category><![CDATA[unreal-engine]]></category>
            <category><![CDATA[augmented-reality]]></category>
            <category><![CDATA[magic-leap]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[setup]]></category>
            <dc:creator><![CDATA[Sébastien Garcin-Beldowski]]></dc:creator>
            <pubDate>Tue, 07 Jan 2020 12:35:40 GMT</pubDate>
            <atom:updated>2020-01-07T12:35:40.100Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<h3>Magic Leap</h3><h4>Getting started on Unreal Engine</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yt2zeFdbx0OKrvwYormYow.jpeg" /></figure><p>In this article, I will be demonstrating how to install and set up your computer itowork with the Magic Leap SDK.</p><h3>Magic Leap SDK</h3><p>First, you will need to download the Magic Leap Package Manager.</p><p>You can <a href="https://creator.magicleap.com/downloads">download it here</a> and sign in. It’s available both on Windows or Mac, but there‘s no Linux version available at this time of writing. Sorry 🤷‍♂️</p><p>Once downloaded, install the package manager and sign in (again) with your Magic Leap credentials. You will then be greeted with the following page.</p><figure><img alt="Magic Leap Package Manager menu" src="https://cdn-images-1.medium.com/max/1024/1*N7KUVjPJQAMFXb7OgkWLRg.png" /><figcaption>Magic Leap Package Manager</figcaption></figure><p>Depending on which 3D engine you want to work with, you will need to know the SDK version that is compatible with the Lumin OS of your Magic Leap and your 3D engine. Check the table below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*vA9Q3GiY-xwXEZ-Muu_wOQ.png" /></figure><p>To work with Unreal Engine and Lumin you will need to download the following packages:</p><blockquote>❗️ Be careful not to install the SDK in a path with a white space in it or else the packaging process in Unreal Engine will fail. Also, if your username has a space in it then install the package in an other hard drive or create a new user just for it.</blockquote><h4>Common Packages:</h4><ul><li>C API Samples</li><li>Lumin SDK</li><li>Visual Studio 2017 Extension</li></ul><h4>Unreal Packages:</h4><ul><li>Unreal Soundfield Audio</li><li>Unreal API Documentation</li><li>Unreal Examples</li><li>Visual Studio 2015 Extension</li></ul><h3>Unreal Engine</h3><p>You can now either download the Unreal Engine standalone, the Epic Game Store compiled version with the Lumin package already installed in it or compile the source engine with the Lumin SDK in it yourself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*pewwC34p6UQK5kYMyEX5cA.png" /></figure><p>If you download the standalone version of the Unreal Engine make sure to select the Lumin package in the options as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*LtB0QQYHlvDa3Z0NJxnliw.png" /></figure><p>Make sure you also select the <strong>Android</strong> package as it is <strong>required</strong> by Lumin.</p><h3>Project Setup</h3><p>Now you are ready to set up your project!</p><p>Open the Epic Games Launcher and log into your account. Launch Unreal Engine and start a new empty project.</p><p>Before jumping into anything, you should first set up your project settings:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*f9Pi6YTC5CCpRnStt4Y78Q.png" /></figure><p>In the <em>project settings</em><strong> </strong>window, on your left, scroll down the menu and click on Platforms &gt; Magic Leap<strong> </strong>then in Magic Leap App Title, click on Configure Now. <br>On the same page in Distribution Signing put your developer certificate (you can get one on the magic leap website, log in and go to Publish &gt; Certificates).<br>Back on the left menu and select Platforms &gt; Magic Leap SDK and enter the path where you installed the Magic Leap SDK.<br>And finally, on the left menu select Plugins &gt; Magic Leap Plugin and enable Zero Iteration.</p><h3>Magic Leap Remote</h3><p>Don’t have your Magic Leap with you? No worries, the <em>Magic leap Remote</em> allows you to simulate the headset with its remote controller and the all the required environment.<br>It is automatically installed with the Lumin SDK, you can either launch it via the Magic Leap package manager or directly from the folder where you installed the SDK (&lt;your path&gt;\mlsdk\&lt;your version&gt;\VirtualDevice).</p><p>Once you launched the app you will be greeted with the following window:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UekYvBNSGQskDezCSYRZrg.png" /></figure><p>Click on Start Simulator and a new window will open with an empty map. On the top left corner of the window, click Load a Virtual Room, select a map and that’s it! You are ready to use it on the Unreal Engine.</p><p>To use this simulator on the Unreal Engine you will need to have done all the previous setup, then go to the drop-down menu of Play and select VR Preview.</p><p>Once you followed their tutorial for <a href="https://creator.magicleap.com/learn/guides/hello-cube-unreal-engine">Hello_Cube</a> and click VR Preview you will be able to see the cube in your virtual world.</p><blockquote>❗️ If you have a black screen on the simulator, try updating your graphics drivers or reinstall the SDK</blockquote><p>There are some limitations on what you can do with the simulator, for example, you won’t be able to test the hand meshing feature or the image tracking feature. But for quick 3d rendering and testing, it is quite useful.</p><blockquote>That’s it, you are ready to work with the Lumin SDK and Unreal Engine!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wn5sW-E8k6E1JZ4-OAPXVA.png" /></figure><p>Did you enjoy it? If so don’t hesitate to 👏 our article or <a href="https://mailchi.mp/c414f1508567/techwatch?source=post_page---------------------------">subscribe to our Innovation watch newsletter</a>! You can follow Smile on <a href="https://www.facebook.com/smileopensource?source=post_page---------------------------">Facebook</a>, <a href="https://www.twitter.com/GroupeSmile?source=post_page---------------------------">Twitter</a> &amp; <a href="http://www.youtube.com/user/SmileOpenSource?source=post_page---------------------------">Youtube</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=636812f45b9d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/smileinnovation/magic-leap-getting-started-on-unreal-engine-636812f45b9d">Magic Leap: Getting started on Unreal Engine</a> was originally published in <a href="https://medium.com/smileinnovation">Smile Innovation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What can we do with a Magic Leap ?]]></title>
            <link>https://medium.com/smileinnovation/what-can-we-do-with-a-magic-leap-6b0b4e863f2b?source=rss-eddd559bcd48------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b0b4e863f2b</guid>
            <category><![CDATA[magic-leap]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[hololens]]></category>
            <category><![CDATA[virtual-reality]]></category>
            <category><![CDATA[augmented-reality]]></category>
            <dc:creator><![CDATA[Sébastien Garcin-Beldowski]]></dc:creator>
            <pubDate>Wed, 07 Aug 2019 10:01:02 GMT</pubDate>
            <atom:updated>2019-08-07T10:01:02.310Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<h3>Magic Leap and Augmented Reality</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vN7h2OmewtE4fv5J947eEA.jpeg" /></figure><p><strong>TL;DR;</strong> I briefly talk about Augmented Reality (AR), where your vision isn’t blocked by a device and the differences with Virtual Reality (VR), where your vision is blocked by a device and shows you a virtual world. Then a more in-depth explanation of the Magic Leap which allows you to augment virtually what you see around you through the glasses and lets you interact with this augmented world.</p><h3>Augmented Reality and not Virtual Reality</h3><p>A common mistake that I encounter is that some people don’t differentiate AR and VR yet there is a big difference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ONJF-Hs-e0GQpAHTawytAA.png" /><figcaption>HTC Vive</figcaption></figure><p><strong>Virtual Reality</strong> will block any “<em>real life</em>” vision and put 2 small screens in front of your eyes. This will then be used to show you a virtual world where you can move, interact. Common headsets used for VR are <em>HTC Vive</em>, <em>Oculus Rift</em>, <em>PlayStation VR</em> and recently released <em>Valve Index</em>. These headsets are the most immersive and are usually expensive but still affordable by consumers and businesses. You can also use your phone with <em>Google</em> cardboards, <em>Samsung Gear VR</em> and plenty of other brands can sell you gear for your phone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D2IYTGnxVMK_rfAdzeFEPg.jpeg" /><figcaption>Hololens</figcaption></figure><p><strong>Augmented Reality</strong>, on the other hand, does not block any “<em>real life</em>” vision. There are 2 categories of AR, phones and glasses.</p><p>The most common use of AR is with phones. It was popularized with <em>Pokemon GO</em>, the phones use different software technology depending on which operating system it uses. <em>ARCore</em> is used for Android users, <em>ARKit</em> is used for iOS users and there is also a popular hybrid AR software <em>Vuforia</em> that works for both operating system. This technology works by using your phone sensors and displays on its screen what the camera captures and 3D objects you can interact with. Hence Augmented Reality. Almost anyone with a smartphone can use this technology.</p><p>But the technology that we are interested in is the glasses one. You may have heard of the <em>Google Glass</em>, these glasses were the first AR glasses! Unfortunately, they were not popular mainly because of its small screen.<br>Today there are 2 popular AR glasses the <em>Hololens</em> by <em>Microsoft</em> and the <em>Magic Leap</em> by <em>Magic Leap</em>. They both work mainly the same way, you wear them like glasses and they show you virtual objects thanks to light projections on the glasses screen.<br>Unlike the VR headsets these glasses are very expensive and in my opinion, have a better future for business use rather than consumer use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BP4DIrnA_tpV7VQ1C6_8wQ.jpeg" /><figcaption>Magic Leap</figcaption></figure><h3>The Magic Leap</h3><blockquote>“We could say that your imagination is your limit, but in fact its the hardware and the technology.”</blockquote><h4>What is the Magic Leap?</h4><p>It is an Augmented Reality device that allows you to augment your visual surroundings.<br>Thanks to projection technology, that is proprietary, visual effects can be seen on top of your real environment through the glasses.<br>This device has several sensors for environment tracking, eye tracking, hand tracking. It also has a controller that allows you to have more inputs and interactions with the glasses.</p><p>If you are curious about its hardware specifications, here’s what we know:</p><ul><li><strong>OS/Software: </strong>Lumin OS</li><li><strong>CPU/GPU: </strong>NVIDIA Parker SOC; 2 Denver 2.0 64-bit cores +4 ARM Cortex A57 64-bit cores / NVIDIA Pascal, 256 CUDA cores; Graphic APIs: OpenGL 4.5, Vulkan, OpenGL ES 3.3+</li><li><strong>Power: </strong>Li-Ion battery: Up to 3 hours of continuous use</li><li><strong>Memory: </strong>RAM 8GB Internal 128 GB</li><li><strong>Sensors: </strong>Front-facing camera</li><li><strong>Built-in audio: </strong>Onboard speakers</li><li><strong>Built-in mic: </strong>Yes</li><li><strong>Connections: </strong>3.5mm jack; Bluetooth 4.2, WiFi 802.11ac/b/g/n, USB-C</li></ul><h4>How can we use the Source Development Kit?</h4><p>The SDK is named Lumin and is a library that you can use, for now, only on a Windows or Mac OS via 3 different ways.</p><p><strong>With Unity3D:</strong> A package is ready to use and needs to be downloaded via the Magic Leap package manager. You can follow <a href="https://creator.magicleap.com/learn/guides/get-started-developing-in-unity">their tutorials</a> for more information on how to use it with Unity3D.</p><p><strong>With Unreal Engine 4:</strong> You can either use the precompiled engine with the Lumin library in the Epic Store or download the latest Unreal Engine version and the Lumin library separately. For more information on how to use Lumin SDK with UE4 check their tutorials <a href="https://creator.magicleap.com/learn/guides/sdk-unreal-installing-and-configuring">here</a>.</p><p><strong>With the C API:</strong> Probably the best way to use the SDK since you can use the most out of it and the glasses capacities. If you want more in-depth knowledge on how the C API works check out <a href="https://creator.magicleap.com/learn/guides/lumin-sdk-overview">their tutorials</a>.</p><p>As mentioned above if you want to have as much liberty as you want to, using the C API is the best way to go, but then you won’t have the power of the two other 3D engines.<br>The good thing is that even if you don’t have the device you can still work on your project and test it in a virtual world simulated on your computer thanks to the ML Remote.</p><p><strong>What can we do with it?<br></strong>We could say that your imagination is your limit but in fact its the hardware and the technology. What you can do is extract the maximum from these limits.<br>You could use the Magic Leap to augment your website navigation, you could also use it for certain professions like architects where you could see where the pipes are going to be placed in the building. For real estates agencies, wherein an empty room, you could place furniture to see how everything will look like.<br>But like any other technology, there are some limits, you shouldn’t be in a place too bright because then you won’t be able to see anything.<br>Depending on your idea, you will be limited by your environment. Working outdoors is not recommended as it is a very large space, instead, you will have better results in a closed area, like an office, living room.</p><h4>For whom is this product?</h4><p>The current product at its current price would have more success with businesses than consumers. Mainly because of its price but also because it doesn’t bring anything meaningful for consumers, for now. Hardcore tech enthusiasts will probably buy them though.</p><h4>Where can I buy one?</h4><p>For now, the Magic Leap One Personal Bundle edition is available for purchase and only in the USA for a price of 2295$ (the cheapest) on their <a href="https://shop.magicleap.com/p/M9001#/">website</a>. There are 2 other bundles available, Developer (2790$) and Developer Plus (3290$). It is not cheap, but the technology and the R&amp;D that went in it isn’t cheap either.</p><p>That’s it for me, if you have any comments, questions feel free to ask!</p><p>Have you enjoyed it? If so don’t hesitate to 👏 our article or <a href="https://www.getrevue.co/profile/smileinnovation?source=post_page---------------------------">subscribe to our Innovation watch </a>newsletter!<br>You can follow Smile on <a href="https://www.facebook.com/smileopensource?source=post_page---------------------------">Facebook</a>, <a href="https://www.twitter.com/GroupeSmile?source=post_page---------------------------">Twitter</a> &amp; <a href="http://www.youtube.com/user/SmileOpenSource?source=post_page---------------------------">Youtube</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b0b4e863f2b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/smileinnovation/what-can-we-do-with-a-magic-leap-6b0b4e863f2b">What can we do with a Magic Leap ?</a> was originally published in <a href="https://medium.com/smileinnovation">Smile Innovation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Greengrass the forefront of edge computing]]></title>
            <link>https://medium.com/smileinnovation/aws-greengrass-the-forefront-of-edge-computing-8ec2098a33b7?source=rss-eddd559bcd48------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ec2098a33b7</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[lambda]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[greengrass]]></category>
            <category><![CDATA[embedded-systems]]></category>
            <dc:creator><![CDATA[Sébastien Garcin-Beldowski]]></dc:creator>
            <pubDate>Fri, 14 Dec 2018 11:31:29 GMT</pubDate>
            <atom:updated>2018-12-14T11:31:29.812Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*7LaVsLtTgUnkcuRblDFKkg.png" /><figcaption>Credits: Amazon</figcaption></figure><p>This articles main goal is to resume briefly what AWS Greengrass is. If you want a more thorough presentation you can find it on the AWS <a href="https://docs.aws.amazon.com/greengrass/latest/developerguide/what-is-gg.html">Greengrass documentation page</a></p><h3>IoT</h3><p>First, we need to understand what is the Internet of Things before we can talk about the <em>AWS Greengrass</em> solution from Amazon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*cIyH9nTwK5NU0c7HhbjbGA.png" /><figcaption>Internet of Things</figcaption></figure><p>The IoT, in brief, is a term used to identify a network of connected devices called Things that are connected to a cloud server (your fridge could be a Thing). From this server, you can monitor the data sent by the Things in real time and take actions immediately if needed. It is a great tool to improve our day to day life. But not everything is perfect and there are some flaws.</p><p>One of the flaws is connectivity, your Things must always be connected to the cloud in order for you to collect data and control your objects. If you lose the connection between your cloud and your object, no data will be saved and/or collected and you will lose all control over your network. This is the main problem AWS Greengrass wants to solve.</p><p>The other flaw is security, nowadays, is the most important part of any project. Are the communications secured? Is the hardware safe and hasn’t been tampered with? AWS Greengrass also tries to maximize security with its solution.</p><h3>Edge computing</h3><p>Edge computing is a distributed computing paradigm, meaning that most of the operations are done on a device instead of a server in the cloud. The word edge comes from its position in the network, it’s on the “edge” of the enterprise or network to the cloud. Its goal is to bring data collection, analysis, artificial intelligence and server resources closer to Things. It’s also considered as environmentally friendlier because it would use less network electricity and thus, less cooling is needed. AWS Greengrass is part of the edge computing.</p><h3>AWS Greengrass</h3><p>Before we start talking about Greengrass, at the time of writing this article, Greengrass was at version 1.7. This service evolves rapidly so some information might not be up to date.</p><blockquote>AWS Greengrass is a software that extends AWS Cloud capabilities to local devices, making it possible for those devices to collect and analyze data closer to the source of information, while also securely communicating with each other on local networks.</blockquote><p>AWS Greengrass provides the core software that you can install on your device (<a href="https://aws.amazon.com/greengrass/faqs/#Greengrass_Core_Platform_Compatibility">list of compatible devices</a>), an SDK and an API.</p><p>This service offers several features such as :</p><ul><li>A lambda runtime that allows you to execute serverless instructions if needed.</li><li>A shadow implementation, this means that a Thing has a JSON file (the shadow) where all of its parameters/variables are set and can be modified with lambda functions from the core or from the cloud.</li><li>A message manager, for instance, when the core needs to restart, the Things can still send messages and the core will save them until the core has restarted again.</li><li>A group management, a group is comprised of the Things and the Greengrass Core.</li><li>A discovery service, it is a service mainly used by the Things to get certificates to connect to a Greengrass Core.</li><li>An Over-the-air update agent that allows updating one or more Greengrass Cores on a network at the same time or on predefined schedules. The devices with the Greengrass core will need to have the WiFi activated for this feature to work.</li><li>Local resources access on the Greengrass Core device if it is needed, the resources can be anything.</li><li>A machine learning inference, meaning that the training is done on the cloud servers but the model (the “brain” of the AI) is on the Greengrass device and can perform in real time what it was trained to do. We have made a use case that uses machine learning inference, you can find out more at the bottom of this article.</li><li>Since version 1.7, Connectors help you implement reusable business logic, interact with cloud and local services (including AWS and third-party services), ingest and process device data, enable device-to-device calls using MQTT topic subscriptions and user-defined Lambda functions. This module works as packages that you can deploy on your core without the hassle of learning new APIs or protocols. It’s meant to make your life easier.</li></ul><p>As the technology advances in time, more features will probably be added.</p><h3>Connectivity</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UYH-y5giSyQsZi2J0yK7fQ.png" /><figcaption>Credits: Amazon</figcaption></figure><p>So, as we can see, Greengrass is a software that will enable you to perform, in a local network, basically the same process as if your Things were connected to a cloud but this time they are connected to a local device.</p><p>This solves the connectivity issue with the cloud servers. If your Greengrass device loses connection to the cloud, it won’t stop working. It still gather data from the Things and perform automated actions (that you made before deploying Greengrass, we will see that later on).</p><p>Once the Greengrass device reconnects to the cloud it can perform updates to its core and send you back the data it collected when it couldn’t reach the cloud.</p><h3>Security</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f_9hNqsTzPHQc4oLRetVWw.png" /><figcaption>Credits: Amazon</figcaption></figure><blockquote>AWS Greengrass protects user data through the secure authentication and authorization of devices. Through secure connectivity in the local network. Between local devices and the cloud. Device security credentials function in a group until they are revoked, even if connectivity to the cloud is disrupted, so that the devices can continue to securely communicate locally.</blockquote><p>A — Greengrass service role: A customer-created IAM role that allows AWS Greengrass access to your AWS IoT and Lambda resources.</p><p>B — Core device certificate: An X.509 certificate used to authenticate an AWS Greengrass core.</p><p>C — Device certificate: An X.509 certificate used to authenticate an AWS IoT device.</p><p>D — Group role: A role assumed by AWS Greengrass when calling into the cloud from a Lambda function on an AWS Greengrass core.</p><p>E — Group CA: A root CA certificate used by AWS Greengrass devices to validate the certificate presented by an AWS Greengrass core device during TLS mutual authentication.</p><p>If you want a more detailed information on how the security works, here’s a <a href="https://docs.aws.amazon.com/greengrass/latest/developerguide/gg-sec.html">link to the documentation page</a>.</p><h3>Competition</h3><p>To this day (day of publishing this article) Amazon Greengrass is the only complete and easy to install solution. But there are other businesses that are working on edge computing services:</p><ul><li><a href="https://azure.microsoft.com/en-us/services/iot-edge/">Microsoft Azure IoT Edge</a> is currently working on the same service with similar features but with the core edge service open sourced.</li><li><a href="https://cloud.google.com/iot-edge/">Google Cloud IoT Edge</a> is working on it too but you need to send a request in order to work with them as the project is still in alpha.</li><li><a href="https://www.edgexfoundry.org/">EdgeX Foundry</a> is a Linux Foundation Project that created an open source edge computing core.</li><li>Alibaba and Intel are working on a Joint Edge Computing Platform too.</li></ul><h3>Use case: Capturing your dinner, a deep learning story II</h3><p>This use case is in the continuity of our previous article written by our R&amp;D engineer for Innovation dept. <a href="https://medium.com/u/63647e779dd9">Patrice Ferlet</a>.</p><p><a href="https://medium.com/smileinnovation/capturing-your-dinner-a-deep-learning-story-bf8f8b65f26f">Capturing your dinner, a deep learning story</a></p><p>Our goal here is to use the Machine Learning inference feature that offers AWS Greengrass in order to detect if, in the image the camera captures, it can identify the food whilst not being connected to the cloud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*-D3_7QlYYvbohJ6OhJ2qVg.png" /><figcaption>Credits: Amazon</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*omhouHqQUDep8mCqs1t4yQ.png" /><figcaption>Use case</figcaption></figure><p>For our use case, we will be using the following services:</p><ul><li><em>AWS IoT</em></li><li><em>AWS Greengrass</em></li><li><em>AWS SageMaker</em></li><li><em>AWS S3</em></li></ul><p>And for the hardware:</p><ul><li>1 <em>Raspberry PI 3 Model B V1.2 (2015)</em></li><li><em>Raspberry Black Camera V2</em>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uVg8aEpRBpc1OfpOx5kKgA.jpeg" /><figcaption>Setup</figcaption></figure><p>Although the Raspberry Pi is a very powerful hardware its capabilities on machine learning inference isn’t great especially because it doesn’t have a dedicated GPU so everything has to go to the processor. If you want to do real-time image prediction we recommend to switch to a more powerful hardware such as a Nvidia Jetson TX2. But for our use case, the Raspberry Pi was enough.</p><p>We won’t be explaining here how to install and set up the services that we will use for our prototype as it would take too much time and it is not our goal, but here are the tutorials that will help you start and that helped us:</p><ul><li><a href="https://docs.aws.amazon.com/greengrass/latest/developerguide/gg-gs.html">AWS Greengrass</a>: To learn how to create a group install a core, get the certificates, update lambdas etc…</li><li><a href="https://docs.aws.amazon.com/greengrass/latest/developerguide/ml-console.html">AWS Machine Learning Inference</a>: A tutorial that shows you how to install a machine learning inference in a few steps. Our use case is mainly based on this tutorial.</li></ul><p>When installing the MXNet package from <a href="https://docs.aws.amazon.com/greengrass/latest/developerguide/ml-console.html">this tutorial</a>, if you use a Raspberry Pi like us, you will probably need to increase your swap memory (if your MicroSD card allows you to). For that, just do the following commands:</p><pre>sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024<br>sudo /sbin/mkswap /var/swap.1<br>sudo chmod 600 /var/swap.1<br>sudo /sbin/swapon /var/swap.1</pre><p>Once you finished the installation of the packages, you can remove the temporary swap memory by doing the following commands:</p><pre>sudo swapoff /var/swap.1<br>sudo rm /var/swap.1</pre><p>When you have installed and put the necessary certificates in the Raspberry Pi you can proceed by creating a Greengrass group.</p><p>Next step is to add a new Lambda</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*xlCktxZgXkHO8yU6ueyHhQ.png" /><figcaption>Adding a Lambda</figcaption></figure><p>Then create a Lambda and follow the steps that the previously mentioned AWS tutorial showed.</p><p>Make sure you have your MXNet model available on an S3 bucket. Just to warn you, at the time of writing this article, MXNet 1.2.1 is the only version compatible with Greengrass. So is Tensorflow version 1.4.</p><p>Don’t forget to set it to long-lived and enable read access to the/sys directory. Finally set the key MXNET_ENGINE_TYPE to NaiveEngine.</p><p>Then create the ressources videoCoreInterface, videoCoreSharedMemory and Food_Model so that in our Lambda instance we will have our model accessible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*6DH7aODXLVKn0tJ0sQxnwA.png" /><figcaption>Resources</figcaption></figure><p>In our subscriptions, we subscribed our IoT Cloud to our Lambda with the topic gg/inference/food/trigger, so that our core does a prediction only when we call this topic (on demand). And finally, the IoT Cloud to our Lambda with the topic gg/inference/food, so that our core goes in an infinite loop (long-lived) so it makes predictions as often as it can.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*3PrpzWlDJ2NpkrAHlq0o-Q.png" /><figcaption>Subscriptions</figcaption></figure><p>Finally we deploy our data to our core and everything will run on its own.</p><p>To test if everything works, click on the test button at the bottom left-hand side of your screen. Subscribe to gg/inference/food and you should see your predictions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vmsBRpqiNwXZgcj8GOws5w.png" /><figcaption>Predicts if it sees a burger/other/salad</figcaption></figure><p>I hope everything was clear. We just wanted to explain and have a little demo on what is Greengrass and the Machine learning inference capabilities. The prediction process takes about 1 to 1.2 seconds, but we are at this time looking into some hardware accelerators that would help improve the predictions speed.</p><p>Have you enjoyed it? If so don’t hesitate to 👏 our article or <a href="https://www.getrevue.co/profile/smileinnovation">subscribe to our Innovation watch newsletter</a> !<br>You can follow Smile on <a href="https://www.facebook.com/smileopensource">Facebook</a>, <a href="https://www.twitter.com/GroupeSmile">Twitter</a> &amp; <a href="http://www.youtube.com/user/SmileOpenSource">Youtube</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ec2098a33b7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/smileinnovation/aws-greengrass-the-forefront-of-edge-computing-8ec2098a33b7">AWS Greengrass the forefront of edge computing</a> was originally published in <a href="https://medium.com/smileinnovation">Smile Innovation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>