Hi Micael!
IIRC advanced camera calibration "reorders" the sensor pixels such that
the imaging surface is perpendicular with respect to the camera view.
This almost always shifts the image center (unless you do not have any
mounting errors). If you right-click the camera view, you can choose to
move the active tool to the camera center. This will take this offset
into account.
Btw: your mounting errors look quite small to me with 3° as max. on the
y axis of the second camera.
Looking at your screenshots I'm surprised that the effective field of
view of your second camera (Upp2) is larger then the physical field of
view. That's somewhat unexpected to me.
Do you see larger errors in the collected data?
Jan
On 13.09.2025 23:44, vespaman wrote:
> Well, after measuring the distance and doing the trigonometry, the 3/5mm
> makes sense. So this is one thing that could be improved.
>
> But I'm not sure this explains the invalid pixel stuff. But maybe it
> does, since two sides in particular is essentially clipped more, given
> the angle. But I don't see how the math ends up in the 10mm "invalid
> pixel crop" on the second camera, it looks to be twice the 3/5mm angel
> error somehow.
>
> - Micael
> lördag 13 september 2025 kl. 18:55:55 UTC+2 skrev vespaman:
>
> I guess the units per pixel change will depend on the errors found?
> This is what I get on first camera;
> Screenshot_20250913_182147.png
>
> Screenshot_20250913_182228.png
>
> The second camera gives similar result;
> Screenshot_20250913_183155.png
> Screenshot_20250913_183247.png
>
>
> A strange thing, that I noticed (don't remember if this is how it
> used to be before?), is that the tool center is changing drastically
> after the advanced calibration has been done. The pictures shows the
> tool centered! (I manually set the center on the Position tab prior
> to enabling the advanced calibration).
> So now I need to reset the tool center, but this does not make sense
> to me. The difference is, as can be seen 3/5mm
>
>
> Second camera has a bigger mounting error than the first, and those
> numbers seems rather high to me.. Maybe this is the reason for the
> tool center change, "Camera Mounting Errors" in the wiki seems to
> confirm this.
>
> Maybe the camera mount is still inferior. Thing is, this is the
> 5.23534 million iteration of the mount.
>
> - Micael
> lördag 13 september 2025 kl. 11:28:46 UTC+2 skrev
to...@tarind.com:
>
> What you are describing is outside my experience of the Advanced
> Camera Calibration. Can you share some images? This image from
> the wiki shows a small impact on units-per-pixel.
>
>
https://user-
>
images.githubusercontent.com/50550971/135167265-86140afa-
> a279-4c7c-8bbe-4fdcd8cdedfa.gif <
https://user-
>
images.githubusercontent.com/50550971/135167265-86140afa-
> a279-4c7c-8bbe-4fdcd8cdedfa.gif>
>
> On Fri, 12 Sept 2025 at 22:01, vespaman <
micael....@gmail.com>
> wrote:
>
> I have already cropped away the letterbox, I'm currently
> using a fairly square 1080x960 setting of the camera. And if
> I am able to keep this image size, my largest component is
> visible in one shot.
> But the cost is the reduction of resolution according to the
> advanced camera setup. But the doc's says
>
> /Invalid pixels (usually displayed as black) on the edges of
> the image may result due to the image processing that
> compensates for errors in camera mounting and lens
> distortion. While mostly aesthetic, changing this setting
> does change the Units Per Pixel for the camera./
> However, I am struggling to understand /how/ the
> "Crop All Invalid Pixels <--> Show All Valid Pixels
> slider" actually change the vision performance..
> In my current setup, it looks to be changing unit
> per pixel from below 20 up to about 50, and the
> place resolution as a consequence of that.
>
> Now, what I wonder is how one should think regarding
> this; is the worse resolution linear to the whole
> picture, or is the worse number in reality only in
> the outskirts of the picture? I.e. if I open up max
> (show all pixels), will also a small component (e.g.
> 0402/0201) suffer in the middle of the pic, or will
> this worse number only apply to larger components,
> such as connectors (that covers a big part of the
> picture (big enough not to fit the pic if "crop all"
> is selected) etc?
>
> - Micael
>
> --
> You received this message because you are subscribed
> to the Google Groups "OpenPnP" group.
> To unsubscribe from this group and stop receiving
> emails from it, send an email to
>
openpnp+u...@googlegroups.com.
> To view this discussion visit https://
>
groups.google.com/d/msgid/openpnp/
> fd1182b7-5758-4b5b-9af1-3e2268a18858n%
40googlegroups.com <
https://groups.google.com/d/msgid/openpnp/fd1182b7-5758-4b5b-9af1-3e2268a18858n%40googlegroups.com?utm_medium=email&utm_source=footer>.
> msgid/openpnp/6f754df5-ccad-4e8a-
> a5ce-3854a3d7f6cfn%
40googlegroups.com <https://
>
groups.google.com/d/msgid/openpnp/6f754df5-ccad-4e8a-
> a5ce-3854a3d7f6cfn%
40googlegroups.com?
> utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "OpenPnP" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
openpnp+u...@googlegroups.com
> <mailto:
openpnp+u...@googlegroups.com>.
> openpnp/6e02ab9d-d181-469c-922e-7eea1251a04an%
40googlegroups.com
> <
https://groups.google.com/d/msgid/openpnp/6e02ab9d-
> d181-469c-922e-7eea1251a04an%
40googlegroups.com?
> utm_medium=email&utm_source=footer>.