aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rw-r--r--test.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test.py b/test.py
new file mode 100644
index 0000000..317eaf0
--- /dev/null
+++ b/test.py
@@ -0,0 +1,11 @@
+from PIL import Image
+from imgbeddings import imgbeddings
+import sys
+
+b = imgbeddings()
+for p in sys.argv[1:]:
+ f = open(p, "rb")
+ im = Image.open(f)
+ em = b.to_embeddings(im)
+ print(em)
+print(f"embedded {len(sys.argv[1:])} images.")