  An algorithm and a program for detecting the boundaries of water bodies for
the autopilot module of asurface robot are proposed. A method for detecting
water objects on satellite maps by the method of finding a color in the HSV
color space, using erosion, dilation - methods of digital image filtering is
applied.The following operators for constructing contours on the image are
investigated: the operators of Sobel,Roberts, Prewitt, and from them the one
that detects the boundary more accurately is selected for thismodule. An
algorithm for calculating the GPS coordinates of the contours is created. The
proposed algorithm allows saving the result in a format suitable for the
surface robot autopilot module.
