Git Product home page Git Product logo

darkviz's Introduction

๐Ÿ“ท Android Camera Object Detection with YOLOv5

Low light object detection using Android Camera and YOLOv8

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.

Features

  • 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

Requirements

  • Android device with camera
  • ADB (Android Debug Bridge) installed on your computer
  • YOLOv5 model and weights
  • Python environment with the required dependencies

Setup

  1. Clone the repository:

    git clone [https://github.com/sachinlodhi/LL_IntDet.git](https://github.com/sachinlodhi/Darkviz)
    
  2. Connect your Android device to your computer via USB.

  3. Enable USB debugging on your Android device.

Connecting Android Device using ADB over Wi-Fi

To connect your Android device to your computer using ADB over Wi-Fi, follow these steps:

  1. Connect your Android device to your computer via USB.

  2. Enable USB debugging on your Android device.

  3. Open a terminal or command prompt on your computer.

  4. Run the following command to check if your device is recognized:

adb devices

You should see your device listed as a connected device.

  1. Run the following command to connect your device over Wi-Fi:
adb tcpip 5555
  1. Disconnect your Android device from the computer.

  2. Find the IP address of your Android device. You can usually find it in the Settings under "About phone" or "About device."

  3. 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.

  1. If the connection is successful, you should see a message indicating that the device is connected.

  2. You can now disconnect the USB cable from your Android device.

  3. Install the required Python dependencies:

pip install -r requirements.txt

Usage

  1. Launch the application on your computer.

  2. Open a terminal and navigate to the project directory.

  3. Connect your Android device to your computer via USB.

  4. Ensure that USB debugging is enabled on your Android device.

  5. Run the application:

    python connector.py
    
  6. The application will send ADB commands to the Android device to capture images.

  7. YOLOv5 will process the captured images and detect objects.

  8. Detected objects will be highlighted and labeled on the images.

  9. The results can be accessed and analyzed within the application.

Contributing

Contributions are welcome! If you would like to contribute to this project, please follow these steps:

  1. Fork the repository.

  2. Create a new branch for your feature or bug fix.

  3. Make your changes and commit them.

  4. Push your changes to your forked repository.

  5. Submit a pull request to the main repository.

License

This project is licensed under the MIT License.

Acknowledgments

Contact

If you have any questions, suggestions, or feedback, please feel free to contact me at [email protected].

Happy object detecting! ๐Ÿ˜Š๐ŸŒฑ๐Ÿ“ท

darkviz's People

Contributors

sachinlodhi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.