Coder Social home page Coder Social logo

emeyva / assessing-malaria-blood-samples Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 85.38 MB

Haar feature-based cascade classifier to detect infected cells with Malaria

Java 99.39% Python 0.54% AIDL 0.07%
python java android android-studio cell-detection malaria mobile-app

assessing-malaria-blood-samples's Introduction

Assessing blood samples for Malaria

Use of an app that captures photographs of blood samples and finds if they are infected with Malaria

There are two folders on these project, the first one is about the Mobile App and the second one is more focused on running test under Python with OpenCV.

Most of the techniques are firstly used under Python and then converted manually to an Android mobile app.

  • Final project report here
  • A simple summary here

Getting Started

These instructions will get you a copy of the Assessing blood samples for Malaria project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Install OpenCV and Python

On Linux

sudo apt-get install python3
sudo apt-get install libopencv-dev python-opencv
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev

On MacOS

brew install python
brew tap homebrew/science
brew install opencv3 --with-contrib
brew install numpy
brew install jpeg libpng libtiff openexr
ln -s /usr/local/opt/opencv3/lib/python2.7/site-packages/cv2.so \
  /usr/local/lib/python2.7/site-packages/
echo ’#Homebrew’ >> ~/.bash_profile
echo ’export PATH=/usr/local/bin:$PATH’ >> ~/.bash_profile
source ~/.bash_profile

Installing

Install PyCharm and Android Studio

Running the tests

Open Python test on PyCharm or run it from the terminal

Open Android folder on Android Studio and run it on you mobile phone or an emulator

Break down into end to end tests

Android mobile app:

It asks the user to take a photograph of a blood sample (microscopic one), then it show the image taken with all the contours detected drawn on the same image. Instead of taking a picture, it is possible to import a file from the phone library. It also loads cell Cascade to detect infected cells, drawn with green squares (not efficient at the moment)

Python:

It take the 'london_cell.jpg' picture, analyses it and checks every cell with a 'cell_cascade.xml' classifier, trained before-hand. Then, outputs the actual infected cells as black rectangles, but also the detected infected cells as green/red rectangles.

Cascade Training:

Cascade training is under the terminal and uses OpenCV method - traincascade and also positive and negative images of Malaria infected or uninfected cells

Contributing

Please read Coding Robin for information about Training Cascade Classifier

Versioning

Version 1

Authors

Eurico Pinto

University of Essex

assessing-malaria-blood-samples's People

Contributors

emeyva avatar

Stargazers

 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.