Giter VIP home page Giter VIP logo

Comments (5)

Carnaux avatar Carnaux commented on May 13, 2024 2

Yeah, that should solve and I tried that too, but in my case, most images fall back to what @hiukim said.

Depending on the tracking algorithm I think gray would be better. I'm currently using black on the NFT-Marker-Creator and that is part of the issue.

I have this proposal on JsArtoolkit5, I will test it today and maybe it can be applied to Mind-Ar too.

If you are interested I will keep you updated on the matter. Thanks, guys!

from mind-ar-js.

hiukim avatar hiukim commented on May 13, 2024

@Carnaux that's an interesting question. I don't have a certain answer top of my head, coz I haven't really tried that. The first step is to convert to grayscale, so depends on the pixel value of the conversion.

Is there any particular reason you want to track image with transparent background? The image will still have some solid background later anyway depends on whether you place it?

from mind-ar-js.

Carnaux avatar Carnaux commented on May 13, 2024

The image will still have some solid background later anyway depends on whether you place it?

Exactly that, background color independent marker, so I can use in any surface unless Mind-Ar already does that.

from mind-ar-js.

akhrarovsaid avatar akhrarovsaid commented on May 13, 2024

My recommendation would then be to crop the marker such that none of the transparency is in the cropped version. Then you track the cropped version instead and use the original (uncropped) target image as you intended.

from mind-ar-js.

hiukim avatar hiukim commented on May 13, 2024

I think @akhrarovsaid is right. that's also what I would do if cropping is possible.

I know there are cases where cropping is not possible. For example, your target is in circular shape, or your transparency background is in an inside area.

I think the simple answer to the original question is that the library didn't handle that. It will just turn them into a single color (maybe white or black, I'm not certain).

from mind-ar-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.