A CNN Model to predict if a person is affected with COVID-19 using the x-ray images. The model has been trained on about 300 images and the accuracy of the model currently is 73.19 %.
https://github.com/ieee8023/covid-chestxray-dataset
This code finds all x-ray images of patients of COVID-19 and stores selected image to an COVID directory
- It uses metadata.csv for searching and retrieving images name
- Using ./images folder it selects the retrieved images and copies them in covid folder
Code can be modified for any combination of selection of images
This code finds all x-ray images of normal patients and stores selected image to an normal-images directory
- It uses metadata.csv for searching and retrieving images name
- Using ./images folder it selects the retrieved images and copies them in normal-images folder
Code can be modified for any combination of selection of images
GetCovidtoCSV creates a CSV format of data set with resized images of your defined size (Height, Width)
We got labels for every image from metadata.csv and in new creted dataset, first attribute defines the label
label == 1 defines COVID-19 and Label == 0 defines all others
Since Excel contains XFD as last column and XFD equals 16384. Thus we have to look for the resized height and width
In this example we took 40 x 40 with 3 channels making total row size (40x40x3)+1 +1 is added because label is stored as first attribute of image