Skip to content

Latest commit

 

History

History
133 lines (100 loc) · 6.23 KB

README.md

File metadata and controls

133 lines (100 loc) · 6.23 KB

Plastic Origin labelcv-web

Proudly Powered by SURFRIDER Foundation Europe, this open-source initiative is a part of the PLASTIC ORIGINS project - a citizen science project that uses AI to map plastic pollution in European rivers and share its data publicly. Browse the project repository to know more about its initiatives and how you can get involved. Please consider starring ⭐ the project's repositories to show your interest and support. We rely on YOU for making this project a success and thank you in advance for your contributions.


Welcome to Plastic Origin labelcv-web - a Web UI for Label CV platform - the source code of Trashroulette used to manually annotate images. It can be used to build datasets of labelled images featuring items of interest in order to train an artificial intelligence model to detect and count those items. At Surfrider, we're labeling litter items.

Getting Started

Prerequisites

Before you begin, ensure you have met the following requirements:

Technical stack

  • Language: javascript and typescript
  • Framework: Vue and Vuex
  • Unit test framework: Jest
  • Linter : eslint

Installation

To INSTALL FRONT, follow these steps:

git clone https://github.com/surfriderfoundationeurope/labelcv-web
cd
git fetch 
git checkout refacto-from-develop

To LAUNCH FRONT:

npm install 
npm run serve

Usage

There are three different usage possible :

  • In development with in memory images and trash-types : nothing special to do, it will fall back to this mode if no config files are found.
  • In development with a local API :
    1. Follow the instruction on how to launch LabelCV backend described in the Additional information section at the end of this README.
    2. create a file ./public/config.prod.json with {"url": "http://localhost:443/" }
  • In production : create a file ./public/config.prod.json with {"url": "path/to/labelCV/api" }

Contributing

It's great to have you here! We welcome any help and thank you in advance for your contributions.

  • Feel free to report a problem/bug or propose an improvement by creating a new issue. Please document as much as possible the steps to reproduce your problem (even better with screenshots). If you think you discovered a security vulnerability, please contact directly our Maintainers.

  • Take a look at the open issues labeled as help wanted, feel free to comment to share your ideas or submit a pull request if you feel that you can fix the issue yourself. Please document any relevant changes.

If you're part of Surfrider Foundation, you can make a branch out of develop and when your work is ready, open a Pull Request from your branch to develop that should be reviewed by someone else ! Otherwise, you can also create a pull request from a fork as explained here.

git checkout -b develop/{custom-name}
git commit -m ...
git push 

And then, you can do a PR from your branch to branch develop.

Maintainers

If you experience any problems, please don't hesitate to ping:

Special thanks to all our Contributors.

License

We’re using the MIT License. For more details, check LICENSE file.

Additional information

Check here how to install and launch our BACK

To INSTALL BACK: Make sure you have a Node version between 12 and 13. You can use nvm to manage the Node versions.

git clone https://github.com/surfriderfoundationeurope/LabelCV
cd LabelCV
git fetch 
git checkout dev
cd api/labelcv-api

Create a .env file in api/labelcv-api and copy-paste (Fields with ***** are private and their content should be asked to Antoine or Christopher )

COSMOSDB_ENDPOINT=https://labelcvdemo.documents.azure.com:443
COSMOSDB_KEY=********
API_PORT=443
AZURE_STORAGE_SAS_KEY=********
AZURE_STORAGE_ACCOUNT=labelcvdevdemo
AZURE_STORAGE_CONTAINER_NAME=labelcvdemo1
COSMOSDB_EMULATOR_USED=true
AZURE_TEST_ENV=********
AZURE_ACCOUNT_NAME=storageplasticodev
AZURE_ACC_KEY=********
PG_IMG_TABLE=images_for_labelling
PG_TRASH_TABLE=campaign.trash_type
PG_LABEL_SCHEMA=label
PG_BOUNDINGBOX_TABLE=bounding_boxes
PG_DATABASE=plastico-dev
PG_USERNAME=writer_user@pgdb-plastico-dev
PG_PWD=********
PG_HOST=pgdb-plastico-dev.postgres.database.azure.com

To LAUNCH BACK:

cd api/labelcv-api
npm install 
npm run start:dev

You should get message Client Postgres connected !