Page 276 - AI Ver 1.0 Class 10
P. 276
• Agriculture: Computer Vision is used in agriculture in various ways. With the use of object detection, a fruit on a tree
can give an estimate on your yield. As a farmer you can predict how much you are going to get.
4. Explain the task used in computer vision applications for single object.
Ans. The two-task used in Computer Vision application does for single object are:
• Classification: It is the process of finding out the class/category of the input image. The input image is processed
using a machine learning algorithm and classified into predefined categories.
• Classification + Localisation: Localisation means where the object is in the image. So, this combined task of
classification and localisation means processing the input image to identify its category along with the location of
the object in the image.
5. What do you mean by Grayscale image?
Ans. A grayscale image is the one in which the value of each pixel is single, i.e., it carries only intensity information. Also
known as Black and White, it has shades of grey. RGB channels of pixels have the same value. These are images with
only 2 colors, Black and White, varying from Black at the weakest intensity to white at the strongest. A grayscale image
has each pixel of size 1 byte having a single plane of 2D array of pixels. In grayscale images, the shades range starts
with 0 and ends with 255, i.e., it starts with pure black and ends with pure white.
6. Explain the parameters of the imread() in OpenCV.
Ans. This function read the image and loads it into the computer’s memory:
cv2.imread(path, flag)
path: is the path of the image to be read. If the file is in the working directory, then write only the name and the
extension of the image otherwise it is a must to specify the complete path.
flag: how our image should be read.
The value can be:
1-(default) It reads image in BGR format where it has bluish appearance.
0-It reads image in Grayscale format.
–1-It reads image in original format.
Unsolved Questions
SECTION A (Objective Type Questions)
uiz
A. Tick ( ) the correct option.
1. Which of the following is an open-source software library for computer vision and machine learning that helps a
computer understand the content of digital images?
a. Object detection b. Segmentation
c. OpenCV d. Localisation
2. A ………………………. algorithm takes an image as input and outputs a collection of regions (or segments).
a. segmentation b. localisation
c. OpenCV d. Computer Vision
3. Which of the following are not the tasks that CV helps in agriculture?
a. Yield predict b. Spraying of pesticides
c. Weeding d. Control the rainfall
274 Touchpad Artificial Intelligence-X

