Skip to content
Permalink
0b6f1bd8a2
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Latest commit 8f41621 Mar 2, 2022 History
0 contributors

Users who have contributed to this file

8 lines (5 sloc) 205 Bytes
import os
letter = "s"
folder = f"C:\ECE 4132\dataset\my_asl_alphabet_train\{letter}"
for i, file in enumerate(os.listdir(folder)):
os.rename(f"{folder}/{str(file)}", f"{folder}/{letter}_{str(i)}.jpg")