Study sets, textbooks, questions
Upgrade to remove ads
🅱️o🅱️otics study guide
Terms in this set (50)
The area of bounding box can be used to determine either the size or the distance of the objects provided the one of them is known.
The cv2.flip(img, 0) will flip the given image 'img' upside down.
When using camera related functions in a program, it's a good programming practice to call cv2.destroyAllWindows( ) function before ending the program.
An AI algorithm running an autonomous car may face an ethical dilemma.
Image classification serves as the backbone for more complicated architectures such as object detection and segmentation.
You cannot draw a circle with cv2.ellipse( ) function.
The acronym ROS stands for Remote Operating System
Generally speaking, provided everything else remains same, a model trained with 30 epoch is more accurate than the one trained with 10 epochs.
cv2 uses the BGR format, which means it can only show the images in Blue, Green, or Red colors and no other colors
A virtual machine can run multiple processes using a single operating system, where as a docker container creates a new copy of the operating system with each application.
It is preferable to build your code natively on Nano instead of using docker container because a docker container comes with heavy overheads on memory usage and speed.
Every running instance of a Linux program creates a Linux process with a unique process id called 'pid.
ssh is a standard communication protocol and the short form of 'secure shell' for connecting into a remote host shell.
Following line creates an image with 512
colors.img = np.zeros((512, 512, 3), np.uint8)
Following code creates a Green line going from the top left down to the bottom right of the image window.
cv2.line(img, (0, 0), (img.shape, img.shape), (0, 255, 0), 3)
A low pass filtering (LPF) algorithm helps in finding edges in images
A high pass filter (HPF) algorithm helps in removing noise and blurring images.
The cv.Canny( ) function is used to blur the given image.
The Canny algorithm is a multi-stage algorithm
Morphological operations apply a structuring element to an input image and generate an output image.
The image erosion algorithm Erosion computes a local maxima over the area of given kernel.
The cv2.VideoCapture( ) function reads a single video frame every time when it's called.
Following line of code will resize a captured image into a 100 x 100 frame
.cam = cv2.VideoCapture(resize=True, (100, 100))
numpy can be used to stack multiple images horizontally or vertically
The detectMultiScale( ) function is useful in detecting faces in an AI program.
What would you use to view, in real-time, what the Nano based car's camera is seeing?
Remote Transport Protocol
What is the level of permissions given to the group in following chmod command?
chmod 740 drive_autonomous.py
What does the != mean in Python?
How is an image is represented in cv2?
As a as 2-dimensional numpy array
Image classification inference depends on the ___ of the images used to train the model.
all of the above
In the following listing of a Linux file, what are the "-rw-r--r--"?
-rw-r--r-- 1 user user 2258 Aug 14 13:05 drive_autonomous.py
Permissions of the file
Why would you use $1, $2, $3... in a bash shell script?
to access the argument inside the script
What does the zero (0) signify in following line of code?
camera = cv2.VideoCapture(0)
It's the number for the default camera device
What does 'apt' stand for in Linux?
Advanced Packaging Tool
Nvidia object detection network __
classifies all the objects in a given frame
What does the following line do?
None of the above
Anything saved onto the docker container ___.
is lost once you close the docker container
The image blur functions use various ___ filter algorithms
___ filter algorithms helps finding edges in a given image.
The width and height of the blurring kernel should be ___.
positive and odd
Which image filter would you use to smooth out "salt-and-pepper" noise in an image?
___ is highly effective in noise removal while keeping edges sharp.
Finding Intensity Gradient of the Image is done in which of the following algorithms?
Image dilation operations consists of convolving an image A with some kernel B, which can have ___.
any shape or size
What is the significance of the parameter 0 (zero) in following line of code?
cam = cv2.VideoCapture(0)
Default camera device
What does the following line of code do?
Wait for a key press for one ms
What does the following line of do?
frame = cv2.flip(frame, -1)
Flip the frame upside down
The cam.read( ) function returns ___.
What does the following line of code do?
Returns a numpy array
Which color scheme does the OpenCV use?
RGB (Red, Green, Blue)
Sets with similar terms
Java, HTML, CSS: week 2
CIW 2.02 Review Questions
JAVA, HTML, CSS: Week 4
Other sets by this creator
Physics Quiz Study - Rotational Motion and Torque
Unit Circle Review
Game and Sim MIDTERM (NO EXAMPLES)
Engineering Midterm Study LEGIT