I'm currently working on an object detection project, which I want to run on an Amazon EC2 over SSH with my MacBook Pro. The project works well locally, but when I run it over SSH I get "(Detector:5968): Gtk-WARNING **: cannot open display: " when I try to execute the line:
cv2.imshow('Detector', cv2.resize(image_np, (800, 600)))
I've tried to enable X11 Forwarding in the ssh_config-files, both locally and on the ec2. I've also tried to set the Display variable but I can't get it to work. What am I missing?