- WebHost
- app
- public
- img
- src
- data
- img
- script
- style
- nginx
- server
- routes
- util
- view
- css
- module
- img
- util
- yolov5
- data
- models
- utils
This repository contains the codebase for the A-s Capston Project. Below is an overview of the top-level directories and their respective roles:
The WebHost
directory is central to the web application component of the project, encompassing both frontend and backend functionalities.
- Purpose: Houses the frontend of the web application.
- Contents: Includes user interface elements like HTML, CSS, and JavaScript files. Utilizes Node.js or a similar JavaScript runtime for its operation.
- Functionality: Manages the presentation layer of the web application, rendering the user interface and handling user interactions.
- Purpose: Contains configuration files for the Nginx web server.
- Functionality: Primarily used for serving static content and as a reverse proxy, enhancing the web application's performance and security.
- Purpose: Serves as the backend of the web application.
- Contents: Contains server-side scripts and configuration files.
- Functionality: Responsible for processing requests, data handling, and interactions with databases or other services, ensuring the application's business logic is executed efficiently.
The module
directory contains specialized functionalities and components integral to the project.
- Purpose: Stores images and media files used within the project test.
- Functionality: Provides visual resources for the application test.
- Purpose: Includes utility scripts and modules.
- Functionality: Offers common functions and services that are utilized across
Object detection & Database update
parts of the project, enhancing code reusability and efficiency.
- Purpose: Implements the YOLOv5 (You Only Look Once version 5) model.
- Functionality: Used for object detection tasks, primarily in image processing and computer vision applications within the project, demonstrating cutting-edge AI capabilities.
Each directory is structured to support the project's scalability and manageability, ensuring a clear separation of concerns and efficient project organization.
To get the A-s Capston Project up and running on your local machine, follow these steps:
Ensure you have the following installed:
- Node.js (for the
app
andserver
directories) - Docker (optional, for containerized environments used for Deploy)
- Any other specific dependencies or environment settings required by the project.
-
Navigate to the
app
directory:cd WebHost/app
-
Install the necessary Node.js packages:
npm install
-
Build the frontend application:
npm run build
-
Navigate to the
server
directory:cd WebHost/server
-
Install the necessary Node.js packages:
npm install
you can build and run the application using the provided Dockerfiles and docker-compose.yml.
-
Navigate to the
WebHost
directory:cd WebHost
-
Build and run the containers:
docker-compose up --build
For running modules (like yolov5
for object detection), video sources are required (e.g. parksangjo.mp4, rtsp source ).
-
Navigate to the
module
directory:cd module
-
Run Object Detection & DataBase Update:
python main.py
After following these steps, your application should be running and accessible.