Update TextDetector.JAVA