* add detect and end2end code * update the scale for coodinates restore * fix merge bug with dev. * fix merge bug with dev. * test=develop * fix code style test=develop * fix code style test=develop * test=develop * test=develop * test=develop