GithubHelp home page GithubHelp logo

tejas07psk / melanoma-detection Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 4.0 4.4 MB

A modular programming approach towards detecting/predicting Melanoma skin lesion using ImageProcessing and MachineLearning in Python.

License: MIT License

Python 100.00%
image-processing machine-learning numpy opencv python3 scikit-learn scipy

melanoma-detection's People

Contributors

tejas07psk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

melanoma-detection's Issues

does not work

hi,
I'd like to run your code but I have problems

I'm using debian 11 and python 3.9.2, I installed numpy, matplotlib, scipy, opencv-python, and sklearn

I removed dataset

when I run Main.py I got:

$python3 Main.py
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^WELCOME TO THE MELANOMA-PREDICTION PROGRAM^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

 This is a nascent approach towards detecting Melanoma-Skin-Lesion, using OpenCV, NumPY, Matplotlib and SciKit in Python Programming Language. 

 This project utilizes some of the core concepts of 'DIGITAL IMAGE PROCESSING' & 'MACHINE LEARNING'. 

 This program can categorize the cancerous-lesion as Malignant, Benign or Negative. 

 Try understanding the meaning of each option, before selecting the appropriate one. 

 Available options are given below : 

 1.Create 'training-dataset' from the images of known ->MELANOMA<- types!! 

 2.Train classifiers and regressors on the created 'training-dataset'!! 

 3.Create 'testing-dataset' from the supervised images in temp folder!! 

 4.Predict results from the 'testcase.npz' numpy file!! 

 5.Print 'feature-descriptors' of images strored in numpy files, 'dataset.npz' or 'testcase.npz'!! 

 6.Plot 'Classifier/Regressor' graphs!! 

 7.Add the 'feature-sets' to 'testcase.npz' or 'dataset.npz' numpy files, to make mlmodels more accurate!! 

 8.Print only the selected 'feature-sets' of an image!! 

 9.List files present in valid 'project-directories'!! 

 10.Get color plates of an image!! 

 Enter 'e' to exit!! 

Enter your choice -
1
If you see a 'results' folder in the root directory of the project, delete the 'dataset' folder in it.

Now, before you proceed, just make sure that you have your corresponding images in the 'images' folder under the 'malignant', 'benign' or 'negative' directories.

If you haven't already made the directories, please make them and place the corresponding images in them.

The image file-names must be numeric starting from 0 in sequence under each category folder.

Eg. - 0.jpg, 1.jpg, 2.jpg, ..... etc

You must provide images under each category!!!

Just press any key when your are ready :
y
Enter the number of images you placed under the 'images/malignant' directory -
1
Traceback (most recent call last):
File "/home/usert/Downloads/Melanoma-Detection/Main.py", line 541, in
main_menu()
File "/home/usert/Downloads/Melanoma-Detection/Main.py", line 377, in main_menu
__createDataSet("malignant", int(input("Enter the number of images you placed under the 'images/malignant' directory - \n")))
File "/home/usert/Downloads/Melanoma-Detection/Main.py", line 106, in __createDataSet
dset, featnames = (np.load('dataset.npz'))['dset'], (np.load('dataset.npz'))['featnames']
File "/usr/lib/python3/dist-packages/numpy/lib/npyio.py", line 253, in getitem
return format.read_array(bytes,
File "/usr/lib/python3/dist-packages/numpy/lib/format.py", line 727, in read_array
raise ValueError("Object arrays cannot be loaded when "
ValueError: Object arrays cannot be loaded when allow_pickle=False

do you have idea how to fix this?

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.