Opencv imshow window not working in streamlit app after deployment

My streamlit application need real time capture by opencv cv2.imshow() method.works perfectly in localhost but throwing errors while being deployed in share.streamlit
Thanks in advance.