Javascript Limit Array Size Python Install Cv2