Comments (6)
I changed IPM code. The IPM area changes depending on the steering amount. I think it will reduce noises on the curvy road and make the truck drives better.
from chosuntruck.
I'm confused by this change, there's a lot of repeating code that I see.
For example:
ChosunTruck/linux/src/main2.cc
Line 173 in 0351ab8
is repeated here:
ChosunTruck/linux/src/main2.cc
Line 257 in 0351ab8
You also repeated the IPM code here and then again here
I'm not saying this is incorrect, but I believe this repetition of code is the reason why I cannot implement this correctly into our Windows version. Can you explain why these are repeated?
from chosuntruck.
The lane detection process consist of these stages:
- Set the IPM area
- Resize the IPMed area
- Convert the color from RGB to grey
- Sobel filtering and thresholding
and we find the lane with the frames which are the result of those screen filtering process.
My code uses move_mouse_pixel variable to change the IPM area. To use this changed IPM area in lane detection, we should do the screen filtering process again, and find the lane with the new frame again. I know the repeating code is bad for the maintanence, so I gonna refactor it soon.
from chosuntruck.
Ok! Just adding a function that performs those steps should make the code look better.
I will try to see if I can get that to work today.
In my latest commit I tried to implement it into the replacing move_mouse_pixel with diffOld, and it doesn't seem to help stabilize the ipm... not sure what is wrong.
from chosuntruck.
I have a better idea for implementing adaptive IPM. I will change the code before Tuesday or Wednesday
from chosuntruck.
OK, a better adaptive IPM area is implemented
https://youtu.be/qb99czlIklA
from chosuntruck.
Related Issues (20)
- [master] Freezing after input is used in Windows HOT 2
- [master] Need help testing mouse input HOT 9
- Error open No such file run the ./ChosunTruck HOT 9
- Assertion error occurs ONLY at the first run after build HOT 3
- RuntimeError: Bad magic number in .pyc file HOT 53
- [master] Assertion failure when running in Debug mode HOT 9
- Cannot build solution different LNKXXXX errors everytime HOT 7
- Windows-based ChosunTruck Steering Problem HOT 8
- Error open No such file run the ./ChosunTruck [OpenCV error message] HOT 1
- video HOT 1
- zlibd1.dll missing HOT 13
- error appeared: "This project references NuGet packages(s) that are missing......" HOT 9
- Update OpenCV nuget packages HOT 1
- Reducing extraneous lines in ChosunTruck [windows] HOT 1
- Switching to adaptiveThreshold HOT 1
- Linux Make Issue HOT 6
- Linux build error with opencv2 HOT 1
- Still working ? Can i run it on Visual Studio 2019 ?
- Permission to work on this project of yours can pass a readme where to start!! HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chosuntruck.