Skip to contentSkip to conversation

Video Analytics Demo

PATCH New Jacob Stiffler 1 participant 8 messages Jan 29, 2016

lore
Share & tools
lore
#0 lore raw

cover Video Analytics Demo

Fully integrate the qt-opencv-opencl-opengl video analytics demo into the SDK.

Jacob Stiffler (7):
qt-opencv-opencl-opengl-multithreaded: Add version 1.3.3
arago-source-ipk: Enable qt-opencv-opencl-opengl-multithreaded-src
matrix-gui-apps-git: Bump SRCREV for multiple fixes matrix-gui-video-analytics-demos: Add demo and submenu packagegroup-arago-tisdk-multimedia*: Add
qt-opencv-opencl-opengl-multithreaded
packagegroup-arago-tisdk-matrix: Add video analytics demo
ti-tisdk-makefile: Add video analytics target

 .../conf/distro/arago-source-ipk.conf              |  3 ++
 .../packagegroup-arago-tisdk-matrix.bb             |  3 +-
 ...packagegroup-arago-tisdk-multimedia-sdk-host.bb |  6 +++-
 ...ckagegroup-arago-tisdk-multimedia-sdk-target.bb |  3 +-
 .../packagegroup-arago-tisdk-multimedia.bb         |  3 +-
 .../Makefile_qt-opencv-opencl-opengl-multithreaded | 24 +++++++++++++
 .../ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb     |  4 ++-
 .../recipes-core/matrix/matrix-gui-apps-git.inc    |  4 +--
 .../recipes-core/matrix/matrix-gui-submenus_2.0.bb |  5 ++-
 .../matrix/matrix-gui-video-analytics-demos_2.0.bb | 29 ++++++++++++++++
 .../qt-opencv-opencl-opengl-multithreaded_git.bb   | 39 ++++++++++++++++++++++
 11 files changed, 115 insertions(+), 8 deletions(-)
 create mode 100644 meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_qt-opencv-opencl-opengl-multithreaded
 create mode 100644 meta-arago-extras/recipes-core/matrix/matrix-gui-video-analytics-demos_2.0.bb
 create mode 100644 meta-arago-extras/recipes-demo-applications/video-analytics-demo/qt-opencv-opencl-opengl-multithreaded_git.bb
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/7 qt-opencv-opencl-opengl-multithreaded: Add version 1.3.3

This example demonstrates the capablity of AM57x for video analytics. It builds on Qt and utilizes various IP blocks on AM57x:

* Capture Driver: v4l2 camera capture
* Open CV on A15: gesture recognition
* Open CL for C66x: wave simulation algorithm
* Open GL for SGX: hardware accelerated graphics rendering
* Display Driver: DSS for display <br>

---
 .../qt-opencv-opencl-opengl-multithreaded_git.bb   | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 meta-arago-extras/recipes-demo-applications/video-analytics-demo/qt-opencv-opencl-opengl-multithreaded_git.bb
meta-arago-extras/recipes-demo-applications/video-analytics-demo/qt-opencv-opencl-opengl-multithreaded_git.bb new file +39 -0
new file mode 100644
index 0000000..6785bdc
@@ -0,0 +1,39 @@
+DESCRIPTION = "A simple multithreaded OpenCV example application using the Qt framework"
+HOMEPAGE = "https://github.com/devernay/qt-opencv-multithreaded"
+SECTION = "multimedia"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://COPYING;md5=e28b998056a1a513e87be11c5045e85b"
+
+DEPENDS += "opencv opencl virtual/egl ti-cgt6x-native clocl-native dsplib-c66x"
+
+COMPATIBLE_MACHINE = "dra7xx"
+
+PV = "1.3.3"
+PR = "r1"
+
+BRANCH = "master"
+SRC_URI = "git://git.ti.com/apps/qt-opencv-opencl-opengl-multithreaded.git;protocol=git;branch=${BRANCH}"
+
+SRCREV = "f679a74230dbf7ace66ef06f79e02ac9abfc7d58"
+
+S = "${WORKDIR}/git"
+
+inherit qt-provider
+
+export TARGET_ROOTDIR = "${STAGING_DIR_HOST}"
+export TI_OCL_CGT_INSTALL = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
+export TI_DSPLIB_DIR = "${STAGING_DIR_TARGET}/usr/share/ti/ti-dsplib-c66x-tree"
+
+do_compile() {
+    cd ${S}
+    oe_runmake -f oclMakefile
+    cd -
+    oe_runmake
+}
+
+do_install() {
+    install -d ${D}/usr/bin
+    install -m 755 qt-opencv-opencl-opengl-multithreaded ${D}/usr/bin/qt-opencv-opencl-opengl-multithreaded
+}
+
+RDEPENDS_${PN} += "opencv opencl-runtime"
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/7 arago-source-ipk: Enable qt-opencv-opencl-opengl-multithreaded-src

