Comments (5)
same problem, I uninstall opencv-python and reinstall opencv-contrib-python , solved this issue.
my final version:
opencv-contrib-python 4.5.5.64
from multical.
Same problem here. Using opencv-contrib-python 4.5.5.64 doesn’t help. Do you have other ideas for this problem? Thanks.
from multical.
This issue origins from the type checker, of which OpenCV has been updated from a specific version(sorry I am not sure).
"calibrateCamera" needs float32 of nparray. but NumPy turns it to np.float64 as a default.
Quick solution
you may change as below(in camera.py):
np.array(points.object_points, dtype=np.float32),
np.array(points.corners, dtype=np.float32),
This is not a good idea, but works for quick turns.
Hope it works.
from multical.
I'm going through the same problem trying to calibrate 4 cameras. The problem seems to happen in the top_detection_coverage
function call in line 72 of camera.py
. After the call points = calibration_points(boards, detections)
in line 70 the object points.object_points
is a list of numpy arrays. After the top_detection_coverage
call the same object turns into a list of lists for one of my cameras and the error occurs. Coincidence or not, this camera has a different resolution from the others, but I've done this before and it worked.
I'm still trying a few solutions and if something works I'll bring it here.
from multical.
Commenting the line that calls top_detection_coverage
obviously works, but doesn't seem like the best solution!
from multical.
Related Issues (20)
- Problem with running visualization: Could not load the Qt platform plugin "xcb" in "" even though it was found. HOT 2
- ERROR: Failed building wheel for numpy-quaternion
- Question Regarding Parameter Notation HOT 3
- install pyvistaqt instead of py-vistaqt, and install pyqt5 for visualize the result.
- How can I set board to master when there is only one board on floor? HOT 1
- How to setup the development environment in Pycharm on windows? (ImportError: cannot import name 'open' from 'builtins' (unknown location)) HOT 6
- 360 rig calibration HOT 2
- 普通棋盘格代码 HOT 3
- Board creation - pixel / mm accuracy HOT 2
- KeyError: 'num_points' HOT 2
- Detecting boards.. stuck HOT 1
- It seem that new version of vtk(vtk==9.2) crashes with pyqt5. HOT 1
- 3D calibration object HOT 1
- Overlap area of camera
- Can't evaluate accuracy of a calibration HOT 4
- The bad calibration results really frustrate me ;)
- Dependency package version bag
- different camera intrinsic model
- Why CV_CALIB_RATIONAL_MODEL retrun 14dists?
- How to cite this repo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multical.