Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f50572b

Browse files
committedFeb 22, 2024··
Update sample image in README
+ a single letter option for `cimbar` cli encode mode?
1 parent 23f9a63 commit f50572b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Behold: an experimental barcode format for air-gapped data transfer.
88
It can sustain speeds of 850 kilobits/s (~106 KB/s) using just a computer monitor and a smartphone camera!
99

1010
<p align="center">
11-
<img src="https://github.com/sz3/cimbar-samples/blob/v0.5/6bit/4cecc30f.png" width="70%" title="A non-animated cimbar code" >
11+
<img src="https://github.com/sz3/cimbar-samples/blob/v0.6/b/4cecc30f.png" width="70%" title="A non-animated mode-B cimbar code" >
1212
</p>
1313

1414
## Explain?
@@ -31,7 +31,7 @@ No internet/bluetooth/NFC/etc is used. All data is transmitted through the camer
3131

3232
The code is written in C++, and developed/tested on amd64+linux, arm64+android (decoder only), and emscripten+WASM (encoder only). It probably works, or can be made to work, on other platforms.
3333

34-
Crucially, because the encoder compiles to asmjs and wasm, it can run on anything with a modern web browser. There are [releases](https://github.com/sz3/libcimbar/releases/latest) if you wish to run the encoder locally instead of via cimbar.org.
34+
Crucially, because the encoder compiles to asmjs and wasm, it can run on anything with a modern web browser. For offline use, you can either install cimbar.org as a progressive web app, or [download the latest release](https://github.com/sz3/libcimbar/releases/latest) of `cimbar_js.html`, save it locally, and open it in your web browser.
3535

3636
## Library dependencies
3737

‎src/exe/cimbar/cimbar.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ int main(int argc, char** argv)
177177
unsigned compressionLevel = cimbar::Config::compression_level();
178178
unsigned ecc = cimbar::Config::ecc_bytes();
179179
options.add_options()
180+
("n,encode", "Run the encoder!", cxxopts::value<bool>())
180181
("i,in", "Encoded pngs/jpgs/etc (for decode), or file to encode", cxxopts::value<vector<string>>())
181182
("o,out", "Output file prefix (encoding) or directory (decoding).", cxxopts::value<string>())
182183
("c,color-bits", "Color bits. [0-3]", cxxopts::value<int>()->default_value(turbo::str::str(colorBits)))
@@ -185,7 +186,6 @@ int main(int argc, char** argv)
185186
("z,compression", "Compression level. 0 == no compression.", cxxopts::value<int>()->default_value(turbo::str::str(compressionLevel)))
186187
("color-correct", "Toggle decoding color correction. 2 == full (fountain mode only). 1 == simple. 0 == off.", cxxopts::value<int>()->default_value("2"))
187188
("color-correction-file", "Debug -- save color correction matrix generated during fountain decode, or use it for non-fountain decodes", cxxopts::value<string>())
188-
("encode", "Run the encoder!", cxxopts::value<bool>())
189189
("no-deskew", "Skip the deskew step -- treat input image as already extracted.", cxxopts::value<bool>())
190190
("no-fountain", "Disable fountain encode/decode. Will also disable compression.", cxxopts::value<bool>())
191191
("undistort", "Attempt undistort step -- useful if image distortion is significant.", cxxopts::value<bool>())

0 commit comments

Comments
 (0)
Please sign in to comment.