#🔒 I've been ignored for the 3rd time - Camera Calibration Chaurco Diamond help needed

12 messages · Page 1 of 1 (latest)

crisp kernel
#

Reopening for the 4th timesince my message wasn't answered:
I would just prefer if someone at least replies with an "I don't know" or "can you give more details" because at least I know there's acknowledgement to my message. I understand that it's no one's obligation to help but every other thread has had responses except mine

I'm working on a project for Camera Calibration in Python (I have tagged this as Data science & AI as it seemed to be the closes fit). I have several implementations that I'm trying to develop the intrinsic and extrinsic parameters for all of the implementations. I have the Chessboard implementation, Charuco and I'm currently working on a Charuco Diamond version. I have the extrinsic parameters working but the intrinsics one I have a bug in. I tried a few things like doing my own debugging and consulting ChatGPT as a secondary opinion and it's narrowed me down to what looks like this last error.
I get the following error when I attempt to run the script
Traceback (most recent call last): File "C:\Users\asus\PycharmProjects\Calibr8\src\charuco_diamond\int_charuco_diamond.py", line 49, in <module> ret, K, d, rvec, tvec = cv2.aruco.calibrateCameraCharuco(all_corners, all_ids, board, imsize, None, None, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cv2.error: OpenCV(4.9.0) D:\a\opencv-python\opencv-python\opencv_contrib\modules\aruco\src\aruco_calib.cpp:69: error: (-215:Assertion failed) _charucoIds.total() > 0 && (_charucoIds.total() == _charucoCorners.total()) in function 'cv::aruco::calibrateCameraCharuco'
I will attach my GitHub repository for the source code: https://github.com/m-shah02/Calibr8/blob/main/src/charuco_diamond/int_charuco_diamond.py
I'm fairly new to using OpenCV so any help is appreciated thanks!!

GitHub

Individual Project for Aston University - Camera Calibration in Human Tracking Systems - m-shah02/Calibr8

verbal ospreyBOT
#

@crisp kernel

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

cold kiln
#

I suggest the lack of response is that you have not asked a clear question AND because it is about an obscure topic. Do you have a question about Python?

crisp kernel
#

I was just wondering what potential solutions could be to the error mentioned above as I can't think of any direct answers. The error seems to be OpenCV related hence I thought it would be appropriate to ask on this forum, but I understand the obscurity can put people off. I apologise if that additional part of the message came off as passive aggressive or rude. I would just have liked to know if I wasn't being clear enough and I would've happily elaborated.

cold kiln
#

No need to apologise. I was only passing. Sorry I can't help. As a general comment, you need to slowly narrow-in on the problem and isolate it. However, you are using tools with which I am not familiar. Perhaps, if you headlined your question with something appropriate about CV and cameras and then asked a direct question about the part that is giving you trouble, you may have better success. At present you are giving a lot of history and a link to a lot of code. Nobody is going to run that. Also your original question mentions ChatGPT. That alone will put people off. If that is your reference source then good luck to you.

#

Afterthought: Does OpenCV have a users forum? You might ask there.

crisp kernel
#

Yeah I understand maybe I could've better worded it. I did provide the link to the specific class I was referring to within that repository but I guess I could see how it would put people off. I assumed that the history would help provide some context but I guess I can narrow it down. Would you suggest I close this and rewrite the post with your feedback into account?

cold kiln
crisp kernel
#

!close

verbal ospreyBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.