summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Müller-Klieser <S.Mueller-Klieser@phytec.de>2019-05-31 16:33:18 +0200
committerStefan Müller-Klieser <s.mueller-klieser@phytec.de>2019-06-12 15:37:23 +0200
commit7d27206a8880c50ed9ef099a3108caf07cd54385 (patch)
tree1fd040f9fa05b3974b69c4486ff59ef979a208ac
parent79dbcd4619014a094d0ccf9972d588ddf3f7277d (diff)
downloadmeta-yogurt-7d27206a8880c50ed9ef099a3108caf07cd54385.tar.bz2
meta-yogurt-7d27206a8880c50ed9ef099a3108caf07cd54385.zip
recipes-examples: predict: add recipe
Predict is a python tensorflow model runner. Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
-rw-r--r--dynamic-layers/meta-tensorflow/recipes-examples/tensorflow/predict_0.5.0.bb26
1 files changed, 26 insertions, 0 deletions
diff --git a/dynamic-layers/meta-tensorflow/recipes-examples/tensorflow/predict_0.5.0.bb b/dynamic-layers/meta-tensorflow/recipes-examples/tensorflow/predict_0.5.0.bb
new file mode 100644
index 0000000..ba6f396
--- /dev/null
+++ b/dynamic-layers/meta-tensorflow/recipes-examples/tensorflow/predict_0.5.0.bb
@@ -0,0 +1,26 @@
+DESCRIPTION = "waits for images on a tcp port, rescales it with opencv, \
+runs through a saved model in tensorflow and outputs the result using flask."
+HOMEPAGE = "https://www.phytec.de"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://../../LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
+
+SRC_URI = "git://git.phytec.de/aidemo-customvision"
+SRCREV = "2c892f400345872b20ae189ffe6b82250c191151"
+S = "${WORKDIR}/git/modules/model"
+
+inherit allarch
+
+do_configure[noexec] = "1"
+do_compile[noexec] = "1"
+
+RDEPENDS_${PN} = "tensorflow opencv python3-pillow python3-flask"
+
+PREFIX = "/"
+
+do_install () {
+ mkdir -p ${D}${PREFIX}
+ cp -R --no-dereference --preserve=mode,links -v ${S}/* ${D}${PREFIX}
+}
+
+FILES_${PN} = "${PREFIX}"
+INSANE_SKIP_${PN} = "file-rdeps"