Java String Get Substring By Regex Python Install Cv2