The Human Counting App is a modern web application designed to count humans in images or video streams using advanced detection algorithms. It features a robust backend API for processing and a user-friendly frontend interface built with Vue.js for seamless image uploads and real-time result visualization.
- Image Upload: Easily upload images to detect and count humans
- Real-time Results: Receive instant feedback with the number of humans detected
- Responsive UI: A clean, intuitive interface powered by Vue.js and Vite for fast performance
- Scalable Backend: Processes images efficiently with a Python-based server
human-counting-app/
├── backend/
│ ├── main.py # Backend server entry point
│ ├── requirements.txt # Python dependencies
│ └── .env # Environment variables for backend configuration
├── frontend/
│ ├── src/
│ │ ├── components/
│ │ │ └── ImageUploader.vue # Vue component for image uploads
│ │ ├── App.vue # Main Vue app component
│ │ └── main.js # Frontend app entry point
│ ├── public/
│ │ └── index.html # Static HTML template
│ ├── package.json # Frontend dependencies and scripts
│ └── vite.config.js # Vite build tool configuration
- Backend: Python 3.8+, pip
- Frontend: Node.js 16+, npm
- A modern web browser (e.g., Chrome, Firefox)
-
Navigate to the backend directory:
cd backend -
(Optional) Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Configure environment variables:
- Create a
.envfile in thebackend/directory - Add necessary configurations (e.g., API keys, port settings)
- Create a
-
Run the backend server:
python main.py
-
Navigate to the frontend directory:
cd frontend -
Install Node.js dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and visit the URL displayed in the terminal (typically
http://localhost:3000)
The backend uses a .env file to manage sensitive configurations (e.g., API keys, server port).
Example .env file:
API_KEY=your_api_key_here
PORT=8000Ensure the .env file is created and configured before running the backend.
- Launch the backend server (
python main.py) - Start the frontend development server (
npm run dev) - Open the app in your browser
- Use the interface to upload an image and view the human count results in real time
Contributions are welcome! To contribute:
- Fork the repository
- Create a new branch for your feature or bug fix:
git checkout -b feature/your-feature-name
- Commit your changes and push to your fork
- Submit a pull request with a clear description of your changes
For major changes, please open an issue first to discuss the proposed updates.
This project is licensed under the MIT License.
For questions or support, please open an issue on the repository or contact the maintainers.