与其他 PC 相比,OpenCV 文本和形状在我的 PC 上看起来很模糊

OpenCV text and shapes look vague on my PC compared to other PC

我有一个 python 脚本,它使用 OpenCV 库绘制文本和形状。文字和形状在我的 Ubuntu PC(在 VirtualBox 中 运行)上看起来很棒,分辨率为 1920x1080。当我 运行 在我自己的 Windows 11 系统上使用相同的 1920x1080 分辨率时,它看起来真的很模糊。

这是 OpenCV 代码的主要部分:

WINDOW_NAME = 'OpenCV Window'
BLACK_IMG = np.zeros((1080,1920,3), np.uint8)

cv.namedWindow(WINDOW_NAME, cv.WINDOW_NORMAL)
cv.setWindowProperty(WINDOW_NAME, cv.WND_PROP_FULLSCREEN, cv.WINDOW_FULLSCREEN)

while True:
    img = BLACK_IMG.copy()

    # [some code of drawing the shapes and text here]

    cv.imshow(WINDOW_NAME, cv.cvtColor(img, cv.COLOR_BGR2RGB))
    if cv.waitKey(1) == 27: # esc
        sys.exit()

这是我 PC 上的视图 (Windows 11):

这是另一台 PC 上的视图(VirtualBox 中的Ubuntu):

我发现了问题。在我的 Windows 设置中,我的屏幕设置为 1920x1080,但是当我转到 http://whatismyscreenresolution.net/ 时,实际分辨率似乎是 1280x720。