Skip to content

Commit bc93a40

Browse files
committed
Fix Raspberry Pi instructions and sample.
1 parent 37f6f81 commit bc93a40

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/raspberry-pi/rpi_quickstart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Create a camera object
99
camera = PiCamera()
1010

11-
# Load Lobe TF model
11+
# Load Lobe TF Lite model
1212
# --> Change model path
1313
model = ImageModel.load('/home/pi/model')
1414

@@ -32,6 +32,6 @@
3232
# Run photo through Lobe TF model and get prediction results
3333
result = model.predict_from_file('/home/pi/Documents/image.jpg')
3434

35-
print(result)
35+
print(result.labels)
3636

3737
sleep(1)

scripts/lobe-rpi-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ sudo apt install -y \
1010
libtiff5 \
1111
libjpeg62-turbo
1212
sudo apt-get install -y git
13-
# Install lobe-python with TensorFlow Lite backend (ONNX backend could also work for Raspberry Pi)
1413
sudo pip3 install setuptools
14+
# Install lobe-python with TensorFlow Lite backend
1515
sudo pip3 install lobe[tflite]

0 commit comments

Comments
 (0)