Skip to content
This repository has been 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

Open
Joosaeha opened this issue Feb 7, 2024 · 0 comments
Open

Comments

@Joosaeha
Copy link

Joosaeha commented Feb 7, 2024

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?
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant