1
General / Re: FOV in model view & distance to object
« on: August 24, 2023, 10:20:56 PM »
Hopefully he will respond. 😊
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Hello everybody!
Is there a way to set/change the default size of the camera rectangle?
In my case they are always too big.
It would be best to have...maybe in the next version?
- an option in GUI
- or tweak
- or python function
By the way ... is there a python code to disable "show cameras"?
Thank you!![]()
chunk = chunk.copy(keypoints=False)
for camera in chunk.cameras:
camera.transform = None
chunk.point_cloud.removeKeypoints()
chunk.point_cloud = None
chunk.remove(chunk.markers)
Then I match and align photos (reset matches = True).from PySide2 import QtCore, QtGui, QtWidgets
class ref_korr_gui(QtWidgets.QDialog):
def __init__ (self, parent):
QtWidgets.QDialog.__init__(self, parent)
doc = Metashape.app.document
chunk = doc.chunk
self.setWindowTitle("Ref.-Korr.")
image_path = "D:\Dropbox\Showreel\16 Markerplatten\Zusatzsoftware\Korrektur.jpg"
picture = QtGui.QPixmap(image_path)
self.label = QtWidgets.QLabel()
self.label.setPixmap(picture)
self.label.setGeometry(QtCore.QRect(10, 40, picture.width(), picture.height()))
...
layout = QtWidgets.QGridLayout()
layout.addWidget(self.label, 11,1)
self.setLayout(layout)
self.exec()