add some detect and display codes

But there is some problem when calling camera