MCPcopy Create free account
hub / github.com/geekcomputers/Python / display_image

Method display_image

ML/src/python/neuralforge/cli/gui.py:352–359  ·  view source on GitHub ↗
(self, image_path)

Source from the content-addressed store, hash-verified

350 self.display_image(file_path)
351
352 def display_image(self, image_path):
353 try:
354 pixmap = QPixmap(image_path)
355 scaled_pixmap = pixmap.scaled(400, 300, Qt.AspectRatioMode.KeepAspectRatio,
356 Qt.TransformationMode.SmoothTransformation)
357 self.image_preview.setPixmap(scaled_pixmap)
358 except Exception as e:
359 self.image_preview.setText(f'Error loading image: {e}')
360
361 def load_model(self):
362 model_path = self.model_path_input.text()

Callers 1

browse_imageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected