This project is a server application that utilizes a camera to recognize objects in real-time and sends their coordinates to a client. It is designed to be modular, with separate components for camera handling, object recognition, and network communication.
-
Clone the repository:
git clone https://github.com/JianZhang-Group/Cotton-Detection cd Cotton-Detection -
Install dependencies: Ensure you have Python installed, then run:
pip install -r requirements.txtThen, you can follow the instruction on pyorbbecsdk to setup the environment.
-
Configure the application: Edit the
config.yamlfile to set your camera parameters.
To run the application, execute the following command:
python main.py
The application will initialize the server.
Run the following command:
pyinstaller main.py --contents-directory . --add-data "models;models" --add-data "config.yaml;." -n Cotton-Detection
Contributions are welcome! Please submit a pull request or open an issue for any enhancements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.