Move the recognize code to a saparate dll.

Signed-off-by: Tengda Yan <yantd@qq.com>
增加识别的代码

Signed-off-by: Tengda Yan <yantd@qq.com>