What's the correct way of using the onboard camera on python with opencv on Jetpack 4.2.3

After a lot of troubleshooting I have decided to reflash my jetson tx2 and am looking for the correct way to read from the camera through python. Do i need to re-compile opencv for gstreamer support like i had to back in 2017 or should everything work as soon as i reflash?

Hi,
You need to re-install OpenCV. Please check
https://devtalk.nvidia.com/default/topic/1065637/jetson-agx-xavier/sony-camera-module-cannot-be-opened-with-opencv-on-xavier/post/5397032/#5397032
https://devtalk.nvidia.com/default/topic/1064944/jetson-nano/-gstreamer-nvvidconv-bgr-as-input/post/5397143/#5397143