Hi, Microsoft Q&A goal is to support Microsoft Technology.
For such question I would tend to ask on https://raspberrypi.stackexchange.com/
If your goal is to use Azure Cognitive service, then some example exist, like shown there; https://learn.microsoft.com/en-us/samples/azure-samples/custom-vision-service-iot-edge-raspberry-pi/custom-vision-azure-iot/