Deutsch   English   Français   Italiano  
<v15c1p$1oa1$1@i2pn2.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: Stefan Claas <pollux@tilde.club>
Newsgroups: sci.crypt
Subject: Re: az - Telefax/OCR Test
Date: Sat, 4 May 2024 15:09:12 +0200
Organization: i2pn2 (i2pn.org)
Message-ID: <v15c1p$1oa1$1@i2pn2.org>
References: <uoekm1$3rhsc$1@i2pn2.org>
	<g74JN.751237$mUo.609280@fx08.ams4>
	<v0dtc5$276id$1@i2pn2.org>
	<v0dup1$276id$2@i2pn2.org>
	<7P6XN.610386$oD2.194358@fx11.ams4>
	<v0j5oi$2ddq4$1@i2pn2.org>
	<oknXN.41708$XrN3.19814@fx01.ams4>
	<v0l0e2$2ff66$1@i2pn2.org>
	<v0l9lf$10knh$1@dont-email.me>
	<v0lc45$2ft6v$1@i2pn2.org>
	<v0lgs1$125o7$1@dont-email.me>
	<v0lo29$2gbvu$1@i2pn2.org>
	<v0om6r$2juq5$1@i2pn2.org>
	<v0r02u$2mfpi$1@i2pn2.org>
	<v0rgfd$2l2q1$1@dont-email.me>
	<v0suh6$2opr6$1@i2pn2.org>
	<v0t2ei$33aat$1@dont-email.me>
	<v0t3a4$2ovc1$1@i2pn2.org>
	<v106ta$2sj59$1@i2pn2.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 4 May 2024 13:09:13 -0000 (UTC)
Injection-Info: i2pn2.org;
	logging-data="57665"; mail-complaints-to="usenet@i2pn2.org";
	posting-account="uWi4uQdALkj7ETOfPbhNXfz0+Ra/gM5z6/Fa40dJi9U";
Finger: tilde.club/~pollux/
X-Spam-Checker-Version: SpamAssassin 4.0.0
Bytes: 2419
Lines: 42

Stefan Claas wrote:

> While I still cannot decode the video, I have now my own
> solution.
> 
> Here is the Python3 code:
> 
> import qrcode
> import os
> import argparse
> import shutil
> from pyzbar.pyzbar import decode
> from PIL import Image
> import base64
> 
> parser = argparse.ArgumentParser()
> parser.add_argument('-f', '--file', help='File to convert to/from QR codes')
> parser.add_argument('-e', '--encode', help='Directory to save QR codes', default=None)
> parser.add_argument('-d', '--decode', help='Directory to load QR codes from', default=None)
> args = parser.parse_args()
> 
> def file_to_qrcodes(file_path, directory):
>     with open(file_path, 'rb') as f:
>         counter = 0

Set counter to 1 for my following bash script[1].

> ffmpeg -i "$FOLDERFILENAME" -start_number 0 "$DIRNAME/qr%d.png"

and remove -start_number 0

[1] <https://github.com/stefanclaas/QR-Code-Helpers/blob/main/qr2page.sh>

which allows you to print QR-Codes, nicely formatted, on paper, like
Herbert has shown in his example.

-- 
Regards
Stefan