https://github.com/chubek/intresignia
Detect and Classify Red Traffic Signs (Intredit/Prohibition Traffic Signs)
https://github.com/chubek/intresignia
binary-image classify-traffic-sign color-detection color-thresholding detect-traffic-sign gaussian-blur intredit-sign opencv opencv-python orb prohibition-sign python python-module python-package red-traffic-sign ssim structural-similarity thresholding traffic-sign-classification traffic-sign-detection
Last synced: 7 months ago
JSON representation
Detect and Classify Red Traffic Signs (Intredit/Prohibition Traffic Signs)
- Host: GitHub
- URL: https://github.com/chubek/intresignia
- Owner: Chubek
- Created: 2022-04-26T00:34:44.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-14T13:29:17.000Z (over 3 years ago)
- Last Synced: 2023-03-05T12:06:23.971Z (over 2 years ago)
- Topics: binary-image, classify-traffic-sign, color-detection, color-thresholding, detect-traffic-sign, gaussian-blur, intredit-sign, opencv, opencv-python, orb, prohibition-sign, python, python-module, python-package, red-traffic-sign, ssim, structural-similarity, thresholding, traffic-sign-classification, traffic-sign-detection
- Language: Python
- Homepage:
- Size: 1.12 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Intresignia
[](https://circleci.com/gh/Chubek/intresignia/tree/master)
## Status
* [**Verson 0.0.1beta**](https://github.com/Chubek/intresignia/tree/ver0.0.1b) [Deprecated]-> Detection done.
* [**Verson 0.0.2beta**](https://github.com/Chubek/intresignia/tree/ver0.0.2b) [Deprecated]-> Improved magnificantly, with a lot of stuff added, including preliminary classification and loads of parameters.
* [**Verson 0.0.3beta**](https://github.com/Chubek/intresignia/tree/ver0.0.3b) [Current]-> Recognition and Classification.## Quick Test
Test 0.0.3beta here:
[](https://colab.research.google.com/github/Chubek/chubek/blob/master/v0_0_3b_detect_nb.ipynb)
## What is this?
This is a Python package that uses color thresholding and other classical vision methods through OpenCV to detect a subset of intredit (prohibition) traffic signs. It will detect and classify any sign that is red.
## How to Use?
1. This package is not hosted on PyPi so don't try installing it with pip like that. Just do this:
```bash
python3.10 virtualenv venv
source venv/bin/activate (on Linux) or venv/vin/activate.ps1 (Windows)
python3.10 pip install git+https://github.com/chubek/intresignia.git
```This will install the package. Mind you that you need to install Python 3.10. It does not use any of its feaures yet but it will pretty soon.
2. Create a new Python file and:
```python
from intresignia import Settings, intresignia_detect
import cv2
from pprint import pprintst = Settings()
det, ssim_scores, coords, color_isolated = intresignia_detect("/path/to/img.png", st)
pprint(ssim_scores)
pprint(coords)cv2.imshow('Detected Signs', det)
cv2.waitKey(0)
cv2.destroyAllWindows()```
An exhaustive list of settings + grid search to find the best params using `grid_search.py` will be added to this readme pretty soon. Meanwhile please use the `help(Settings)`.Any questions regarding this library should be directed at Chubak#7400.