Skip to content

rifqifarhansyah/Batik-Pattern-Classification

Repository files navigation

Discrete Mathematics Project

Batik Pattern Classification using Decision Tree


To watch the docs more detail here.

Table of Contents

  1. General Info
  2. Features
  3. Technologies Used
  4. Usage
  5. Screenshots
  6. Structure
  7. Project Status
  8. Room for Improvement
  9. Acknowledgements
  10. Contact

General Information

A simple Batik Pattern Classification using Decision Tree and Global Features Extraction.

Features

  • Upload your batik pattern dataset in 'dataset' folder and analyze it by using "CREATE" command
  • Train your dataset by using "TRAIN" command
  • The result of classification between the uploaded photo with the database class
  • Download the result (tree image) as a DOT extension file

Technologies Used

  • OpenCV2 - version 4.5.4
  • numpy - version 1.21.3
  • sklearn - version 1.0.1
  • h5py - version 3.6.0
  • mahotas - version 1.4.13

Note: The version of the libraries above is the version that we used in this project. You can use the latest version of the libraries.

Usage

  1. clone this repository to your local directory.
  2. open the terminal and go to the directory of the project.
  3. make sure you have installed all the libraries that we used in this project.
  4. go to 'main.py' file and run it.
  5. follow the instruction in the terminal.

Screenshots

Figure 1. Main Menu

Figure 2. Ceplok Testcase Image

Figure 3. Lereng Testcase Image

Figure 4. Nitik Testcase Image

Figure 5. Parang Testcase Image

Figure 6. Decision Tree Image

Structure

│   create_dataset.py
│   formatting_output.py
│   main.py
│   README.md
│   training_dataset.py
│
├───dataset
│   ├───test
│   │       1.jpg
│   │       2.jpg
│   │       3.jpg
│   │       4.jpg
│   │
│   └───train
│       ├───Ceplok
│       │
│       ├───Lereng
│       │
│       ├───Nitik
│       │
│       └───Parang
│
├───image
│       Ceplok_testcase.png
│       Decision_tree.png
│       lereng_testcase.png
│       main.png
│       nitik_testcase.png
│       parang_testcase.png
│
├───processing
│       data.h5
│       labels.h5
│
└───__pycache__

Project is: complete

Room for Improvement:

  • Adding more batik pattern of all regions in Indonesia
  • Thanks To Allah SWT
  • This project was inspired by an Article

Contact

My Contact : mrifki193@gmail.com
2022


About

Decision Tree and Global Feature Extract Application

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages