This repository uses methods from the yolov5 🚀 repository. Our dataset can be found here.
This project aims at creating a CLI tool that detects brands in a video.
The brands that can be recognized (click to expand)
["Republic of Gamers", "Hello Fresh", "Displate", "KiwiCo", "World of Tanks", "Dollar Shave Club", "SkillShare", "Manscaped", "Rhinoshield", "Raid shadow legends", "Worlds of Warships", "Fruitz", "War Thunder", "Redbull", "Squarespace", "Brilliant.org", "Logitech", "DBrand", "Honey coupon", "Gorillas brand", "levlup", "Ridge wallet", "ExpressVPN", "State of Survival", "Coca Cola", "Crunchyroll", "Uber Eats", "Surfshark", "Corsair", "Lootcrate", "Amazon", "audible", "NordVPN", "GFuel", "Genshin Impact", "TunnelBear VPN", "Microsoft", "Winamax"]You will need python>=3.7 and pytorch.
git clone https://github.com/HumanBojack/BrandSeeker
cd BrandSeeker/App
pip install -r requirements.txtNote: In order to make easier and faster predictions, we recommand using Colab or Kaggle.
First, place your video in the input_video folder.
Then, in your terminal, run:
# BrandSeeker/App
python brandseeker.pyYou might also want to change some parameters.
$ python brandseeker.py --help
usage: brandseeker.py [-h] [-U URL] [-F FRAMERATE] [-S SOURCE] [-O SAVE_DIR] [-A ALPHA] [--save-unprocessed-output]
options:
-h, --help show this help message and exit
-U URL, --url URL A video url. It can be from youtube or a link to a file. (default: None)
-F FRAMERATE, --framerate FRAMERATE
The framerate of the analyzed video. A higher one will take longer to process. (default: 15)
-S SOURCE, --source SOURCE
The folder where your video is. (default: ./input_video)
-O SAVE_DIR, --save-dir SAVE_DIR
The folder where the pdf with predictions will be. (default: ./predictions)
-A ALPHA, --alpha ALPHA
[0-1] A bigger alpha will give more importance to the confidence, otherwise the frames. (default: None)
--save-unprocessed-output
Save an unprocessed dict containing all bounding boxes, frames and confidences. (default: False)
Finally, you can get the outputs in the predictions folder.