I'm using CL-SOM-AM57x - TI AM5728 <http://www.ti.com/product/AM5728> / 
AM5718 <http://www.ti.com/product/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.
So the issue is that the same code works on Terminal but not when launched 
in an App from TI matrix GUI.

sample code:
***************************************************************************************
import numpy as np
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)
***************************************************************************************
Errors in Terminal:
***************************************************************************************
 

[ 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? I know I am doing something wrong but cant figure out 
what. Help!

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/c9b5ec1c-a8d0-4651-8e4d-817c1e3fc524%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to