Welcome to the express guide to mastering FocusFrameFinder! 🧭✨
- Python 3.8 or higher (Because we like to stay updated! 😉)
- Python packages: cv2, numpy, os, shutil, tqdm (Don't worry, we'll guide you on how to get these!)
Alright, enough talk, let's get down to business!
- Fork the repo.
- Clone the repository:
git clone https://github.com/your-github-handle/focusframefinder.git
- Navigate to the cloned directory:
cd focusframefinder
- Install necessary packages:
pip install opencv-python numpy tqdm
- Fire up your terminal and run:
python focusframefinder.py
- You'll be prompted to enter your image directory. Type in the full path, and hit
Enter
🏞. - Let the program do its thing! It will calculate the focus measure for each image. (Don't worry, we've got a loading bar to keep you company! 🥳)
- Once done, you'll see some nifty stats about your image focus measures - minimum, maximum, average, and median 📊. This will help you set your blurriness threshold.
- You'll be prompted to enter the percentage of blurriest frames you want to move. Type it in and hit
Enter
🎯. - Sit back and relax! Your blurry frames will be moved to a new sub-folder called
blurry
📦.
And voila! You've just given your image sequence a blur-free makeover! 🎉