I'm trying to segregate tower from its background in the picture like in this image Image. I tried finding suitable HUE value range of concrete color and masking that image but i wasn't able to segregate the tower exactly. I tried as below
import cv2
img = cv2.imread("test.jpg")
hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
mask = cv2.inRange(hsv,(10, 100, 20), (25, 255, 255) )
but it was detecting background colors as well.
How can I exactly determine the HSV range value of concrete tower so I can easily segregate it from the rest. Any help or guidance to solve this will be highly appreciated.