提取HOG的功能

时间:2018-03-04 09:49:15

标签: python numpy feature-extraction

我正在尝试从包含图像的数据集中提取要素。为此,我将使用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')

0 个答案:

没有答案