i’d rather ditch the whole ROI / histogram approach, and try to find the center from the binary image using cv2.moments()
https://docs.opencv.org/4.x/d0/d49/tutorial_moments.html
(please be aware that noone here can reproduce your code due to missing ROI / Thresh modules)