A method for determining characteristics of a sample container in an in-vitro diagnostics system, the in-vitro diagnostics system comprising an analyzing device having one or more processors, the method comprising:
- providing first image data representing a first image of a sample container in a first scenario, wherein in the first scenario, a first illumination condition comprising a background illumination of the sample container is applied to the sample container;
- providing second image data representing a second image of the sample container in a second scenario, wherein in the second scenario, a second illumination condition different from the first illumination condition is applied to the sample container;
- determining a mask from the first image, the mask indicating a sub-image section of the first image comprising a representation of the sample container in the first image;
- determining sub-image data from the second image containing a representation of the sample container in the second image by applying the mask to the second image;
- and
- determining characteristics of the sample container from an image data analysis, comprising image data analysis of the sub-image data.