update text detection