From the course: Python: Programming Efficiently
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Challenge: Image-editing application - Python Tutorial
From the course: Python: Programming Efficiently
Challenge: Image-editing application
(upbeat music) - For your challenge. I would like you to make a rudimentary image editor that adjusts the brightness contrast and saturation of an image using Pillow. Do not worry about saving the image. Before you can do it, I need to show you the easiest way to add interactivity to a Jupiter notebook. Consider for instance, plotting a simple trigonometric function governed by a parameter. I need the math module as well as numpy and Metro lip. I described numpy in detail, in my course on Python Data Analysis. I compute the cos sign over an array over a hundred numbers between zero and one. Here's what it looks like; I can change the shape by modifying the frequency F. Now, we can make this plot interactive, using iPython, widgets, which are collected in the ipython widgets module. We use a FloatSlider to create a control for the frequency, specifying the initial value, minimum, maximum, and step. Setting…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Choose the best libraries for your task2m 54s
-
(Locked)
Download webpages with requests4m 54s
-
Manipulate images with Pillow4m 38s
-
(Locked)
Parse HTML with Beautiful Soup4m 52s
-
(Locked)
Make movies with Matplotlib3m 9s
-
(Locked)
Serve webpages with Flask6m 4s
-
(Locked)
Challenge: Image-editing application2m 28s
-
(Locked)
Solution: Image-editing application1m 50s
-
(Locked)
-
-
-