- Member 2: Aleesha Sujith - Muthoot Institute of Technology and Science
- Member 3: Gowri Krishna - Muthoot Institute of Technology and Science
BachchanMeter is a web application that takes in an image of a random tree and gives you it's height in Bachchans! If your tree is 12m tall, then our application measures it in terms of Bachchan units and gives 6.6 Bachchans as output.
To find the height in Bachchan units for a random tree.
It uses pixel height to measure the height of the tree approximately and at times with the use of reference objects. Then the height is divided by Big B's height to give you Bachchan units!
For Software:
- Languages Used: Python, Javascript, HTML, CSS
- Frameworks Used: Flask
- Libraries Used: OpenCV, Flask, Pillow, SciPy
- Tools used: pip, VS Code
For Hardware:
- No hardware used
For Software:
The project uses a Flask backend to handle image uploads and process them using OpenCV.
When a user uploads a photo of a tree, the following steps occur:
- The image is sent to the Flask server via a POST request.
- OpenCV reads and processes the image to detect the tree height in pixels.
- A fixed reference height for Amitabh Bachchan (1.88m) is used to convert the tree's height into "Bachchan units".
- The result is sent back to the frontend as JSON.
- JavaScript updates the webpage to display the number of Bachchans tall the tree is.
Tech stack:
- Python (Flask, OpenCV)
- HTML, CSS, JavaScript
- GitHub for version control
To set up the project locally, first clone the repository using git clone https://github.com/gowrikrishna985/amitabh.git and navigate into the project folder with cd amitabh. It’s recommended to create a virtual environment to keep the project dependencies isolated by running python -m venv venv. Activate the environment with venv\Scripts\activate on Windows or source venv/bin/activate on Mac/Linux.
Once the environment is active, install the required dependencies using pip install flask opencv-python. If you have a requirements.txt file, you can install all dependencies in one go with pip install -r requirements.txt.
After installing the dependencies, start the Flask application by running python app.py
After completing the installation steps, run the Flask server with: python app.py
For Software: This project is a fun web application that estimates the height of a tree in units of Amitabh Bachchan’s height (1.88 m). It uses a Python backend powered by Flask and OpenCV for image processing, with a frontend built using HTML, CSS, and JavaScript.
The home page where photo is to be uploaded
- The user visits the web page.
- The main content is centered and visually appealing, with an animated background.
- The user sees a file upload form labeled "Choose Tree Image".
- The user selects an image of a tree and clicks "Calculate Tree Height".
- The selected image is sent to the Flask backend via a POST request to the
/uploadroute.
- The backend receives the image and saves it temporarily.
- The backend calls the tree analysis logic (in
tree_analyzer.py) to estimate the tree's height from the image. - The estimated height (in meters) is calculated.
- The backend divides the tree height by 1.88 (Amitabh Bachchan's height in meters) to get the number of "Amitabhs".
- The number is rounded to the nearest integer for display.
- The backend deletes the uploaded image after processing.
- The backend renders the
index.htmltemplate, passing:- The estimated tree height (in meters)
- The number of Amitabhs
- Any success or error messages
- The user sees:
- A message with the estimated tree height in meters and as "X Amitabh Bachchans".
- A vertical stack of Amitabh Bachchan images, one for each "Amitabh" calculated.
- (Optionally) The uploaded tree image for visual comparison.
- The user can upload another image to repeat the process.
Summary:
The app provides a fun, visual way to estimate tree height from an image, expressing the result in both meters and as multiples of Amitabh Bachchan's height, with a modern, animated, and responsive UI.
The home page where photo is to be uploaded with a text component.
- Aleesha Sujith: Backend
- Gowri Krishna: Frontend
Made with ❤️ at TinkerHub Useless Projects

