Vehicle-Detection-YOLO-ver icon indicating copy to clipboard operation
Vehicle-Detection-YOLO-ver copied to clipboard

What does the variable spatial_size mean?

Open jsuyanyong opened this issue 6 years ago • 0 comments

I don't understand the mean of the variable spatial_size defined in find_car.py and svc_save.py, I find it is used as parameter size in function bin_spatial(), and what does the variable spatial_size and features returned in below function mean? Thank you! @windowsub0406

def bin_spatial(img, size=(32, 32)):
    """ Define a function to compute binned color features   """
    # Use cv2.resize().ravel() to create the feature vector
    features = cv2.resize(img, size).ravel()
    # Return the feature vector
    return features

jsuyanyong avatar Aug 17 '18 12:08 jsuyanyong