hiukim / mind-ar-js

Web Augmented Reality. Image Tracking, Face Tracking. Tensorflow.js
MIT License
2.22k stars 415 forks source link

Recreate target image from mind file #323

Closed Squidmaan closed 1 year ago

Squidmaan commented 1 year ago

I was wondering how you generate the target image created by the compiler on the front end? I cannot seem to figure out how to place that image on the canvas through the image tracking data.

Thank you!

hiukim commented 1 year ago

The original image is not included in the .mind file, so you cannot recover that.

Squidmaan commented 1 year ago

Then how did you go about creating this target image after the mind file is compiled? dog

hiukim commented 1 year ago

There are low resolution and grey scale images, but not the original image.

Squidmaan commented 1 year ago

How would you create the grey scale image from the tracking data?

vishnusaivivek commented 1 year ago

Actually as far as i knew its not possible to extract images from .mind, to achieve your requirement you have to manually convert all the images to greyscale and store them in assets of your project and have a config.json which contains in which order the images are given for compilation and for which targetIndex which image to be shown.