ultralytics / yolo-flutter-app

A Flutter plugin for Ultralytics YOLO computer vision models
https://ultralytics.com
GNU Affero General Public License v3.0
60 stars 22 forks source link

Need help with stopping and resuming object detection in ultriclitics_yolo model in Flutter #43

Closed nikhilgarala-tecblic closed 3 weeks ago

nikhilgarala-tecblic commented 1 month ago

Hello Team,

I am trying to achieve a scenario where I can stop the prediction of the ultriclitics_yolo model when an object is detected, and then resume it later. Currently, I am using controller.pushPredirection() to attempt to stop the prediction, but it doesn't seem to work as expected. After calling this method, the prediction continues.

My goal is to display some images when an object is detected, and during this time, I want to halt the ultriclitics_yolo model's detection process. When the user interacts with the displayed images (e.g., by clicking on a close icon), I would like to resume the prediction.

Could you please guide me on how to achieve this in Flutter using ultralitics?

nikhilgarala-tecblic commented 3 weeks ago

Thank you for the answer !

glenn-jocher commented 3 weeks ago

@nikhilgarala-tecblic hello,

You're welcome! 😊 I'm glad I could help. If you encounter any further issues or have additional questions, please don't hesitate to ask.

If you believe there might be a bug or unexpected behavior, I recommend verifying that the issue persists with the latest versions of the Ultralytics YOLO model and any related packages. Keeping everything up-to-date can often resolve unexpected issues.

Feel free to share any more details or specific challenges you face, and I'll be happy to assist further. The Ultralytics community and team are here to support you!