# Image capture with Processing and OpenCV

**URL:** <https://discourse.processing.org/t/image-capture-with-processing-and-opencv/8642>\
**Category:** Libraries\
**Created:** [February 22, 2019, 6:53pm UTC](https://discourse.processing.org/t/image-capture-with-processing-and-opencv/8642 "2019-02-22T18:53:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grisha](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@Grisha](https://discourse.processing.org/u/Grisha)\
**Post date:** [February 22, 2019, 6:53pm UTC](https://discourse.processing.org/t/image-capture-with-processing-and-opencv/8642/1 "2019-02-22T18:53:15Z")

</div>

I need to take a photo from WebCamera. How to do it using OpenCV and Processing ?

---

<div class="post-metadata">

**Author:** ![f42ter](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/f42ter/32/16793_2.png) [@f42ter](https://discourse.processing.org/u/f42ter)\
**Post date:** [February 22, 2019, 7:17pm UTC](https://discourse.processing.org/t/image-capture-with-processing-and-opencv/8642/2 "2019-02-22T19:17:18Z")

</div>

Use Gregs opencv lib for processing.

> **[atduskgreg/opencv-processing](https://github.com/atduskgreg/opencv-processing)**
>
> OpenCV for Processing. A creative coding computer vision library based on the official OpenCV Java API - atduskgreg/opencv-processing

---

<div class="post-metadata">

**Author:** ![Grisha](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@Grisha](https://discourse.processing.org/u/Grisha)\
**Post date:** [February 23, 2019, 4:18am UTC](https://discourse.processing.org/t/image-capture-with-processing-and-opencv/8642/3 "2019-02-23T04:18:15Z")

</div>

I know , but I can’t find a function to make a photo , not video . Can you write it , please ?

---

<div class="post-metadata">

**Author:** ![f42ter](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/f42ter/32/16793_2.png) [@f42ter](https://discourse.processing.org/u/f42ter)\
**Post date:** [February 23, 2019, 7:01am UTC](https://discourse.processing.org/t/image-capture-with-processing-and-opencv/8642/4 "2019-02-23T07:01:45Z")

</div>

You may find some ideas how to do that in an older processing forum.

[https://forum.processing.org/one/topic/save-an-image-from-webcam-capture.html](https://forum.processing.org/one/topic/save-an-image-from-webcam-capture.html)

Not checked but you may find an approach to get it solved. OpenCV is not needed.

---

<div class="post-metadata">

**Author:** ![Grisha](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@Grisha](https://discourse.processing.org/u/Grisha)\
**Post date:** [February 23, 2019, 7:51am UTC](https://discourse.processing.org/t/image-capture-with-processing-and-opencv/8642/5 "2019-02-23T07:51:28Z")

</div>

Thank you ! It seems to be that I found how to do it !

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [February 24, 2019, 6:53pm UTC](https://discourse.processing.org/t/image-capture-with-processing-and-opencv/8642/6 "2019-02-24T18:53:30Z")

</div>

Capturing a frame is a basic part of the Processing Video library.

There is an example in the Examples of PDE under the Video library – and documentation of capture is here:

[https://processing.org/reference/libraries/video/Capture.html](https://processing.org/reference/libraries/video/Capture.html)
