X-D-R / ARCube

0 stars 0 forks source link

No visualization for detection output #10

Open Daniil-Osokin opened 1 week ago

Daniil-Osokin commented 1 week ago

Followed the example script, but got a warning and no output visualization:

python main.py detect --model_input "model_script_test.npz" --input_image "old_files/andrew photo video/second pic messy.jpg"  --use_flann --draw_match
/media/daniil/external_hdd/repos/hse24/ARCube/detection.py:190: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
  plt.imshow(img3, 'gray'), plt.show()
dragonpuffle commented 1 week ago

I used this: python main.py register --camera_params "CameraParams/CameraParams.npz" --input_image "old_files/andrew photo video/reference messy.jpg" --output_image "output_script_test.jpg" --crop_method "none" --feature_method "SIFT" --model_output "model_script_test.npz"

python main.py detect --model_input "model_script_test.npz" --input_image "old_files/andrew photo video/second pic messy.jpg" --use_flann --draw_match

And everything was okay image

Daniil-Osokin commented 2 days ago

Can you please try with venv from readme