Comments (3)
Hello! Thanks for sharing your innovative idea for the hackathon! It's great to see how you plan to use YOLO for helping people with visual impairment. Incorporating distance estimation and feedback mechanisms like vibration or natural language processing sounds like a promising approach.
For estimating distance, one common method is to use the known dimensions of an object and the size of its bounding box in the image. However, this requires a calibrated setup because distance perception can vary significantly depending on the camera specs (like focal length) and the actual size of the object.
Hereβs a simplified pseudocode snippet to get you started with a distance estimation approach based on the size of the bounding box. Keep in mind this is quite basic and may need calibration for practical accuracy:
def estimate_distance(box_width, focal_length, known_width):
# Simple distance formula: D = (W * F) / P
distance = (known_width * focal_length) / box_width
return distance
To integrate this, you would need the focal length of your camera (which you can calibrate manually or find in the camera specs), and the actual width of the object in some consistent unit.
To warn the user as they approach an object, you could set a threshold distance and use a TTS library when the threshold is crossed:
import pyttsx3 # Text-to-Speech conversion library
def warn_user(distance, threshold):
if distance < threshold:
engine = pyttsx3.init()
engine.say("Caution, object nearby!")
engine.runAndWait()
You would call warn_user(distance, threshold)
inside your loop where bounding boxes are processed.
These samples are basic and may require modification to fit the exact needs of your application, such as dynamic adjustment according to different object sizes or different feedback mechanisms based on user preferences.
Good luck with your project at the hackathon, and feel free to reach back out if you need further assistance! π
from ultralytics.
done
from ultralytics.
@anishka07 great to hear that youβve resolved it! If you have any more questions or need further assistance in the future, just let us know. Happy coding! ππ
from ultralytics.
Related Issues (20)
- why CPU always 100% HOT 2
- Bug in function `det.summary()` for `ultralytics>=8.2.10`: HOT 2
- Object undetectable after a while HOT 1
- TensorFlow.js: export failure HOT 1
- TensorFlow SavedModel: export failure β 1.2s: permute(sparse_coo)
- [Question] How to do validation with custom dataloader HOT 1
- FPN code HOT 3
- How to run YOLOv8 predict on GPU without CUDA? HOT 1
- Why my result predicted object has no bounding box? HOT 1
- how to save and load my custom model HOT 4
- segmentation fault(core dumped)
- Parameter fusion HOT 1
- Install ultralytics with pre-installed Pytorch HOT 1
- argument save_dir doesn't work HOT 1
- Inference/postprocessing yolov8n on rockchip 3588 HOT 1
- I am looking for an Assisted Labeling tool where i can use my trained yolo models to assist during labeling process.
- Instance segmentation custom model training HOT 1
- Fine-tuning YOLOv8n Model on Two New Classes HOT 1
- Exception with YOLOWorld ONNX export in dynamic mode
- How cna I validate my model with no-square γ640*384(w*h)γimage size? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ultralytics.