This is a tool to help people to make a bot for labelling images for machine learning projects.

Overview

labeller_images_python_telegramBOT

This is a bot to help collect data for any machine learning project.
It was developed using the python-telegram-bot

Usage & steps

  1. download the repo, and install python-telegram-bot:
git clone https://github.com/diesilveira/labeller_img_python_telegram_BOT.git
cd labeller_img_python_telegram_BOT
pip install python-telegram-bot --upgrade
  1. Create a configuration file in the same folder as main.py with the name conf.py copy and paste the following text:
TOKEN: str = 'YOUR TOKEN'

#Like D:/Descargas/cleanAndDirtyImages
PATH_FOLDER: str = 'YOUR PATH'
LOCAL = 'false'

BUTTONS = ["BUTTON1", "BUTTON2", "BUTTON3", "BUTTON4"]
QUESTION = 'QUESTION TO THE PEOPLE ABOUT THE IMAGE?'
CHOSE = 'Chose: '
GREETING = ' Welcome and thanks for your help!'

In TOKEN you must copy and paste the token of your bot, previously created.
You can see how to at: How do I create a bot? - telegram or following these steps:
For create a bot with telegram and get your TOKEN:

  • send /newbot to BotFather from your telegram
  • then you must to set the name, shortname and description(optional)
  • botFather send you your TOKEN.

In PATH_FOLDER you must put the path of the folder that contains your set images (for run local with images in your pc)
If you want to use images from the web you must set LOCAL = 'false', create a file named "url_images.txt" in the same folder of the main.py that contains the name of the image, and the url separated by ";". importan: the url link provided must be a direct link to the file!

In buttons, the name of the buttons, or labels for the image you sent. You can put all the buttons you want.
In question, the question that you will send to next to image.

  1. Last, RUN the project and voila, the bot is running now.

In the log.txt file the names of the images will be saved with their respective labels and in the finished file the images that have already been labeled so as not to label them twice

The buttons will be shown in two columns, in case the number of buttons is odd, the first one will occupy the entire row

Motivation

It arose as a response to one of the great problems with image sets, we do not know which is which, or how to receive feedback from other people about the images we have in order to better label them.

My Own bot

Hi! I'm Diego and you can see my own bot CleanDirtyContainer_bot inspired by Rodrigo's ML project on the classification of garbage containers in the Montevideo city clean-dirty-preprocess-baseline.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Next features in order of importance:

  • auto-delete cell images after tag
  • correct label when you failed
  • improve welcome and help message
  • implement internal buffer so that the images go faster
  • login users who tag
  • optional "skip image" button
  • log who tagged
  • verify that all buttons are different
  • support that only a closed group of users can tag
  • admit N labels for the same image, by N different people (that is, instead of a single person saying if it is a clean or dirty container, let N people do it, with N configurable)

License

MIT

Owner
Diego Silveira
Diego Silveira
A Powerful telegram giveawayz bot based on the python-telegram-bot API

GiveawayZ Bot A Powerful telegram giveawayz bot based on the python-telegram-bot API. Powered by Team Zyntax and Team DFX Developed by @Zycho-Dev A pr

Zycho #AFK 5 Jul 31, 2022
Posts locally saved videos to the desired subreddit

redditvideoposter posts locally saved videos to the desired subreddit ================================================================= STEPS: pip ins

Kyrus 2 Dec 01, 2021
An API wrapper for Discord written in Python.

discord.py A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python. Key Features Modern Pythonic API using asyn

Danny 12k Jan 08, 2023
DEPRECATED - Official Python Client for the Discogs API

⚠️ DEPRECATED This repository is no longer maintained. You can still use a REST client like Requests or other third-party Python library to access the

Discogs 483 Dec 31, 2022
AWS Lambda - Parsing Cloudwatch Data and sending the response via email.

AWS Lambda - Parsing Cloudwatch Data and sending the response via email. Author: Evan Erickson Language: Python Backend: AWS / Serverless / AWS Lambda

