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.1 (home desktop, home laptop), Crunchbang Linux 11 (mini laptop, work laptop), Android 4.2.1 (tablet)
January 22nd, 2013, 10:21 AM