This document discusses using Cognitive Services, specifically Custom Vision, to sort Lego pieces by type. It provides an overview of Custom Vision and how it can be used to build a model to recognize and classify Lego pieces through uploading labeled images for training. It then demonstrates running the trained model locally on a Raspberry Pi through Azure IoT Edge, allowing vision AI models trained in the cloud to run on edge devices.