- Team Lead: Anandhu S Nair - CET
- Member 2: Abhinav K P - CET
It finds the speed of fan by giving a video of a rotating fan.
Have you ever laid back in your bed looking at your ceiling and wondered "how fast is my fan spinning?". No? well, we have and that's what motivated us to build this "truely-usefull" project to find the spin with just a video recording from your mobiile. Now with our system, you can find the solution to this revolting question in a matter of seconds.
This project uses computer vision with OpenCV and the Structural Similarity Index (SSIM) to detect when the fan blades return to the same position in a video. By calculating the time between these repeated positions, the program estimates the fan's rotations per minute (RPM) accurately — all from a simple video, without any extra equipment. TLDR: using maths, logic and python
For Software:
- Languages:Python
- Frameworks used:None
- Libraries used: opencv-python – for video processing numpy – for numerical operations scikit-image – for SSIM similarity detection matplotlib (optional) – for plotting result
- Tools used:VS Code,GitHub
For Hardware:
- Main components: Standard table fan or ceiling fan ,Webcam or smartphone camera
- Specifications: Camera resolution ≥ 720p recommended, FPS ≥ 60
- Tools required: Camera
note that this video is necessary for working of code https://github.com/user-attachments/assets/0f5c8e12-c1e0-4100-b359-2673f0be5f87
Of all the frames we separate all of those which shows high similarity with the first frame which evident here
We now plot the frames and their corresponding ssmi scores along side, elengantly enough we can witness a standing wave formation!
for math enthusiasts: it is due to the fact that we are dealing with two different frequencies interfering with each other constructively: that of camera (fps)
and that of fan(rpm)
sample screenshot of code running in action
Made with ❤️ at TinkerHub Useless Projects