well i was writing the code for collecting the data of my faces and after editing i have written almost the same code as prateek bhaiya but when i run that python file in my terminal for collecting face data the video frame doesnt appear only the green light on my camera turns on which suggest that camera is turning on but the video frame is not displaying and i have also checked the cv2.imshow(frame) and that was written correctly so whats the matter ??
and after this. i try to run the exact same code from Prateek bhaiya and the problem is still there