AttributeError: 'NoneType' object has no attribute 'shape ...
answers.opencv.org › question › 209433Feb 26, 2019 · import cv2 cap = cv2.VideoCapture("C:/Users/user/Desktop/Foot_Detection/ball_tracking_example.mp4") def rescale_frame(frame, percent=30): width = int(frame.shape[1] * percent/ 100) height = int(frame.shape[0] * percent/ 100) dim = (width, height) return cv2.resize(frame, dim, interpolation =cv2.INTER_AREA) if (cap.isOpened() == False): print("Error opening video stream or file") while (cap.isOpened()): # Capture frame-by-frame ret, frame = cap.read() frame = rescale_frame(frame, percent=30 ...
tf.signal.inverse_stft AttributeError: 'int' object has no ...
github.com › tensorflow › tensorflowMay 06, 2019 · There appears to be a bug in tf.signal.inverse_stft, when testing for real_frames.shape[-1].value is None, where real_frames.shape[-1] is an integer, and does not have a value. Reproducible code: print(tf.__version__) frame_length = 512 frame_step = 256 signal = tf.random.uniform(shape=(1000,)) x = tf.signal.stft(signal, frame_length, frame_step) y = tf.signal.inverse_stft(x, frame_length, frame_step)