Gstreamer Missing "tensor_converter" Element

Hi,
I built a new linux image with machine learning software following this article.
I am trying to run a object detection GStreamer pipleline example outlined in Session 8.1 of this user guide and getting the following error:

root@colibri-imx8x-06846835:~# gst-launch-1.0 --no-position v4l2src device=/dev/video4 ! video/x-raw,width=640,height=480,framerate=30/1 ! tee name=t t. ! queue max-size-buffers=2 leaky=2 ! imxvideoconvert_g2d ! video/x-raw,width=300,height=300,format=RGBA ! videoconvert ! video/x-raw,format=RGB ! tensor_converter ! tensor_filter framework=tensorflow-lite model=${MODEL} custom=Delegate:External,ExtDelegateLib:libvx_delegate.so ! tensor_decoder mode=bounding_boxes option1=mobilenet-ssd-postprocess option2=${LABELS} option3=0:1:2:3,50 option4=640:480 option5=300:300 ! mix. t. ! queue max-size-buffers=2 ! imxcompositor_g2d name=mix latency=30000000 min-upstream-latency=30000000 sink_0::zorder=2 sink_1::zorder=1 ! waylandsink
WARNING: erroneous pipeline: no element “tensor_converter”

I ran “gst-inspect-1.0” command and didn’t see “tensor_coverter” in the list of available plugins(elements). Any help with that?
Thank you.

William

Hey @wjzhang,

From the NXP article you linked, “tensor_converter” is a streamer filter provided by NNStreamer.
Have you tried to include this in your build?

See “8 Vision Pipeline with NNStreamer” from the NXP doc

-Eric

Hi Eric,

Thank you for replying.
I added “nnstreamer” to the IMAGE_INSTALL: append in the “local.conf” file. But I got this error in the log.

ERROR: A valid package EULA with md5sum in [‘01ba08a2b77c3a0a9d0ab5d4d83fed64’, ‘3880bb9c943b135a30fad5e8aabd3ee9’, ‘a31dce3023402a821cfcdc1bb8dbdbc0’, ‘8cf95184c220e247b9917e7244124c5a’, ‘102094e9e695888c6a9f9fda9004165d’, ‘d4f548f93b5fe0ee2bc86758c344412d’, ‘be67a88e9e6c841043b005ad7bcf8309’, ‘88595f92466edd79be7f4f9547ffa0ef’, ‘6b552f505eedab4a11ab538cf3db743a’, ‘08fd295cce89b0a9c74b9b83ed74f671’, ‘6bd2df2910a2234bf6f419b7d2f531a3’, ‘75abe2fa1d16ca79f87cde926f05f72d’, ‘ab61cab9599935bfe9f700405ef00f28’, ‘5ab1a30d0cd181e3408077727ea5a2db’, ‘6dfb32a488e5fd6bae52fbf6c7ebb086’, ‘80c0478f4339af024519b3723023fe28’, ‘fb0303e4ee8b0e71c094171e2272bd44’, ‘72c0f70181bb6e83eee6aab8de12a9f3’, ‘6c12031a11b81db21cdfe0be88cac4b3’, ‘fd4b227530cd88a82af6a5982cfb724d’, ‘228c72f2a91452b8a03c4cab30f30ef9’, ‘1b4db4b25c3a1e422c0c0ed64feb65d2’, ‘983e4c77621568488dd902b27e0c2143’, ‘e9e880185bda059c90c541d40ceca922’, ‘cf3f9b8d09bc3926b1004ea71f7a248a’, ‘231e11849a4331fcbb19d7f4aab4a659’, ‘a632fefd1c359980434f9389833cab3a’, ‘3c3fe2b904fd694f28d2f646ee16dddb’, ‘85d06b38f17b935ca11784d67075b846’, ‘417b82f17fc02b88125331ed312f6f1b’, ‘b3b0bab6ff55420d043cf1652c52d788’, ‘f35df765ff17e69043ea21f350e3229c’, ‘e565271ec9a80ce47abbddc4bffe56fa’, ‘28241cb895217d7946e40e7227136d02’, ‘03bcadc8dc0a788f66ca9e2b89f56c6f’, ‘dedee5689786754f61ea3a76035c8a81’, ‘17d2319de7baa686e8a755ba58a9ebf5’, ‘e4098ac4459cb81b07d3f0c22b3e8370’, ‘be5ff43682ed6c57dfcbeb97651c2829’, ‘d3c315c6eaa43e07d8c130dc3a04a011’, ‘b54da624b8d2ffe8a3b47757da48e60f’, ‘37cb2d8c2bcf8bf2fbe0366d5d928c29’, ‘65c483bb431ccd9a1820e6872c604771’, ‘5a0bf11f745e68024f37b4724a5364fe’] was not found in LIC_FILES_CHKSUM ‘file://COPYING;md5=63a38e9f392d8813d6f1f4d0d6fbe657 file:///home/natalie/yocto-ml-build/bsp-toradex/build/…/layers/meta-freescale/EULA;md5=5a0bf11f745e68024f37b4724a5364fe’.

Any idea of fixing this error?

William

Hey @wjzhang,

The error itself is suggesting some checksum issues. Most likely because you still need to add the layer to your build.

NNStreamer is a recipe that is found in this layer.

https://layers.openembedded.org/layerindex/branch/master/layer/meta-neural-network/

-Eric

I ended up with adding a “meta-deepview” layer to the Yocto and installing visionpack. The “gst-launch-1.0” command is working now. Thank you.