# Camera with Python

**URL:** <https://forum.opencv.org/t/camera-with-python/17829>\
**Category:** Python\
**Tags:** programming\
**Created:** [June 3, 2024, 10:22am UTC](https://forum.opencv.org/t/camera-with-python/17829 "2024-06-03T10:22:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepak\_Goel1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/deepak_goel1/32/8552_2.png) [@Deepak\_Goel1](https://forum.opencv.org/u/Deepak_Goel1)\
**Post date:** [June 3, 2024, 10:22am UTC](https://forum.opencv.org/t/camera-with-python/17829/1 "2024-06-03T10:22:06Z")

</div>

Hello

Is there a python code example which I can run with my camera on my laptop to identify humans?

Thanks.

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [June 3, 2024, 2:01pm UTC](https://forum.opencv.org/t/camera-with-python/17829/2 "2024-06-03T14:01:52Z")

</div>

we have [a nice sample to identify humans here](https://github.com/opencv/opencv/blob/4.x/samples/dnn/person_reid.py)

---

<div class="post-metadata">

**Author:** ![Deepak\_Goel1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/deepak_goel1/32/8552_2.png) [@Deepak\_Goel1](https://forum.opencv.org/u/Deepak_Goel1)\
**Post date:** [June 4, 2024, 5:18am UTC](https://forum.opencv.org/t/camera-with-python/17829/3 "2024-06-04T05:18:25Z")

</div>

Does the sample work with camera?

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [June 4, 2024, 10:34am UTC](https://forum.opencv.org/t/camera-with-python/17829/4 "2024-06-04T10:34:40Z")

</div>

no it obviously does not.  
it also does not show, how to _detect_ and crop partial images of ppl (needed !)

you have a lofty goal, thus a lot of research to do. gl.
