Giter Site home page Giter Site logo

Comments (5)

ykk648 avatar ykk648 commented on June 24, 2024

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.

dkguo avatar dkguo commented on June 24, 2024

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.

Jungduri avatar Jungduri commented on June 24, 2024

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.

jessicalfr avatar jessicalfr commented on June 24, 2024

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.

jessicalfr avatar jessicalfr commented on June 24, 2024

Commenting the line that calls top_detection_coverage obviously works, but doesn't seem like the best solution!

from multical.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.