opencv3 目标检测与识别

目标检测与识别技术

使用Opencv自带的HOGDescriptor函数检测人:利用的是HOG和SVM方法

import cv2
import numpy as np

def is_inside(o, i):
    ox, oy, ow, oh = o
    ix, iy, iw, ih = i
    return ox > ix and oy > iy and ox + ow < ix + iw and oy + oh < iy + ih

def draw_person(image, person):
    x, y, w, h = person
    cv2.rectangle(img, (x, y), (x + w, y + h), (0, 255, 255), 2)

img = cv2.imread("people.jpg")
hog = cv2.HOGDescriptor()
hog.setSVMDetector(cv2.HOGDescriptor_getDefaultPeopleDetector())

found, w = hog.detectMultiScale(img)#, winStride=(8,8),scale=1.05

found_filtered = []
for ri, r in enumerate(found):
    for qi, q in enumerate(found):
        if ri != qi and is_inside(r, q):
            break
    else:
        found_filtered.append(r)

for person in found_filtered:
    draw_person(img, person)

cv2.imshow("people detection", img)  
pic = cv2.resize(img, (400, 400), interpolation=cv2.INTER_CUBIC)
cv2.waitKey(0)
cv2.destroyAllWindows()

实际检测出来的效果并不好,可能是自己太菜了,还不会调


车训练集网址:http://ai.stanford.edu/~jkrause/cars/car_dataset.html


汽车检测

    为了使结果的准确度在可接受范围内,许哟啊一个足够大的数据集,包括训练推向的大小要一样

训练集:

opencv3 目标检测与识别_第1张图片

输入:

import cv2
import numpy as np
from os.path import join

datapath = "./TrainCarImages"
def path(cls,i):
    return "%s/%s%d.jpg"  % (datapath,cls,i+1)
  
pos, neg = "pos", "neg"
#print(path(pos,0))
detect = cv2.xfeatures2d.SIFT_create()
extract = cv2.xfeatures2d.SIFT_create()

flann_params = dict(algorithm = 1, trees = 5)
matcher = cv2.FlannBasedMatcher(flann_params, {})

bow_kmeans_trainer = cv2.BOWKMeansTrainer(40)
extract_bow = cv2.BOWImgDescriptorExtractor(extract, matcher)

def extract_sift(fn):
    im = cv2.imread(fn,0)
    return extract.compute(im, detect.detect(im))[1]
  
for i in range(8):
    bow_kmeans_trainer.add(extract_sift(path(pos,i)))
    bow_kmeans_trainer.add(extract_sift(path(neg,i)))
  
voc = bow_kmeans_trainer.cluster()
extract_bow.setVocabulary( voc )

def bow_features(fn):
    im = cv2.imread(fn,0)
    return extract_bow.compute(im, detect.detect(im))

traindata, trainlabels = [],[]

for i in range(20): 
#    print(i)
    traindata.extend(bow_features(path(pos, i)))
    trainlabels.append(1)
    traindata.extend(bow_features(path(neg, i)))
    trainlabels.append(-1)

svm = cv2.ml.SVM_create()
svm.train(np.array(traindata), cv2.ml.ROW_SAMPLE, np.array(trainlabels))

def predict(fn):
    f = bow_features(fn);  
    p = svm.predict(f)
    print (fn, "\t", p[1][0][0])
    return p
  
car, notcar = "car.jpg", "dd.jpg"
car_img = cv2.imread(car)
notcar_img = cv2.imread(notcar)
car_predict = predict(car)
not_car_predict = predict(notcar)

font = cv2.FONT_HERSHEY_SIMPLEX

if (car_predict[1][0][0] == 1.0):
    cv2.putText(car_img,'Car Detected',(10,30), font, 1,(0,255,0),2,cv2.LINE_AA)
    
print('not_car_predict',not_car_predict[1][0][0])
if (not_car_predict[1][0][0] == -1.0):
    cv2.putText(notcar_img,'Car Not Detected',(10,30), font, 1,(0,0, 255),2,cv2.LINE_AA)

cv2.imshow('BOW + SVM Success', car_img)
cv2.imshow('BOW + SVM Failure', notcar_img)
cv2.waitKey(0)
cv2.destroyAllWindows()

