update text_detection