How to detect black Bullets in Image?
问题 Given the following image, How can I detect black bullets (90 bullet) in this image using C#, EmguCV or AForge? I tried to use GetPixel(x,y) method but it checks only pixel by pixel, it is very slow and I need to detect the bullets not pixels. 回答1: Algorithm/Idea 1 You can divide your image in squares as shown in this sample: With this logic you only have to check every 20th pixel. As soon as you know where the first dot is, you will know that every other dot have to be in the same horizontal