Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

video_capture.uvc_backend: Could not connect to device! No images will be supplied. #2350

Open
lizilei2020 opened this issue Jul 31, 2024 · 0 comments

Comments

@lizilei2020
Copy link

Hello, I am using my own camera for DIY, but it displays the following error:
[ERROR] video_capture.uvc_backend: Could not connect to device! No images will be supplied.

The code I modified is as follows:
def verify_drivers(self):
import os
import subprocess

    logger.debug("HW_start")
    DEV_HW_IDS = [
        (0x05A3, 0x9230, "Pupil Cam1 ID0"),
        (0x05A3, 0x9231, "Pupil Cam1 ID1"),
        (0x05A3, 0x9232, "Pupil Cam1 ID2"),
        (0x046D, 0x0843, "Logitech Webcam C930e"),
        (0x17EF, 0x480F, "Lenovo Integrated Camera"),
        (0x0C45, 0x64AB, "Pupil Cam2 ID0"),
        (0x04B4, 0x0036, "Neon Sensor Module v1"),
        (0x0BDA, 0x3036, "Neon Scene Camera v1"),
        (0x0c45, 0x6366, "USB 2.0 Camera"),
    ]
    ids_present = 0
    ids_to_install = []
    for id in DEV_HW_IDS:
        cmd_str_query = f"PupilDrvInst.exe --vid {id[0]} --pid {id[1]}"
        #print(f"Running {cmd_str_query}")
        logger.debug(f"Running {cmd_str_query}")
        proc = subprocess.Popen(cmd_str_query)
        proc.wait()
        logger.debug(f"proc.returncode: {proc.returncode}")
        if proc.returncode == 2:
            ids_present += 1
            ids_to_install.append(id)

    logger.debug(f"ids_present: {ids_present}")
    if ids_present > 0:
        logger.warning("Updating drivers, please wait...")

I have printed the log as follows:
2024-08-01 01:44:59,029 - world - [DEBUG] video_capture.neon_backend.plugin: Neon backend manager launched with []
2024-08-01 01:44:59,029 - world - [DEBUG] plugin: Loading plugin: File_Manager with settings {}
2024-08-01 01:44:59,029 - world - [DEBUG] plugin: Loading plugin: UVC_Source with settings {'source_mode': 1, 'frame_size': [1280, 720], 'frame_rate': 30, 'check_stripes': True, 'exposure_mode': 'auto', 'preferred_names': ['Pupil Cam1 ID2', 'Logitech Camera', '(046d:081d)', 'C510', 'B525', 'C525', 'C615', 'C920', 'C930e']}
2024-08-01 01:44:59,029 - world - [DEBUG] video_capture.uvc_backend: HW_start
2024-08-01 01:44:59,029 - world - [DEBUG] video_capture.uvc_backend: Running PupilDrvInst.exe --vid 1443 --pid 37424
2024-08-01 01:44:59,034 - world - [DEBUG] video_capture.uvc_backend: proc.returncode: 0
2024-08-01 01:44:59,034 - world - [DEBUG] video_capture.uvc_backend: Running PupilDrvInst.exe --vid 1443 --pid 37425
2024-08-01 01:44:59,050 - world - [DEBUG] video_capture.uvc_backend: proc.returncode: 0
2024-08-01 01:44:59,051 - world - [DEBUG] video_capture.uvc_backend: Running PupilDrvInst.exe --vid 1443 --pid 37426
2024-08-01 01:44:59,058 - world - [DEBUG] video_capture.uvc_backend: proc.returncode: 0
2024-08-01 01:44:59,058 - world - [DEBUG] video_capture.uvc_backend: Running PupilDrvInst.exe --vid 1133 --pid 2115
2024-08-01 01:44:59,070 - world - [DEBUG] video_capture.uvc_backend: proc.returncode: 0
2024-08-01 01:44:59,070 - world - [DEBUG] video_capture.uvc_backend: Running PupilDrvInst.exe --vid 6127 --pid 18447
2024-08-01 01:44:59,081 - world - [DEBUG] video_capture.uvc_backend: proc.returncode: 0
2024-08-01 01:44:59,081 - world - [DEBUG] video_capture.uvc_backend: Running PupilDrvInst.exe --vid 3141 --pid 25771
2024-08-01 01:44:59,092 - world - [DEBUG] video_capture.uvc_backend: proc.returncode: 0
2024-08-01 01:44:59,093 - world - [DEBUG] video_capture.uvc_backend: Running PupilDrvInst.exe --vid 1204 --pid 54
2024-08-01 01:44:59,103 - world - [DEBUG] video_capture.uvc_backend: proc.returncode: 0
2024-08-01 01:44:59,103 - world - [DEBUG] video_capture.uvc_backend: Running PupilDrvInst.exe --vid 3034 --pid 12342
2024-08-01 01:44:59,118 - world - [DEBUG] video_capture.uvc_backend: proc.returncode: 0
2024-08-01 01:44:59,118 - world - [DEBUG] video_capture.uvc_backend: Running PupilDrvInst.exe --vid 3141 --pid 25446
2024-08-01 01:44:59,130 - world - [DEBUG] video_capture.uvc_backend: proc.returncode: 0
2024-08-01 01:44:59,130 - world - [DEBUG] video_capture.uvc_backend: ids_present: 0
2024-08-01 01:44:59,136 - world - [ERROR] video_capture.uvc_backend: Could not connect to device! No images will be supplied.
2024-08-01 01:44:59,136 - world - [DEBUG] camera_models: Loading previously recorded intrinsics...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant