Following the tutorial for running nanoOWL at NanoOWL - NVIDIA Jetson AI Lab I have JetPack 6.2.1 on a Jetson Orin Nano (Developer Kit). Running the simplest example like
jetson-containers run --workdir /opt/nanoowl/examples \
$(autotag nanoowl) \
python3 owl_predict.py \
--prompt="[an owl, a glove]" \
--threshold=0.1 \
--image_encoder_engine=../data/owl_image_encoder_patch32.engine`
gives me an error:
Traceback (most recent call last):
File "/opt/nanoowl/examples/owl_predict.py", line 88, in <module>
image = draw_owl_output(image, output, text=text, draw_text=True)
File "/opt/nanoowl/nanoowl/owl_drawing.py", line 51, in draw_owl_output
cv2.rectangle(
cv2.error: OpenCV(4.11.0) :-1: error: (-5:Bad argument) in function 'rectangle'
> Overload resolution failed:
> - img marked as output argument, but provided NumPy array marked as readonly
> - img marked as output argument, but provided NumPy array marked as readonly
> - Expected Ptr<cv::UMat> for argument 'img'
> - Expected Ptr<cv::UMat> for argument 'img'
The docker image is r36.4.0 is corrct and matches my BSP. Is this an opencv version problem? The image here was pulled from the Nvidia docker registry by jetson-containers