meta-digi: Add Edge TPU Person segmentation example
https://onedigi.atlassian.net/browse/DEL-7603 Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
parent
e405acfd7d
commit
f3791f3bc3
|
|
@ -0,0 +1,36 @@
|
|||
SUMMARY = "Edge TPU keyphrase detector"
|
||||
HOMEPAGE = "https://coral.ai/examples"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||
|
||||
SRCREV = "655a354df5f939602ff6b9da2cbc4d2c78898107"
|
||||
SRC_URI = "git://github.com/google-coral/project-bodypix.git;protocol=https"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
RDEPENDS_${PN} = "python3-pycoral \
|
||||
python3-svgwrite \
|
||||
python3-scipy \
|
||||
libusb1 \
|
||||
"
|
||||
|
||||
do_install() {
|
||||
# Install Gstreamer examples
|
||||
install -d ${D}/opt/libedgetpu
|
||||
install -d ${D}/opt/libedgetpu/bodypix
|
||||
install -d ${D}/opt/libedgetpu/bodypix/models
|
||||
install -d ${D}/opt/libedgetpu/bodypix/posenet_lib
|
||||
install -d ${D}/opt/libedgetpu/bodypix/posenet_lib/aarch64
|
||||
|
||||
install -m 0555 ${S}/models/bodypix_mobilenet* ${D}/opt/libedgetpu/bodypix/models/
|
||||
install -m 0555 ${S}/bodypix.py ${D}/opt/libedgetpu/bodypix
|
||||
install -m 0555 ${S}/gstreamer.py ${D}/opt/libedgetpu/bodypix
|
||||
install -m 0555 ${S}/pose_engine.py ${D}/opt/libedgetpu/bodypix
|
||||
|
||||
install -m 0555 ${S}/posenet_lib/aarch64/posenet_decoder.so ${D}/opt/libedgetpu/bodypix/posenet_lib/aarch64
|
||||
}
|
||||
|
||||
FILES_${PN} += "/opt/libedgetpu/bodypix/* \
|
||||
"
|
||||
|
||||
INSANE_SKIP_${PN} += "already-stripped"
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
DESCRIPTION = "Open-source software for mathematics, science, and engineering. It includes modules for statistics, optimization, integration, linear algebra, Fourier transforms, signal and image processing, ODE solvers, and more."
|
||||
SECTION = "devel/python"
|
||||
HOMEPAGE = "https://www.scipy.org"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://${S}/scipy-1.7.0.dist-info/LICENSE.txt;md5=caecddab96f03de0092b62333ea77f91"
|
||||
|
||||
PYTHON_PACKAGE = "scipy-1.7.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"
|
||||
|
||||
SRC_URI = "https://files.pythonhosted.org/packages/d0/8d/3dbb59d78218b6a76f1ddb55db60ea5459fa7968655acb21252a59a10bc3/${PYTHON_PACKAGE};subdir=${BP}"
|
||||
SRC_URI[md5sum] = "e2e369078c6b7ca29c952cb9971bc154"
|
||||
SRC_URI[sha256sum] = "bd4399d4388ca0239a4825e312b3e61b60f743dd6daf49e5870837716502a92a"
|
||||
|
||||
DEPENDS = "python3 python3-pip-native python3-wheel-native"
|
||||
|
||||
RDEPENDS_${PN} = "${PYTHON_PN} \
|
||||
${PYTHON_PN}-numpy \
|
||||
"
|
||||
RPROVIDES_${PN} += "\
|
||||
libgfortran-daac5196.so.5.0.0(GFORTRAN_8)(64bit) \
|
||||
"
|
||||
|
||||
inherit python3native
|
||||
|
||||
do_unpack[depends] += "unzip-native:do_populate_sysroot"
|
||||
|
||||
do_unpack_extra(){
|
||||
[ -d ${S} ] || mkdir -p ${S}
|
||||
cd ${S}
|
||||
unzip -q -o ${S}/${PYTHON_PACKAGE} -d ${S}
|
||||
}
|
||||
addtask unpack_extra after do_unpack before do_patch
|
||||
|
||||
do_install() {
|
||||
# Install pip package
|
||||
install -d ${D}/${PYTHON_SITEPACKAGES_DIR}
|
||||
${STAGING_BINDIR_NATIVE}/pip3 install --disable-pip-version-check -v \
|
||||
-t ${D}/${PYTHON_SITEPACKAGES_DIR} --no-cache-dir --no-deps \
|
||||
${WORKDIR}/${BP}/scipy-*.whl
|
||||
}
|
||||
|
||||
FILES_${PN} += "\
|
||||
${libdir}/${PYTHON_DIR}/site-packages/* \
|
||||
"
|
||||
|
||||
INSANE_SKIP_${PN} += "already-stripped"
|
||||
|
||||
COMPATIBLE_MACHINE = "(-)"
|
||||
COMPATIBLE_MACHINE_aarch64 = "(.*)"
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
DESCRIPTION = "Python library to create SVG drawings"
|
||||
SECTION = "devel/python"
|
||||
HOMEPAGE = "https://github.com/mozman/svgwrite"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=3e14f2d1a8674ddcbbd8b51762250049"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
PYPI_PACKAGE = "svgwrite"
|
||||
PYPI_PACKAGE_EXT = "zip"
|
||||
|
||||
SRC_URI[md5sum] = "6132f0d8611ac0d5a8a8731636aa03f8"
|
||||
SRC_URI[sha256sum] = "e220a4bf189e7e214a55e8a11421d152b5b6fb1dd660c86a8b6b61fe8cc2ac48"
|
||||
Loading…
Reference in New Issue