EbenKouao / pi-camera-stream-flask

Create your own live camera stream using a Raspberry Pi 4
MIT License
320 stars 126 forks source link

Flip not working ? #6

Open nerkdesign opened 3 years ago

nerkdesign commented 3 years ago

Hi, Thanks for your code,

My camera is up side down, I wanted to flip the image using the flip = True but nothing... I tried also to change the value in np.flip(frame,-1) , np.flip(frame,1) .... but nothing....

Any solution to help ?

thanks

nerkdesign commented 3 years ago

I also tried to use cv.flip(frame,-1) but nothing....

Dartherick commented 1 year ago

Did you solve it?

nerkdesign commented 1 year ago

I could solve this by adding self.flip =True and it works :

def init(self, flip = True): self.vs = cv2.VideoCapture(0) ... self.flip = True