Use opencv for preview window