uplooking camera exposure settings change at OpenPnP startup

207 views
Skip to first unread message

Harm Hongerkamp

unread,
Feb 25, 2021, 10:00:10 AM2/25/21
to OpenPnP

when OpenPnP is turned on it increments the exposure setting of the bottom camera with 5, camera is a logitech C270.
  OS: Pop!_OS 20.04 LTS x86_64

i made sure all of the auto-settings are turned of:
v4l2-ctl --all
Driver Info:
    Driver name      : uvcvideo
    Card type        : UVC Camera (046d:0825)
    Bus info         : usb-0000:00:14.0-1
    Driver version   : 5.8.18
    Capabilities     : 0x84a00001
        Video Capture
        Metadata Capture
        Streaming
        Extended Pix Format
        Device Capabilities
    Device Caps      : 0x04200001
        Video Capture
        Streaming
        Extended Pix Format
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
    Width/Height      : 640/480
    Pixel Format      : 'YUYV' (YUYV 4:2:2)
    Field             : None
    Bytes per Line    : 1280
    Size Image        : 614400
    Colorspace        : sRGB
    Transfer Function : Default (maps to sRGB)
    YCbCr/HSV Encoding: Default (maps to ITU-R 601)
    Quantization      : Default (maps to Limited Range)
    Flags             :
Crop Capability Video Capture:
    Bounds      : Left 0, Top 0, Width 640, Height 480
    Default     : Left 0, Top 0, Width 640, Height 480
    Pixel Aspect: 1/1
Selection Video Capture: crop_default, Left 0, Top 0, Width 640, Height 480, Flags:
Selection Video Capture: crop_bounds, Left 0, Top 0, Width 640, Height 480, Flags:
Streaming Parameters Video Capture:
    Capabilities     : timeperframe
    Frames per second: 30.000 (30/1)
    Read buffers     : 0
                     brightness 0x00980900 (int)    : min=0 max=255 step=1 default=128 value=128
                       contrast 0x00980901 (int)    : min=0 max=255 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=255 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=0
                           gain 0x00980913 (int)    : min=0 max=255 step=1 default=64 value=192
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
                0: Disabled
                1: 50 Hz
                2: 60 Hz
      white_balance_temperature 0x0098091a (int)    : min=0 max=10000 step=10 default=4000 value=1840
                      sharpness 0x0098091b (int)    : min=0 max=255 step=1 default=24 value=24
         backlight_compensation 0x0098091c (int)    : min=0 max=1 step=1 default=0 value=0
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=1
                1: Manual Mode
                3: Aperture Priority Mode
              exposure_absolute 0x009a0902 (int)    : min=1 max=10000 step=1 default=166 value=1005
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=0

