Detect paper in image using Javascript

We have a web application I built for our company on React and NodeJS all in Javascript/CSS/HTML. We want to add a feature for the user to capture an image of a label with the ipad they are using. So I am looking for a library or just sample code in Javascript to identify and capture an image of a paper label. From my research, OpenCV seems to be the best route to go for this task.

show us, what you tried, so far, please.

@dmikester1

I recommend starting with QR codes.

This link tells me QRCodeDetector is available in OpenCV.JS (I didn’t try this):

QRCodeDetector documentation is here:
https://docs.opencv.org/master/de/dc3/classcv_1_1QRCodeDetector.html

detect will give you the position of the QR marker on the image. decode as second step will return de string encoded in QR. detectAndDecode do both thing in one command.