输出:

    在实际验证过程中发现,是否识别为Car Not Detected与负样本有很大关系,如果目标样本与负样本区别很大的话,很可能会被识别为正样本。

    造成的原因可能是负样本的单一性,以及训练集数量过少等



汽车检测:

项目结构:

opencv3 目标检测与识别_第2张图片

changefilesname.py

import cv2
import numpy as np
from car_detector.detector import car_detector, bow_features
from car_detector.pyramid import pyramid
from car_detector.non_maximum import non_max_suppression_fast as nms
from car_detector.sliding_window import sliding_window
import urllib.request

def in_range(number, test, thresh=0.2):
    return abs(number - test) < thresh

test_image = "testcar.jpg"
#img_path = "testcars.jpg"

#urllib.urlretrieve(test_image, img_path)
#urllib.request.urlretrieve(test_image, img_path)

svm, extractor = car_detector()
detect = cv2.xfeatures2d.SIFT_create()

w, h = 100, 40
img = cv2.imread(test_image)
#img = cv2.imread(test_image)

rectangles = []
counter = 1
scaleFactor = 1.25
scale = 1
font = cv2.FONT_HERSHEY_PLAIN

for resized in pyramid(img, scaleFactor):  
  scale = float(img.shape[1]) / float(resized.shape[1])
  for (x, y, roi) in sliding_window(resized, 20, (100, 40)):
    
    if roi.shape[1] != w or roi.shape[0] != h:
      continue

    try:
      bf = bow_features(roi, extractor, detect)
      _, result = svm.predict(bf)
      a, res = svm.predict(bf, flags=cv2.ml.STAT_MODEL_RAW_OUTPUT | cv2.ml.STAT_MODEL_UPDATE_MODEL)
      print ("Class: %d, Score: %f, a: %s" % (result[0][0], res[0][0], res))
      score = res[0][0]
      if result[0][0] == 1:
        if score < -1.0:
          rx, ry, rx2, ry2 = int(x * scale), int(y * scale), int((x+w) * scale), int((y+h) * scale)
          rectangles.append([rx, ry, rx2, ry2, abs(score)])
    except:
      pass

    counter += 1 

windows = np.array(rectangles)
boxes = nms(windows, 0.25)


for (x, y, x2, y2, score) in boxes:
  print (x, y, x2, y2, score)
  cv2.rectangle(img, (int(x),int(y)),(int(x2), int(y2)),(0, 255, 0), 1)
  cv2.putText(img, "%f" % score, (int(x),int(y)), font, 1, (0, 255, 0))

cv2.imshow("img", img)
cv2.waitKey(0)

detector.py

import cv2
import numpy as np

datapath = "./TrainCarImages"

SAMPLES = 20

def path(cls,i):
    return "%s/%s%d.jpg"  % (datapath,cls,i+1)

def get_flann_matcher():
    flann_params = dict(algorithm = 1, trees = 5)
    return cv2.FlannBasedMatcher(flann_params, {})

def get_bow_extractor(extract, match):
    return cv2.BOWImgDescriptorExtractor(extract, match)

def get_extract_detect():
    return cv2.xfeatures2d.SIFT_create(), cv2.xfeatures2d.SIFT_create()

def extract_sift(fn, extractor, detector):
    im = cv2.imread(fn,0)
    return extractor.compute(im, detector.detect(im))[1]
    
def bow_features(img, extractor_bow, detector):
    return extractor_bow.compute(img, detector.detect(img))

def car_detector():
    pos, neg = "pos", "neg"
    detect, extract = get_extract_detect()
    matcher = get_flann_matcher()
    #extract_bow = get_bow_extractor(extract, matcher)
    print ("building BOWKMeansTrainer...")
    bow_kmeans_trainer = cv2.BOWKMeansTrainer(12)
    extract_bow = cv2.BOWImgDescriptorExtractor(extract, matcher)
    
    print ("adding features to trainer")
    for i in range(SAMPLES):
        print (i)
        print('path(pos,i):',path(pos,i))
        bow_kmeans_trainer.add(extract_sift(path(pos,i), extract, detect))
        #bow_kmeans_trainer.add(extract_sift(path(neg,i), extract, detect))
    
      
    vocabulary = bow_kmeans_trainer.cluster()
    extract_bow.setVocabulary(vocabulary)
    
    traindata, trainlabels = [],[]
    print ("adding to train data")
    for i in range(SAMPLES):
        print (i)
        traindata.extend(bow_features(cv2.imread(path(pos, i), 0), extract_bow, detect))
        trainlabels.append(1)
        traindata.extend(bow_features(cv2.imread(path(neg, i), 0), extract_bow, detect))
        trainlabels.append(-1)
    
    svm = cv2.ml.SVM_create()
    svm.setType(cv2.ml.SVM_C_SVC)
    svm.setGamma(1)
    svm.setC(35)
    svm.setKernel(cv2.ml.SVM_RBF)
    
    svm.train(np.array(traindata), cv2.ml.ROW_SAMPLE, np.array(trainlabels))
    return svm, extract_bow
