Skip to content
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

Too Slow rendering of both steering and car video. #15

Open
styxOO7 opened this issue Mar 24, 2023 · 3 comments · May be fixed by #17
Open

Too Slow rendering of both steering and car video. #15

styxOO7 opened this issue Mar 24, 2023 · 3 comments · May be fixed by #17

Comments

@styxOO7
Copy link

styxOO7 commented Mar 24, 2023

No description provided.

@styxOO7
Copy link
Author

styxOO7 commented Mar 24, 2023

Can someone help?

@taimeile
Copy link

你好 你的方向盘可以转动吗?我这里遇到了问题 方向盘一开始转动一下 然后就是保持静止不动了

@styxOO7
Copy link
Author

styxOO7 commented Mar 28, 2023

yes my steering wheel is turning but its very slow

iamprathosh added a commit to iamprathosh/Autopilot that referenced this issue Jan 11, 2025
Fixes akshaybahadur21#15

Optimize the rendering speed of both the steering and car video in `Autopilot_V2/AutopilotApp_V2.py` and `Autopilot/DriveApp.py`.

* **Autopilot_V2/AutopilotApp_V2.py**
  - Import `time` module.
  - Optimize `cv2.resize` function by using `cv2.INTER_LINEAR` interpolation method.
  - Set `cv2.CAP_PROP_FPS` property to 60 for `cv2.VideoCapture`.
  - Add `cv2.WINDOW_NORMAL` flag to `cv2.namedWindow` for 'frame' and 'steering wheel'.
  - Add a timer to measure the time taken for each frame processing and display the FPS.

* **Autopilot/DriveApp.py**
  - Import `time` module.
  - Optimize `cv2.resize` function by using `cv2.INTER_LINEAR` interpolation method.
  - Set `cv2.CAP_PROP_FPS` property to 60 for `cv2.VideoCapture`.
  - Add `cv2.WINDOW_NORMAL` flag to `cv2.namedWindow` for 'frame' and 'steering wheel'.
  - Add a timer to measure the time taken for each frame processing and display the FPS.
@iamprathosh iamprathosh linked a pull request Jan 11, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants