YOLOMobileVision leverages the YOLOv8 model to bring object detection and distance measurement capabilities directly to your mobile device. By simply using your mobile phone camera, you can detect objects in real-time and estimate their distance from the camera. This application is built on Ultralytics's YOLOv8 model and customized to make advanced computer vision techniques accessible and user-friendly for mobile users.
compressed.mp4
Note: View from mobile camera
- Object Detection: Detect various objects in the camera's field of view with high accuracy.
- Distance Measurement: Estimate the distance of detected objects from the camera.
- Mobile Compatibility: Designed specifically for use with mobile phone cameras.
- A mobile phone with a camera.
- A mobile camera streaming app to stream your mobile camera feed a specific IP address to your computer. One option is to use 'DroidCam', which is widely available and user-friendly, free of charge. Please follow the instructions carefully to set up DroidCam on your device and ensure you protect your IP address from being exposed.
- Clone the repository to your local machine:
git clone https://github.com/Op27/YOLOMobileVision.git
- Install the required Python dependencies:
pip install cv2-python pip install ultralytics pip install matplotlib
Make sure you have Python and pip installed on your system before running the above command.
- Install DroidCam on your mobile device and follow the setup instructions to start streaming your camera feed.
- Ensure your mobile device and the computer running YOLOMobileVision are connected to the same network.
- Upon setting up DroidCam, you will be provided with an IP address and port number. Enter this information into the 'camera_url' variable in the application code to connect the stream.
- Handle your IP address with care to avoid unauthorized access to your device. Only use secure, trusted networks while streaming your camera feed.
- Set up your mobile phone to stream its camera feed to your computer.
- Update the camera_url in the code to match your stream's IP address and port.
- Run the application:
python app.py
- Point your mobile phone camera at objects to detect them and measure their real-time distance.
Sincere gratitude to the YOLO team and Ultralytics for developing and maintaining the YOLOv8 model, which serves as the backbone of this YOLOMobileVision application. Their pioneering work in the field of computer vision has enabled me to create an application that brings object detection and distance measurement capabilities to mobile devices.
Your contributions to YOLOMobileVision are always welcome!
This project is licensed under the MIT License - see the LICENSE file for details.