Giter Club home page Giter Club logo

mohammadmoataz2 / x-rayguardian Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 1.18 GB

This project focuses on detecting Pneumonia in chest X-ray images or video using artificial intelligence and deep learning techniques. The solution involves preprocessing the data, training a model using TensorFlow, and developing a desktop application to classify new X-ray images or video frames as either normal or showing signs of Pneumonia.

Jupyter Notebook 99.88% Python 0.12%
application chest cnn computer-vision corona covid deeplearning medical opencv python tensorflow x-ray

x-rayguardian's Introduction

Chest X-Ray Pneumonia Detection

This project focuses on detecting Pneumonia in chest X-ray images or video using artificial intelligence and deep learning techniques. The solution involves preprocessing the data, training a model using TensorFlow, and developing a desktop application to classify new X-ray images or video frames as either normal or showing signs of Pneumonia.

image

Project Overview

Dataset

The dataset consists of chest X-ray images categorized into two classes:

  • Normal
  • Pneumonia

Model

The model is built using TensorFlow and involves:

  • Data preprocessing
  • Creating a pipeline for data handling
  • Utilizing a pre-trained VGG16 model
  • Applying transfer learning and fine-tuning

Application

A desktop application is developed using Tkinter, allowing users to upload and analyze X-ray images or videos. The application provides the following functionalities:

  • Select the path of the photo or video
  • Analyze the selected file to classify it as normal or Pneumonia

For images, the application uses OpenCV to display the label directly on the image within the Tkinter window and also saves the labeled image externally. For videos, the application processes each frame, labels it, and displays the result.

image

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/chest-xray-pneumonia-detection.git
    cd chest-xray-pneumonia-detection
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install the required packages:

    pip install -r requirements.txt

Usage

  1. Running the Application:
    • Start the desktop application:
      python main.py
    • Use the interface to select an X-ray image or video for analysis.
    • Click the button to start the analysis and view the results.

image

Features

  • Image Analysis:

    • Upload an X-ray image.
    • The application displays the image with the label (Normal or Pneumonia) overlaid.
  • Video Analysis:

    • Upload a video containing X-ray frames.
    • The application processes each frame and labels it accordingly.

Dependencies

  • TensorFlow
  • OpenCV
  • Tkinter

image

x-rayguardian's People

Contributors

mohammadmoataz2 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.