You are on page 1of 6

PRESENTED BY -

YASH KUMAR SINGH –


18BEC0374
QR CODE SCANNER USING YOUR PERSONAL PC
1. To read the QR code using your Computers directly.
OBJECTIVE 2. To develop coding and to implement it using your web
camera inside java netbeans.
NOVELTY -


QR codes often contain data for a locator, identifier, or tracker that points to a website
or application. A QR code uses four standardized encoding modes (numeric,
alphanumeric, byte/binary, and kanji) to store data efficiently; extensions may also be
used.
CODE -
• package qrcode.main;

• import com.github.sarxos.webcam.Webcam;
• import com.github.sarxos.webcam.WebcamPanel;
• import com.github.sarxos.webcam.WebcamResolution;
• import com.google.zxing.BinaryBitmap;
• import com.google.zxing.LuminanceSource;
• import com.google.zxing.MultiFormatReader;
• import com.google.zxing.NotFoundException;
• import com.google.zxing.Result;
• import com.google.zxing.client.j2se.BufferedImageLuminanceSource;
• import com.google.zxing.common.HybridBinarizer;
• import java.awt.Dimension;
• import java.awt.image.BufferedImage;
• import java.util.concurrent.Executor;
• import java.util.concurrent.Executors;
• import java.util.concurrent.ThreadFactory;

• public class Menu extends javax.swing.JFrame implements Runnable, ThreadFactory {

• private WebcamPanel panel = null;
• private Webcam webcam = null;

• private static final long serialVersionUID = 6441489157408381878L;
• private Executor executor = Executors.newSingleThreadExecutor(this);

• public Menu() {
• initComponents();
• initWebcam();
• }

• @SuppressWarnings("unchecked")
• // <editor-fold defaultstate="collapsed" desc="Generated Code">
• private void initComponents() {

• jPanel1 = new javax.swing.JPanel();
METHODOLOGY
• Computer web camera can read a QR
code from about 3 to 9 inches away. In the
case of QR code scanner, the decoder
sends the information to your computer.
The code you download for your pc that is
a QR code scanner contains the illuminator,
which is the red light that runs across the
screen when you open the app. The sensor
and decoder then work to decode the QR
code. Then the decoder sends the
information to your pc, and you will be
able to see where the QR code was
supposed to take you.
"

An example of a QR
code, encoding the
text: "Wikipedia,
the free
encyclopedia"

You might also like