From 4f659d209456efb1764b90fd5c1b9cabfc0789de Mon Sep 17 00:00:00 2001 From: Isaac Hermida Date: Wed, 7 Jun 2023 11:03:10 +0200 Subject: [PATCH] eiq-examples: add eiq tools Backport EIQ examples recipe from NXP's lf-6.1.1_1.0.0 release (Langdale based) https://onedigi.atlassian.net/browse/DEL-8137 https://onedigi.atlassian.net/browse/DEL-8563 Signed-off-by: Isaac Hermida --- .../eiq-examples/eiq-examples_git.bb | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 meta-digi-dey/dynamic-layers/meta-ml/recipes-libraries/eiq-examples/eiq-examples_git.bb diff --git a/meta-digi-dey/dynamic-layers/meta-ml/recipes-libraries/eiq-examples/eiq-examples_git.bb b/meta-digi-dey/dynamic-layers/meta-ml/recipes-libraries/eiq-examples/eiq-examples_git.bb new file mode 100644 index 000000000..127a68575 --- /dev/null +++ b/meta-digi-dey/dynamic-layers/meta-ml/recipes-libraries/eiq-examples/eiq-examples_git.bb @@ -0,0 +1,28 @@ +SUMMARY = "The eiq examples based on Tf-lite" +DESCRIPTION = "The eiq examples based on Tf-lite" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" + +SRC_URI = "${EIQ_EXAMPLES_SRC};branch=${SRCBRANCH}" +EIQ_EXAMPLES_SRC ?= "git://github.com/nxp-imx/eiq-example.git;protocol=https" +SRCBRANCH = "lf-6.1.1_1.0.0" +SRCREV = "798519ee033fb7a5aef989a793afe16f400d6479" + +S = "${WORKDIR}/git" + +do_install () { + # install scripts to /usr/bin + install -d ${D}${bindir}/${PN}-${PV}/ + cp ${S}/download_models.py ${D}${bindir}/${PN}-${PV}/ + cp -r ${S}/dms ${D}${bindir}/${PN}-${PV}/ + cp -r ${S}/face_recognition ${D}${bindir}/${PN}-${PV}/ + cp -r ${S}/image_classification ${D}${bindir}/${PN}-${PV}/ + cp -r ${S}/object_detection ${D}${bindir}/${PN}-${PV}/ + cp -r ${S}/gesture_detection ${D}${bindir}/${PN}-${PV}/ +} + +RDEPENDS:${PN} = "python3 python3-numpy python3-pillow python3-requests \ + python3-opencv python3-pillow tensorflow-lite" + +#Only support imx93 currently, will add other plantform support. +COMPATIBLE_MACHINE = "(mx93-nxp-bsp)"