Autopilot
Autopilot copied to clipboard
Optimize rendering speed of steering and car video
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
timemodule. - Optimize
cv2.resizefunction by usingcv2.INTER_LINEARinterpolation method. - Set
cv2.CAP_PROP_FPSproperty to 60 forcv2.VideoCapture. - Add
cv2.WINDOW_NORMALflag tocv2.namedWindowfor 'frame' and 'steering wheel'. - Add a timer to measure the time taken for each frame processing and display the FPS.
- Import
-
Autopilot/DriveApp.py
- Import
timemodule. - Optimize
cv2.resizefunction by usingcv2.INTER_LINEARinterpolation method. - Set
cv2.CAP_PROP_FPSproperty to 60 forcv2.VideoCapture. - Add
cv2.WINDOW_NORMALflag tocv2.namedWindowfor 'frame' and 'steering wheel'. - Add a timer to measure the time taken for each frame processing and display the FPS.
- Import