January 22nd, 2013, 07:05 AM
Gobal Variables non-primitive type
I know how to create global variables and modify them inside functions.
Declare a Gobal Int Counter
i = 0
but how do you declare a global variable that is not primitive eg an opencv image object
gobalImage = ?
or in general any non primitive object is this even possible in python?
in c++ you can just go
Mat image; ect
January 22nd, 2013, 10:20 AM
There’s no need to “declare” variables: just assign values to them. In Python variables are after all only names you use when you refer to the data.
Originally Posted by Sentinal_Bais
My armada: openSUSE 13.2 (laptop), Debian GNU/Linux 8.0 (desktop, server), OpenELEC 5.0 (HTPC), Android 4.2.1 (tablet)
January 22nd, 2013, 10:21 AM