-
Notifications
You must be signed in to change notification settings - Fork 0
add lane detect with control of vehicle cutting and smoothed display #104
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
base: img_processing_main
Are you sure you want to change the base?
Conversation
ChedvaErblich
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few general comments:
- Please make sure not to write commit titles that are too long.
The title should be short, and if there is additional content, it should be placed in the body of the message.
There should be a blank line between the title and the body, otherwise, everything will be included as the title. - Please have someone else review the code, and after she approves it, I'll push it in.
img_processing/include/regression.h
Outdated
| { | ||
| X sum; | ||
| std::vector<T> temp; | ||
| for (int i = 0; i < A.size(); i++) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On for the closing bracket should start the loop line
| return linesP; | ||
| } | ||
|
|
||
| bool LaneDetector::drawLanes(std::vector<Vec4i> lines) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should base your commit on the SHOW_FRAMES flag that will be added soon to main
img_processing/src/manager.cpp
Outdated
| int Manager::processing(const Mat &newFrame, bool isTravel) | ||
| { | ||
| // Start measuring time | ||
| auto start = high_resolution_clock::now(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it for your tests?
I don't think it's part of your comment, right?
|
|
||
| laneDetector.init(); | ||
|
|
||
| while(true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On while the closing bracket should start the loop line
|
|
||
| laneDetector.manageLaneDetector(sharedFrame); | ||
| laneDetector.drawLanesOnImage(sharedFrame); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this blank line
img_processing/src/manager.cpp
Outdated
| longTime = duration.count(); | ||
| } | ||
| if(duration.count() < longTime){ | ||
| int key1 = waitKey( longTime - duration.count()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to have a separate commit for this change
59905e4 to
82c2891
Compare
82c2891 to
59905e4
Compare
59905e4 to
1abbbb7
Compare
No description provided.