test_camera.py 638 B

12345678910111213141516171819202122
  1. # Copyright (c) OpenMMLab. All rights reserved.
  2. executor_cfg = dict(
  3. name='Test Webcam',
  4. camera_id=0,
  5. camera_max_fps=30,
  6. nodes=[
  7. dict(
  8. type='MonitorNode',
  9. name='monitor',
  10. enable_key='m',
  11. enable=False,
  12. input_buffer='_frame_',
  13. output_buffer='display'),
  14. # 'RecorderNode':
  15. # This node save the output video into a file.
  16. dict(
  17. type='RecorderNode',
  18. name='recorder',
  19. out_video_file='webcam_api_output.mp4',
  20. input_buffer='display',
  21. output_buffer='_display_')
  22. ])