I'm just starting with OpenCV so this question is more like "what do you call the thing in OpenCV that does..." than "how do you do the thing..." - if I know what to look for usually docs and more googling go a long way.
So: using OpenCV in Python how could I find the position of all the black dots at the border between red and gray?
It's a nice to have if it is possible to tell if the border is horizontal or vertical or alternatively its angle at the point.
In other words - the position of the dots inside the white borders, but not the ones in the greyed out area:




