add convert to pgm
merge vpdetection