# Issue with camera accessing time using opencv

**URL:** <https://forum.opencv.org/t/issue-with-camera-accessing-time-using-opencv/16921>\
**Category:** Python\
**Created:** [March 21, 2024, 11:32pm UTC](https://forum.opencv.org/t/issue-with-camera-accessing-time-using-opencv/16921 "2024-03-21T23:32:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KARTHICKSELVAN\_A\_SIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/karthickselvan_a_sit/32/9990_2.png) [@KARTHICKSELVAN\_A\_SIT](https://forum.opencv.org/u/KARTHICKSELVAN_A_SIT)\
**Post date:** [March 21, 2024, 11:32pm UTC](https://forum.opencv.org/t/issue-with-camera-accessing-time-using-opencv/16921/1 "2024-03-21T23:32:20Z")

</div>

I am using logitech c922 pro webcamera and fingers webcamera, While i try to access the both cameras using opencv python , the logitech camera tooks 30 secs to initiate the camera but the fingers camera took only 4 seconds and how can i decrease the large time difference in accessing the webcamera , i need the logitech camera should be accessed soon. Please guide me to solve this issue

---

<div class="post-metadata">

**Author:** ![laurent.berger](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@laurent.berger](https://forum.opencv.org/u/laurent.berger)\
**Post date:** [March 22, 2024, 8:28am UTC](https://forum.opencv.org/t/issue-with-camera-accessing-time-using-opencv/16921/2 "2024-03-22T08:28:24Z")

</div>

If you use windows then you can try :

> Microsoft Media Foundation backend tries to use hardware accelerated transformations if possible. Environment flag “OPENCV\_VIDEOIO\_MSMF\_ENABLE\_HW\_TRANSFORMS” set to 0 disables it and may improve initialization time. More details: [MF\_READWRITE\_ENABLE\_HARDWARE\_TRANSFORMS attribute (Mfreadwrite.h) - Win32 apps | Microsoft Learn](https://learn.microsoft.com/en-us/windows/win32/medfound/mf-readwrite-enable-hardware-transforms)

[https://docs.opencv.org/4.x/d4/d15/group\_\_videoio\_\_flags\_\_base.html#ga023786be1ee68a9105bf2e48c700294d](https://docs.opencv.org/4.x/d4/d15/group __videoio__ flags__base.html#ga023786be1ee68a9105bf2e48c700294d)

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [March 22, 2024, 8:56am UTC](https://forum.opencv.org/t/issue-with-camera-accessing-time-using-opencv/16921/3 "2024-03-22T08:56:53Z")

</div>

DO NOT attach both USB devices to the same USB hub. Yes, your computer contains USB hubs.

and set CAP\_PROP\_FOURCC to MJPG or something else that’s compressed
