Closed sponsCA closed 7 years ago
The error is coming out of line 233 in calibrate_cameras.py
- but that's not the full stack trace, I'm guessing. Otherwise I would have heard from others who are having trouble with that specific module.
Does your script get all the way to the bottom? It'd be useful to know where it dies.
I'm using Pyton 2.7 and OpenCV 2
Here is the full error :
C:\Python27\python.exe D:/Dropbox/PyCharmProjet/test.py
Traceback (most recent call last):
File "D:/Dropbox/PyCharmProjet/test.py", line 18, in <module>
calibration = calibrator.calibrate_cameras()
File "C:\Python27\lib\site-packages\stereovision\calibration.py", line 233, in calibrate_cameras
flags=flags)[1:]
SystemError: new style getargs format but argument is not a tuple
Process finished with exit code 1
Sorry about that, I thought it was obvious but it wasn't ^^
I don't actually see any problem here, except perhaps for the fact that you are calibrating so few images. Have you tried using the CLI tool directly to calibrate the camera with your images?
Otherwise I'd throw the code in a debugger and try to figure out what's going on. Looking at it from here I'm sadly not able to see any problem.
Yep, the CLI tool works fine, that's why I don't understand this error...
I use only 2 images just for the test. I'm using your code with only 1 camera on printer tracks. But I don't think the error comes from that as long as it works fine with the CLI tool. :/
Hmm... Yes, sorry, I don't see any other problems either. Try running it in your interpreter line for line and fiddling it as if you were working with a debugger is my best hint. Hope that helps!
Hey !
First of all, a big thank you for this project. It helps me a lot to understand how it works.
I'm facing a problem when using the calibration.py provided. Here is my code :
And here is the output :
show_results gives me good chessboard matches as you can see. I tried to modify the calibration.py and when I send a tuplet in "flag =" it tells me "an integer is required" 👎