# ChArUco Calibration with OpenCV.js

**URL:** https://forum.opencv.org/t/charuco-calibration-with-opencv-js/19527
**Category:** Uncategorized
**Tags:** opencvjs, aruco, build
**Created:** [December 14, 2024, 10:18pm UTC](https://forum.opencv.org/t/charuco-calibration-with-opencv-js/19527 "2024-12-14T22:18:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sid220](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/sid220/32/11657_2.png) [@sid220](https://forum.opencv.org/u/sid220)
#### Post date: [December 14, 2024, 10:18pm UTC](https://forum.opencv.org/t/charuco-calibration-with-opencv-js/19527/1 "2024-12-14T22:18:47Z")

</div>

I am trying to calibrate a camera with a ChArUco board in OpenCV.js. I can do the detection fine, but [calibrateCameraCharuco](https://docs.opencv.org/4.x/d9/d6a/group__aruco.html#ga3bcf3be1b347e1e1916d67e01088352d) does not exist in OpenCV.js. I tried adding it to platforms/js/opencv\_js.config.py like:

```auto
objdetect = {'': ['groupRectangles', 'getPredefinedDictionary', 'extendDictionary',
                  'drawDetectedMarkers', 'generateImageMarker', 'drawDetectedCornersCharuco',
                  'drawDetectedDiamonds', 'aruco_calibrateCameraCharuco' ...],

```

and building: `emcmake python3 ./platforms/js/build_js.py build_js --cmake_option="-DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules"`  
but cv.calibrateCameraCharuco is undefined in Javascript.

---

<div class="post-metadata">

### Author: ![kalwalt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/kalwalt/32/10504_2.png) [@kalwalt](https://forum.opencv.org/u/kalwalt)
#### Post date: [December 23, 2024, 11:34pm UTC](https://forum.opencv.org/t/charuco-calibration-with-opencv-js/19527/2 "2024-12-23T23:34:43Z")

</div>

Hi @sid220 why you added the `calibrateCameraCharuco` as `aruco_calibrateCameraCharuco` and not simply `calibrateCameraCharuco`?