further more: when i start OpenPnp from the terminal the terminal displays lots of errors like these whenever i try to access the camera from OpenPnP:
[DBG ] FOURCC = YUYV
[ERR ] setProperty (ID=12) failed on VIDIOC_S_CTRL (errno 110)
[ERR ] setProperty (ID=6) failed on VIDIOC_S_CTRL (errno 110)
[ERR ] setProperty (ID=7) failed on VIDIOC_S_CTRL (errno 110)
[ERR ] setAutoProperty (ID=1) failed on VIDIOC_S_CTRL (errno 34)
[ERR ] getPropertyLimits (ID=2) failed on VIDIOC_QUERYCTRL (errno 22)
[ERR ] getAutoProperty (ID=2) failed on VIDIOC_G_CTRL (errno 22)
[ERR ] getPropertyLimits (ID=2) failed on VIDIOC_QUERYCTRL (errno 22)
[ERR ] getPropertyLimits (ID=2) failed on VIDIOC_QUERYCTRL (errno 22)
[ERR ] getPropertyLimits (ID=2) failed on VIDIOC_QUERYCTRL (errno 22)
[ERR ] getProperty (ID=2) failed on VIDIOC_G_CTRL (errno 22)
[ERR ] getAutoProperty (ID=2) failed on VIDIOC_G_CTRL (errno 22)
[ERR ] getAutoProperty (ID=5) failed on VIDIOC_G_CTRL (errno 22)
[ERR ] getAutoProperty (ID=5) failed on VIDIOC_G_CTRL (errno 22)
[ERR ] getPropertyLimits (ID=9) failed on VIDIOC_QUERYCTRL (errno 22)
[ERR ] getPropertyLimits (ID=9) failed on VIDIOC_QUERYCTRL (errno 22)
[ERR ] getPropertyLimits (ID=9) failed on VIDIOC_QUERYCTRL (errno 22)
[ERR ] getPropertyLimits (ID=9) failed on VIDIOC_QUERYCTRL (errno 22)
[ERR ] getProperty (ID=9) failed on VIDIOC_G_CTRL (errno 22)
[ERR ] getPropertyLimits (ID=10) failed on VIDIOC_QUERYCTRL (errno 22)
[ERR ] getPropertyLimits (ID=10) failed on VIDIOC_QUERYCTRL (errno 22)
[ERR ] getPropertyLimits (ID=10) failed on VIDIOC_QUERYCTRL (errno 22)
[ERR ] getPropertyLimits (ID=10) failed on VIDIOC_QUERYCTRL (errno 22)
[ERR ] getProperty (ID=10) failed on VIDIOC_G_CTRL (errno 22)
[ERR ] getPropertyLimits (ID=3) failed on VIDIOC_QUERYCTRL (errno 22)
[ERR ] getPropertyLimits (ID=3) failed on VIDIOC_QUERYCTRL (errno 22)
[ERR ] getPropertyLimits (ID=3) failed on VIDIOC_QUERYCTRL (errno 22)
[ERR ] getPropertyLimits (ID=3) failed on VIDIOC_QUERYCTRL (errno 22)
[ERR ] getProperty (ID=3) failed on VIDIOC_G_CTRL (errno 22)

whenever I manually set the exposure in OpenPnP, the new value seems to be ignored.
Is there a fault in my software or in my driver that makes it impossible for openpnp to set the expossure?i tried to create a diagnosics report but that failed...

I hope I provided enough information, if not I will send whatever is needed.

machine.xml

Duncan Ellison

unread,
Feb 25, 2021, 10:03:39 AM2/25/21
to OpenPnP
Most likely is that your camera, being a webcam, just ignores any settings you try to send to it.  
This is a known issue with cameras outside the known good ones.

It's VERY unlikely to be an issue with OpenPnP itself.

Duncan


Harm Hongerkamp

unread,
Feb 25, 2021, 10:20:44 AM2/25/21
to ope...@googlegroups.com
thank you for your reaction.

I was afraid of that, we however choose this particular webcam because it was known to have good matching with openpnp: https://www.liteplacer.com/phpBB/viewtopic.php?f=4&t=144
can a solution be to just let it on auto-exposure and place the camera in a "black-box" so I have 100% control over the lightning?


Op do 25 feb. 2021 om 16:03 schreef Duncan Ellison <duncan_...@colnewater.com>:
--
You received this message because you are subscribed to a topic in the Google Groups "OpenPnP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpnp/O7PHJqHj_6c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/6b47ac78-09d7-425d-8a1f-3fdab3f6c586n%40googlegroups.com.

Jason von Nieda

unread,
Feb 25, 2021, 10:24:15 AM2/25/21
to ope...@googlegroups.com
Is it possible that something else is using the camera, or that there is a permissions problem? Based on the output from v4l2-ctl --all I would expect that OpenPnP could control these settings, and I do seem to remember that this particular model is well supported.

I think others are using this camera with OpenPnP - maybe someone can jump in?

Jason


You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/CA%2BKvLqNBhWuVH1%3DVnTHN_LA_hwWFcVM5JAjPvf1%2BcHKptUaaMw%40mail.gmail.com.

Harm Hongerkamp

unread,
Feb 25, 2021, 10:28:18 AM2/25/21
to ope...@googlegroups.com
what worries me the most are the VIDIOC_G_* errors, I can't find any results when is google them...

Harm Hongerkamp

unread,
Feb 25, 2021, 10:45:42 AM2/25/21
to ope...@googlegroups.com
permissions are:
camera: crw-rw----+ 1 root video 81, 0 Feb 25 09:26 /dev/video0, i dont see a problem there.

Op do 25 feb. 2021 om 16:28 schreef Harm Hongerkamp <ha...@evabits.com>:
Reply all
Reply to author
Forward
0 new messages