GithubHelp home page GithubHelp logo

Image (marker) tracking? about alvaar HOT 4 OPEN

alanross avatar alanross commented on September 28, 2024
Image (marker) tracking?

from alvaar.

Comments (4)

alanross avatar alanross commented on September 28, 2024 4

Hi @skeegan,

While AlvaAR includes all the essential subroutines for NFT image tracking as part of its SLAM algorithm, they are primarily designed for SLAM within the library and are not specifically optimized for NFT image tracking. To achieve your goal, you can follow these rough steps:

  1. Feature Detection/Extraction: Use Harris corners to identify and extract unique feature points from a reference image.
  2. Feature Descriptors: Apply ORB descriptors to describe these unique features.
  3. Process Camera Frames: Repeat steps 1 and 2 for each camera frame to detect features and match them with the target image features.
  4. Select Good Matches: Use k-NN (k-nearest neighbors) to filter and keep only the good matches.
  5. Pose and Orientation: Find homography using RANSAC, calculate the corners, and use solvePnP with these corners to obtain rotation and translation vectors.
  6. Camera Projection Matrix: Create and send this matrix to your 3D environment (Three.js, Babylon, AFrame, etc.).
  7. Render and Update: Overlay and dynamically update digital content in your application based on the camera projection matrix.
  8. Continuous Tracking and Updates: Continuously track the target image and update the overlay as needed.

If you check out the library's code, you'll find that all these subroutines are present, though with a focus on SLAM rather than NFT image tracking.

I'm considering adding this feature in the future. In the meantime, you might find these additional resources, complementing what ThorstenBux suggested, helpful:
OpenCv, AR.js, martins-js, Object tracking using Homography in OpenCV

from alvaar.

ThorstenBux avatar ThorstenBux commented on September 28, 2024

Hi mate, can't answer your question but jsartoolkit or mindar are two libs for image tracking on the web.

from alvaar.

skeegan avatar skeegan commented on September 28, 2024

thanks @ThorstenBux

They're interesting libraries. Do you know of any others that can enable 3D object tracking in Javascript?

from alvaar.

skeegan avatar skeegan commented on September 28, 2024

Many thanks @alanross . Your response was very thorough and helpful

from alvaar.

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.