Git Product home page Git Product logo

nft-marker-creator's Introduction

NFT MARKER CREATOR

This editor creates NFT markers for ARTOOLKIT 5.x, and it is part of the efforts to bring NFT tracking to jsartoolkit5 (and eventually projects like AR.js).

A Node version (preferred) and Web version are provided.

Check out the wiki to learn how to generate good markers! https://github.com/Carnaux/NFT-Marker-Creator/wiki/Creating-good-markers

If any errors occours please open a issue.

Node version

How to use it

  1. Clone this repository.

  2. Install all dependencies.

    npm install

  3. Put the image you want inside the app folder. You can just paste it or you can create a folder. e.g

    • markerCreatorAppFolder
      • app.js
      • NftMarkerCreator.min.js
      • IMAGE.PNG ⬅️
      • ...

    or

    • markerCreatorAppFolder
      • app.js
      • NftMarkerCreator.min.js
      • FOLDER/IMAGE.PNG ⬅️
      • ...
  4. Run it

    node app.js -i PATH/TO/IMAGE

    In the end of the process an "output" folder will be created(if it does not exist) with the marker files.

You can use additional flags with the run command.

e.g node app.js -i image.png -level=4 -min_thresh=8

-noConf 
      Disable confirmation after the confidence level
-noDemo
      Disable demo configuration
-level=n
     (n is an integer in range 0 (few) to 4 (many). Default 2.'
-sd_thresh=<sd_thresh>
-max_thresh=<max_thresh>
-min_thresh=<min_thresh>
-leveli=n
     (n is an integer in range 0 (few) to 3 (many). Default 1.'
-feature_density=<feature_density>
-dpi=f: 
      Override embedded JPEG DPI value.
-max_dpi=<max_dpi>
-min_dpi=<min_dpi>
-background
     Run in background, i.e. as daemon detached from controlling terminal. (macOS and Linux only.)
-onlyConfidence
      Indicates value of level of confidence
--help -h -?  
      Display this help
  1. The generated files will be on the "output" folder.

  2. (OPTIONAL) You can test your marker using the demo folder!

    If you want to disable the demo configuration when you create a marker, add -noDemo to the command parameters.

    e.g node app.js -i image.png -noDemo

Web version

https://carnaux.github.io/NFT-Marker-Creator/

This version is less efficient for images with width and/or height with 1000px or higher.

Advanced options coming soon.

Instructions

  1. Upload any JPG/PNG image.
  2. If the Number of Channels is missing, it will ask for it.
  3. Click the generate button.
  4. The files will be automatically downloaded when the generation finishes.

If you want to generate you own NftMarkerCreator.min.js use the dev branch.

"Icon made by Freepik from www.flaticon.com"

nft-marker-creator's People

Contributors

carnaux avatar nicolocarpignoli avatar kalwalt avatar francescosessa-eclettica avatar arsandev avatar dimger avatar dependabot[bot] avatar

Watchers

James Cloos avatar

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.