opencv_drawer.py 608 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. __author__ = "heider"
  4. __doc__ = r"""
  5. Created on 9/9/22
  6. """
  7. __all__ = []
  8. from draugr.drawers import OpencvImageStream
  9. def asdasf() -> None:
  10. """
  11. :rtype: None
  12. """
  13. from draugr.opencv_utilities import frame_generator, AsyncVideoStream
  14. from draugr.visualisation.progress import progress_bar
  15. with AsyncVideoStream() as vc:
  16. with OpencvImageStream() as s:
  17. for i in progress_bar(frame_generator(vc), auto_total_generator=False):
  18. s.draw(i)
  19. if __name__ == "__main__":
  20. asdasf()