{"id":21274041,"url":"https://github.com/flexrobotics/roboflex_webcamuvc","last_synced_at":"2026-03-06T07:03:04.184Z","repository":{"id":202771998,"uuid":"707418934","full_name":"flexrobotics/roboflex_webcamuvc","owner":"flexrobotics","description":"Roboflex support for broadcasting rgb images from uvc (usb) compatible webcams.","archived":false,"fork":false,"pushed_at":"2023-12-09T23:34:14.000Z","size":24,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-27T19:49:33.001Z","etag":null,"topics":["roboflex","uvc","webcam"],"latest_commit_sha":null,"homepage":"https://github.com/flexrobotics/roboflex_webcamuvc","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flexrobotics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-10-19T21:25:13.000Z","updated_at":"2024-02-15T11:29:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f43778c-314d-437e-ac6b-079617295290","html_url":"https://github.com/flexrobotics/roboflex_webcamuvc","commit_stats":null,"previous_names":["flexrobotics/roboflex_webcamuvc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flexrobotics/roboflex_webcamuvc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexrobotics%2Froboflex_webcamuvc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexrobotics%2Froboflex_webcamuvc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexrobotics%2Froboflex_webcamuvc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexrobotics%2Froboflex_webcamuvc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flexrobotics","download_url":"https://codeload.github.com/flexrobotics/roboflex_webcamuvc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexrobotics%2Froboflex_webcamuvc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30164901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T04:43:31.446Z","status":"ssl_error","status_checked_at":"2026-03-06T04:40:30.133Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["roboflex","uvc","webcam"],"created_at":"2024-11-21T09:18:41.080Z","updated_at":"2026-03-06T07:03:04.004Z","avatar_url":"https://github.com/flexrobotics.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# roboflex.webcam_uvc\n\nSupport for web cameras on linux - actually just a thin wrapper around libuvc, so if your camera supports libuvc, you should be good to go.\n\n## System dependencies\n\n    apt-get install libusb-1.0-0-dev\n    apt-get install libjpeg-dev\n\n    # ...or, on mac:\n\n    brew install libusb\n\n## pip install\n\n    pip install roboflex.webcam_uvc\n\n## Import\n\n    import roboflex.webcam_uvc as rcw\n\n## Nodes\n\nThere is only one: **WebcamSensor**\n\n    # all parameters optional: below are the defaults\n    webcam_sensor = rcw.WebcamSensor(\n        width,\n        height,\n        fps,\n        device_index = -1,\n        format = UVC_FRAME_FORMAT_ANY,\n        name = \"WebcamSensor\",\n    )\n\n    # must be started!\n    webcam_sensor.start()\n\n    # you can do this:\n    webcam_sensor.print_device_info()\n\n## Messages\n\n    from roboflex.webcam_uvc import WebcamDataRGB\n\nAPI:\n\n    # the timestamp just before reading from device\n    message.t0 -\u003e Float\n\n    # the timestamp just after reading from device\n    message.t1 -\u003e Float\n\n    # the capture time from the device\n    message.capture_time -\u003e Float\n\n    # the sequence number from the device\n    message.sequence -\u003e Int\n\n    # numpy array of shape=(width, height, channels), dtype=short\n    message.rgb -\u003e np.ndarray\n\nDYNOFLEX:\n\n    # the timestamp just before reading from device\n    message[\"t0\"] -\u003e Double\n\n    # the timestamp just after reading from device\n    message[\"t1\"] -\u003e Double\n\n    # the capture time from the device\n    message[\"t\"] -\u003e Double\n\n    # the sequence number from the device\n    message[\"s\"] -\u003e Double\n\n    # numpy array of shape=(width, height, channels), dtype=short\n    message[\"rgb\"] -\u003e np.ndarray\n\n\n## Other\n\n\nDescription of a device:\n\n    from roboflex.webcam_uvc import DeviceDescriptor\n\n    dd.idVendor -\u003e int\n    dd.idProduct -\u003e int\n    dd.bcdUVC -\u003e int\n    dd.serialNumber -\u003e str\n    dd.manufacturer -\u003e str\n    dd.product -\u003e str\n\n    # you probably just want to print it:\n    str(dd)\n\n\nFree function: get list of connected devices (webcams) - list of DeviceDescriptor, above.\n\n    get_device_list() -\u003e [DeviceDescriptor]\n\nAvailable frame formats: pass to constructor of WebcamSensor for the format parameter.\n\n    from roboflex.webcam_uvc import uvc_frame_format\n\n    uvc_frame_format.UVC_FRAME_FORMAT_ANY\n    uvc_frame_format.UVC_FRAME_FORMAT_UNCOMPRESSED\n    uvc_frame_format.UVC_FRAME_FORMAT_COMPRESSED\n\n    # YUYV/YUV2/YUV422: YUV encoding with one luminance value per pixel and\n    # one UV (chrominance) pair for every two pixels.\n    uvc_frame_format.UVC_FRAME_FORMAT_YUYV\n    uvc_frame_format.UVC_FRAME_FORMAT_UYVY\n\n    # 24-bit RGB\n    uvc_frame_format.UVC_FRAME_FORMAT_RGB\n    uvc_frame_format.UVC_FRAME_FORMAT_BGR\n\n    # Motion-JPEG (or JPEG) encoded images\n    uvc_frame_format.UVC_FRAME_FORMAT_MJPEG\n    uvc_frame_format.UVC_FRAME_FORMAT_H264\n\n    # Greyscale images\n    uvc_frame_format.UVC_FRAME_FORMAT_GRAY16\n    uvc_frame_format.UVC_FRAME_FORMAT_GRAY8\n\n    # Raw colour mosaic images\n    uvc_frame_format.UVC_FRAME_FORMAT_BY8\n    uvc_frame_format.UVC_FRAME_FORMAT_BA81\n    uvc_frame_format.UVC_FRAME_FORMAT_SGRBG8\n    uvc_frame_format.UVC_FRAME_FORMAT_SGBRG8\n    uvc_frame_format.UVC_FRAME_FORMAT_SRGGB8\n    uvc_frame_format.UVC_FRAME_FORMAT_SBGGR8\n\n    # YUV420: NV12\n    uvc_frame_format.UVC_FRAME_FORMAT_NV12\n\n    # Number of formats understood\n    uvc_frame_format.UVC_FRAME_FORMAT_COUNT\n\n\n## Linux webcam help\n\nAccess denied to your webcam?\n\nFirst, list your usb devices and find your webcam:\n\n    lsusb\n    \nFor me, I see:\n\n    Bus 002 Device 025: ID 32e4:9230 HD USB Camera HD USB Camera\n\ncreate a file called '50-usb-webcam.rules' in /etc/udev/rules.d with a single line:\n\n    SUBSYSTEM==\"usb\", ATTR{idVendor}=\"HD USB Camera\", ATTR{idProduct}=\"HD USB Camera\", MODE=\"0666\"\n\nthen\n\n    udevadm control --reload-rules \u0026\u0026 udevadm trigger","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexrobotics%2Froboflex_webcamuvc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflexrobotics%2Froboflex_webcamuvc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexrobotics%2Froboflex_webcamuvc/lists"}