-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't (?) show frames #5
Comments
Hi there, With regards! |
the output video is blank |
@mirceaciu do you solve this problem? I meet this too |
@mirceaciu, @z362194037: I can't explain why, but in my case It worked well only when input video is in mp4 format and output video in avi format. Hope it can help you. |
@johanna-codes which opencv version do you use? |
I did use .mp4 as input and .avi as output.Compiled OpenCv version is |
@z362194037 I'm using OpenCV version 3.1.0 |
@mirceaciu change the dimension to your .mp4 file in tensorflow-face-detection.py line46 get work |
Setting the output video dimensions same as the camera's input solves the output write problem. Would be nice to make it work with |
@mirceaciu @yeephycho If you are using opencv (built with fmpeg) to write video output, you need to pay attention to the following:
|
The output video for me is blank.
If I do
cv2.imshow("face", image)
it won't show any windows.If i do
cv2.imwrite("frames/%s.jpg" % time.time(), image)
i can see that frames are being processed, inference time cost is ~0.42.Tested on Ubuntu 16 machine with no GPU.
Is GPU a requirement?
The text was updated successfully, but these errors were encountered: