HI, I'm trying to record the sound and the camera while having a feedback image. I'm using tkinter to make the interface to interact with the user to start the recording. I currently cannot record the sound with the image.This is what i'm using to display and record the image.
I'm looking forward to hearing from you.
Code:
def open_camera(self): #lire image de la camera _, frame = self.vid.read() #enregistrer if self.recording: self.out.write(frame) self.update_clock() #convertir opencv a tkinter pour afficher # bgr à rgb opencv_image = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) # numpy à PIL captured_image= Image.fromarray(opencv_image) # PIL à imageTk photo_image = ImageTk.PhotoImage(image=captured_image) #empeche bug + màj affichage self.label.photo_image = photo_image self.label.configure(image=photo_image) #boucle video de 10ms qui ne bloque pas le reste self.label.after(10, self.open_camera)I'm looking forward to hearing from you.
Statistics: Posted by mawile — Thu Jan 08, 2026 3:44 pm — Replies 0 — Views 19