Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a c + + code without using external header or programs that the python code recognizes in debian linux. import picamera from PIL import

write a c++ code without using external header or programs that the python code recognizes in debian linux.
import picamera
from PIL import Image
import sys
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
a = len(sys.argv)
if a !=2:
print("Usage: name.jpg
")
exit (1)
camera = picamera.PiCamera()
camera.color_effects =(128,128)
camera.capture(sys.argv[1])
EE 245: Robotics Programming
im = Image.open(sys.argv[1]).convert("L")
file, ext = sys.argv[1].split(.)
im.save(file +BW.+ ext, "JPEG")
width, height = im.size
print(width)
print(height)
4.2 Task 2
Use the onboard camera to capture a raw image of one or more objects. Write a C++ program to process the image and apply a Sobel Edge Detection algorithm for edge detection. Then write a new image file with the results of the edge detection algorithm, average the image to a 48x48 size, and print a representation of the result to the screen by using thresholding and printing either solid or empty characters similar to what was accomplished in Task 1.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions

Question

What is the best conclusion for Xbar Chart? UCL A X B C B A LCL

Answered: 1 week ago