MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.27k stars 21.45k forks source link

Dockerfile for Raspberry Pi3/4 #122393

Closed koeswt closed 5 months ago

koeswt commented 5 months ago

Hi,

when exporting a Custom Vission Dockerfile to RPi4 (i.e. the Dockerfile you get for Raspberry Pi 3) some image processing libraries are missing (e.g. libtiff5.so) and there is versioning trouble with numpy. Here is what worked for me on an RPi4 with 32 Bit Bullseye:

FROM arm32v7/python:3.9-slim-bullseye RUN apt update && apt install -y libjpeg62-turbo libopenjp2-7 libtiff5 libatlas-base-dev libgl1-mesa-glx RUN pip install --no-cache-dir "flask<3" "pillow<11" "numpy==1.21.2" tflite-runtime~=2.13.0 --extra-index-url=https://www.piwheels.org/simple

I suggest you add an export option for RPi4. I suppose one has the same trouble with export to RPi3.

Best regards

KOE

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

TPavanBalaji commented 5 months ago

@koeswt Thanks for your feedback! We will investigate and update as appropriate.

AjayBathini-MSFT commented 5 months ago

@koeswt Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.

PatrickFarley commented 5 months ago

Hi @koeswt , thank you for your feedback, I'll add this ask to our backlog

please-close