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

objection tracking doesn't work for me #1

Open
lzzhangar opened this issue Jun 19, 2017 · 7 comments
Open

objection tracking doesn't work for me #1

lzzhangar opened this issue Jun 19, 2017 · 7 comments

Comments

@lzzhangar
Copy link

This is a great demo, thanks first Jeff. However, unfortunately, I couldn't get this working the same way as you have in your video. When I tapped to start tracking, the red bounding box just zoomed out, getting smaller and smaller. Sometime, the bounding box disappeared, I had to tap to start tracking again. Is there some known limitation on this demo or vision framework?

@jeffreybergier
Copy link
Owner

I spoke with Frank while I was at WWDC. Frank was the awesome German dude that gave the WWDC talk on vision. He gave some tips. Mostly that the number of distinctive visual features in an object really matters for tracking. Also that the rectangle around the object was important. In this demo, I just draw a square. In reality, you would want the user to be able to trace a rectangle around the object as that would give the vision system a way better clue how to follow it.

I found the vision system really works best with product packaging on a relatively plain background. Like in the video on this post. The product packaging has lots of features and colors and the vision system does a good job tracking it.

I think my overall assessment of it, is that its not as good or as useful as I was hoping. What I really wanted was to be able to find all the objects in a scene and then use coreML to find out the kind of object each thing was. The vision system can't detect objects, it can only follow them once they have been pointed out to the system. I also tried passing CoreML object recognition on the same rectangle that is being tracked and it just didn't work well.

Hopefully I'll have more time to play with it in the future. Or someone way smarter than me can get it to do something really useful :)

@lzzhangar
Copy link
Author

Thanks Jeff. Same as you, I am trying to use Vision Framework + CoreML, not only to detect object, but track object as well. Will try more and post here if I find something interesting and get something work well.

@jeffreybergier
Copy link
Owner

@lzzhangar if you clone this repo: https://github.com/jeffreybergier/Blog-Combining-Vision-with-CoreML it has my attempt. The code is a mess and it doesn't work very well. But it might give you a sense of how I approached it.

@bmgdev
Copy link

bmgdev commented Nov 30, 2017

@lzzhangar @jeffreybergier Agreed on your points here, also trying similar things. Made any progress on multiple object detection and tracking?

@jeffreybergier
Copy link
Owner

@bmgdev unfortunately, I have not (and probably won't) have a chance to look at it again :-/. I'm currently traveling for the foreseeable future and it doesn't leave much time for programming. I'd be curious to know if you find a solution that does object detection and tracking online or if you find a solution.

@konsdor
Copy link

konsdor commented Nov 26, 2018

I found an example from Apple https://developer.apple.com/documentation/vision/tracking_multiple_objects_or_rectangles_in_video ?
that works nice with object tracking in video.
It would be nice to find some way to replace their video player with AVcapture from camera in this example.

@jeffreybergier
Copy link
Owner

@konsdor wow. this really looks like an excellent resource. I won't have time. But if you're so inclined, you should write up a full tutorial that copies apple's approach as a GitHub repo like this one. I'll definitely put a link to it on this tutorial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants