Skip to content

Commit

Permalink
fixing scaling, splashscreen isn't centered
Browse files Browse the repository at this point in the history
  • Loading branch information
0ssamaak0 committed Jul 18, 2023
1 parent 9439d2a commit 47cd2e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion DLTA_AI_app/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
os.chdir(os.path.dirname(os.path.realpath(__file__)))

from PyQt6 import QtGui, QtWidgets
from PyQt6 import QtGui, QtWidgets, QtCore

from labelme import __appname__
from labelme import __version__
Expand All @@ -16,6 +16,7 @@

def main():
app = QtWidgets.QApplication(sys.argv)
QtWidgets.QApplication.setHighDpiScaleFactorRoundingPolicy(QtCore.Qt.HighDpiScaleFactorRoundingPolicy.RoundPreferFloor)
app.setApplicationName(__appname__)
app.setWindowIcon(newIcon("icon"))

Expand Down
1 change: 0 additions & 1 deletion DLTA_AI_app/labelme/utils/helpers/mathOps.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,6 @@ def convert_QT_to_cv(incomingImage):

ptr = incomingImage.bits()
ptr.setsize(incomingImage.sizeInBytes())
print(f"Height: {height}, Width: {width}, ptr: {ptr}")
arr = np.array(ptr).reshape(height, width, 3) # Copies the data
return arr

Expand Down

0 comments on commit 47cd2e8

Please sign in to comment.