Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get prediction results. #1

Closed
smfaizanahmed opened this issue Mar 18, 2024 · 2 comments
Closed

Unable to get prediction results. #1

smfaizanahmed opened this issue Mar 18, 2024 · 2 comments
Labels

Comments

@smfaizanahmed
Copy link

objectDetector.detect(imagePath: imagePath)

I am using this function to detect objects using Yolov8. The function returns Future<List<DetectedObject?>?>. The documentation does not provide how this will be used to take detections and render boxes.
Please guide how can we use this output?

I want to know if there are widget functions that will directly preview the results on screen like Flutter_pytorch uses renderBoxes function. And how can we get those labels and boxes to save them in txt or display the results in dialogue boxes.

@sergiossm
Copy link
Member

sergiossm commented Mar 25, 2024

Hey @smfaizanahmed thanks for reaching out!

We're still working on the documentation and planning on making it as extensive as possible.

For your specific use case, if you look at the detect_view.dart file in the example app, you'll see how to draw the results of the detection for a static image in line 66.

else if (detectionList is List<DetectedObject>)
  CustomPaint(
    painter: ObjectDetectorPainter(
      detectionList,
    ),
  ),

Hope this helps!

Copy link

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐

@github-actions github-actions bot added the Stale label Apr 25, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants