This project aims to provide a solution for object detection in low-light conditions using the Android camera. It utilizes YOLOv5, a state-of-the-art real-time object detection model, to identify objects in the captured images. The project is specifically designed to assist farmers in detecting objects of interest in low-light environments.
- Capture images from the Android camera using ADB commands
- Apply YOLOv5 for real-time object detection
- Highlight and label detected objects
- Designed for low-light conditions
- Targeted towards farmers and agricultural applications
- Android device with camera
- ADB (Android Debug Bridge) installed on your computer
- YOLOv5 model and weights
- Python environment with the required dependencies
-
Clone the repository:
git clone [https://github.com/sachinlodhi/LL_IntDet.git](https://github.com/sachinlodhi/Darkviz)
-
Connect your Android device to your computer via USB.
-
Enable USB debugging on your Android device.
To connect your Android device to your computer using ADB over Wi-Fi, follow these steps:
-
Connect your Android device to your computer via USB.
-
Enable USB debugging on your Android device.
-
Open a terminal or command prompt on your computer.
-
Run the following command to check if your device is recognized:
adb devices
You should see your device listed as a connected device.
- Run the following command to connect your device over Wi-Fi:
adb tcpip 5555
-
Disconnect your Android device from the computer.
-
Find the IP address of your Android device. You can usually find it in the Settings under "About phone" or "About device."
-
Run the following command to connect to your device over Wi-Fi:
adb connect <android-device-ip-address>:5555
Replace <device-ip-address>
with the actual IP address of your device.
-
If the connection is successful, you should see a message indicating that the device is connected.
-
You can now disconnect the USB cable from your Android device.
-
Install the required Python dependencies:
pip install -r requirements.txt
-
Launch the application on your computer.
-
Open a terminal and navigate to the project directory.
-
Connect your Android device to your computer via USB.
-
Ensure that USB debugging is enabled on your Android device.
-
Run the application:
python connector.py
-
The application will send ADB commands to the Android device to capture images.
-
YOLOv5 will process the captured images and detect objects.
-
Detected objects will be highlighted and labeled on the images.
-
The results can be accessed and analyzed within the application.
Contributions are welcome! If you would like to contribute to this project, please follow these steps:
-
Fork the repository.
-
Create a new branch for your feature or bug fix.
-
Make your changes and commit them.
-
Push your changes to your forked repository.
-
Submit a pull request to the main repository.
This project is licensed under the MIT License.
- YOLOv5 - https://github.com/ultralytics/yolov5
- Android Debug Bridge (ADB) - https://developer.android.com/studio/command-line/adb
If you have any questions, suggestions, or feedback, please feel free to contact me at sachinlodhi@csu.fullerton.edu.
Happy object detecting! 😊🌱📷