Mining Identification API

class pycoal.mining.MiningClassification(class_names=['Schwertmannite BZ93-1 s06av95a=b', 'Renyolds_TnlSldgWet SM93-15w s06av95a=a', 'Renyolds_Tnl_Sludge SM93-15 s06av95a=a'])[source]
__init__(class_names=['Schwertmannite BZ93-1 s06av95a=b', 'Renyolds_TnlSldgWet SM93-15w s06av95a=a', 'Renyolds_Tnl_Sludge SM93-15 s06av95a=a'])[source]

Construct a new MiningClassification object given an optional list of spectral class names which defaults to coal mining proxies.

Parameters:class_names (str[]) – list of class names to identify.
__weakref__

list of weak references to the object (if defined)

classify_image(image_file_name, classified_file_name, spectral_version)[source]

Classify mines or other features in a COAL mineral classified image by copying relevant pixels and discarding the rest in a new file.

Parameters:
  • image_file_name (str) – filename of the image to be classified
  • classified_file_name (str) – filename of the classified image
Returns:

None