Coder Social home page Coder Social logo

garbage-classification-data's Introduction

生活垃圾分类数据

本项目对网上的垃圾分类数据进行整合,提供尽量多的垃圾分类数据,开发者可以基于垃圾分类数据进行算法训练,应用开发...

欢迎提供更多垃圾分类数据源 :)

数据文件

最近更新日期 2019-8-2

  • garbage.csv
  • garbage.json
  • database/garbage.sqlite

使用

上面所列的文件已包含所有垃圾分类数据,可以直接使用,不需要运行爬虫重新抓取

垃圾分类说明

目前垃圾有 4 个分类:

  • 1 (可回收垃圾)
  • 2 (有害垃圾)
  • 4 (湿垃圾)
  • 8 (干垃圾)
  • 16 (大件垃圾)

分类值可以相加,比如 3 表示既属于上海可回收垃圾和上海有害垃圾

数据统计

category count
1 1265
2 234
4 1031
8 1422
16 34

脚本

初始化数据库

node scripts/init_database.js

运行 lhsr 爬虫

node datasource/lhsr_crawler/index.js // 爬虫在 lhsr.log 文件内

导出 json 格式数据

node scripts/to_json.js

导出 csv 格式数据

node scripts/to_csv.js

打印不同种类垃圾统计数据

node scripts/analyse_garbage.js

garbage-classification-data's People

Contributors

alexayan avatar dependabot[bot] avatar

Watchers

James Cloos 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.