Heart-rate-measurement-using-camera icon indicating copy to clipboard operation
Heart-rate-measurement-using-camera copied to clipboard

Error with upload

Open Jhonatan-Souza opened this issue 4 years ago • 7 comments

I try to run and open and upload a video, this error happens.

Heart-rate-measurement-using-camera-master/GUI.py", line 210, in openFileDialog self.statusBar.showMessage("File name: " + self.dirname,5000) TypeError: can only concatenate str (not "tuple") to str

Jhonatan-Souza avatar Feb 21 '20 21:02 Jhonatan-Souza

Did you find a solution? i'm trying to input a video sample but the software crashes everytime. Should i use a specific format or resolution?

Raevel avatar Apr 02 '20 21:04 Raevel

I've just had a quick look and found that it was an error related to the difference between pyqt versions. I've just updated the code. You can pull and try again.

habom2310 avatar Apr 04 '20 04:04 habom2310

Pulled and tried again, same PyQt version but still not working. Still crashes everytime i click on Start to upload a video.

C:\Users\Francesco\anaconda3\envs\env_dlib\python.exe C:/Users/Francesco/Desktop/Webcam/GUI.py Input: webcam Input: video Start video

Process finished with exit code -1073740791 (0xC0000409)

Raevel avatar Apr 06 '20 09:04 Raevel

Same issue

arashtavakoli avatar May 19 '20 00:05 arashtavakoli

you can print(self.dirname), and you will find that self.dirname is a tuple.

self.dirname[0] works well

Peipeilvcm avatar May 26 '20 08:05 Peipeilvcm

It's the GUI, are you referring to change the underlying python code?

arashtavakoli avatar May 26 '20 16:05 arashtavakoli

yeah it works, for whoever wants to know, go under video.py and add [0] to this line: self.cap = cv2.VideoCapture(self.dirname[0])

arashtavakoli avatar May 26 '20 16:05 arashtavakoli