Question

You are free to create anything for your final project. It will count as a learning...

You are free to create anything for your final project. It will count as a learning of your python course. What you have learned so far. Make sure your code covers all of the following things. See rubric for grading.

  • Use the concepts of object-based programming—classes, objects, and methods
  • Draw two-dimensional shape
  • Use the RGB system to create colors in graphics applications and modify pixels in images
  • Develop recursive algorithms to draw recursive shapes
  • Write a nested loop to process a two-dimensional grid
  • Perform simple transformations of images, such as conversion of color to gray-scale

IMPORTANT

  1. Your code will be checked in a tool for plagiarism. If found copied will be graded as zero.
  2. You can not copy the code from your material given in your book. You can take the idea and modify it in a different way by adding your own code.
  3. Final Project is 20% of your grade.
  4. Upload your .py file on canvas.
  5. Make sure you go over rubric for points before submitting.

Please create one code following this guide and I need some explanation about code What is about.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

2d shape using recursion


from turtle import * #library for shapes
def square(n):
if n>0:
forward(200) #movement in forward direction
right(90) #movement in right direction
recurse(n-1) #recursively calling till 4 as square has 4 sides

square(4)

conversion of image form color to grey scale


import cv2 #modeule for processing images
image = cv2.imread('C:/Users/N/Desktop/Test.jpg') #specify the path of the image
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) #fist argument is real image and second argument is to specify that you want to convert it into gray scale

cv2.imshow('REAL IMAGE',image) #for showing the original image
cv2.imshow('CONVERTED IMAGE', gray) #for showing the converted image
cv2.waitKey(0)
cv2.destroyAllWindows()

To get the pixel of each image

def pixel(image, i, j):
  
width, height = image.size #returns in the same order
if i > width or j > height: # to check the bounds of the image
return None

  
pixel = image.pixel((i, j)) # Get Pixel
return pixel

Add a comment
Know the answer?
Add Answer to:
You are free to create anything for your final project. It will count as a learning...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • create anything in python. Make sure your code covers all of the following things: • Use...

    create anything in python. Make sure your code covers all of the following things: • Use the concepts of object-based programming—classes, objects, and methods • Draw two-dimensional shape • Use the RGB system to create colors in graphics applications and modify pixels in images • Develop recursive algorithms to draw recursive shapes • Write a nested loop to process a two-dimensional grid • Perform simple transformations of images, such as conversion of color to gray-scale

  • Write a program called draw_shapes.py. In your program, Create a block header with: your name the...

    Write a program called draw_shapes.py. In your program, Create a block header with: your name the date a short description of what the program does: Assignment 5: Draw shapes using turtle Import the turtle module. Create a window and screen (canvas) where your turtle will draw. Make the window 400 pixels wide x 400 pixels high and give it an indigo background and a title of "Shapes". Use this code to create a window object: # a place for the...

  • This week, you will start a course project. For this project, you will design and develop...

    This week, you will start a course project. For this project, you will design and develop a small website for a travel company. You will develop this website across the span of the course, building new project components each week, until you have a live, hosted website at the end of the course. This project is designed to replicate real-life situations where the clients provide only a few of their requirements and expect a prototype to be developed. Scenario Express...

  • Final Project: Part I For Part I of your final project, you will design your plan for the scenari...

    Final Project: Part I For Part I of your final project, you will design your plan for the scenario provided below. Your project plan should include the entity relationship diagram (ERD). Scenario Imagine that you just started a new job at ABC Car Sales. You’ve been given the task of adding all the new and used car inventory to a new database management system (DBMS). You would like to manage the new and used car sales in the new DBMS....

  • Game Time You have a little free time on your hands and decide to create a...

    Game Time You have a little free time on your hands and decide to create a simple game. Utilize the design tools that you have learned this week to design and program a very simple game. Examples: Movie Trivia, Guess a number between 1-10, Dice, etc. Note: Avoid games with lots of complex combinations like card games, i.e. poker, unless you desire a surmountable challenge. The real goal is for you to demonstrate the use of the design tool to...

  • Please help: For this project, you will create a shape drawing program using Turtle graphics. Your...

    Please help: For this project, you will create a shape drawing program using Turtle graphics. Your program will begin by asking the user how many points they would like to enter (# of vertices for the shape). Next, you will use a loop to input each X and Y coordinate and store these coordinates in lists. After inputting all of the coordinates, create a second loop that will draw and fill the shape using the coordinates that were entered. All...

  • please help me with this project subject: Web and Mobile Development You are to create a...

    please help me with this project subject: Web and Mobile Development You are to create a page that has four images that are links to other schools in the New England area. Each image is to be controlled in size by a CSS responsive design. The page is to appear balanced by an appropriate, complimentary, background color. White is not an option as a background color. Look up how to make image links on W3Schools. There is to be a...

  • Project overview: Create a java graphics program that displays an order menu and bill from a...

    Project overview: Create a java graphics program that displays an order menu and bill from a Sandwich shop, or any other establishment you prefer. In this program the design is left up to the programmer however good object oriented design is required. Below are two images that should be used to assist in development of your program. Items are selected on the Order Calculator and the Message window that displays the Subtotal, Tax and Total is displayed when the Calculate...

  • To conclude the project, use the UML diagram you created last week and create an application in Visual Studio name...

    To conclude the project, use the UML diagram you created last week and create an application in Visual Studio named School. Once you have written the code, be sure and test it to ensure it works before submitting it. Below is the UML diagram for the basic class we created last week for your reference, but for this project be sure you use the one that you created last week. Good luck and be sure to get started early in...

  • You are Lost in the forest. To find your way out, you must create a path from the point A(-14,15) to point B(14,-15) using quadratic functions. Make sure to avoid the wolves though! Quadratics P...

    You are Lost in the forest. To find your way out, you must create a path from the point A(-14,15) to point B(14,-15) using quadratic functions. Make sure to avoid the wolves though! Quadratics Project You are lost in the forest. To find your way out, you must create a path from the point A(-14, 15) to the point B(14. -15) using quadratic functions. Make sure you avoid the wolves though! . You must use at least 8 different quadratie...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT