The expected outcome will be a vector file with building polygons based on the image like this: blue as polygon edge and red as polygon area
However, I tried
Raster -> Conversion -> Polygonize and Extraction -> Contour. The polygon created is not what I need:
Are there anyways to achieve the expected outcome?