我正在尝试从包含图像的数据集中提取要素。为此,我将使用HOG概念。但在运行代码时我收到此错误
features = np.array(filename,'int16')
ValueError: invalid literal for int() with base 10: 'train.csv'
这是我的代码: -
import matplotlib as mpl
import numpy as np
import cv2
import csv
from csv import reader
filename = "train.csv"
fields = []
rows =[]
csvfile = open("train.csv",'r')
csvreader=csv.reader("train.csv")
features = np.array(filename,'int16')