end-to-end pipeline using opencv