0% found this document useful (0 votes)
120 views

Computer Vision - Blocks, Python Functions, Projects _ PictoBlox Extension

Uploaded by

SIMRANJEET KAUR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
120 views

Computer Vision - Blocks, Python Functions, Projects _ PictoBlox Extension

Uploaded by

SIMRANJEET KAUR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

PICTOBLOX EXTENSION

Computer Vision

Extension Description
AI to identify celebrities, brands, landmarks, and objects in images.

Available in: Block Coding, Python Coding


Mode: Stage Mode
WiFi Required: Yes
Compatible Hardware in Block Coding: evive, Quarky, Arduino Uno, Arduino Mega, Arduino
Nano, ESP32, T-Watch, Boffin, micro:bit, TECbits, LEGO EV3, LEGO Boost, LEGO WeDo 2.0, Go DFA,
None
Compatible Hardware in Python: Quarky, None
Object Declaration in Python: cv = ComputerVision()
Extension Catergory: Artificial Intelligence

Introduction

PictoBlox’s Computer Vision extension allows you to make AI projects in PictoBlox. You can create
projects to identify celebrities, brands, landmarks, and objects in images.

By analyzing the images for image features, you can recognize the following things:

1 Brands: Brand detection uses a database of thousands of global logos to identify commercial
brands in images. The Computer Vision service detects if there are brand logos in a given image; if so, it
returns the brand name; else, it returns NULL.
2 Celebrity: Celebrity detection uses a database to identify celebrities in images. The Computer
Vision service detects if there is a celebrity in a given image; if so, it returns their name; else, it returns
NULL.

3 Objects: Computer vision detects if there are objects in a given image; if so, it returns their name;
else, it returns NULL.
4 Landmarks: Landmark detection uses a database of thousands of global landmarks to identify
them in images, e.g., the Taj Mahal.

5 Image Tags: Computer vision returns the taxonomy-based categories detected in an image.
Computer Vision can categorize an image broadly or specifically according to the 86 categories given in
the following diagram:

6 Image Description: Human-readable sentence that describes the contents of the image.

Read More
PictoBlox Blocks

turn () video on stage with () % transparency block controls the control the camera feed on the stage.

The recognize () in image after () seconds block starts the camera and takes an image after the specified
time and analyzes it. It then saves the image features in PictoBlox.

The recognize () in image from () block extracts the image from Stage, Costume, or Backdrop in PictoBlox,
analyzes it, and saves information in PictoBlox.

The recognize () in image from URL () block extracts the image from the specified URL, analyzes it, and
saves information in PictoBlox.

The recognized () count block reports the number of selected things to count in the image. Multiple
celebrities, brands, objects, and image tags in a single image can be seen.

The recognized () () name block reports the name of the recognized celebrity/brand/object/image tag.

In computer vision, you can get the location and other parameters of the recognized celebrity, brand,
and Object using the recognized () () () block.

The () recognition result block reports the landmark and the image description identified in the image.
The () recognition result block reports the landmark and the image description identified in the image.

Python Functions

1
video()
This function helps turn the video on/off on the stage with a defined level of transparency.
Syntax: video(video_state = “on”, transparency = 1)

2
analysecamera()
This function is used to analyze the image received as input from the camera, for the feature.
Syntax: analysecamera()

3
analysestage()
This function is used to analyze the image received as input from the stage, for the feature.
Syntax: analysestage()

4
analysebackdrop()
This function is used to analyze the image received as input from the current backdrop image, for the
feature.
Syntax: analysebackdrop()

5
analysecostume()
This function is used to analyze the image received as input from the current costume, for the feature.
Syntax: analysecostume()

6
analyseURL()
This function is used to analyze the image received as input from the specified URL of the image, for the
feature.
Syntax: analyseURL(url = “https://ai.thestempedia.com/wp-content/uploads/2022/02/Robert-and-Chris.jpg”)

7
imagefeaturecount()
The function reports the number of specified features to count in the image. The options are celebrities,
brands, objects, and image tags in a single image can be reported.
Syntax: imagefeaturecount(feature_type = “object”)

8
imagefeatureinfo()
The function reports the name/x position/y position/width/height or confidence of the recognized
celebrity/brand/object/image tag. If the number is out of range, then the function will return NULL.
Syntax: imagefeatureinfo(feature_type = “object”, number = 1, information = “name”)
9
landmark()
The function reports the landmark identified in the image on analysis.
Syntax: landmark()

10
imagedescription()
The function reports the image description identified in the image on analysis – a Human-readable
sentence that describes the contents of the image.
Syntax: imagedescription()

Company
About Us
Blog
Partners and Distributors
Terms and Conditions
Privacy Policy
Careers

Community
Codeavour - AI Competition
Community Projects
Projects by STEMpedia
Example Projects
International Python Bootcamp
International Junior Blocks Bootcamp
International 3D and XR Studio Bootcamp

Products
Quarky - AI & Robotics Kit
Quarky Addon Kits
evive - STEM Kit
PictoBlox Software
Dabble App

School Programs
AI & Robotics Lab
Atal Tinkering Labs
STEM Innovation Lab
CBSE Aligned Coding & AI Lab
ICSE Aligned Robotics & AI Lab

Impact Programs
CSR & Government Impact Program

Learning Resources
Education Center
Courses & Teacher Resources

Product Documentation
Quarky Kits
evive Kits
PictoBlox Software
PictoBlox Extensions & Libraries
Dabble App
Arduino with PictoBlox

Get in Touch
Contact Us
Book a Demo
Request a Quote

Follow Us

PictoBlox - Block & Python Coding for Kids

Dabble App - One App. Infinite Control.


Copyright 2024 – Agilo Research Pvt. Ltd. All rights reserved – Terms & Condition | Privacy Policy

You might also like