The invention relates to a method for detecting an object (1) in relation
to a surface (2). A synthetic image (3c, 4c) is produced from at least
two distinct viewpoints (3, 4), for each of said viewpoints, by means of
a geometrical transformation comprising at least one perspective
projection (3a, 4a) of the object on the surface (2), each synthetic
image being associated with the viewpoint concerned. By discriminating
between the synthetic images, it is possible to detect the presence of
and determine the position of the object (1) in relation to the surface
(2), by searching for contrast inversions. The invention can be used for
surveying a swimming pool.