Learn practical skills, build real-world projects, and advance your career

Identifying How Worn Out are the Threads of the Tires

This project is to identify if thread on the tire is worn out and need replacement or not and the ire is still usable

pip install jovian --upgrade           # Install the jovian library 
Collecting jovian Downloading jovian-0.2.16-py2.py3-none-any.whl (63 kB) |████████████████████████████████| 63 kB 1.0 MB/s eta 0:00:011 Requirement already satisfied, skipping upgrade: click in /opt/conda/lib/python3.7/site-packages (from jovian) (7.1.1) Collecting uuid Downloading uuid-1.30.tar.gz (5.8 kB) Requirement already satisfied, skipping upgrade: pyyaml in /opt/conda/lib/python3.7/site-packages (from jovian) (5.3.1) Requirement already satisfied, skipping upgrade: requests in /opt/conda/lib/python3.7/site-packages (from jovian) (2.23.0) Requirement already satisfied, skipping upgrade: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /opt/conda/lib/python3.7/site-packages (from requests->jovian) (1.24.3) Requirement already satisfied, skipping upgrade: chardet<4,>=3.0.2 in /opt/conda/lib/python3.7/site-packages (from requests->jovian) (3.0.4) Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in /opt/conda/lib/python3.7/site-packages (from requests->jovian) (2020.4.5.2) Requirement already satisfied, skipping upgrade: idna<3,>=2.5 in /opt/conda/lib/python3.7/site-packages (from requests->jovian) (2.9) Building wheels for collected packages: uuid Building wheel for uuid (setup.py) ... done Created wheel for uuid: filename=uuid-1.30-py3-none-any.whl size=6500 sha256=8701c58b0284e38ed3f36f5736c0ebcd2f4bf1cfe8e6085cc7b32c4506a04a5b Stored in directory: /root/.cache/pip/wheels/2a/ea/87/dd57f1ecb4f0752f3e1dbf958ebf8b36d920d190425bcdc24d Successfully built uuid Installing collected packages: uuid, jovian Successfully installed jovian-0.2.16 uuid-1.30 Note: you may need to restart the kernel to use updated packages.

Getting sample images

We downloaded sample images from Google image search and cleaned them up a bit.

For worn out tire threads we used search string "worn out tire thread" and for new tire threads we used "new tire tread"

After perfroming search in google image search we downloaded the images using the following script:

urls=Array.from(document.querySelectorAll('.rg_i')).map(el=> el.hasAttribute('data-src')?el.getAttribute('data-src'):el.getAttribute('data-iurl'));
window.open('data:text/csv;charset=utf-8,' + escape(urls.join('\n')));

Resulting URLS we downloaded and cleaned out one by one

# Uncomment and run the commands below if imports fail
# !conda install numpy pandas pytorch torchvision cpuonly -c pytorch -y
# !pip install matplotlib --upgrade --quiet