Error during calibration
See original GitHub issueHi,
when using anipose calibrate I get following error. “detections.pickle” file is created in calibration folder. When I use anipose label-3d
after this it shows message “Labeling videos in 3D…” but nothing happens. Nothing is created and there is no error message.
(dlc-windowsGPUclone) D:\Anipose\Test>anipose calibrate Calibrating... D:\Anipose\Test\Iteration1\calibration\calibration.toml Traceback (most recent call last): File "c:\programdata\anaconda3\envs\dlc-windowsgpuclone\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "c:\programdata\anaconda3\envs\dlc-windowsgpuclone\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\ProgramData\Anaconda3\envs\dlc-windowsGPUclone\Scripts\anipose.exe\__main__.py", line 9, in <module> File "c:\programdata\anaconda3\envs\dlc-windowsgpuclone\lib\site-packages\click\core.py", line 764, in __call__ return self.main(*args, **kwargs) File "c:\programdata\anaconda3\envs\dlc-windowsgpuclone\lib\site-packages\click\core.py", line 717, in main rv = self.invoke(ctx) File "c:\programdata\anaconda3\envs\dlc-windowsgpuclone\lib\site-packages\click\core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "c:\programdata\anaconda3\envs\dlc-windowsgpuclone\lib\site-packages\click\core.py", line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File "c:\programdata\anaconda3\envs\dlc-windowsgpuclone\lib\site-packages\click\core.py", line 555, in invoke return callback(*args, **kwargs) File "c:\programdata\anaconda3\envs\dlc-windowsgpuclone\lib\site-packages\click\decorators.py", line 64, in new_func return ctx.invoke(f, obj, *args, **kwargs) File "c:\programdata\anaconda3\envs\dlc-windowsgpuclone\lib\site-packages\click\core.py", line 555, in invoke return callback(*args, **kwargs) File "c:\programdata\anaconda3\envs\dlc-windowsgpuclone\lib\site-packages\anipose\anipose.py", line 105, in calibrate calibrate_all(config) File "c:\programdata\anaconda3\envs\dlc-windowsgpuclone\lib\site-packages\anipose\common.py", line 165, in fun return process_all(config, process_session, **args) File "c:\programdata\anaconda3\envs\dlc-windowsgpuclone\lib\site-packages\anipose\common.py", line 150, in process_all output[past_folders] = process_session(config, path, **args) File "c:\programdata\anaconda3\envs\dlc-windowsgpuclone\lib\site-packages\anipose\calibrate.py", line 182, in process_session n_samp_iter=100, n_samp_full=2000) File "c:\programdata\anaconda3\envs\dlc-windowsgpuclone\lib\site-packages\calligator\cameras.py", line 1544, in calibrate_rows all_rows[i] = board.estimate_pose_rows(cam, row) File "c:\programdata\anaconda3\envs\dlc-windowsgpuclone\lib\site-packages\calligator\boards.py", line 333, in estimate_pose_rows row['ids']) File "c:\programdata\anaconda3\envs\dlc-windowsgpuclone\lib\site-packages\calligator\boards.py", line 611, in estimate_pose_points corners, ids, self.board, K, D) TypeError: Required argument 'rvec' (pos 6) not found
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Hello, this solved it. Calibration works now. Thank you
Hi @KonradDanielewski , I reproduced your error! Turns out that I implicitly assume opencv-contrib of version 3, but I think you have version 4 installed.
Try running this to get the right version of opencv-contrib:
pip install opencv-contrib-python~=3.4
You may also need to downgrade opencv-python:
pip install opencv-python~=3.4
I’ve updated calligator to require the specific version of opencv