-
-
Notifications
You must be signed in to change notification settings - Fork 850
Use shape file in sphereDetection and lightingCalibration #2005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working as expected! ⭐⭐⭐⭐⭐
I am not merging it straight away because it makes the "Display Lighting Circle : Sphere Detection" from the 2D Viewer useless, and since the display of the shape is now handled from the Node Editor, it should probably be removed altogether.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually there's a missing part in this PR: if the "Automatic Sphere Detection" option is disabled, the position of the sphere is supposed to be provided by the user. So we need to add a Circle
attribute to replace the "Sphere Center" / "Sphere Radius" attributes, and use the position of the circle in sphereDetection.cpp
to write the ouput detection.json
accordingly.
The function takes a dictionary (Python-like or a flat JSON file content) represented as a flat vector of strings that contain key-value pairs into a map of pairs of strings.
98e1b43
to
b37884d
Compare
There are now two variants of this method: - one that takes the coordinates and radius of the hand-detected spheres - one that takes a JSON file containing shape information for the spheres In both cases, `fillMissingSpheres` can be enabled to fill the location of some spheres for which the data is unavailable with the location of the last detected sphere.
b37884d
to
613a482
Compare
Description
This PR modifies the structure of the JSON file used for sphere detection.
The new format is compatible with the structure expected by Meshroom, allowing spheres to be displayed directly in the interface.
Features list
sphereDetection
.lightCalibration
.SphereDetection
software.