Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

gave it same link and got "no" #16

Open
Devabdellah opened this issue Jun 18, 2021 · 0 comments
Open

gave it same link and got "no" #16

Devabdellah opened this issue Jun 18, 2021 · 0 comments

Comments

@Devabdellah
Copy link

Devabdellah commented Jun 18, 2021

`
var rembrandt = new Rembrandt({

  imageA: "https://tr.rbxcdn.com/dbbcad849623da78a1df3930e18d54cd/420/420/Shirt/Png",
  imageB: "https://tr.rbxcdn.com/dbbcad849623da78a1df3930e18d54cd/420/420/Shirt/Png",

  thresholdType: Rembrandt.THRESHOLD_PERCENT,

  // The maximum threshold (0...1 for THRESHOLD_PERCENT, pixel count for THRESHOLD_PIXELS
  maxThreshold: 0,

  // Maximum color delta (0...255):
  maxDelta: 0,

  // Maximum surrounding pixel offset
  maxOffset: 0,

})

// Run the comparison
rembrandt.compare()
  .then(function (result) {

    if(result.passed){
      console.log('Yes');
    } else {
      console.log('No');
    }
})`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant