Giter Site home page Giter Site logo

goknurarican / bccd_dataset Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shenggan/bccd_dataset

0.0 0.0 0.0 7.39 MB

BCCD (Blood Cell Count and Detection) Dataset is a small-scale dataset for blood cells detection.

License: MIT License

Python 100.00%

bccd_dataset's Introduction

BCCD Dataset

BCCD Dataset is a small-scale dataset for blood cells detection.

Thanks the original data and annotations from cosmicad and akshaylamba. The original dataset is re-organized into VOC format. BCCD Dataset is under MIT licence.

You can download the .rec format for mxnet directly. The .rec file can be load by mxnet.image.ImageDetIter.

Data preparation

Data preparation is important to use machine learning. In this project, the Faster R-CNN algorithm from keras-frcnn for Object Detection is used. From this dataset, nicolaschen1 developed two Python scripts to make preparation data (CSV file and images) for recognition of abnormalities in blood cells on medical images.

  • export.py: it creates the file "test.csv" with all data needed: filename, class_name, x1,y1,x2,y2.
  • plot.py: it plots the boxes for each image and save it in a new directory.

Overview of dataset

  • You can see a example of the labeled cell image.

    We have three kind of labels :

    • RBC (Red Blood Cell)
    • WBC (White Blood Cell)
    • Platelets (血小板)

    example

  • The structure of the BCCD_dataset

    ├── BCCD
    │   ├── Annotations
    │   │       └── BloodImage_00XYZ.xml (364 items)
    │   ├── ImageSets       # Contain four Main/*.txt which split the dataset
    │   └── JPEGImages
    │       └── BloodImage_00XYZ.jpg (364 items)
    ├── dataset
    │   └── mxnet           # Some preprocess scripts for mxnet
    ├── scripts
    │   ├── split.py        # A script to generate four .txt in ImageSets
    │   └── visualize.py    # A script to generate labeled img like example.jpg
    ├── example.jpg         # A example labeled img generated by visualize.py
    ├── LICENSE
    └── README.md
    
  • The JPEGImages:

    • Image Type : jpeg(JPEG)
    • Width x Height : 640 x 480
  • The Annotations : The VOC format .xml for Object Detection, automatically generate by the label tools. Below is an example of .xml file.

    <annotation>
    	<folder>JPEGImages</folder>
    	<filename>BloodImage_00000.jpg</filename>
    	<path>/home/pi/detection_dataset/JPEGImages/BloodImage_00000.jpg</path>
    	<source>
    		<database>Unknown</database>
    	</source>
    	<size>
    		<width>640</width>
    		<height>480</height>
    		<depth>3</depth>
    	</size>
    	<segmented>0</segmented>
    	<object>
    		<name>WBC</name>
    		<pose>Unspecified</pose>
    		<truncated>0</truncated>
    		<difficult>0</difficult>
    		<bndbox>
    			<xmin>260</xmin>
    			<ymin>177</ymin>
    			<xmax>491</xmax>
    			<ymax>376</ymax>
    		</bndbox>
    	</object>
        ...
    	<object>
    		...
    	</object>
    </annotation>

bccd_dataset's People

Contributors

shenggan avatar nicolaschen1 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.