fix bug, adjusting color filter
add flexible paramter
add check range
fix bug of set area. refactor ui.py
update testdata