Use shape file in sphereDetection and lightingCalibration#2005
Use shape file in sphereDetection and lightingCalibration#2005
Conversation
cbentejac
left a comment
There was a problem hiding this comment.
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.
cbentejac
left a comment
There was a problem hiding this comment.
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.
b37884d to
613a482
Compare
613a482 to
d9fcc5c
Compare
d9fcc5c to
2a6c76b
Compare
2a6c76b to
8ebe4bc
Compare
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.
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.
8ebe4bc to
c2e92fa
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.SphereDetectionsoftware.