From 27f571f4d9faaac270484cfd8dbed159b25375b8 Mon Sep 17 00:00:00 2001 From: junjiejiangjjj Date: Wed, 1 Feb 2023 16:18:51 +0800 Subject: [PATCH] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index b3c72f0..0fba965 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,12 @@ p = ( .output('image') ) +# decode from path DataCollection(p('./src_dog.jpg')).show() + +# decode from bytes +with open('./src_dog.jpg', 'rb') as f: + DataCollection(p(f.read())).show() ```