Questions tagged [pixelmatch]

10 questions
2
votes
0 answers

Is it possible to compare 2 images on React Native?

I'm trying to compare 2 images on React Native to get differences of them. Example; The second image is different 7% from the 1st photo. Or There are 200 different pixels. I've installed pixelmatch and converted images to base64 and buffer.…
kanzi
  • 33
  • 1
  • 3
2
votes
2 answers

Comparing Buffers

I would like to compare two images in memory as opposed to relying on reading and writing from the file system. I might be going about this the wrong way and if so I'd appreciate some sort of hint/help. I've created a repo showcasing what I'm…
phil o.O
  • 406
  • 2
  • 4
  • 20
1
vote
0 answers

html2canvas not detect changes

my goal is comparing two canvas using react using codemirror as code-editor. using html2canvas for convert html element to canvas using pixelmatch for compare im changing the div (style, content etc.) with code editor (codemirror) and convert it…
Selcukusu
  • 75
  • 8
0
votes
0 answers

pyautogui pixelMatchesColor package not existing

I downloaded pyautogui and everything is up to date but I'm not able to use pyautogui.pixelMatchesColor in any way. How can I fix this?it's not existing :( I made sure everything is up to date but still , I appreciate every help.
0
votes
2 answers

useRef always coming back as null and is not able to get .current value in image comparison

I am trying to make a react component to compare two images using the pixel match library and I am stuck on the output image. The outputCanvasRef is always null so in the compareImages function it errors on the line with outputCanvas.width =…
0
votes
0 answers

Identify similar images in a folder based on an image from the scanner

I have a question that I can't figure out,I do not know where to begin.I use the following technologies: React Native (mobile application) and the backend application is built with Node Js. What I'm trying to do is, the user takes a picture of a…
0
votes
0 answers

Locateonscreen True then do ..... or with pixelmatch?

I have a def that looks for a pixel match color if this is true it looks for an image can i replace this with locateonscreen? becorse the image position change over time this is my def and it works but i want to use locateonscreen instead of…
Bill Sian
  • 29
  • 5
0
votes
0 answers

windll.gdi32.GetPixel failed with pyautogui and Variables from configparser

i was trying to do a config.ini with configpaser i got it working with this from configparser import ConfigParser #-------Message Config Start ------------# config = ConfigParser() config.read('config.ini') #Devicename for Message Curls Geraet…
Bill Sian
  • 29
  • 5
0
votes
0 answers

I want to implement pixelMatch library in React Project.Want some good article to start with

I want to do visual regression with cypress for react project.Got to know about library pixelMatch.Want to write simple code to achieve this.Whatever i found on google is not fulfilling my requirement or not enough.Want some expert advice in…
0
votes
2 answers

How can pyautogui.pixelMatchesColor not work properly?

def perfect_click(name): # Performs a click after checking for loaded image location = None image_file = name while location is None: try: location = pyautogui.locateOnScreen(image_file) except Exception…