Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

I get the ir frame using MediaFrameReader, but the ir lamp blinks. #44

Description

@Joosaeha

I ran it by referring to the article at https://stackoverflow.com/a/77423846/22878393, but the IR lamp blinks irregularly. Is there a way to make the IR lamp always on?

if cv2.countNonZero(cv2.cvtColor(image_array, cv2.COLOR_RGBA2GRAY)) == 0:
                        continue

Among the codes in the link above, the code uses continue when the ir lamp is off, but if there is another infrared ray such as an external environment or LED, the value of countNonZero increases and the screen flickers.

  1. I want the ir led to always be on while getting an ir frame. Is there a way?

https://learn.microsoft.com/en-us/uwp/api/windows.media.devices.infraredtorchcontrol?view=winrt-22621

  1. Is there a way to do this if the InfraredTorchControl in the link is not supported?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions