main function

run on opencv