pyramid.py
import cv2

def resize(img, scaleFactor):
    return cv2.resize(img, (int(img.shape[1] * (1 / scaleFactor)), int(img.shape[0] * (1 / scaleFactor))), interpolation=cv2.INTER_AREA)

def pyramid(image, scale=1.5, minSize=(200, 80)):
    yield image
    
    while True:
        image = resize(image, scale)
        if image.shape[0] < minSize[1] or image.shape[1] < minSize[0]:
            break
        
        yield image
non_maximum.py
# import the necessary packages
import numpy as np

# Malisiewicz et al.
# Python port by Adrian Rosebrock
def non_max_suppression_fast(boxes, overlapThresh):
  # if there are no boxes, return an empty list
  if len(boxes) == 0:
    return []

  # if the bounding boxes integers, convert them to floats --
  # this is important since we'll be doing a bunch of divisions
  if boxes.dtype.kind == "i":
    boxes = boxes.astype("float")

  # initialize the list of picked indexes 
  pick = []

  # grab the coordinates of the bounding boxes
  x1 = boxes[:,0]
  y1 = boxes[:,1]
  x2 = boxes[:,2]
  y2 = boxes[:,3]
  scores = boxes[:,4]
  # compute the area of the bounding boxes and sort the bounding
  # boxes by the score/probability of the bounding box
  area = (x2 - x1 + 1) * (y2 - y1 + 1)
  idxs = np.argsort(scores)[::-1]

  # keep looping while some indexes still remain in the indexes
  # list
  while len(idxs) > 0:
    # grab the last index in the indexes list and add the
    # index value to the list of picked indexes
    last = len(idxs) - 1
    i = idxs[last]
    pick.append(i)

    # find the largest (x, y) coordinates for the start of
    # the bounding box and the smallest (x, y) coordinates
    # for the end of the bounding box
    xx1 = np.maximum(x1[i], x1[idxs[:last]])
    yy1 = np.maximum(y1[i], y1[idxs[:last]])
    xx2 = np.minimum(x2[i], x2[idxs[:last]])
    yy2 = np.minimum(y2[i], y2[idxs[:last]])

    # compute the width and height of the bounding box
    w = np.maximum(0, xx2 - xx1 + 1)
    h = np.maximum(0, yy2 - yy1 + 1)

    # compute the ratio of overlap
    overlap = (w * h) / area[idxs[:last]]

    # delete all indexes from the index list that have
    idxs = np.delete(idxs, np.concatenate(([last],
      np.where(overlap > overlapThresh)[0])))

  # return only the bounding boxes that were picked using the
  # integer data type
  return boxes[pick].astype("int")

sliding_window.py

def sliding_window(image, step, window_size):
    for y in range(0, image.shape[0], step):
        for x in range(0, image.shape[1], step):
            yield (x, y, image[y:y + window_size[1], x:x + window_size[0]])

输出:

OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: -1, Score: 1.113939, a: [[ 1.11393857]]
Class: -1, Score: 2.090496, a: [[ 2.09049606]]
Class: -1, Score: 2.090496, a: [[ 2.09049606]]
Class: -1, Score: 2.090496, a: [[ 2.09049606]]
Class: -1, Score: 2.963510, a: [[ 2.96351004]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: 1, Score: -4.245365, a: [[-4.24536467]]
Class: 1, Score: -2.548491, a: [[-2.54849124]]
Class: 1, Score: -2.548491, a: [[-2.54849124]]
Class: 1, Score: -2.548491, a: [[-2.54849124]]
Class: 1, Score: -2.548491, a: [[-2.54849124]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: 1, Score: -4.245365, a: [[-4.24536467]]
Class: 1, Score: -3.585461, a: [[-3.5854609]]
Class: 1, Score: -3.585461, a: [[-3.5854609]]
Class: 1, Score: -3.585461, a: [[-3.5854609]]
Class: 1, Score: -3.585461, a: [[-3.5854609]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: 1, Score: -1.258763, a: [[-1.25876319]]
Class: 1, Score: -1.301664, a: [[-1.30166388]]
Class: 1, Score: -1.301664, a: [[-1.30166388]]
Class: 1, Score: -1.301664, a: [[-1.30166388]]
Class: 1, Score: -0.647123, a: [[-0.6471234]]
Class: -1, Score: 0.032799, a: [[ 0.03279879]]
Class: -1, Score: 1.113939, a: [[ 1.11393857]]
Class: -1, Score: 1.113939, a: [[ 1.11393857]]
Class: -1, Score: 1.113939, a: [[ 1.11393857]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: 1, Score: -2.417843, a: [[-2.41784286]]
Class: 1, Score: -2.361266, a: [[-2.36126637]]
Class: 1, Score: -1.823585, a: [[-1.82358515]]
Class: 1, Score: -1.823585, a: [[-1.82358515]]
Class: 1, Score: -1.148721, a: [[-1.14872146]]
Class: -1, Score: 1.182063, a: [[ 1.18206298]]
Class: 1, Score: -0.497804, a: [[-0.49780384]]
Class: 1, Score: -0.903797, a: [[-0.90379727]]
Class: 1, Score: -0.903797, a: [[-0.90379727]]
Class: 1, Score: -0.421277, a: [[-0.42127678]]
Class: 1, Score: -0.531360, a: [[-0.53135991]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: -1, Score: 5.431592, a: [[ 5.43159199]]
Class: -1, Score: 5.300595, a: [[ 5.30059528]]
Class: -1, Score: 3.576167, a: [[ 3.57616735]]
Class: -1, Score: 3.693149, a: [[ 3.69314933]]
Class: -1, Score: 2.499667, a: [[ 2.49966693]]
Class: -1, Score: 1.271291, a: [[ 1.27129149]]
Class: -1, Score: 1.865553, a: [[ 1.8655529]]
Class: -1, Score: 3.047674, a: [[ 3.0476737]]
Class: -1, Score: 1.044656, a: [[ 1.04465568]]
Class: -1, Score: 0.802182, a: [[ 0.80218178]]
Class: -1, Score: 0.525431, a: [[ 0.5254308]]
Class: -1, Score: 0.816452, a: [[ 0.81645203]]
Class: 1, Score: -0.077282, a: [[-0.07728156]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: -1, Score: 5.431592, a: [[ 5.43159199]]
Class: -1, Score: 5.300595, a: [[ 5.30059528]]
Class: -1, Score: 5.320632, a: [[ 5.32063246]]
Class: -1, Score: 5.454574, a: [[ 5.45457363]]
Class: -1, Score: 5.210835, a: [[ 5.21083546]]
Class: -1, Score: 4.595314, a: [[ 4.59531403]]
Class: -1, Score: 5.048146, a: [[ 5.04814577]]
Class: -1, Score: 2.090496, a: [[ 2.09049606]]
Class: -1, Score: 2.223991, a: [[ 2.22399092]]
Class: -1, Score: 1.830957, a: [[ 1.83095741]]
Class: -1, Score: 1.111495, a: [[ 1.11149538]]
Class: -1, Score: 0.032799, a: [[ 0.03279879]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: 1, Score: -0.437271, a: [[-0.43727091]]
Class: 1, Score: -1.800964, a: [[-1.80096447]]
Class: 1, Score: -1.800964, a: [[-1.80096447]]
Class: 1, Score: -1.800964, a: [[-1.80096447]]
Class: 1, Score: -1.800964, a: [[-1.80096447]]
Class: 1, Score: -0.196570, a: [[-0.19657023]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: 1, Score: -1.308041, a: [[-1.30804074]]
Class: 1, Score: -0.782550, a: [[-0.78255039]]
Class: 1, Score: -0.782550, a: [[-0.78255039]]
Class: 1, Score: -0.782550, a: [[-0.78255039]]
Class: 1, Score: -0.782550, a: [[-0.78255039]]
Class: 1, Score: -0.196570, a: [[-0.19657023]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: 1, Score: -3.585461, a: [[-3.5854609]]
Class: 1, Score: -3.585461, a: [[-3.5854609]]
Class: 1, Score: -3.585461, a: [[-3.5854609]]
Class: 1, Score: -3.585461, a: [[-3.5854609]]
Class: 1, Score: -3.585461, a: [[-3.5854609]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: -1, Score: 0.946720, a: [[ 0.94672012]]
Class: -1, Score: 0.227873, a: [[ 0.22787289]]
Class: -1, Score: 0.745834, a: [[ 0.74583405]]
Class: 1, Score: -1.806858, a: [[-1.80685771]]
Class: 1, Score: -1.806858, a: [[-1.80685771]]
Class: 1, Score: -2.706745, a: [[-2.70674539]]
Class: 1, Score: -3.585461, a: [[-3.5854609]]
Class: 1, Score: -3.585461, a: [[-3.5854609]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: -1, Score: 1.113939, a: [[ 1.11393857]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: 1, Score: -1.276521, a: [[-1.27652133]]
Class: -1, Score: 0.122222, a: [[ 0.12222214]]
Class: -1, Score: 0.404668, a: [[ 0.40466839]]
Class: -1, Score: 0.404668, a: [[ 0.40466839]]
Class: -1, Score: 0.827220, a: [[ 0.82722032]]
Class: 1, Score: -0.227194, a: [[-0.22719435]]
Class: 1, Score: -1.001999, a: [[-1.00199866]]
Class: 1, Score: -1.814914, a: [[-1.81491446]]
Class: 1, Score: -1.953952, a: [[-1.9539516]]
Class: 1, Score: -1.837740, a: [[-1.83773959]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: -1, Score: 5.431592, a: [[ 5.43159199]]
Class: -1, Score: 1.184926, a: [[ 1.18492556]]
Class: -1, Score: 2.937815, a: [[ 2.93781519]]
Class: -1, Score: 3.262046, a: [[ 3.26204586]]
Class: -1, Score: 3.326775, a: [[ 3.32677531]]
Class: -1, Score: 2.635638, a: [[ 2.63563848]]
Class: -1, Score: 2.641866, a: [[ 2.64186573]]
Class: -1, Score: 0.289747, a: [[ 0.28974658]]
Class: 1, Score: -0.558327, a: [[-0.55832666]]
Class: 1, Score: -1.102225, a: [[-1.10222518]]
Class: 1, Score: -0.739893, a: [[-0.7398932]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: -1, Score: 5.431592, a: [[ 5.43159199]]
Class: -1, Score: 4.225480, a: [[ 4.22548008]]
Class: -1, Score: 4.853210, a: [[ 4.85321045]]
Class: -1, Score: 5.247846, a: [[ 5.24784565]]
Class: -1, Score: 5.247846, a: [[ 5.24784565]]
Class: -1, Score: 4.566898, a: [[ 4.56689787]]
Class: -1, Score: 5.693561, a: [[ 5.69356108]]
Class: -1, Score: 2.963510, a: [[ 2.96351004]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: -1, Score: 2.963510, a: [[ 2.96351004]]
Class: -1, Score: 2.963510, a: [[ 2.96351004]]
Class: -1, Score: 2.963510, a: [[ 2.96351004]]
Class: -1, Score: 2.963510, a: [[ 2.96351004]]
Class: -1, Score: 2.963510, a: [[ 2.96351004]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: 1, Score: -2.410865, a: [[-2.41086483]]
Class: 1, Score: -1.800964, a: [[-1.80096447]]
Class: 1, Score: -1.800964, a: [[-1.80096447]]
Class: 1, Score: -1.800964, a: [[-1.80096447]]
Class: 1, Score: -2.666534, a: [[-2.66653442]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: 1, Score: -0.384363, a: [[-0.3843632]]
Class: -1, Score: 0.759145, a: [[ 0.75914478]]
Class: -1, Score: 0.759145, a: [[ 0.75914478]]
Class: -1, Score: 0.759145, a: [[ 0.75914478]]
Class: -1, Score: 0.759145, a: [[ 0.75914478]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: 1, Score: -0.384363, a: [[-0.3843632]]
Class: 1, Score: -0.384363, a: [[-0.3843632]]
Class: 1, Score: -2.475841, a: [[-2.47584057]]
Class: 1, Score: -2.475841, a: [[-2.47584057]]
Class: 1, Score: -2.475841, a: [[-2.47584057]]
Class: 1, Score: -1.249594, a: [[-1.24959409]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: -1, Score: 0.067010, a: [[ 0.06701043]]
Class: 1, Score: -1.760071, a: [[-1.7600714]]
Class: 1, Score: -1.412620, a: [[-1.41262007]]
Class: 1, Score: -1.735463, a: [[-1.7354629]]
Class: 1, Score: -0.806682, a: [[-0.80668241]]
Class: -1, Score: 0.045055, a: [[ 0.0450548]]
Class: 1, Score: -0.984114, a: [[-0.98411351]]
Class: 1, Score: -1.392523, a: [[-1.39252329]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: -1, Score: 0.626966, a: [[ 0.62696606]]
Class: -1, Score: 0.973085, a: [[ 0.97308511]]
Class: -1, Score: 1.417803, a: [[ 1.41780293]]
Class: -1, Score: 1.526941, a: [[ 1.52694082]]
Class: 1, Score: -0.299325, a: [[-0.2993246]]
Class: 1, Score: -0.342969, a: [[-0.34296897]]
Class: 1, Score: -1.743134, a: [[-1.74313414]]
Class: 1, Score: -1.743134, a: [[-1.74313414]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: -1, Score: 2.330042, a: [[ 2.33004189]]
Class: -1, Score: 1.840977, a: [[ 1.84097743]]
Class: -1, Score: 2.764489, a: [[ 2.7644887]]
Class: -1, Score: 2.988511, a: [[ 2.98851085]]
Class: -1, Score: 0.724369, a: [[ 0.72436887]]
Class: -1, Score: 1.830957, a: [[ 1.83095741]]
Class: -1, Score: 1.830957, a: [[ 1.83095741]]
Class: -1, Score: 1.111495, a: [[ 1.11149538]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: -1, Score: 1.045688, a: [[ 1.04568839]]
Class: 1, Score: -1.555457, a: [[-1.55545735]]
Class: 1, Score: -1.555457, a: [[-1.55545735]]
Class: 1, Score: -1.555457, a: [[-1.55545735]]
Class: 1, Score: -1.555457, a: [[-1.55545735]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: -1, Score: 1.045688, a: [[ 1.04568839]]
Class: 1, Score: -1.034236, a: [[-1.03423584]]
Class: 1, Score: -1.034236, a: [[-1.03423584]]
Class: 1, Score: -1.034236, a: [[-1.03423584]]
Class: 1, Score: -1.034236, a: [[-1.03423584]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: -1, Score: 2.279187, a: [[ 2.27918673]]
Class: -1, Score: 2.188807, a: [[ 2.18880749]]
Class: -1, Score: 0.436898, a: [[ 0.43689805]]
Class: -1, Score: 0.436898, a: [[ 0.43689805]]
Class: 1, Score: -0.155299, a: [[-0.15529877]]
Class: 1, Score: -3.428936, a: [[-3.42893624]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: 1, Score: -1.087804, a: [[-1.08780396]]
Class: -1, Score: 0.585110, a: [[ 0.58511019]]
Class: -1, Score: 0.899288, a: [[ 0.89928818]]
Class: 1, Score: -0.695461, a: [[-0.69546139]]
Class: 1, Score: -0.226696, a: [[-0.22669572]]
Class: 1, Score: -1.249704, a: [[-1.24970448]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
Class: -1, Score: 5.431592, a: [[ 5.43159199]]
Class: -1, Score: 0.834656, a: [[ 0.83465612]]
Class: -1, Score: 2.986090, a: [[ 2.98608971]]
Class: -1, Score: 2.468149, a: [[ 2.46814895]]
Class: -1, Score: 0.951682, a: [[ 0.95168161]]
Class: 1, Score: -0.132492, a: [[-0.13249229]]
Class: 1, Score: -1.768515, a: [[-1.76851451]]
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
OpenCV(3.4.1) Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in cv::ml::SVMImpl::predict, file C:\projects\opencv-python\opencv\modules\ml\src\svm.cpp, line 2005
343 218 500 281 1
400 280 500 320 1
146 48 391 146 1
97 195 342 293 1
351 156 547 234 1
293 0 538 97 1
342 244 587 342 1




你可能感兴趣的:(opencv)