Other Parts Discussed in Thread: AM5718,
Tool/software: Linux
I'm using CL-SOM-AM57x - TI AM5728 / AM5718 System-on-Module and load it with Ti's matrix app launcher based on Linux Debian. I am trying to develop a python app which can be launched from TI Matrix GUI. With simple python code the app works fine in Terminal(loads and import openCV and numpy) but when I launch and run the App(have created Icon and the app is executing) from TI matrix GUI which doesn't work properly and shows some errors/warnings in terminal. The App is opening and Prints on screen values but it looks like the OpenCV module and numpy is not loading or working properly.
sample code:
import cv2
img = cv2.imread('rgb.jpg')
np_image = np.array(img)
num_list = np_image.tolist()
str1 =str(num_list)
print( len(str1))
print(str1)
***************************************************************************************
***************************************************************************************
[ 6860.067644] omap_hwmod: mmu0_dsp2: _wait_target_disable failed
[ 6860.073549] omap-iommu 41501000.mmu: 41501000.mmu: version 3.0
[ 6860.079683] omap-iommu 41502000.mmu: 41502000.mmu: version 3.0
[ 6860.093489] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
[ 6860.099385] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
[ 6860.105342] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
[ 6870.136544] omap_hwmod: mmu1_dsp1: _wait_target_disable failed
[ 6870.149842] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
[ 6870.163511] omap_hwmod: mmu1_dsp2: _wait_target_disable failed
[ 6870.176696] omap_hwmod: mmu0_dsp2: _wait_target_disable failed
***************************************************************************************
Output as App :
******************************
4
None
***************************************************************************************
But if i run the same code in terminal, using the same board it works fine and output gives a matrix of array. I need to run this on an App in matrix GUI and would want to get the same Array as output.
Any suggestions ?