Detect boundary for an object

maybe you can use another, darker background ?