count how many white dots in a black background and black dots in a white background by image processing using python opencv