olexale / arkit_flutter_plugin

ARKit Flutter Plugin
MIT License
797 stars 225 forks source link

Object tracking #90

Open egemolu opened 4 years ago

egemolu commented 4 years ago

Is there any way to track objects from given image in flutter ?

olexale commented 4 years ago

Hi! ARKit supports object tracking, but in order to get an object anchor, you still need to scan the object beforehand. In case you have only an image of the object I propose going with the image tracking instead.

You may use image_detection_page.dart sample as a reference of image tracking, and this manual to get yourself familiar with object tracking. Unfortunately, not all APIs are bound between arkit and the plugin yet, but it seems rather a trivial change.

egemolu commented 4 years ago

Thank you so much for your reply Dear Olexsandr. I am able to find the object from image. However, I cannot update the status of anchorFound bool value. I mean, when the given object is not on the screen, it should be false.

olexale commented 4 years ago

Hi @egemolu, You may update the status using onUpdateNodeForAnchor like it's described here https://stackoverflow.com/a/57128814/1010710 Hope that helps!

Eurofa commented 1 year ago

Hi @olexale! You are a legend for creating this plugin.

I'm trying to achieve object tracking similar to Apple Dev Doc. However I'm having some difficulties trying to find the corresponding classes in the plugin.

Assuming I already have the target object scanned (elsewhere) and have feature points exported into a .arobject file, how can I:

  1. Import these reference objects (.arobject files) into ARKitConfiguration
  2. Detect these reference objects in an ARKitSceneView session?

Thank you so much!