Pictoblox is another Scratch-based programming environment that enables users to train machine learning models, and then use the model to control an Arduino, such as to make a device to automatically sort Legos.
Download Pictoblox ( https://thestempedia.com/product/pictoblox/ )- there is an online version of Pictoblox ( https://pictoblox.ai/ ), but it does not yet enable control of Arduinos.
Notes: Arduino must be powered with an external power source to use with Pictoblox.
Select 'Machine Learning Environment'- Blocks- Train Model, select USB Camera; export model
Note: to use an external USB camera in the Pictonlox Scratch environment, try switching the camera from within PictoBlox by going to Settings (gear icon) > Audio/Video Settings, and selecting your external USB camera from the dropdown menu.