add online and offline
add recog_ming