Skip to content

Conversation

@iamprathosh
Copy link

Fixes #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.

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.
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 this pull request may close these issues.

Too Slow rendering of both steering and car video.

1 participant