Skip to content

Clean up code and Makefile, remove binary files #1

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Compact a couple of lines down to one.
  • Loading branch information
ctsrc committed Dec 29, 2017
commit 938cba62a6d50eeac8babfd1f14b73958c1ceddd
4 changes: 1 addition & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ int main (int argc, char *argv[])
{
Mat frame;

bool bSuccess = cap.read(frame); // read a new frame from video

if (!bSuccess) // if not success, break loop
if (!cap.read(frame)) // read frame from video or break loop
{
cout << "Cannot read a frame from video stream" << endl;
break;
Expand Down