Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to create image folder in numpy aray

import numpy as np
import cv2
import os

instances = []

# Load in the images
for filepath in os.listdir('images/'):
    instances.append(cv2.imread('images/{0}'.format(filepath),0))

print(type(instances[0]))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #image #folder #numpy #aray
ADD COMMENT
Topic
Name
7+7 =