GithubHelp home page GithubHelp logo

huy-ngo / skin-crawler Goto Github PK

View Code? Open in Web Editor NEW
3.0 5.0 2.0 38 KB

A web crawler for crawling dermoscopic images of skin cancer.

License: MIT License

Python 76.35% HTML 3.94% JavaScript 8.67% CSS 11.04%

skin-crawler's Introduction

Crawler for skin cancer images

This project attempts to create a crawler for dermoscopic images of skin cancer. This includes both frontend and backend.

The backend consists of packages to crawl images from websites and a web server to collect them and serve the images as an API.

The frontend consumes the API and displays information to the user.

How to run

Backend

  • Add Kaggle API token at ~/.kaggle/kaggle.json
  • In backend/, run static_crawler.py. The crawling process takes some time.
  • Run Flask server:
export FLASK_APP=app.py
export FLASK_ENV=development
flask run

Frontend

Open file frontend/index.html

skin-crawler's People

Contributors

casker2209 avatar ddhlong avatar dinhanhx avatar huy-ngo avatar quanggnh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

quanggnh dinhanhx

skin-crawler's Issues

Add Yandex and Wikimedia crawler to the static crawler

It seems even for 1 search, the Wikimedia crawler is time taking. I suppose Yandex one would suffer the same problem. Maybe we should crawl them beforehand.

This also let us write code consistently with the other two crawlers.

Shared folder for downloaded image

Since two of our API sources (Kaggle and ISIC) require downloading to the backend, let's move those images to a common folder backend/images/ for ease of hosting. They should be named in a way to avoid conflict (e.g. prefixing with ISIC- and Kaggle-). As far as I'm aware ISIC images are already prefixed, not sure about Kaggle.

Tutorial report

Img

Skin cancer image crawler

List of the members.

1 Introduction

Maybe paraphrase the task.

2 Crawler

Describe how and where we crawl the datasets
Describe how the crawled datasets are given to the users.
Describe how we link everything togethers

2.1 Crawler's backend

Paraphrase/copy the whole modules documentations.
Describe the file that link everything. app.py

2.2 Crawler's frontend

Describe how the page is implemented

3 Datasets

Provide descriptions of datasets.

3.1 Kaggle

Description

3.2 ISIC

3.3 Yandex

3.4 Wikimedia

4 Interface

What can user do with the web app
Some images here

Clean up the code

The current backend code was written in a rushed manner due to the deadlines so it is not very clean and of bad quality. Let's refactor it after #26 is merged.

Incorrect file path

As can be seen in the screenshot, from #19, the images are supposed to be stored in static/kaggle/dinhanhx/skin-cancer-mnist-ham10000/. However, in reality, they're stored in two subfolder: HAM10000_images_part_1 and HAM10000_images_part_2.

Please fix this.

image

Frontend development

The frontend needs to show images and caption by requesting from the crawler API.

The image URL field is not correct

Related: #28

Currently, the API use path for the URL of the image. This came up because I was dealing with the downloaded files, and within a computer we would say path to a file and not link or URL. However, since it's incorrect and unintuitive to say so, we should change the name of the field. I would like to change it to image_url.

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.