tuple 27 object has no attribute 27shape 27 opencv

Solutions on MaxInterview for tuple 27 object has no attribute 27shape 27 opencv by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
showing results for - "tuple 27 object has no attribute 27shape 27 opencv"
Lina
19 Jun 2020
1vs = cv2.VideoCapture(args["video"])
2# grab the frame from the threaded video stream and resize it
3# to have a maximum width of 400 pixels
4
5_, frame = vs.read()
6(w, h, c) = frame.shape
7
8#syntax: cv2.resize(img, (width, height))
9img = cv2.resize(frame,(400, h))
10
11print(w, h)
12print(img.shape)
13>> 480 640
14 (640, 400, 3) #rows(height), columns(width), channels(BGR)