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 sets the end-effector to move by a specified value in the selected axis and the other two positions remain the same.
This block is to assign both custom and pre-defined eye emotions to our Humanoid Robot.
The block moves its sprite’s Y position by the specified amount.
The block starts at 0 when Scratch is launched and increases gradually; every second it will have increased by 1.
The block concatenates, or “links” the two values together and reports the result — for example, if “hello” and “world” were put in the block, it would report “helloworld”.
The block reports the value of the specified entry in a specified list.
This function returns the x or y position of the hand detected. The position is mapped with the stage coordinates.
The block deletes all the stored databases of the images for face recognition.
The block returns whether the specified object card is detected in the analysis or not.
(Available only for evive). The block connects the ESP8266 module to the specified WiFi and password.
The block sets the velocity of the sprite to the defined values in the x and y directions.
The block initializes the RFID sensor. The block is important to run at the start to user other blocks of the RFID sensors.
The block gets the data from the ThingSpeak channel and stores the 8 field values in PictoBlox.
The block executes the oscillator for the complete cycle for the specified cycle times. The cycle time is the maximum time period assigned for the oscillator for the individual servo motors.
The block resets the oscillator parameter for all the servo motors.
The block executes the oscillator according to stored parameters for the servo motor and the current time.
The block sets the servo motor port of the gripper robot within the code.
This block sets the value of the chosen servo to the specified angle in the specified amount of time.
The robot uses a PID algorithm for line following, stopping at a crossing line when the IR threshold is met; set PID speed, constants, and adjust parameters for optimal performance.
Moves the wizbot back for a √2 step length on the grid pattern.
The block sets the date and weekday on evive’s Real Time Clock(RTC) to the time specified by the user through the drop-down menu in the input.
The block sets the value of the servo by the value you enter. Whereas the angle of other servos remains the same.
The block sets its sprite’s Y (up and down) position to the specified amount.
The block sets the specified effect on its sprite to the specified amount
The block sets the timer’s value back to 0.0. When this block is present, the project typically utilizes the Timer output block; usually the timer must be reset at the beginning of a project for the Timer block to hold the right value.
The block reports the specified characteristics of the given text. Even though the block says “letter”, it will report all characters, including letters, numbers, symbols, and even spaces.
The block reports how many items a list contains.
This block is used to match the input image from the camera or stage feed with the stored classes previously stored in the database. The block also stores all the face data in PictoBlox for access by other blocks.
The block returns the specified parameter for the specified object detected.
The block changes the velocity of the sprite by the defined values in the x and y directions.
All articles loaded
No more articles to load

Block Coding Examples

There are no block coding examples for the extension to show.

Python Functions

There are no python functions for the extension to show.

Python Coding Examples

There are no python examples for the extension to show.
Table of Contents