Update app.py
Browse files
app.py
CHANGED
|
@@ -83,6 +83,10 @@ def calc_glcm_features(images):
|
|
| 83 |
grass_glcm_features = calc_glcm_features(grass_dataset)
|
| 84 |
wood_glcm_features = calc_glcm_features(wood_dataset)
|
| 85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
def extract_lbp_features(images):
|
| 88 |
"""Extract LBP features from a list of images.
|
|
|
|
| 83 |
grass_glcm_features = calc_glcm_features(grass_dataset)
|
| 84 |
wood_glcm_features = calc_glcm_features(wood_dataset)
|
| 85 |
|
| 86 |
+
# Print the sizes of the GLCM feature arrays
|
| 87 |
+
print(f"Size of GLCM features for grass dataset: {len(grass_glcm_features)}")
|
| 88 |
+
print(f"Size of GLCM features for wood dataset: {len(wood_glcm_features)}")
|
| 89 |
+
|
| 90 |
|
| 91 |
def extract_lbp_features(images):
|
| 92 |
"""Extract LBP features from a list of images.
|