diff options
Diffstat (limited to 'dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2021.3.bb')
-rw-r--r-- | dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2021.3.bb | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2021.3.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2021.3.bb new file mode 100644 index 00000000..700f78c2 --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2021.3.bb | |||
@@ -0,0 +1,66 @@ | |||
1 | SUMMARY = "OpenVINO(TM) Toolkit - Open Model Zoo repository" | ||
2 | HOMEPAGE = "https://github.com/opencv/open_model_zoo" | ||
3 | DESCRIPTION = "This repository includes optimized deep learning \ | ||
4 | models and a set of demos to expedite development of high-performance \ | ||
5 | deep learning inference applications." | ||
6 | |||
7 | SRC_URI = "git://github.com/opencv/open_model_zoo.git;protocol=git;branch=master \ | ||
8 | file://0001-use-oe-gflags.patch \ | ||
9 | " | ||
10 | |||
11 | SRCREV = "9ca5dbeff80464bf5728e8be25daedfe9a9208d7" | ||
12 | |||
13 | LICENSE = "Apache-2.0" | ||
14 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327 \ | ||
15 | " | ||
16 | |||
17 | inherit cmake | ||
18 | |||
19 | S = "${WORKDIR}/git" | ||
20 | OECMAKE_SOURCEPATH = "${S}/demos" | ||
21 | |||
22 | DEPENDS += "openvino-inference-engine opencv gflags" | ||
23 | |||
24 | RDEPENDS_${PN} += " \ | ||
25 | python3-decorator \ | ||
26 | python3-defusedxml \ | ||
27 | python3-networkx \ | ||
28 | python3-protobuf \ | ||
29 | python3-test-generator \ | ||
30 | python3-requests \ | ||
31 | python3-pyyaml \ | ||
32 | python3-numpy \ | ||
33 | bash \ | ||
34 | " | ||
35 | |||
36 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
37 | |||
38 | EXTRA_OECMAKE += " \ | ||
39 | -DIE_MAIN_SOURCE_DIR=${B} \ | ||
40 | -DENABLE_SAMPLES=ON \ | ||
41 | -DIE_INCLUDE_DIR=${STAGING_EXECPREFIXDIR} \ | ||
42 | -DIE_RELEASE_LIBRARY=${STAGING_LIBDIR}/libinference_engine.so \ | ||
43 | -DIE_C_API_RELEASE_LIBRARY=${STAGING_LIBDIR}/libinference_engine_c_api.so \ | ||
44 | -DIE_LEGACY_RELEASE_LIBRARY=${STAGING_LIBDIR}/libinference_engine_legacy.so \ | ||
45 | -DIE_NN_BUILDER_RELEASE_LIBRARY=${STAGING_LIBDIR}/libinference_engine_nn_builder.so \ | ||
46 | -DIE_ROOT_DIR=${WORKDIR}/InferenceEngine \ | ||
47 | " | ||
48 | |||
49 | do_configure_prepend(){ | ||
50 | mkdir -p ${WORKDIR}/InferenceEngine/share | ||
51 | cp ${STAGING_LIBDIR}/cmake/InferenceEngine/* ${WORKDIR}/InferenceEngine/share/ | ||
52 | } | ||
53 | |||
54 | do_install(){ | ||
55 | install -d ${D}${libdir} | ||
56 | install -d ${D}${bindir} | ||
57 | install -d ${D}${datadir}/openvino/open-model-zoo/tools | ||
58 | install -d ${D}${datadir}/openvino/open-model-zoo/demos | ||
59 | cp -rf ${WORKDIR}/build/intel64/Release/lib/*.a ${D}${libdir} | ||
60 | cp -rf ${WORKDIR}/build/intel64/Release/*_demo* ${D}${bindir} | ||
61 | cp -rf ${WORKDIR}/git/models ${D}${datadir}/openvino/open-model-zoo | ||
62 | cp -rf ${WORKDIR}/git/demos ${D}${datadir}/openvino/open-model-zoo | ||
63 | cp -rf ${WORKDIR}/git/tools/downloader ${D}${datadir}/openvino/open-model-zoo/tools | ||
64 | } | ||
65 | |||
66 | FILES_${PN} += "${datadir}/openvino" | ||