# Setting custom camera parameters in Open CV

**URL:** <https://forum.opencv.org/t/setting-custom-camera-parameters-in-open-cv/10573>\
**Category:** Python\
**Tags:** videoio\
**Created:** [October 17, 2022, 3:21am UTC](https://forum.opencv.org/t/setting-custom-camera-parameters-in-open-cv/10573 "2022-10-17T03:21:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![harish](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/harish/32/6460_2.png) [@harish](https://forum.opencv.org/u/harish)\
**Post date:** [October 17, 2022, 3:21am UTC](https://forum.opencv.org/t/setting-custom-camera-parameters-in-open-cv/10573/1 "2022-10-17T03:21:54Z")

</div>

I am using property (cv2.CAP\_PROP\_SETTINGS, 1) to get all the camera parameters dialog box but now I am looking to change anyone of the camera parameter with other camera parameter in this dialog box. so can I get any suggestions?

Thanks in advance!  
 ![Camera_settings parameter](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/8/86e9c12d9f1dedb0162716dacc2e467d0f1a86a4.png)

---

<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:** [October 17, 2022, 9:55am UTC](https://forum.opencv.org/t/setting-custom-camera-parameters-in-open-cv/10573/2 "2022-10-17T09:55:09Z")

</div>

> [@harish](#):
>
> cv2.CAP\_PROP\_SETTINGS,

please note, that this will invoke the camera drivers _persistent_ settings (only available from the dshow backend on win) and no, you cannot add other values there.

you can still try to  
`cap.set(cv2.CAP_PROP_XXXX, something)` to change props not listed in the box

---

<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:** [October 17, 2022, 2:18pm UTC](https://forum.opencv.org/t/setting-custom-camera-parameters-in-open-cv/10573/4 "2022-10-17T14:18:50Z")

</div>

crosspost:

> <https://stackoverflow.com/questions/74091827/setting-custom-camera-parameters-in-opencv>

---

<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:** [October 18, 2022, 6:12am UTC](https://forum.opencv.org/t/setting-custom-camera-parameters-in-open-cv/10573/5 "2022-10-18T06:12:04Z")

</div>

> [@harish](#):
>
> Is there anyway to get that backend code?

which backend code, please ?

---

<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:** [October 18, 2022, 10:15am UTC](https://forum.opencv.org/t/setting-custom-camera-parameters-in-open-cv/10573/7 "2022-10-18T10:15:31Z")

</div>

> [@harish](#):
>
> Is there anyway to get that backend code?

it is not a backend (like CAP\_DSHOW, CAP\_FFMPEG, etc)

and sorry, i have no idea, what you mean.  
can you try again, please ?

---

<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:** [October 18, 2022, 11:49am UTC](https://forum.opencv.org/t/setting-custom-camera-parameters-in-open-cv/10573/9 "2022-10-18T11:49:47Z")

</div>

that simply calls some DSHOW API. that dialog is not made by OpenCV.

opencv is open source. all the code is on github. just browse it.

---

<div class="post-metadata">

**Author:** ![harish](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/harish/32/6460_2.png) [@harish](https://forum.opencv.org/u/harish)\
**Post date:** [January 5, 2023, 6:46am UTC](https://forum.opencv.org/t/setting-custom-camera-parameters-in-open-cv/10573/11 "2023-01-05T06:46:23Z")

</div>

How to get camera parameters dialog box in Linux?  
Thanks in advance!

---

<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:** [January 5, 2023, 8:40am UTC](https://forum.opencv.org/t/setting-custom-camera-parameters-in-open-cv/10573/12 "2023-01-05T08:40:18Z")

</div>

impossible. linux doesn’t have such a dialog. OpenCV does not make this dialog, but Windows does, as I said.
