# Can Video and Text Co-exist?

**URL:** <https://discourse.processing.org/t/can-video-and-text-co-exist/5335>\
**Category:** Libraries\
**Created:** [November 8, 2018, 12:26am UTC](https://discourse.processing.org/t/can-video-and-text-co-exist/5335 "2018-11-08T00:26:21Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![laptophead](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/laptophead/32/2701_2.png) [@laptophead](https://discourse.processing.org/u/laptophead)\
**Post date:** [December 5, 2018, 4:23am UTC](https://discourse.processing.org/t/can-video-and-text-co-exist/5335/22 "2018-12-05T04:23:01Z")

</div>

I put the code here:

> [@Can Streaming video be used in OpenCV?](https://discourse.processing.org/t/can-streaming-video-be-used-in-opencv/6318):
>
> I opened the example “backgroundSubstraction” and tried to replace movie file with streaming webcam video but no luck. this line is the trouble: opencv = new OpenCV(this, video); The error says" Width(0) and height (0) cannot be \<=0" Here is the code I tried: import gab.opencv.\*; import processing.video.\*; Capture video; //Movie video; OpenCV opencv; void setup() { size(840, 660); String[] cameras = Capture.list(); if (cameras == null) { println("Failed to retrieve the list …

Thanks

---

_[View the full topic](https://discourse.processing.org/t/can-video-and-text-co-exist/5335)._
