{"id":1143,"date":"2021-11-30T11:50:30","date_gmt":"2021-11-30T09:50:30","guid":{"rendered":"https:\/\/www.rocworks.at\/wordpress\/?p=1143"},"modified":"2021-11-30T11:53:04","modified_gmt":"2021-11-30T09:53:04","slug":"dockerfile-for-python-3-9-with-opencv-mediapipe-and-coral-edge-tpu","status":"publish","type":"post","link":"https:\/\/www.rocworks.at\/wordpress\/?p=1143","title":{"rendered":"Dockerfile for Python 3.9 with OpenCV, MediaPipe, TensorFlow Lite and Coral Edge TPU"},"content":{"rendered":"\n<p>Dockerfile<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>FROM python:3.9-slim\nRUN apt-get update &amp;&amp; apt -y install curl gnupg libgl1-mesa-glx libglib2.0-0 &amp;&amp; rm -rf \/var\/lib\/apt\/lists\/*\nRUN echo \"deb https:\/\/packages.cloud.google.com\/apt coral-edgetpu-stable main\" | tee \/etc\/apt\/sources.list.d\/coral-edgetpu.list \nRUN curl https:\/\/packages.cloud.google.com\/apt\/doc\/apt-key.gpg | apt-key add - &amp;&amp; apt-get update &amp;&amp; apt-get install -y python3-tflite-runtime &amp;&amp; rm -rf \/var\/lib\/apt\/lists\/*\nWORKDIR \/app\nCOPY requirements.txt \/\nRUN pip install -r \/requirements.txt\nCOPY * \/app\/<\/code><\/pre>\n\n\n\n<p>Requirements.txt<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>opencv-python\nmediapipe\n\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Dockerfile Requirements.txt<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,34,32],"tags":[46,43,45,44],"class_list":["post-1143","post","type-post","status-publish","format-standard","hentry","category-allgemein","category-docker","category-machine-learning","tag-coral","tag-docker","tag-mediapipe","tag-opencv"],"_links":{"self":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1143"}],"version-history":[{"count":4,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1143\/revisions"}],"predecessor-version":[{"id":1147,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1143\/revisions\/1147"}],"wp:attachment":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}