I am building some app the core logic is like:
[capture some images] => [detect objects inside images] => [perform some processing] => [insert the results into a database]
The logic is fairly simple, now I need to put an UI on top of it, to let the user take the control. For example, the user can press a "Start" button to start the work. And click "Stop" button to make the program stop as soon as possible. Also, the UI will display the captured images and detected information.
I would like to make the UI making isolated with the implementation of the logic codes. Or even make the UI optional.
How can I do it ? Are there some examples ?