clysto / image-compression

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image Compression Example

This example shows how to compress an image using the tinyimgcodec module and NRF52840DK board.

TTY Usage

> python scripts/tty.py /dev/tty.usbmodem0006835918891
┌────────────────────────────────────────────────────────────┐
│Connected to /dev/tty.usbmodem0006835918891                 │
│Type 'quit' or 'q' to exit                                  │
│Type 'encode <input_file> <output_file>' to encode a file   │
└────────────────────────────────────────────────────────────┘
$ encode data/1.dat 1.img low
Reading 292 bytes...
Reading 234 bytes...
Reading 220 bytes...
Reading 207 bytes...
Reading 252 bytes...
Reading 268 bytes...
Reading 245 bytes...
Reading 255 bytes...
Reading 230 bytes...
Reading 240 bytes...
Reading 232 bytes...
Reading 249 bytes...
Reading 241 bytes...
Reading 241 bytes...
Reading 224 bytes...
Reading 208 bytes...
Reading 199 bytes...
Reading 265 bytes...
Reading 266 bytes...
Reading 260 bytes...
Reading 254 bytes...
Reading 225 bytes...
Reading 230 bytes...
Reading 207 bytes...
Reading 198 bytes...
Reading 211 bytes...
Reading 184 bytes...
Reading 181 bytes...
Reading 186 bytes...
Reading 202 bytes...
Reading 204 bytes...
Reading 188 bytes...

About


Languages

Language:C 85.7%Language:Python 12.9%Language:CMake 1.4%