Using FindClusters
to group the pixels
coord = FindClusters[PixelValuePositions[imagemFindClusters[ImageValuePositions[imagem, Red], 5];
coord = Table[Mean[coord[[i]]], {i, 1, 5}]
ListPlot[coord]
{{73/236., 409/2204.}, {695/2347., 369/2184.}, {301/2150., 299/2149.}, {493/2246., 153/276.}, {143/ 271., 79/239.}}
Show[
imagem,
Graphics[
Line[{{coord[[1]], coord[[3]]}, {coord[[4]],
coord[[3]]}, {coord[[2]], coord[[3]]}Graphics@Line@Subsets[#, {coord[[5]], coord[[3]]}2}]]
] &@coord]