In reply to Jacob Stiffler
---
 meta-arago-distro/conf/distro/arago-source-ipk.conf | 3 +++
 1 file changed, 3 insertions(+)
meta-arago-distro/conf/distro/arago-source-ipk.conf +3 -0
index 122ea2d..4447463 100644
@@ -336,6 +336,9 @@ SRCIPK_INSTALL_DIR_pn-oe-layersetup = "bin/oe-layersetup"
 CREATE_SRCIPK_pn-opencl-examples = "1"
 SRCIPK_INSTALL_DIR_pn-opencl-examples = "example-applications/${PN}-${PV}"
 
+CREATE_SRCIPK_pn-qt-opencv-opencl-opengl-multithreaded = "1"
+SRCIPK_INSTALL_DIR_pn-qt-opencv-opencl-opengl-multithreaded = "example-applications/${PN}-${PV}"
+
 CREATE_SRCIPK_pn-boot-monitor = "1"
 SRCIPK_INSTALL_DIR_pn-boot-monitor = "board-support/${PN}-${PV}"
 
Signature · 1 line
1.9.1
#3 lore raw

PATCH 3/7 matrix-gui-apps-git: Bump SRCREV for multiple fixes

In reply to Jacob Stiffler

* mc_demo_ipc: update dsp_image name in scripts for k2l and k2e
* utility_flash: Generalize parsing of mtd partitions
* optimize-benchmark: Fix for platforms without scaling_governor
* multimedia_apps: add queue for arm multimedia pipelines
* runIvahdVipVpeMpeg4EncDec: update gstreamer pipeline to specify frame rate for v4l2src output
* videoanalytics: add the submenu and the opencv+opencl+opengl demo

---
 meta-arago-extras/recipes-core/matrix/matrix-gui-apps-git.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-arago-extras/recipes-core/matrix/matrix-gui-apps-git.inc +2 -2
index 94766a9..8edcb2b 100644
@@ -4,9 +4,9 @@ LICENSE_CHECKSUM = "LICENSE;md5=6e0ae7214f6c74c149cb25f373057fa9"
 LIC_FILES_CHKSUM := "file://../${LICENSE_CHECKSUM}"
 
 SRC_URI = "git://git.ti.com/matrix-gui-v2/matrix-gui-v2-apps.git;protocol=git;branch=${BRANCH}"
-SRCREV = "02d7a2b8d9aaf4be19d6c20936161ce6ced63215"
+SRCREV = "497b2c6c9b748a3b3c5911bff200e027be45e0db"
 BRANCH = "master"
-INC_PR = "r39"
+INC_PR = "r40"
 
 # Pull in the base package for installing matrix applications
 require matrix-gui-apps.inc
Signature · 1 line
1.9.1
#4 lore raw

PATCH 4/7 matrix-gui-video-analytics-demos: Add demo and submenu

In reply to Jacob Stiffler

* This matrix demo enables access to the qt-opencv-opencl-opengl-multithreaded application

---
 .../recipes-core/matrix/matrix-gui-submenus_2.0.bb |  5 +++-
 .../matrix/matrix-gui-video-analytics-demos_2.0.bb | 29 ++++++++++++++++++++++
 2 files changed, 33 insertions(+), 1 deletion(-)
 create mode 100644 meta-arago-extras/recipes-core/matrix/matrix-gui-video-analytics-demos_2.0.bb
meta-arago-extras/recipes-core/matrix/matrix-gui-submenus_2.0.bb +4 -1
index 132b81a..6fdaccd 100644
@@ -7,7 +7,7 @@ require matrix-gui-apps-git.inc
 # reset the LIC_FILES_CHKSUM setting from the matrix-gui-apps-git.inc file
 LIC_FILES_CHKSUM = "file://LICENSE;md5=6e0ae7214f6c74c149cb25f373057fa9"
 
-PR = "${INC_PR}.14"
+PR = "${INC_PR}.15"
 
 # These packages make submenus in matrix and are not architecture specific
 inherit allarch
