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

You might also like...
Insane Weather Bot is here! Give suggestions, fork, and do much more to help us enhance the abilities of Insane Weather Bot.

Insane_Weather_Bot Insane Weather Bot is here! Give suggestions, fork, and do much more to help us enhance the abilities of Insane Weather Bot. Weathe

Easy-apply-bot - A LinkedIn Easy Apply bot to help with my job search.

easy-apply-bot A LinkedIn Easy Apply bot to help with my job search. Getting Started First, clone the repository somewhere onto your computer, or down

Botto - A discord bot written in python that uses the hikari and lightbulb modules to make this bot

❓ About Botto Hi! This is botto, a discord bot written in python that uses the h

A Python Library to Make Quote Images
A Python Library to Make Quote Images

Quote2Image A Python Library to Make Quote Images How To Use? Download The Latest Package From Releases Extract The Zip File And Place Every File In I

Automate TikTok follower bot, like bot, share bot, view bot and more using selenium
Automate TikTok follower bot, like bot, share bot, view bot and more using selenium

Zefoy TikTok Automator Automate TikTok follower bot, like bot, share bot, view bot and more using selenium. Click here to report bugs. Usage Download

This is a simple bot that can be used to upload images to a third-party cloud (image hosting). Currently, only the imgbb.com website supports the bot. I Will do future updates

TGImageHosting This is a simple bot that can be used to upload images to a third party cloud (image hosting). Currently, only the imgbb.com website su

Python Script to download hundreds of images from 'Google Images'. It is a ready-to-run code!

Google Images Download Python Script for 'searching' and 'downloading' hundreds of Google images to the local hard disk! Documentation Documentation H

IMDbPY is a Python package useful to retrieve and manage the data of the IMDb movie database about movies, people, characters and companies

IMDbPY is a Python package for retrieving and managing the data of the IMDb movie database about movies, people and companies. Revamp notice Starting

Find people to play tennis with.
Find people to play tennis with.

40Love 40Love is a full-stack web application that helps tennis players find hits at public tennis courts. Players can select public courts on the map

Owner
Diego Silveira
Diego Silveira
A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.

A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.

Aran 1 Oct 13, 2021
a simple python script that monitors the binance hotwallet and refunds the withdrawal fee to encourage people to withdraw their Nano and help decentralisation

Nano_Binance_Refund_Bot a simple python script that monitors the binance hotwallet and refunds the withdrawal fee to encourage people to withdraw thei

James Coxon 5 Apr 7, 2022
Project glow is an open source bot worked on by many people to create a good and safe moderation bot for all

Project Glow Greetings, I see you have stumbled upon project glow. Project glow is an open source bot worked on by many people to create a good and sa

Glowstikk 24 Sep 29, 2022
Linky bot, A open-source discord bot that allows you to add links to ur website, youtube url, etc for the people all around discord to see!

LinkyBot Linky bot, An open-source discord bot that allows you to add links to ur website, youtube url, etc for the people all around discord to see!

AlexyDaCoder 1 Sep 20, 2022
A reddit bot that imitates the popular reddit bot "u/repostsleuthbot" to trick people into clicking on a rickroll

Reddit-Rickroll-Bot A reddit bot that imitates the popular reddit bot "u/repostsleuthbot" to trick people into clicking on a rickroll Made with The Py

null 0 Jul 16, 2022
Unencrypted Story View Botter is a helpful tool that allows thousands of people to watch your posts.

Unencrypted Story View Botter is a helpful tool that allows thousands of people to watch your posts.

null 8 Aug 5, 2022
Moon-TikTok-Checker - A TikTok Username checking tool that probably 3/4 people use to get rare usernames

Moon Checker (educational Purposes Only) What Is Moon Checker? This is a TikTok

glide 4 Nov 30, 2022
Picot - A discord bot made to fetch images from Pexels and unsplash API and provide raw images directly in channels

Picot A discord bot made to fetch images from Pexels and unsplash API and provid

Ayush Chandwani 5 Jan 12, 2022
A Discord bot to allow people to create lists of random characters, with limit reroll options.

Mugen Bot A small bot I made to practice python and allow people to publically select random characters on a discord server. Uses py-cord, as that is

Haley 2 Feb 6, 2022
MemeBot - A discord bot that tracks how good people's memes are

MemeBot A discord Meme "Karma" Tracking bot Dependancies Make sure you have pymongo installed and a mongodb cluster setup with two collections. pip in

Uday Sharma 3 Aug 10, 2022