552 questions
1
vote
0
answers
148
views
PySide6 QImage conversion to PyQtGraph ndarray
I cannot generate a QImage with some text on it, keep it in memory, and then successfully display it on a pyqtgraph.ImageItem which needs it as an np.ndarray
import sys
import numpy as np
import ...
0
votes
1
answer
42
views
PIL Image to PixMap Error on QImage Conversion
The following code block:
class MDraw(QtWidgets.QGraphicsView):
def __init__(self, parent):
super(MDraw, self).__init__(parent)
self.data = None
self.width = 0
self....
1
vote
1
answer
168
views
converting dip::Image to QImage
I want to use DIPlip library for my project in Qt framework to show the result of DIPlib Image I need to convert dip::Image class to Qt framework QImage class, in format QImage::Format_RGB888.
How can ...
1
vote
2
answers
71
views
Dividing QImage into sub-images in PySide2
I have a large image composed of subimages I have received from another program, I will eventually need to use the subimages as icons on buttons. I understand the math to access the bits + bytes of ...
0
votes
0
answers
64
views
Figuring out the difference between cv::imread / cv::dnn::blobFromImage and QImage
I have the following image loading code (example: to feed YOLO recognition algorithm) which works:
cv::Mat image = imread(image_path, cv::IMREAD_COLOR);
cv::Mat blob = cv::dnn::blobFromImage(
image,
...
1
vote
1
answer
102
views
Queued async operations with QtConcurrent interfere QImage from freed
I'm writing an image-processing app with Qt6.5.3. There's a producer(camera) that keeps grabbing images and a consumer that performs detection on grabbed images. As the detection could be quite slow, ...
1
vote
1
answer
384
views
How to correctly convert image to QByteArray and vice versa?
I am building two apps, one client, and one server. I need to send and image via RPC to the server app and convert it back into QImage.
When I do the conversion, I noticed that the images don't match ...
0
votes
0
answers
74
views
Signals and threads in a Qt based application
I'm building a project where a client sends an image buffer to the server and this server shows the received image using a QGraphicsView.
Everything works properly except for the signal calling part.
...
0
votes
1
answer
675
views
Different colors in cv2 and QPixmap/QImage
I am trying to build a simple image editor app using Python and PyQt6. At the moment, TIFF images are loaded using cv2.imread(). Then, the user can make several adjustments (contrast, colors, etc.). ...
1
vote
0
answers
113
views
Have movable image in PyQt/PySide that wraps one edge to the other edge when moved (similar an interactive map)
I have a CSV colormap image and want it to be able to move horizontally and (similar to an interactive world map like google maps) have one side wrap back to the other side when moved, like so:
[...
-1
votes
1
answer
394
views
How to continuously update a QLabel with QImage in Qt when a window is open?
I have a scenario where I need to continuously display frames from a QImage in a QLabel when a window is open in a Qt application.
I have 2 classes involved in this scenario:
Camera (where the buffer ...
1
vote
1
answer
286
views
QML image not showing up in window, no errors or warnings
I am able to load images through Qt's resource system, but they are not showing up in the window, without any warning or error messages.
According to the documentation, getting an image to show should ...
1
vote
0
answers
94
views
How to get pixel values from a QImage in monochromatic format
I have a monochromatic image displayed on a QLabel, and I would like to save the image in a plain byte array.
The code is the following:
QLabel *label;
label = new QLabel(this);
...
QPixmap pixmap = ...
0
votes
2
answers
895
views
How to fill a QImage with pil image data in python
I want to crop a portion of a screenshot in python using qt.
I use PIL for grabing the screen and i convert it back to QImage to QPixmap for my QLabel
My code works with square width and height. I ...
0
votes
0
answers
580
views
How to render grayscale numpy array as PyQt6 QImage?
Given a variable blurmap that is a grayscale 1440x1080 numpy array that when saved with imageio results in this image:
https://i.sstatic.net/AxKha.jpg
What is causing PyQt to render it like this?
...