EbenKouao/pi-camera-stream-flask

Flip not working ?

nerkdesign opened this issue · 3 comments

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

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

Did you solve it?

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