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: Debian GNU/Linux 8 (desktop, home laptop, work laptop), Raspbian GNU/Linux 8 (nameserver), Ubuntu 14.04.3 LTS (HTPC), PC-BSD 10.2 (testbed), Android 4.2.1 (tablet)
January 22nd, 2013, 10:21 AM