# Can Streaming video be used in OpenCV?

**URL:** https://discourse.processing.org/t/can-streaming-video-be-used-in-opencv/6318
**Category:** Libraries
**Created:** [December 5, 2018, 4:22am UTC](https://discourse.processing.org/t/can-streaming-video-be-used-in-opencv/6318 "2018-12-05T04:22:06Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [December 7, 2018, 6:11am UTC](https://discourse.processing.org/t/can-streaming-video-be-used-in-opencv/6318/9 "2018-12-07T06:11:32Z")

</div>

@Jakub. Indeed Processing’s OpenGL renderers crash on setup() if we **delay()** it by 5 seconds! 🥶

Found that out when experimenting on the following hack sketch: 👻

> [@Problems when trying to draw to a P3D PGraphics when called from a thread?](https://discourse.processing.org/t/problems-when-trying-to-draw-to-a-p3d-pgraphics-when-called-from-a-thread/6301/4):
>
> Although it’s pretty much a hack, here’s the workaround I’ve come up w/: crazy_face /\*\* \* Threaded PGraphics II (v1.0.1) \* GoToLoop (2018/Dec/07) \* \* https://Discourse.Processing.org/t/ \* problems-when-trying-to-draw-to-a-p3d-pgraphics- \* when-called-from-a-thread/6301/4 \* \* https://Forum.Processing.org/two/discussion/25799/ \* how-to-draw-a-rect-in-a-thread#Item\_2 \*/ static final int W = 250, H = 200, FPS = 10; Layer layer; void settings() { size(W, H, JAVA2D); smooth(3); } v…

It happened when I’d removed **draw()** and forced an “eternal” loop within **setup()**! 😱

---

_[View the full topic](https://discourse.processing.org/t/can-streaming-video-be-used-in-opencv/6318)._
