#Fix – Azure CustomVision Exported to Docker – ImportError: cannot import name ‘soft_unicode’ from ‘markupsafe’

Hi ! In the past days I found a weird error when I export a model created with CustomVision.ai to docker. The docker image build ok, however, I found this error when I try to run the container. ❯ docker run -p 8090:8090 squirrelscv Traceback (most recent call last): File “app.py”, line 7, in <module>…… Continue reading #Fix – Azure CustomVision Exported to Docker – ImportError: cannot import name ‘soft_unicode’ from ‘markupsafe’

#Docker 🐳 – Add an external repository to the Source List, and add the key from the external server πŸ€·β€β™‚️

Hi ! Ok, here goes nothing. And this is mostly so I can avoid to learn again how to do this in the future. I needed to install a package in my docker Linux file, and I realized that I needed to add a specific source to the debian source list before. After this, I…… Continue reading #Docker 🐳 – Add an external repository to the Source List, and add the key from the external server πŸ€·β€β™‚️

#Docker 🐳 – After curl, now it’s time to install git, clone a repo and run some stuff πŸ€·β€β™‚️

Hi ! Ok, here goes nothing. If you ever, and I mean, EVER NEED GIT in a docker container. This may help. This lines are a sample on # custom installation for RPI Grove dependencies RUN apt-get update RUN apt-get install -y gcc RUN apt-get install -y curl RUN apt-get install -y git # download…… Continue reading #Docker 🐳 – After curl, now it’s time to install git, clone a repo and run some stuff πŸ€·β€β™‚️

#Docker 🐳 – Install and run curl commands

Hi ! Maybe if I write this down, I won’t forget the next time. If I / you need to run curl commands in a docker definition, you only need to have this lines as an example. # custom installation for RPI Grove dependencies defined in requirements.txt RUN apt-get update RUN apt-get install -y gcc…… Continue reading #Docker 🐳 – Install and run curl commands

#AzureIoT – How to create an Azure IoT module from an Azure #CustomVision project πŸ‘€. Complete series

Hi ! I finished the series of posts on how to create a Custom Vision project and adapt the project to run as an Azure IoT Module. Here are the series of posts in tutorial mode: Create and export a Custom Vision Project as Docker imageAnalyze the content of the CV Docker imageCreate and analyze…… Continue reading #AzureIoT – How to create an Azure IoT module from an Azure #CustomVision project πŸ‘€. Complete series

#AzureIoT – How to create an Azure IoT module from an Azure #CustomVision project πŸ‘€ 6/N

Hi ! Today’s post will be mostly focused on code. And on the main tasks Add a configuration property to the module to enable / disable the telemetry messagesEach time the Azure IoT Module process an image, it will trigger a telemetry with the information of the detected image The sample running show how for…… Continue reading #AzureIoT – How to create an Azure IoT module from an Azure #CustomVision project πŸ‘€ 6/N

#AzureIoT – How to create an Azure IoT module from an Azure #CustomVision project πŸ‘€ 5/N

Hi ! Today’s post will be mostly focused on code. And on the main tasks I build my docker image using my Raspberry Pi, I explained this in this post [Build docker 🐳 images from Visual Studio Code remotely using a Raspberry Pi]I updated my module to use the port 8089. This update is on…… Continue reading #AzureIoT – How to create an Azure IoT module from an Azure #CustomVision project πŸ‘€ 5/N

#AzureIoT – How to create an Azure IoT module from an Azure #CustomVision project πŸ‘€ 4/N

Hi ! Today’s post will be mostly focused on code. And on the main tasks Merge and create a new docker definition file.Merge Azure IoT project files with the exported Azure Custom Vision projectUpdate the main Python app to run as Azure IoT Module and also perform Computer Vision analysis. Azure IoT Module Docker Let’s…… Continue reading #AzureIoT – How to create an Azure IoT module from an Azure #CustomVision project πŸ‘€ 4/N

#AzureIoT – How to create an Azure IoT module from an Azure #CustomVision project πŸ‘€ 3/N

Hi ! In my previous post I wrote about how to create an Azure Custom Vision project. And, once created how to export the project as a Docker image to be used in different platforms. I also analyzed the content of the exported Linux image. Today IΒ΄ll perform a similar analysis with an empty Azure…… Continue reading #AzureIoT – How to create an Azure IoT module from an Azure #CustomVision project πŸ‘€ 3/N

#AzureIoT – How to create an Azure IoT module from an Azure #CustomVision project πŸ‘€ 2/N

Hi ! In my previous post I wrote about how to create an Azure Custom Vision project. And, once created how to export the project as a Docker image to be used in different platforms. So, let’s take a look at the content of the exported Linux image. The main docker content is described in…… Continue reading #AzureIoT – How to create an Azure IoT module from an Azure #CustomVision project πŸ‘€ 2/N