dermoscopic_symmetry
dermoscopic_symmetry is a Python package aiming at study skin lesion's symmetry (regarding shape and textures)
and help the diagnose of diseases like melanomas.
Basically, the symmetry study is divided into
two parts: shapes symmetry and textures symmetry. Here, shapes means the aspect of the outskirts of a lesion
and its global form whereas textures stand for colors and types of perceived textures.
Note : The package has been built referring to the PH² Dataset. See :
To be able to use it directly and properly, you must download and have access to it.
Installation
Use pip to install the package.
pip install dermoscopic_symmetry
These are the Python files used to study the symmetry of skin lesions from the PH² Dataset (see Usage section):
-
shape_symmetry.py: containing functions to study the symmetry of shapes in a lesion's image. -
classifier_feeder.py: containing functions to create a classifier able to recognize if 2 patches taken in a lesion's image are similar or not.
A new dataset calledpatchesDataSet, derivating from the PH² Dataset, has been designed to train this classifier. It is composed of patches pairs taken in the PH² Dataset images with one half similar and the other non similar. -
patches_for_texture_symmetry.py: containing functions to take patches from a dermoscopic image and extract features from them (textures and color). -
texture_symmetry.py: containing functions using the previous classifier and features to study the symmetry of textures in a lesion's image. -
combined_classifier.py: containing functions using only shape features, only textures features or both of them to train classifiers and be able to know which one is the best according to expert diagnose in the PH² Dataset.
Those classifiers are trained according to theShapesScores.csv,TextureScores.csvandShapeAndTextureScores.csvfiles contained in thedatarepository. The final models are saved asshapeModel.pkl,textureModel.pklandshapeAndTextureModel.pklin thedata/modelsrepository.
Note : The code used to create the
patchesDataSet is given in the patches_dataset_creator.py file. The utils.py file contains the utilities
functions.
Usage
Each code script has an :
example() function at the beginning aiming at presenting its functionalities. This function is run
as a default main.
License
Release files for dermoscopic-symmetry 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dermoscopic_symmetry-0.0.2.tar.gz | 10.9 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dermoscopic_symmetry-0.0.2-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 22.0 MB
Release files / dermoscopic_symmetry-0.0.2.tar.gz
| Download URL | dermoscopic_symmetry-0.0.2.tar.gz |
|---|---|
| Size | 10.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73e1e96dd63fb0f0b126dbe54ff567777c41f4404b8a5a341aa93cce592681e7
|
|
BLAKE2b-256 checksum How to use checksums |
515e2fa90e406f6bcc7662034f351aa54d8b84a2feca785a598a45e92ad6dd7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.15+
|
Release files / dermoscopic_symmetry-0.0.2-py2-none-any.whl
| Download URL | dermoscopic_symmetry-0.0.2-py2-none-any.whl |
|---|---|
| Size | 11.1 MB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
92a52a31acd4cdb188ef7ce23e64b1962221b6834135f5c4a2f4bfe673ad0d2f
|
|
BLAKE2b-256 checksum How to use checksums |
786bfa23730e99020263fe241c3011c5a163ec1b8671a0e9d9f064bf652dd4d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.15+
|