Start reading a tutorial, for instance:
OpenCV-Python Tutorials — OpenCV-Python Tutorials 1 documentation[
^].
Quote:
Also please tell me what does area() return. Why does area() return three variables?
It doesn't. As matter of fact, it returns a
double
(see, for instance
Size[
^]).
In
int method(cv::Size var1){
int a,b,c = var1.area();
return a,b,c; }
a
,
b
are irrelevant you may (should) remove them (see the 'comma operator' section in
Other operators - cppreference.com[
^]).