Welcome to the Server Side README for the Shop Sense Client-Server System! In this document, we'll provide an overview of the server-side application, its functionality, and how to set it up.
Before you begin, ensure you have met the following requirements:
Clone the Repository:
git clone https://github.com/YourUsername/shop-sense-server.git
Navigate to the Project Directory:
cd shop-sense-server
Create a Virtual Environment (optional but recommended):
python -m venv venv
Activate the Virtual Environment (Linux/macOS):
source venv/bin/activate
On Windows:
venv\Scripts\activate
Install Dependencies:
pip install -r requirements.txt
Install FFmpeg:
To work with video processing, you'll need FFmpeg. Here's how to install it:
brew install ffmpeg
import os
os.environ["IMAGEIO_FFMPEG_EXE"] = "/path/to/ffmpeg"
Start the Server:
python api.py
The server should now be running and listening for incoming requests.
Go to the client side to start the client app: SHOP-SENSE-WEB
Object Tracking Configuration:
duration = 1 # Time in seconds
skip_detect = 5 # Do object detection every n frames (to not skip any frame, set skip_detect = 1)
desired_interval = 2 # Take every n frames (to not skip any frame, set desired_interval = 1)
duration
, skip_detect
, and desired_interval
according to your specific requirements. These settings control the behavior of the object tracking process.Sort Configuration:
max_age = 2
min_hits = 3
iou_threshold = 0.3