GithubHelp home page GithubHelp logo

lynguyenminh / vaipe2022.medicine-pill-image-recognition Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 403.53 MB

License: MIT License

Python 97.80% Shell 1.58% Dockerfile 0.62%
object-detection streamlit-application text-detection-recognition medicine-pill-image-recognition vaipe

vaipe2022.medicine-pill-image-recognition's Introduction

VAIPE: Medicine Pill Image Recognition Challenge

Cuộc thi do Trung tâm Y tế thông minh VinUni-Illinois thuộc trường ĐH VinUni, Trung tâm Nghiên cứu Quốc tế về Trí tuệ nhân tạo BKAI, Đại học Bách khoa Hà Nội, phối hợp cùng Bộ Khoa học và Công nghệ và Báo VnExpress tổ chức.

Tuy không đạt đươc giải cao trong cuộc thi lần này, nhưng team mình muốn chia sẻ giải pháp tới mọi người.

Video Demo:

IMAGE ALT TEXT HERE

1. Mô tả bài toán

Input:

  • 1 ảnh đơn thuốc

  • n "ảnh chụp viên thuốc" (Xét cho đơn thuốc trên)
VAIPE_P_0_0.jpg VAIPE_P_0_1.jpg

Output:

Với mỗi "ảnh chụp viên thuốc", xét xem những viên thuốc nào nằm trong đơn (xác định tên thuốc, vị trí), viên thuốc nào không nằm trong đơn (xác định vị trí).

Thông tin thêm:

  • Có 107 loại thuốc được xét là thuốc trong đơn, được gán theo thứ tự là class_0, class_1, ..., class_106.
  • Các loại thuốc không nằm trong đơn đang xét thì được gán là thuốc ngoài đơn class_107. Thuốc ngoài đơn có thể bao gồm 107 loại thuốc trong đơn và các thuốc khác. Ví dụ:
    • Đơn thuốc 1, có 2 loại thuốc: "paracetamol 500mg" và "normagut 250mg". Nếu trong những "ảnh chụp viên thuốc" có thuốc "paracetamol 500mg" thì nó là thuốc trong đơn.
    • Xét tiếp đơn thuốc 2 có 1 loại thuốc: "meloxicam 7,5mg". Nếu trong số những "ảnh chụp viên thuốc" có thuốc "paracetamol 500mg" thì trong trường hợp này viên thuốc "paracetamol 500mg" đươc gán nhãn ngoài đơn.

2. Pipeline

3. Cách cài đặt code

1. Clone source code và setup môi trường

  • Clone source code:
git clonehttps://github.com/lynguyenminh/VAIPE2022.git
cd VAIPE2022
  • Setup môi trường:
pip install -r requirements.txt # Nếu máy có gpu
hoăc: 
pip install -r requirements.txt --no-cache-dir # Nếu không có gpu

2. Inference

sh run1.sh && sh run2.sh

Kêt quả có được là file ./results/result.csv.

3. Deploy on web

cd src/app-demo && streamlit run app.py

Nhóm mình không public file weights, nếu cần thiết các bạn có thể liên lạc với mình qua mail: [email protected]

vaipe2022.medicine-pill-image-recognition's People

Contributors

lynguyenminh avatar

Stargazers

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