change coordinate settings in software, and fix bug in binarization