@@ -31,6 +31,7 @@ SUBMENUS = " arm_submenu \
              utilities_submenu \
              mc_demo_submenu \
              opencl_submenu \
+             videoanalytics_submenu \
 "
 
 do_install(){
@@ -60,6 +61,7 @@ PACKAGES += " ${PN}-arm \
               ${PN}-utility \
               ${PN}-mc-demo \
               ${PN}-opencl \
+              ${PN}-videoanalytics \
 "
 
 # Make sure app images has been installed
@@ -84,3 +86,4 @@ FILES_${PN}-camera = "${MATRIX_APP_DIR}/camera_submenu/*"
 FILES_${PN}-utility = "${MATRIX_APP_DIR}/utilities_submenu/*"
 FILES_${PN}-mc-demo = "${MATRIX_APP_DIR}/mc_demo_submenu/*"
 FILES_${PN}-opencl = "${MATRIX_APP_DIR}/opencl_submenu/*"
+FILES_${PN}-videoanalytics = "${MATRIX_APP_DIR}/videoanalytics_submenu/*"
meta-arago-extras/recipes-core/matrix/matrix-gui-video-analytics-demos_2.0.bb new file +29 -0
new file mode 100644
index 0000000..54b70dd
@@ -0,0 +1,29 @@
+DESCRIPTION = "Video Analytics demo descriptions for Matrix v2"
+HOMEPAGE = "https://gitorious.org/matrix-gui-v2/matrix-gui-v2-apps"
+
+require recipes-core/matrix/matrix-gui-apps-git.inc
+
+PR = "${INC_PR}.0"
+
+inherit allarch
+
+S = "${WORKDIR}/git/videoanalytics_apps"
+
+# Make sure video analytics submenu and app images has been installed
+VIDEO_ANALYTICS_DEMO_RDEPENDS += " \
+    matrix-gui-apps-images \
+    matrix-gui-submenus-videoanalytics \
+"
+
+PACKAGES = "matrix-video-analytics-opencv-opencl-opengl-demo \
+"
+
+RDEPENDS_matrix-video-analytics-opencv-opencl-opengl-demo = " \
+    ${VIDEO_ANALYTICS_DEMO_RDEPENDS} \
+    qt-opencv-opencl-opengl-multithreaded \
+"
+
+# Split the matrix files by demos
+FILES_matrix-video-analytics-opencv-opencl-opengl-demo = " \
+    ${MATRIX_APP_DIR}/videoanalytics_opencv_opencl_opengl_demo/* \
+"
Signature · 1 line
1.9.1
#5 lore raw

PATCH 5/7 packagegroup-arago-tisdk-multimedia*: Add qt-opencv-opencl-opengl-multithreaded

In reply to Jacob Stiffler

* Add dev package to filesystem and devkit
* Add sources to the host

---
 .../packagegroups/packagegroup-arago-tisdk-multimedia-sdk-host.bb   | 6 +++++-
 .../packagegroups/packagegroup-arago-tisdk-multimedia-sdk-target.bb | 3 ++-
 .../packagegroups/packagegroup-arago-tisdk-multimedia.bb            | 3 ++-
 3 files changed, 9 insertions(+), 3 deletions(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia-sdk-host.bb +5 -1
index 8a728f5..e83a01c 100644
@@ -1,6 +1,6 @@
 DESCRIPTION = "Task to add multimedia related sources into the SDK"
 LICENSE = "MIT"
-PR = "r8"
+PR = "r9"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
@@ -21,6 +21,10 @@ MULTIMEDIA_append_ti43x = " \
     image-gallery-src \
 "
 
+MULTIMEDIA_append_dra7xx = " \
+    qt-opencv-opencl-opengl-multithreaded-src \
+"
+
 #Demo doesn't work on 3.14
 # ${@base_conditional('QT_PROVIDER', 'qt5', '', 'dual-camera-demo-src image-gallery-src', d)}
 
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia-sdk-target.bb +2 -1
index e803acd..93b6664 100644
@@ -1,6 +1,6 @@
 DESCRIPTION = "Task to build and install header and libs into sdk"
 LICENSE = "MIT"
-PR = "r5"
+PR = "r6"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
@@ -11,6 +11,7 @@ MULTIMEDIA = ""
 MULTIMEDIA_append_dra7xx = " \
     hevc-arm-decoder-dev \
     hevc-arm-decoder-staticdev \
+    qt-opencv-opencl-opengl-multithreaded-dev \
 "
 
 RDEPENDS_${PN} = "\
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb +2 -1
index b7decfc..f5f2a25 100644
@@ -1,6 +1,6 @@
 DESCRIPTION = "Task to add multimedia related packages"
 LICENSE = "MIT"
-PR = "r15"
+PR = "r16"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
@@ -28,6 +28,7 @@ MULTIMEDIA_append_omap-a15 = " \
 
 MULTIMEDIA_append_dra7xx = " \
     hevc-arm-decoder \
+    qt-opencv-opencl-opengl-multithreaded-dev \
 "
 
 MULTIMEDIA_append_am37x-evm = " \
Signature · 1 line
1.9.1
#6 lore raw

PATCH 6/7 packagegroup-arago-tisdk-matrix: Add video analytics demo

In reply to Jacob Stiffler
---
 .../recipes-core/packagegroups/packagegroup-arago-tisdk-matrix.bb      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-matrix.bb +2 -1
index a007f6d..75866d2 100644
@@ -1,6 +1,6 @@
 DESCRIPTION = "Task to include Matrix v2"
 LICENSE = "MIT"
-PR = "r49"
+PR = "r50"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
@@ -124,6 +124,7 @@ MATRIX_APPS_append_omap-a15 = "     \
 MATRIX_APPS_append_dra7xx = "        \
     matrix-opencl-demo-floatcompute  \
     matrix-opencl-demo-vecadd        \
+    matrix-video-analytics-opencv-opencl-opengl-demo \
 "
 
 MATRIX_APPS_append_beagleboard = "  \
Signature · 1 line
1.9.1
#7 lore raw

PATCH 7/7 ti-tisdk-makefile: Add video analytics target

In reply to Jacob Stiffler
---
 .../Makefile_qt-opencv-opencl-opengl-multithreaded | 24 ++++++++++++++++++++++
 .../ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb     |  4 +++-
 2 files changed, 27 insertions(+), 1 deletion(-)
 create mode 100644 meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_qt-opencv-opencl-opengl-multithreaded
meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_qt-opencv-opencl-opengl-multithreaded new file +24 -0
new file mode 100644
index 0000000..12246db
@@ -0,0 +1,24 @@
+# qt-opencv-opencl-opengl-multithreaded  build targets
+qt-opencv-opencl-opengl-multithreaded:
+	@echo =============================
+	@echo    Building QT OpenCV Multithreaded
+	@echo =============================
+	@cd example-applications; cd `find . -name "*qt-opencv-opencl-opengl-multithreaded*"`; make -f Makefile.build release
+
+qt-opencv-opencl-opengl-multithreaded_clean:
+	@echo =============================
+	@echo    Cleaning QT OpenCV Multithreaded
+	@echo =============================
+	@cd example-applications; cd `find . -name "*qt-opencv-opencl-opengl-multithreaded*"`; make -f Makefile.build clean
+
+qt-opencv-opencl-opengl-multithreaded_install:
+	@echo ================================================
+	@echo   Installing QT OpenCV Multithreaded - Release version
+	@echo ================================================
+	@cd example-applications; cd `find . -name "*qt-opencv-opencl-opengl-multithreaded*"`; make -f Makefile.build install
+
+qt-opencv-opencl-opengl-multithreaded_install_debug:
+	@echo ==============================================
+	@echo   Installing QT OpenCV Multithreaded - Debug Version
+	@echo ==============================================
+	@cd example-applications; cd `find . -name "*qt-opencv-opencl-opengl-multithreaded*"`; make -f Makefile.build install_debug
meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb +3 -1
index bccb22d..14f8e8a 100644
@@ -42,9 +42,10 @@ SRC_URI = "\
     file://Makefile_hplib-mod \
     file://Makefile_uio-module-drv \
     file://Makefile_pru-icss \
+    file://Makefile_qt-opencv-opencl-opengl-multithreaded \
 "
 
-PR = "r63"
+PR = "r64"
 
 MAKEFILES_MATRIX_GUI = "matrix-gui-browser \
                         refresh-screen \
@@ -99,6 +100,7 @@ MAKEFILES_append_dra7xx = " cryptodev \
                             debugss-module-drv \
                             gdbserverproxy-module-drv \
                             opencl-examples \
+                            qt-opencv-opencl-opengl-multithreaded \
 "
 
 MAKEFILES_append_omap-a15 = " u-boot-spl \
Signature · 1 line
1.9.1