When I use cv2.VideoCapture(0), no matter use opencv3.3.1 or opencv4.1.0 and use cap.Open(0) it will print green screen.
like thishttps://imgur.com/g5fIUTp
camera is used raspberry camera V2.1
At the beginning I am thinking that the camera may have problems but i used jetson inference sample,the camera can work normaly.
Is there any way to solve this problem?
I don’t have a Nano nor RPi cam for checking, but probably yes. This would also result in significantly decreased CPU load for videoconvert (you might also try to add plugin queue after videoconvert).
Just try to change width and height in the caps after nvarguscamerasrc. If it doesn’t work you may try to convert with nvvidconv, setting this resolution in caps after it (the ones with format BGRx).