Deprecated: Required parameter $query follows optional parameter $post in /var/www/html/wp-content/plugins/elementor-extras/modules/breadcrumbs/widgets/breadcrumbs.php on line 1215
QR Code Scanner - Blocks, Python Functions, Projects | PictoBlox Extension
[PictoBloxExtension]

QR Code Scanner

QR scanner
Extension Description
Detect, identify and read QR codes from images.

Introduction

What is QR Code?

QR Code is a machine-scannable image that can be instantly read, using a smartphone camera. Every QR code consists of a number of black squares and dots that represent some encoded piece of information; like alphabets, numbers, etc. When your Smartphone scans this code, it translates that encoded information that only computers can understand, into something that can be easily understood by humans.

 

The QR Code Scanner extension allows users to scan QR codes from the camera or stage and report the information:

  1. QR Code Data
  2. QR code position on the stage
  3. QR code angle alignment on the stage

Accessing QR Code Scanner in Block Coding

Following is the process to add QR Code Scanner capability to the PictoBlox Project.

  1. Open PictoBlox and create a new file.
  2. Select the coding environment as Block Coding.
  3. Next, click on the Add Extension button and add the QR Code Scanner extension.
  4. You can find the QR Code Scanner blocks available in the project.

Accessing QR Code Scanner  in Python Coding

Following is the process to add QR Code Scanner capability to the PictoBlox Project.

  1. Open PictoBlox and create a new file.
  2. Select the coding environment as Python Coding.
  3. Next, click on the Add Modules/Libraries button and add the QR Code Scanner extension.
  4. To access the library functions, you have to add the object declaration.
    qr = QRCodeScanner()

Example Project Video

In this project, a QR code is generated with the help of a QR code generator website. credits – https://www.qr-code-generator.com/

The QR code is linked to a URL. Then, the QR code is scanned with the help of the QR code scanner extension of Pictoblox. The project is created by RS Junction.

Read More

PictoBlox Blocks

The block changes its sprite’s costume to the next one in the costumes pane, but if the current costume is the last in the list, the block will loop to the first.
It clears any sound effects currently in place. However, it does not stop the sound currently being played.
The block pauses its script until the specified Boolean condition is true.
The block sends a broadcast throughout the whole Scratch program. Any scripts in any sprites that are hatted with the When I Receive () block that is set to a specified broadcast will activate. This broadcast block lets scripts send broadcasts without any waits in its script (unlike the Broadcast () and Wait block). Broadcasts are a good way to have sprites and scripts communicate.
The () of object () block reports the following attributes of the object: class, x position, y position, width, height, and confidence.
The block checks if the Boolean inside it is false — if it is false, the block returns true; if the condition is true, it returns false.
The block simply reports the items of its list as a string. Whenever a list is created, a version of the block appears with the list’s name on it; this results in a version of this block for every list.
This block returns the y position of the pose landmark detected. The position is mapped with the stage coordinates.
The recognized () () name block reports the name of the recognized celebrity/brand/object/image tag.
The get expression of face () block reports the recognized expression of the selected face. If the face selected is not detected, then it reports NULL.
Once you have analyzed the images for handwritten text, you can use a handwritten text result block to get the recognized text from the image in a string format.
The block reports the recognized class from the selected image feed (camera, stage, costume, or backdrop).
The () of object () block reports the following attributes of the object: class, x position, y position, width, height, and confidence.
The block returns the x or y coordinate of the specified landmark points of the QR code.
The block returns the wind speed (Unit Default: meter/sec) or the wind direction (in degrees – meteorological) of the location.
The block sets the project’s tempo, or speed, to the specified amount, using the unit “bpm”, or “beats per minute”.
The block changes the specified value by the number input. 
The block changes the specified value to the integer or float according to the input.
The block is used to create custom patterns on the RGB LED display of Quarky.
The block performs the automatic line following logic with the parameters specified in the set parameter F () T1 () T2 () block.
The block sets the orientation of the robot to align the left and right movement of the robot in horizontal robot position and vertical robot position.
The block is a hat block and starts the execution of the script added under it when the specified touch sensor of Quarky is pressed.
The block reports the recognized class from the analyse image from () block.
Once you have analyzed the images, you can use the get # of objects block to get the number of objects recognized in the image.
The block reports the recognized class from the analyse image from () block.
The block reports the recognized class from the analyse image from () block.
The block sets the sprite’s mass to the specified value.
The block reports the state of the analog sensor connected to the selected pin. The block returns true when the analog reading of the sensor is greater than the threshold value set by the user. Else it reports false.
The block stops the specified motor of the Quarky.
The block gets the last color value from the specified feed and stores it in PictoBlox. The value can be reported from the get () value block.
All articles loaded
No more articles to load

Block Coding Examples

All articles loaded
No more articles to load

Python Functions

There are no python functions for the extension to show.

Python Coding Examples

All articles loaded
No more articles to load
Table of Contents