Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Akka Stream for image processing

997 views

Published on

Some examples on akka stream and opencv for image processing

Published in: Software
  • Be the first to comment

Akka Stream for image processing

  1. 1. Akka Stream For Image processing
  2. 2. Fabian GUTIERREZ fabGutierr fagossa Who we are? Diana ORTEGA dicaormu dicaormu
  3. 3. Agenda ● Context ● Images, motion detection ● Streams, back pressure and all that stuff ● Image processing in a reactive pipeline
  4. 4. Context
  5. 5. Consume Streamed Images Detection Motion Identify obstacle with Tensor flow Stream result
  6. 6. Detection Motion Show Image Capture Image
  7. 7. Python
  8. 8. Images and image processing
  9. 9. Motion Detection
  10. 10. Motion detection
  11. 11. Streams, back pressure and all that stuff
  12. 12. Publisher Subscriber Back-pressured
  13. 13. Publisher Subscriber Back-pressured 100op/sec 1op/sec
  14. 14. Publisher Subscriber Back-pressured 100op/sec 1op/sec . . .
  15. 15. Fast :) Slow :’( Publisher Subscriber Back-pressured
  16. 16. 100op/sec 1op/sec Request(3)
  17. 17. Back-pressured stream processing
  18. 18. monix Streams
  19. 19. Image processing with pipelines
  20. 20. Capture Image Motion Detection Show image
  21. 21. Capture Image Motion Detection Show image
  22. 22. Motion detection smooth diff threshold smooth
  23. 23. Camera Source Motion Detection Screen Sink ? Something
  24. 24. Local Camera Source Show Image Sink Remote Http Source Motion Detection Couchbase Sink S3 Kafka Sink
  25. 25. 4 3 2 1Source Sink 4 3 2 1 Source Sink Grouped
  26. 26. Scala implementation Initialisation Source Grouped elements call flow Sink
  27. 27. Java implementation Initialisation Source Grouped elements call flow Sink
  28. 28. Source scala
  29. 29. Source java
  30. 30. Flow scala Flow creation Operations images Operations images Flow creation Operations images Operations images
  31. 31. Flow java Flow creation Operations images Operations images
  32. 32. Sink
  33. 33. Rx .Observable .prototype .flatMapLatest(selector, [thisArg]) Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.
  34. 34. github.com/akka/alpakka
  35. 35. https://github.com/fagossa/camera_stream
  36. 36. https://github.com/fagossa/camera_stream fabGutierr dicaormu blog.xebia.fr Contact

×