Skip to main content

All Questions

0 votes
2 answers
63 views

Python CV2 and tkinter canvas

I have been working on face recognition tool and I have to draw a square on an image. The problem is before the last line cv2.rectangle(photo1.....) because the image is not a cv2 it says I have given ...
Markuss Celms's user avatar
0 votes
1 answer
79 views

PIL vs OpenCV Affine Transform: why does the image turn upside down?

I'm trying to get rid of OpenCV in my image pipeline. I'm replacing it with PIL. I understand that the affine transformation in OpenCV is source -> destination, but the parameter for PIL is ...
Tyler Norlund's user avatar
0 votes
1 answer
158 views

Convert Image under UV Light to RGB?

I have an Image (banknotes) as a dataset that is under UV Light. I want to image process it back to RGB again in order to detect which banknote is it (if it is 20, 50, 100 and so on bill) Since this ...
ANAXA GORAS's user avatar
2 votes
1 answer
62 views

How to pass tkimage raw data to cv2 functions?

TLDR I am writing a video recorder with tkinter and cv2. How to pass tkimage raw data to cv2.VideoWriter, cv2.circle, and so on? Current approach I using a numpy array (self.data) as a middle man. But ...
cpicanco's user avatar
  • 294
-3 votes
1 answer
103 views

Need to resample or resize images in python

I have two images, want to resize these images as should be same imagedata(circles/text) with exact same pixel location of both images. The distance between objects should also be same of both images....
254Hasan's user avatar
0 votes
1 answer
76 views

Django- how to convert <class 'django.core.files.uploadedfile.InMemoryUploadedFile'> to an image?

I have a form that uploads an image to my view; the uploaded image type is: <class 'django.core.files.uploadedfile.InMemoryUploadedFile'> I want to process the image though; thus I need it in ...
Mohammed Baashar's user avatar
-1 votes
1 answer
576 views

How do i modify image in python to fit face_recognition parameters (8bit gray or RGB image)

I'm trying to modify my image so that it fits the supported image type. I've tried using cv2 and Pillow to modify the dtype however it returns the error "RuntimeError: Unsupported image type, ...
ovoxojxy's user avatar
-1 votes
1 answer
138 views

Write a lossless-compressed image with multiple layers

How to save an image, losslessly compressed, with multiple layers (like with Photoshop PSD but rather an open format), with OpenCV cv2 or PIL/Pillow ? Note: Is seems that TIFF format can do this (see ...
Basj's user avatar
  • 46.7k
1 vote
1 answer
808 views

Python Image Blur Effect

I am working on a project which should blur the background of the image, I have used pixellib, mask r-cnn and deeplabv3 but the results are not satisfactory, the main problem I think lies in the image ...
Anas Rao's user avatar
0 votes
1 answer
141 views

How to Draw Chinese Characters on a Picture with OpenCV

Currently my project uses OpenCV to process pictures, draw some information and then push the video frames out through ffmpeg, because it is a live streaming form of pushing, the processing speed of a ...
囧囧JOJO's user avatar
-1 votes
1 answer
87 views

PIL fromarray for single channel image [closed]

I am trying to obtain an image shaped (1080, 1920, 1) from one shaped (1080, 1920, 3) This is what I have been trying without success: for fr in fr_lst: frame = cv2.imread(os.path.join(...
Francesco's user avatar
  • 501
-1 votes
1 answer
133 views

How do I apply a polygon mask to a video feed in Python using OpenCV?

I am creating a security camera parking spot detection system in Python where the user will be able to define the bounds of each parking spot manually in order to be as adaptable as possible. The ...
elliosam's user avatar
0 votes
1 answer
104 views

How to recreate PIL palette image using OpenCV? (confusion with P mode) [duplicate]

I am trying to replace part of the code originally written with PIL by OpenCV. Ideally, I would like to eliminate PIL or at least make that input (first_frame) is OpenCV array. Original (PIL) code: ...
flamingo's user avatar
  • 168
1 vote
2 answers
92 views

How can I make the dark black frames in the image white?

I have this first image where there is a massive white background around the image and then a darker frame. I want to get rid off that extra white parts around the image as well as the dark frame. ...
gülsemin's user avatar
0 votes
0 answers
65 views

How to select between bright spots in a continuously updating image

Suppose I have some function: find_spots(image) -> list[tuple[x, y]] that takes a greyscale image as its input, and using OpenCV/some other image processing library, returns a list of tuples of ...
TheGodParticle's user avatar

15 30 50 per page
1
2 3 4 5
47