VNUHCM
Bài trước Bài kế tiếp
  • Nội dung học
  • Trợ giúp
    Bạn có thắc mắc khi đang học?
    Hướng dẫn cách học Những câu hỏi thường gặp Email cho giáo vụ
    • Tiếng Việt
    • English
    • Thông tin Thành viên
    • Khoá học đăng ký
    • Đăng xuất
  • Cohota
  • HƯỚNG DẪN HỌC TẬP

  • Xem chi tiết >>
    Bạn đã hoàn thành 0% khoá học
  • HƯỚNG DẪN SINH VIÊN ĐĂNG NHẬP HỆ THỐNG
    • Hướng dẫn đăng nhập
    • Hướng dẫn vào khóa học
  • Introduction
    • Welcome
  • Unit 1: Values
    • Introduction - Unit 1: Values
    • Get Started With Values
    • Play with Values
    • Playground Basics
    • Naming and Identifiers
    • Simulation
    • Strings
    • Constants and Variables
    • Word Games
    • Build a PhotoFrame App
    • Design for People
  • Episode 1: The TV Club
    • Introduction - Episode 1: The TV Club
    • Searching for Content
    • Sharing Personal Information
    • Ordering Online
    • Reflection: Episode 1
  • Unit 2: Algorithms
    • Introduction - Unit 2: Algorithms
    • Get Started with Algorithms
    • Play with Programs
    • Functions
    • Types
    • Parameters and Results
    • Making Decisions
    • BoogieBot
    • Data Visualization
    • Build a QuestionBot App
    • Design an Experience
  • Episode 2: The Viewing Party
    • Introduction - Episode 2: The Viewing Party
    • Accessing the Show
    • Streaming on the Network
    • Reflection: Episode 2
  • Unit 3: Organizing Data
    • Introduction - Unit 3: Organizing Data
    • Get Started with Organizing Data
    • Play with Complex Data
    • Instances, Methods, and Properties
    • Arrays and Loops
    • Structures
    • Enums and Switch
    • Testing Code
    • Processing Data
    • Pixel Art
    • Password Security
    • Visualization Revisited
    • Build a BouncyBall App
    • Design a Prototype
  • Episode 3: Sharing Photos
    • Introduction - Episode 3: Sharing Photos
    • Capturing Images
    • Posting on Social Media
    • Reflection: Episode 3
  • Unit 4: Building Apps
    • Introduction - Unit 4: Building Apps
    • Get Started with App Development
    • Play with App Components
    • Color Picker
    • ChatBot
    • Rock, Paper, Scissors
    • MemeMaker
    • Build an ElementQuiz App
    • Design for Impact
  • Appendix
    • Episode Technical Concepts
    • Glossary
Tổng quan điểm khóa học
Đánh giá

Tiến độ
Tên tiêu chí Trọng số (%) Điểm Tiến độ (%)
Episode 3: Sharing Photos

Capturing Images

Episode 3: Sharing Photos

As the social chairs, Sophie and Antonio are responsible for taking pictures during TV Club and posting them on their social media page. Sophie opens the camera app on her phone and asks Tania to take pictures of the group while they’re eating pizza and discussing the first episode of Finding Alyssa.

Converting Light into Data

When you take a photo with your phone, the lens of the camera focuses light onto the camera sensor. As continuous signals—like the gradual darkening of a shadow from its center to its edge or the slight variations in color caused by the wrinkles in a shirt—fall across the array of pixel sensors, each pixel sensor converts the light into values for red, green, and blue. The camera sensor then generates a large set of numbers (digital data) describing the values from all the pixel sensors.

Subject

The world is alive with analog signals: information that changes smoothly over time. When you hear sounds, you’re sensing continuous waves of changing pressure in the air around you. Your sight works by sensing light waves cast onto your retinas by the lenses in your eyes. But computers work with digital information: huge amounts of individual numbers. In order for computers to process analog signals, they have to digitize them—which involves converting them into a set of discrete values.

Camera Sensor

Digital photography is a good example of analog-to-digital conversion.

The camera sensor in a phone is a rectangle filled with tiny circuits that can measure the amount of light that hits them. Three circuits—one for each of the primary colors of red, green, and blue—are grouped together to make a pixel sensor. (“Pixel” is short for picture element.)

Digital Image

This process is called sampling. Computers convert analog signals to digital data by sampling them at discrete intervals to produce numbers. In this case, the intervals are the physical locations and dimensions of the pixel sensors, and the numbers represent colors and intensity of light.

The resulting information is an abstraction—an approximate representation of the real-world image that passed through the lens of the camera.

What Color is That?

Learn more about colors within an image.

An image of a person with a box focussing on a small subset of pixels of the image

An image of a person with a box focussing on a small subset of pixels of the image with a single pixel highlighted

An image of a person with a box focussing on a small subset of pixels of the image with a single pixel highlighted

Many of the images you see on your phone are compressed. Compressing an image doesn’t reduce the number of pixels (its resolution), it just reduces the data needed to store the image. Compressed images take less time to download and less space to store. How is compression possible? Compression strategies can be grouped into two broad categories: lossless and lossy. Lossless compression preserves all of the original data, so that it can be reconstructed at any time. Lossy compression creates an approximation of the original information, resulting in lower quality.

Lossless Compression

Watch this video and learn more about lossless compression.

Lossy Compression

Watch this video and learn more about lossy compression.

Using the shutter button, Tania captures a few great shots that are now saved to Sophie's photo roll on her phone. Sophie can’t wait to post them to social media after TV Club.

Báo lỗi