Benjamin_Loison commented on issue Benjamin_Loison/adb#22 2024-12-31 01:17:36 +01:00
Set *Restrict USB* > *Deny USB connections*/*Allow USB connections when unlocked* with adb

DuckDuckGo and Google search "adb" "Restrict USB".

Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:48:18 +01:00
Decode data matrix

Could investigate the library example images.

Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:47:00 +01:00
Decode data matrix
from pylibdmtx.pylibdmtx import decode
from PIL import Image

print(decode(Image.open('1280px-Datamatrix.svg.png')))
Output:
Traceback…
Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:40:58 +01:00
Decode data matrix
read_datamatrix --help
Output:
usage: read_datamatrix [-h] [-v] image [image ...]

Reads datamatrix barcodes in images

positional…
Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:40:14 +01:00
Decode data matrix
time read_datamatrix 1280px-Datamatrix.svg.png
Output:
Traceback (most recent call last):
  File "/home/benjamin/venv/bin/read_datamatrix",…
Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:37:41 +01:00
Decode data matrix
sudo apt install -y libdmtx0t64
Output:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The…
Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:37:01 +01:00
Decode data matrix
sudo apt install -y libdmtx0a
Output:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Packag…
Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:36:02 +01:00
Decode data matrix

Same error after pip install "Pillow>=3.2.0".

Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:35:42 +01:00
Decode data matrix
time read_datamatrix 1280px-Datamatrix.svg.png
Output:
Traceback (most recent call last):
  File "/home/benjamin/venv/bin/read_datamatrix",…
Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:35:11 +01:00
Decode data matrix
pip install pylibdmtx
Output:
Collecting pylibdmtx
  Downloading pylibdmtx-0.1.10-py2.py3-none-any.whl.metadata (5.6 kB)
Downloading…
Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:34:32 +01:00
Decode data matrix
pip uninstall pylibdmtx
Output:
Found existing installation: pylibdmtx 0.1.11
Uninstalling pylibdmtx-0.1.11:
  Would remove:
    /home/benjam…
Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:32:49 +01:00
Decode data matrix

Same error after pip install "Pillow>=3.2.0".

Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:32:19 +01:00
Decode data matrix
time read_datamatrix 1280px-Datamatrix.svg.png
Output:
Traceback (most recent call last):
  File "/home/benjamin/venv/bin/read_datamatrix",…
Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:31:47 +01:00
Decode data matrix
pip install git+https://github.com/NaturalHistoryMuseum/pylibdmtx.git
Output:
Collecting git+https://github.com/NaturalHistoryMuseum/pylibdmtx.g…
Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:31:15 +01:00
Decode data matrix
pip uninstall "Pillow>=3.2.0"
Output:
Found existing installation: pillow 11.0.0
Uninstalling pillow-11.0.0:
  Would remove:
    /home/benjam…
Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:30:39 +01:00
Decode data matrix
sudo apt autoremove -y
Output:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The…
Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:30:21 +01:00
Decode data matrix
sudo apt purge -y python3-pylibdmtx
Output:
Reading package lists... Done
Building dependency tree... Done
Reading state information...…
Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:28:50 +01:00
Decode data matrix
pip install "Pillow>=3.2.0"
Output:
Collecting Pillow>=3.2.0
  Downloading pillow-11.0.0-cp312-cp312-manylinux_2_28_x86_64.whl.metadata (9.1…
Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:27:55 +01:00
Decode data matrix
Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:26:48 +01:00
Decode data matrix

If replace transparency with white:

time read_datamatrix 1280px-Datamatrix.svg_white.png 
Output:
real	0m3,843s
user	0m3,742s
sys	0m0,098s
…