Closed jeonghonoh closed 3 months ago
Impressive results!
However, there was a little problem running this code.
I built it with a dockerfile.
When building with check_detection_result = false, I was able to confirm that it worked well as follows.
$./main.out 4 3 3 ../sample_imgs/rgb12/ 0.035 0.09
<before optimization> initial camera parameters: 496.286693, 496.507166, 718.843868, 570.783142, 0.322794, 0.000000, 0.000000, 0.000000, 0.000000 <start optimization> >coarse camera parameters: 489.612496, 489.642830, 717.295083, 571.600882, 0.414170, -0.009422, 0.002843, -0.000271, 0.000000 It will take few minites..... >fine camera parameters: 497.130706, 497.197500, 717.530523, 572.100529, 0.466057, -0.009018, 0.001971, 0.000204, 0.000000 Calibration Quality: 98.754387 % Estimated radius: 0.035439, Reprojection error: 0.062276 26.864366sec
However, when building with check_detection_result = true, I encountered the following error after checking the image.
../sample_imgs/rgb12/ 4, 3, 3, 0.035000, 0.090000 start detect: ../sample_imgs/rgb12/circle_left_raw_000.png (input_image:364): dbind-WARNING **: 04:54:30.581: Couldn't register with accessibility bus: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender="(null)" (inactive) interface="org.freedesktop.DBus" member="Hello" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus) Gtk-Message: 04:54:30.592: Failed to load module "canberra-gtk-module" Gtk-Message: 04:54:30.592: Failed to load module "canberra-gtk-module" save: 1, ignore: 0 wrong commend is detected wrong commend is detected wrong commend is detected
Even after installing canberra-gtk-module with apt install libcanberra-gtk-module libcanberra-gtk3-module, the following error message appears.
canberra-gtk-module
apt install libcanberra-gtk-module libcanberra-gtk3-module
../sample_imgs/rgb12/ 4, 3, 3, 0.035000, 0.090000 start detect: ../sample_imgs/rgb12/circle_left_raw_000.png (input_image:456): dbind-WARNING **: 05:18:05.087: Couldn't register with accessibility bus: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender="(null)" (inactive) interface="org.freedesktop.DBus" member="Hello" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus) save: 1, ignore: 0 wrong commend is detected wrong commend is detected wrong commend is detected
How can I resolve this?
Thanks.
@jeonghonoh Thank you for trying. It seems that you just closed the opencv window without typing 1 or 0. You should decide whether to use each image or not, by typing 1 or 0.
Thanks, it's working now.
Impressive results!
However, there was a little problem running this code.
I built it with a dockerfile.
When building with check_detection_result = false, I was able to confirm that it worked well as follows.
$./main.out 4 3 3 ../sample_imgs/rgb12/ 0.035 0.09
However, when building with check_detection_result = true, I encountered the following error after checking the image.
$./main.out 4 3 3 ../sample_imgs/rgb12/ 0.035 0.09
Even after installing
canberra-gtk-module
withapt install libcanberra-gtk-module libcanberra-gtk3-module
, the following error message appears.How can I resolve this?
Thanks.