# importing the needed bindings
from descriptor import DescribeTexture
from descriptor import DescribeColor
from descriptor import ColorTree
from ranker import Ranker
import shutil
import argparse
import copy
import cv2
import os

# instantiating the classes for color, texture and tree description
cdes = DescribeColor((16, 32, 1))
txdes = DescribeTexture()
tdes = ColorTree([6])

# building the argument parser and parse the command line arguments
argprse = argparse.ArgumentParser()
argprse.add_argument(
    "-d",
    "--dataset",
    required=True,
    help="FilePath to the folder that has target images to be indexed")
argprse.add_argument("-c",
                     "--hsv",
                     required=True,
                     help="File Path where the computed hsv index is saved")
argprse.add_argument(
    "-t",
    "--texture",
    required=True,