Evan Scott Erickson 1 Nov 14, 2021
Benachrichtigungs-Bot für das niedersächische Impfportal / Notification bot for the lower saxony vaccination portal

Ein kleines Wochenend-Projekt von mir. Der Bot überwacht die REST-API des niedersächsischen Impfportals auf freie Impfslots und sendet eine Benachrichtigung mit deinem bevorzugtem Service. Ab da gilt

sibalzer 37 May 11, 2022
An alternative to OpenFaaS nats-queue-worker for long-running functions

OpenFaas Job Worker OpenFaas Job Worker is a fork of project : OSCAR Worker - https://github.com/grycap/oscar-worker Thanks to Sebástian Risco @srisco

Sebastien Aucouturier 1 Jan 07, 2022
Info gathering | API hacketarget.com

InfoFetch Info gathering | API hackertarget.com set-up: apt-get install python3 pip3 install requests apt-get install git git clone https://github.com

Muhammed Rizad 4 Nov 22, 2021
A library that revolutionizes the way people interact with NextDNS.

NextDNS-API An awesome way to interface with your NextDNS account - via Python! Explore the docs » Report Bug . Request Feature Table Of Contents Abou

34 Dec 07, 2022
Trading bot that uses Elon Musk`s tweets to know when to buy cryptocurrency.

Elonbot Trading bot that uses Elon Musk`s tweets to know when to buy cryptocurrency. Here is how it works: Subscribes to someone's (elonmusk?) tweets

153 Dec 23, 2022
Find Roblox Groups & Send To Discord

Roblox-Group-Finder A tool to help you find ownerless roblox groups :) It's really easy, all you need is a discord webhook :) It will not send locked

1 Dec 13, 2021
Discord feeder for AIL

ail-feeder-discord Discord feeder for AIL Warning! Automating user accounts is technically against TOS, so use at your own risk! Discord API https://d

ail project 6 Mar 09, 2022
GitGram Bot. Bot Then Message You Your Repo Starts, Forks, And Many More

Yet Another GitAlertBot Inspired From Dev-v2's GitGram Run Bot: Local Host Git Clone Repo : For Telethon Version : git clone https://github.com/TeamAl

Alina RoBot 2 Nov 24, 2021
Unofficial API wrapper for seedr.cc

Seedr API Unofficial API wrapper for seedr.cc Inspired by theabbie's seedr-api Powered by @harp_tech (Telegram) How to use You can install lib via git

Anjana Madu 49 Oct 24, 2022
Invites link generator for telegram(made for channel referral links)

InviteLinkGen Invites link generator for telegram(for channel referral links) made for @HelakuruEsana channel Spotify Giveaway

Jaindu Charindith 7 Feb 01, 2022
⚡ A really fast and powerful Discord Token Checker

discord-token-checker ⚡ A really fast and powerful Discord Token Checker How To Use? Do pip install -r requirements.txt in your command prompt Make to

vida 25 Feb 26, 2022
Python client for the Socrata Open Data API

sodapy sodapy is a python client for the Socrata Open Data API. Installation You can install with pip install sodapy. If you want to install from sour

Cristina 368 Dec 09, 2022
This an API wrapper library for the OpenSea API written in Python 3.

OpenSea NFT API Python 3 wrapper This an API wrapper library for the OpenSea API written in Python 3. The library provides a simplified interface to f

Attila Tóth 159 Dec 26, 2022
Criando Lambda Functions para Ingerir Dados de APIs com AWS CDK

LIVE001 - AWS Lambda para Ingerir Dados de APIs Fazer o deploy de uma função lambda com infraestrutura como código Lambda vai numa API externa e extra

Andre Sionek 12 Nov 20, 2022
Bulk NFT uploader to OpenSea!

Bulk NFT Uploader Description Simple easy peasy python script which logins to opensea account using metamask and bulk uploads NFT to your default coll

Lakshya Khera 25 May 23, 2022