cyberj0g / holo-detector

Hologram detection from video stream with Python and OpenCV
16 stars 8 forks source link

Not working for my video clips #1

Open pp3993 opened 5 years ago

pp3993 commented 5 years ago

Hi cvberj0g, I tried your method for my dataset (dataset is credit card), where i recorded the 10 sec video of my data, but its not giving any label mark on the hologram used. Do i need to change the dimension in the code? please reply!

pp3993 commented 5 years ago

I have shared my video file, Even its not working for this also Thanks

pp3993 commented 5 years ago

VID_20190529_154141.zip

margaritagirl commented 4 years ago

Hello Ivan, I was working on this project. However I am receiving the following error. Could you please take a look at this? Any help would be highly appreciated. Thank you

OpenCV: FFMPEG: tag 0x44495658/'XVID' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)' OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v' Traceback (most recent call last): File "detect_holo.py", line 57, in main() File "detect_holo.py", line 45, in main holo_mask, img_holo = detector.detect_holos(frame, False) File "/home/margarita/Documents/machine learning/holo-detector-master/holo_detector.py", line 174, in detect_holos self.holo_stack[..., self.cur_stack_idx] = cv2.resize(unwarped_hsv, self.holo_res, cv2.INTER_CUBIC) TypeError: Expected Ptr for argument '%s'

Cly1st commented 1 year ago

Hello Ivan, I was working on this project. However I am receiving the following error. Could you please take a look at this? Any help would be highly appreciated. Thank you

OpenCV: FFMPEG: tag 0x44495658/'XVID' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)' OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v' Traceback (most recent call last): File "detect_holo.py", line 57, in main() File "detect_holo.py", line 45, in main holo_mask, img_holo = detector.detect_holos(frame, False) File "/home/margarita/Documents/machine learning/holo-detector-master/holo_detector.py", line 174, in detect_holos self.holo_stack[..., self.cur_stack_idx] = cv2.resize(unwarped_hsv, self.holo_res, cv2.INTER_CUBIC) TypeError: Expected Ptrcv::UMat for argument '%s'

This could be a bit late. However, for anyone who's face the same issue as this; please change the code on line 34 from cv2.VideoWriter_fourcc(*'XVID') to cv2.VideoWriter_fourcc('m', 'p', '4', 'v').