how can i choose the thresholds of canny function in opencv to get clears contours because i have picture with a lot of details
try THRESH_OTSU in threshold functions. You can blur your image before theresholding too