marsvision.pipeline.FeatureExtractor module¶
-
class
marsvision.pipeline.FeatureExtractor.
FeatureExtractor
¶ Bases:
object
-
__init__
()¶ Initialize self. See help(type(self)) for accurate signature.
-
extract_features
(canny_threshold_1: int = 50, canny_threshold_2: int = 100)¶ A Feature extractor that takes an image as an input and outputs a vector of features by reducing the dimensionality of the input image to a vector.
Applies canny and laplacian filters on an input image, takes means and variances of those filters, and means and variances of the image itself. Return the vector of features.
—
Parameters:
img (openCV image): Input image to extractor features canny_threshold_1 (int): OpenCV Canny Threshold 1 for canny detector canny_threshold_2 (int): OpenCV Canny Theshold 2 for canny detector
-
num_features
= 6¶
-