I am new to OpenCV with linux. I am currently working on tube rack's bounding detection. But as you can see, one of rack's bounding is blurred by shadow.

Despite having used histogram equalization to enhance the contrast, there is still significant edge loss, which has greatly affected my edge detection.

I hope someone can give me some suggestions. Thank you very much.
I tried increasing the contrast and lowering the Canny detection thresholds, but I still couldn’t achieve good results.