Git Product home page Git Product logo

image-classification's Introduction

Image-Classification

Image classification for skin diseases.

Data set : images of skin diseases. main source : https://www.dermnetnz.org

CNN for image classification
To run, change the folder of training data and the testing image data. Image classification of two classes. Uses Tensorflow package of python. May give the warning " I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2" but the code works fine.

KNN for image classification: The variable 'k' holds the number of neighbours to be selected. The label of a image is extracted from the image name, for example, if you want an image of a tree to be classified as a tree, the name in thetraining model should be tree12.jpg. The 'imagePaths' varible holds the source folder paths.

Data Augmentation

The augmentation factor : 360 The code rotates each image from 1 degrees to 180 degrees (included) and then flips each rotated image horizontally.

To run the code : Change the source path to where the original images are stored.

To change the augmentation factor : Change the variable 'i' which represents the degree of rotation.

Libraries Used : glob os numpy scipy , ndarray skimage skimage.util matplotlib.pyplot tensorflow math PIL sklearn imutils cv2 re keras Sequential , Dense, Conv2D, MaxPooling2D, Flatten from Keras

image-classification's People

Contributors

nehalis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.