This codebase for IUB Bongomarine Alpha which utilizes pyserial
, flask
, and jsonify
libraries.
-
"control_system" folder contains the microcontroller and tethered remote controlling software. Where "main-mega-aid-Auto" folder is the current working codebase.
-
"sauvc_objectdetection" folder contains the autonomous controlling codebase. Where "mqualify.py" is the currect working file.
To install the required dependencies, follow the steps below:
-
Make sure you have Python installed on your system. You can download it from the official Python website: https://www.python.org/downloads/
-
Open a terminal or command prompt and navigate to the project directory.
-
Create a virtual environment by running the following command: (Optional)
python -m venv venv
-
Activate the virtual environment: (Optional)
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
-
Install the required dependencies using
pip
:pip install pyserial flask jsonify pip install pyuac pypiwin32 (If using windows)
To run the application, follow the steps below:
-
Make sure you have activated the virtual environment (if not already activated). (It is optional, only do it if you've created a virtual environment)
-
Run the check_camera.py file to identify the Camera index for opencv.
-
Change the camera = cv2.VideoCapture(1) in the runme.py file (Change 1 to your camera index).
-
(MUST DO) Add the required data parameters in the header array to add headers of the csv file.
-
Run the main script:
Run "python data.py" if you want to run only the sensor data collection and controller app. Run "python runme.py" if you want to run the sensor and video data collection and controller app.
-
Access the application in your web browser at
http://localhost:5000
.
This project is licensed under the GNU License.