Ever Wonder whether an image you just took wil get as many views and likes as you think it would , will maybe not but major companies would for their marketing and business, PhotoEstimator is a web application that determines whether the photo you're going to upload on Instagram is likely to be a "good" one or not. By analyzing your past Instagram photos and their performance, it uses a Convolutional Neural Network (CNN) to predict the potential success of your new photo based on the number of likes it might receive.
- Instagram Integration: Connect your Instagram profile to the web app.
- Photo Analysis: Scrapes and analyzes your past photos and likes.
- Predictive Modeling: Uses a CNN to predict the success of a new photo.
- User-Friendly Interface: Simple interface to upload and analyze photos.
- Instagram Profile Connection: The user enters their Instagram profile, and the web app sends a follow request using the Instagram API.
- Data Scraping: The app scrapes the user's photos and gathers data on the number of likes each photo received.
- Model Training: The application trains a Convolutional Neural Network (CNN) using the scraped photos and their like counts to understand patterns and features of popular photos.
- Prediction: When the user wants to upload a new photo, the app predicts whether it will be a hit or not relative to the maximum and minimum number of likes received on the user's past photos.
- Python 3.x
- Flask
- Instagram API credentials
- Machine Learning libraries (e.g., TensorFlow ,keras,sklearn)
-
Clone the repository:
git clone https://github.com/Amine-Zitoun/Photo-Estimator.git cd Photo-Estimator
-
Set up the backend:
python3 -m venv venv source venv/bin/activate pip install -r requirements.txt
-
Set up Instagram API:
- Obtain Instagram API credentials and set them up in the environment variables or a configuration file.
-
Run the application:
flask run
- Open your web browser and navigate to
http://localhost:5000
. - Enter your Instagram profile username.
- Allow the app to send a follow request and scrape your photos.
- Upload a new photo to see the prediction on its potential success.
- Python: Backend processing and data handling.
- Flask: Web framework for the backend.
- Instagram API: To connect and scrape user data.
- TensorFlow/Keras: For training and using the Convolutional Neural Network.
- HTML/CSS: Frontend development.
Contributions are welcome! Please fork this repository and submit a pull request for review.
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch
- Make your changes and commit them:
git commit -m "Description of your changes"
- Push to the branch:
git push origin feature-branch
- Submit a pull request.