Closed nahoj closed 1 year ago
Hello, with this version of linux-enable-ir-emitter I'm not sure that you will succeed to do this kind of things, because the driver generator isn't yet perfect (but it will be !). I'm working on the v4.0.0 which will be soon on the dev branch.
I maybe have an idea for you, but in order to explain it to you properly, is your emitter works natively ? In order word, you didn't install this software to activate your emitter, it was working before.
However, I guess you think that the images/video will be continuously irradiated. Which is not the case (on my camera at least); an infrared is only sent on the first impulse.
is your emitter works natively ? In order word, you didn't install this software to activate your emitter, it was working before.
Indeed, I didn't do anything to it before, it just works that way with tools such as Cheese, Webcamoid, etc.
However, I guess you think that the images/video will be continuously irradiated. Which is not the case (on my camera at least); an infrared is only sent on the first impulse.
Ah, yes, I was in fact hoping to have this. Do you think this is something that just can't be done with this hardware? I'd also be interested in disabling the emitter entirely, to see if the IR camera is at all usable without it.
Do you think this is something that just can't be done with this hardware?
I've explored everything that my infrared camera can do, and I also tried to do this, but without success. Nevertheless, maybe your camera can do this.
I realize that explaining this properly in writing will take me hours. For perhaps not being clear enough in the end. I see on your profile that you speak French (I am Belgian), if you wish, we could call each other so that I can explain it to you by sharing a screen, it will be easier for both of us. What is your level of urgency ? Unfortunately, I am personally quite busy.
I'd also be interested in disabling the emitter entirely, to see if the IR camera is at all usable without it.
It should be pretty straightforward with the v4 (the code is finished for a long time, but I still have to test it). Because I'm not sure if the v3 will work in the case where the emitter works natively. But you can always try to execute linux-enable-ir-emitter configure
: where you input no to all questions until you find a query which disable the emitter, and then input yes.
So, you could guess from the delay that this wasn't super urgent for me. In fact, I don't think having the emitter consinuously on is a good idea anymore. After fiddling with the emitter for an hour my eyes were aching, and I wouldn't be surprised if it was actually not safe to have the emitter in sight for more than the few seconds of non-continuous emission required for authentication purposes.
I'll still report what I got from linux-enable-ir-emitter configure
:
I'm still curious to see if the camera could work with the emitter disabled but nothing urgent, I can wait for v4 to be out :)
start_pos = re.search("[0-9]", device).start() AttributeError: 'NoneType' object has no attribute 'start'
This error at the end is so strange, no one has ever reported such a bug, anyway the v4 is out for all distros.
You can try again the same manipulation; answer 'n' until the camera is disabled and then yes.
Some tips :
--verbose
flag to the command : sudo linux-enable-ir-emitter -v configure
, it prints debug information about the searching, Roughly speaking, it prints the instruction (called "control") executed on the camera. The algorithm starts from an initial instruction, incrementing it to the maximum possible. If that doesn't work, it starts again from another initial instruction, etc.--limit
option: sudo linux-enable-ir-emitter -v configure -l 2
for example. Or increase it if you want. -l 1
looks good to me, in order to quickly go through everything that is possible.EDIT: ~4. Finally, if you find that the flash time is too long, you can reduce it by modifying the constant CAMERA_TRIGER_TIME
of the file sources/driver/driver-generator.cpp
.~ Camera triggering is asynchronous since v4.1.2
I hardly think I cannot do a better research than v4. Better in the sense of intelligent, a simple technique would be to test all possible combinations, but clearly this brute force would take years to be tested manually by the user.
Normally, v5 will not require human interaction. I will implement an image analysis algorithm that will determine whether the emitter is working. I may also add an option to disable the emitter, but I'm not sure if this feature will be used.
Well, I've talked a lot, I hope it works out for you with v4. If I haven't been clear on some point, or you'd like me to detail on what the debug shows, feel free to ask me.
Feel free to comment this issue if anyone wants to reopen it.
Hi,
I'm trying to do something a bit different from what this project does, namely to make the IR emitter of my IR camera always be on when the camera is on.
I have a Chicony integrated camera which I'm trying to use to monitor a room at night. At the moment, when I turn on the IR camera, the emitter flashes; this would be the correct behavior for facial recognition but of course for a continuous video stream, it makes the video flash too.
I understand this is not the main purpose of this project but if you could tell me how to tweak it to achieve this or had any insights, that would be super helpful.
Here are some tech infos: