Giter Club home page Giter Club logo

Comments (9)

jf99 avatar jf99 commented on June 12, 2024

At least in C++, I cannot confirm the issue:
board
I am also using OpenCV 4.9.0, the board settings are the same as yours.

from opencv.

crackwitz avatar crackwitz commented on June 12, 2024

cannot confirm
board settings are the same as yours

That can't be. Your image has a different resolution. What constants did you choose to change?

from opencv.

jf99 avatar jf99 commented on June 12, 2024

That can't be. Your image has a different resolution. What constants did you choose to change?

Okay, here is the same image with your image resolution of 200x150:
board
The other settings are exactly the same as yours.

from opencv.

AleksandrPanov avatar AleksandrPanov commented on June 12, 2024

The problem has been reproduced. There is the problem with some values of the marginSize parameter.

import cv2 as cv
import sys

arucoDict = cv.aruco.DICT_4X4_1000
boardSize = [7,2]
squareLength = 13
markerLength = 10
dictionary = cv.aruco.getPredefinedDictionary(arucoDict)
board = cv.aruco.CharucoBoard(boardSize, squareLength, markerLength, dictionary)
image = board.generateImage([2*200, 2*150], marginSize=24)
cv.imshow("image", image)
cv.waitKey(0)

image

from opencv.

giri-kum avatar giri-kum commented on June 12, 2024

@asmorkalov Is this function producing different results in different machines for the same inputs like observed by @jf99.

Are you seeing this bug only for these inputs and not for the inputs in my repro code?

from opencv.

AleksandrPanov avatar AleksandrPanov commented on June 12, 2024

@giri-kum the problem has been reproduced with C++ code too.

    aruco::Dictionary dict = aruco::getPredefinedDictionary(aruco::DICT_4X4_1000);
    aruco::CharucoBoard board(Size(7ull, 2ull), 13, 10, dict);
    Mat res;
    board.generateImage(Size(2*200, 2*150), res, 24);
    imshow("res", res);
    waitKey(0);

res111

from opencv.

Dhanwanth1803 avatar Dhanwanth1803 commented on June 12, 2024

@AleksandrPanov I got the same image while reproducing the issue. I am not understanding if this problem is with the createCharucoBoard() function or the generateImage(Size outSize, OutputArray img, int marginSize, int borderBits) function. Both are in aruco_board.cpp file.

from opencv.

Dhanwanth1803 avatar Dhanwanth1803 commented on June 12, 2024

@AleksandrPanov I would like to work on this issue but I am not sure how marginSize affects the results on the charuco board. Can you please help me?

from opencv.

AleksandrPanov avatar AleksandrPanov commented on June 12, 2024

@Dhanwanth1803, I fixed problem and preparing PR now

from opencv.

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.