-
Notifications
You must be signed in to change notification settings - Fork 2
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
JOSS: 3D reconstruction #109
Comments
Hi @mhubii, thank you, I am working on this issue, I think it might be something different to #96. Could you please let me know what you did differently to @merrygoat :
|
shouldn't the 3D reconstruction work regardless of detecting all particles? |
Hi @mhubii, I am trying to reproduce your problem but cannot so far. For me it works as then intended if I press Please check the attached screenshot, the detected rod data looks identical to yours, but I cannot compare the cropped part of your image: |
Hi again @mhubii, I think I got it now, you try to do 3D reconstruction after loading images from only one camera, it is impossible in this setup) I guess it's a problem of documentation. I will update it ASAP and also add corresponding warning messages to Solve button. |
hm I see, yes I probably only loaded gp3. Given the segmentations and rods of known dimension, you should be able to solve pnp regardless. But I suppose this would be a separate issue |
Hi @mhubii, |
I mean you've got a rod of known length so classifying 4 points (e.g. 0/3, 1/3, 2/3, 3/3 x length) on it would allow you to solve PnP (I might be wrong, but am somewhat confident this should work). Please refer e.g. to OpenCV https://docs.opencv.org/4.x/d5/d1f/calib3d_solvePnP.html However, you might be right that there are redundant solutions for a rod. I think I understand now. Thanks for clarifying. |
Could it be that you were initially confusing the PnP problem with its inverse problem, triangulation/reconstruction? In some cases it can be solved with a single view. See, for example, here: |
well inverse or not, kind of the same problem. You can estimate poses simply using AprilTags or Aruco markers using PnP, no need for depth, just an object of known shape and correspondences in the image space. I don't quite understand the need for a world frame here, from my understanding you just need a reference frame. You can even go down the alley of differentiable rendering or what not in your case. But I think this is a little beyond. |
Hi @mhubii, you are completely right that AprilTags or Aruco markers are a very good idea. For example, it would help with long-time tracking of particles or detection of some rotational motions which are otherwise hard to access. We thought about it for possible experiments with larger particles, in this case, however, the size constrains do not allow it (the rods are actually less than 1mm thick). |
I have successfully detected all particles. Then imported:
/tmp/ParticleTracking/RodTracker/src/RodTracker/resources/example_data/calibrations/gp34.json
/tmp/ParticleTracking/RodTracker/src/RodTracker/resources/example_data/calibrations/transformation.json
I then hit
Solve
, but nothing happens? Could you explain a little better how to reconstruct. What am I doing wrong?When
Update Plots
, this shows upThis seems also related to this issue: #96
Refers to openjournals/joss-reviews#5986
The text was updated successfully, but these errors were encountered: