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 (work laptop), Trisquel GNU/Linux 6.0.1 (mini laptop), Ubuntu 14.04 LTS (server), Android 4.2.1 (tablet), Windows 7 Ultimate (testbed)
January 22nd, 2013, 10:21 AM