The localisation of graphical primitives is important task in image processing. This paper discusses problems of automatic computer-based detection and localisation of elementary shape in image. A genetic algorithm is used for this task. The using of genetic algorithm allows efficiently reduce time needed to scan a task state space. A modification of genetic algorithm for shape detection is pre...