```
OpenCV (cv2)
Ensure you have installed OpenCV and NumPy.
To read the image file buffer with OpenCV:
```python
import streamlit as st
import cv2
import numpy as np
img_file_buffer = st.camera_input("Take a picture")
if img_file_buffer is not None:
    # To read image file buffer with OpenCV:
    bytes_data = img_file_buffer.getvalue()
    cv2_img = cv2.imdecode(np.frombuffer(bytes_data, np.uint8), cv2.IMREAD_COLOR)
# Check the type of cv2_img:
# Should output: <class 'numpy.ndarray'>
st.write(type(cv2_img))
# Check the shape of cv2_img:
# Should output shape: (height, width, channels)
st.write(cv2_img.shape)
```
TensorFlow
Ensure you have installed TensorFlow.
To read the image file buffer as a 3 dimensional uint8 tensor with TensorFlow:
```python
import streamlit as st
import tensorflow as tf
