Git Product home page Git Product logo

Comments (6)

MarekKowalski avatar MarekKowalski commented on May 25, 2024

Hello Aaron,

Which Visual Studio version are you using?
The binary was compiled with Visual Studio 2013, I believe that if you are using a different version of visual studio, you might need different OpenCV dll files.
Are you using the dlls from the binary version from my website?

Best regards

Marek

from livescan3d.

youngheekim avatar youngheekim commented on May 25, 2024

I got a similar problem when i run the calibrate command from source. The binary version works fine in my system(one server computer and one client computer).

I am working with Visual Studio 2013 and the same version of OpenCV dll files(the binary version from your website is using OpenCV2.4.8).

The client crashes on
bool Calibration::GetMarkerCorners3D(vector &marker3D.....)
{ ...
float dx = marker.corners[i].X - minX;
float dy = marker.corners[i].Y - minY;
... }
since the function GetIntersection() returns strange numbers on
void MarkerDetector::CornersSubPix(vectorcv::Point2f &corners,...)
{
vectorcv::Point2f corners2;
for (unsigned int i = corners.size() - 1; i < 2 * corners.size() - 1; i++)
corners2.push_back(GetIntersection(lines[(i + 1) % corners.size()], lines[i % corners.size()]));
corners = corners2;
}

Any thoughts?

Best regards

from livescan3d.

MarekKowalski avatar MarekKowalski commented on May 25, 2024

Hi,

I can't get this error on my computer, I'll try on a couple of other computer tomorrow.
Are you using Windows 10 or 8?

Marek

from livescan3d.

MarekKowalski avatar MarekKowalski commented on May 25, 2024

Hi,

So I am not really able to get those errors on my side on my or any other computer. Are you using Debug or Release mode?
When GetIntersection returns strange results, how do they look like, is it something like Inf or Nan?
Could you try to see if it works if you comment out the call to CornersSubPix in GetMarker?

Thanks a lot,

Marek

from livescan3d.

youngheekim avatar youngheekim commented on May 25, 2024

Hi,
There was no crash after commenting out the call to CornersSubPix(). Calibration works fine and the result of "Show live" looks good.
Could you explain what the CornersSubPix() is?

By the way, I am using Windows 8.1 and tested in Debug and Release mode.

Thanks a lot.

Young.

from livescan3d.

MarekKowalski avatar MarekKowalski commented on May 25, 2024

Hi,

I'm glad that it helped, but I'm still puzzled at why that method wouldn't work :(
I will take a closer look at CornersSubPix when I have a moment and try to determine what the reason might have been.

CurnersSubPix fits lines to points located at each side of the detected markers and then finds the intersections of those lines. This provides the locations of marker corners with sub pixel precision, and should improve accuracy of calibration.

Marek

from livescan3d.

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.