title: How do I get usb webcam property IDs for OpenCV
body: <p>I want to lock the focus on my USB webcam I'm using with OpenCV but how do I find the Property ID numbers for that webcam so I can set them.</p>
  <p>I used</p>
  <pre><code>vid = cv2.VideoCapture(2)
  for i in range(64):
          
      print(f'ID {i} = {vid.get(i)}')
  </code></pre>
  <p>to get all the values but I don't know which bool value is which.</p>
  <p>Driver: Realtek Semiconductor Corp. FULL HD 1080P Webcam<br />
  Cam: Nextech Autofocus 1080P HD Webcam</p>
  <pre><code>ID 0 = 0.0
  ID 1 = -1.0
  ID 2 = -1.0
  ID 3 = 640.0
  ID 4 = 480.0
  ID 5 = 30.0
  ID 6 = 1196444237.0
  ID 7 = -1.0
  ID 8 = 16.0
  ID 9 = 0.0
  ID 10 = 0.0
  ID 11 = 0.0
  ID 12 = 66.0
  ID 13 = 0.0
  ID 14 = -1.0
  ID 15 = 166.0
  ID 16 = 1.0
  ID 17 = -1.0
  ID 18 = -1.0
  ID 19 = -1.0
  ID 20 = 2.0
  ID 21 = 3.0
  ID 22 = 165.0
  ID 23 = 4600.0
  ID 24 = -1.0
  ID 25 = -1.0
  ID 26 = -1.0
  ID 27 = 0.0
  ID 28 = 120.0
  ID 29 = -1.0
  ID 30 = -1.0
  ID 31 = -1.0
  ID 32 = 0.0
  ID 33 = 0.0
  ID 34 = 0.0
  ID 35 = -1.0
  ID 36 = -1.0
  ID 37 = -1.0
  ID 38 = 4.0
  ID 39 = 1.0
  ID 40 = -1.0
  ID 41 = -1.0
  ID 42 = 200.0
  ID 43 = -1.0
  ID 44 = 1.0
  ID 45 = 4600.0
  ID 46 = -1.0
  ID 47 = -1.0
  ...
  ID 63 = -1.0
  </code></pre>
  <p>I'm using ubuntu</p>