Data representation · GCSE · about 25 min
Capture a camera frame, make it 1-bit, compress it with RLE and send it by radio.
[1 mark]A 32 × 24 image at 1 bit per pixel. How many bits uncompressed?
[1 mark]Why are the RLE rows joined with /?
[1 mark]How does the program prove the compression was lossless?
[1 mark]Why does a busier picture make a longer message?
Build the program from the brief. Print the 24 picture lines, then uncompressed: 768 bits (calculated), compressed: <n> characters, and lossless: True. Send the message if it has 200 characters or fewer.
# the two lines every program starts with: the commands, then the robot from bugbot import * connect() img = camera_image(32, 24)
Plan your program here, then type it in and press Run.
=.