Closed CodinGeoR closed 2 years ago
Opencv is not found on the system, please install it. This is weird because it is in the requiremement of the .deb package. I will look at this tomorrow.
In fact I noticed yesterday that OpenCV was not found. The thing is, when I search for llibopencv_videoio.so.4.
on my system, it actually show me a libopencv_videoio.so.4.6
. I'm not sure if is then a problem with a line in the driver generator with an outdated form of libopencv_videoio.so
Check it out and let me know ^^
In order to fix the problem I have to release a new linux-enable-ir-emitter. Unfortunately, I have nothing to release at the moment. I had a small modification I wanted to do, so I will work on it.
So I advise you to install linux-enable-ir-emitter using the bash script, it will compile the software directly on your system.
Alright! I'll be patiently waiting for the new linux-enable-ir-emitter then. I'll also will give it a try to the one with the bash script and see how it goes. Thanks!
Update: I tried the bash script too and it gets stuck in the configuration command (I let it run for 5-6 hours and no driver was created or configure process acomplished). On the emitter part, it begins to work and blinks as intended, but whenever I power off the system, go to Windows (I'm a dual boot user) and came back to Ubuntu, it just stops working. Any idea of whats going on?
Sorry but I don't understand
it gets stuck in the configuration command
which normaly, should not imply
On the emitter part, it begins to work and blinks
Can you past some outputs of the configure command ? (with the answer y/n that you provide)
I'm gonna write for you the steps I made in order for you to make conclusions and stuff:
sudo linux-enable-ir-emitter configure
INFO: Ensure to not use the camera during the execution.
INFO: Warning to do not kill the process !
Is the ir emitter flashing (not just turn on) ? Yes/No ?
can't get debug descriptor: Resource temporarily unavailable
ERROR: Impossible to reset the control.
INFO: Please keep this debug in case of issue :
DEBUG: unit: 9, selector: 10, control: 0 8 0 187 187 187 187 187
Is the ir emitter flashing (not just turn on) ? Yes/No ?
ffplay /dev/video2
and/or sudo howdy test
. It worked as intendedHopefully this help you understand my process
Interesting... Can you execute sudo linux-enable-ir-emitter --verbose configure
, and give all the outputs ? When the process seems to be stuck you can kill it.
Ok.
First I have to uninstall the script and delete all the remaining folders (i.e the git clone one basically) and do the same as before: power off -> Windows -> reboot -> Ubuntu. This is because if I execute sudo linux-enable-ir-emitter --verbose configure
with the emitter "working as supposed to be", as the script left it before, the console just shows this before getting stucked:
INFO: Ensure to not use the camera during the execution.
INFO: Warning to do not kill the process !
So, after installing the script again, sudo linux-enable-ir-emitter --verbose configure
shows me this:
INFO: Ensure to not use the camera during the execution.
INFO: Warning to do not kill the process !
Is the ir emitter flashing (not just turn on) ? Yes/No ? n
can't get debug descriptor: Resource temporarily unavailable
DEBUG: unit: 9, selector: 10, cur control: 0 8 0 187 187 187 187 187, first control to test: 0 0 0 0 0 0 0 0, res control: 1 0 0 0 0 0 0 0, max control: 255 255 255 255 255 255 255 255
DEBUG: Negative answer limit exceeded, skipping the pattern.
ERROR: Impossible to reset the control.
INFO: Please keep this debug in case of issue :
DEBUG: unit: 9, selector: 10, control: 0 8 0 187 187 187 187 187
DEBUG: unit: 10, selector: 2, cur control: 1 0 0 0 0 0 0 20 39 0 0 0 0 0 0, first control to test: 0 0 0 0 0 0 0 16 39 0 0 0 0 0 0, res control: 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0, max control: 7 0 0 0 0 0 0 128 150 152 0 0 0 0 0
Is the ir emitter flashing (not just turn on) ? Yes/No ? n
Is the ir emitter flashing (not just turn on) ? Yes/No ? n
Is the ir emitter flashing (not just turn on) ? Yes/No ? n
Is the ir emitter flashing (not just turn on) ? Yes/No ? n
Is the ir emitter flashing (not just turn on) ? Yes/No ? n
DEBUG: Negative answer limit exceeded, skipping the pattern.
DEBUG: unit: 10, selector: 3, cur control: 16 0 0 0 0 0 0 100 0 0 0, first control to test: 16 0 0 0 0 0 0 14 6 0 0, res control: 16 0 0 0 0 0 0 0 0 0 0, max control: 16 0 0 0 0 0 0 14 6 0 0
Is the ir emitter flashing (not just turn on) ? Yes/No ? n
DEBUG: Computing the resolution control.
DEBUG: unit: 10, selector: 6, cur control: 1 3 1 0 0 0 0 0 0, first control to test: 1 3 2 0 0 0 0 0 0, res control: 0 0 1 0 0 0 0 0 0, max control: 1 3 3 0 0 0 0 0 0
Same as before, the emitter begins to flash and the process gets stuck again (obviously)
From what I understand, I guess that opencv is waiting for access to /dev/video2, which freezes the process. The emitter works because it just found the right driver, but because opencv is stuck, it can't ask the user if the driver works.
I will manually create the config file for you, in order to bypass test and the file generation. Please create the file /etc/linux-enable-ir-emitter/video2
, which exactly contains :
device=/dev/video2
unit=10
selector=6
size=9
control0=1
control1=3
control2=2
control3=0
control4=0
control5=0
control6=0
control7=0
control8=0
Then execute sudo linux-enable-ir-emitter boot enable
.
After that, everything should work like a charm !
But I don't understand why opencv works 6 times, but not the 7th time. For many reasons, I would like to use another library than opencv.
Yeah, that sounds pretty pretty weird. Anyways, thanks for taking the time to help! As you said, it now apparently works like a charm. Have a good day/night ^^
You're welcome ! If you like the project, do not hesitate to star the repository to support me, thanks.
I will leave the issue open until the Ubuntu repo is fixed.
The PPA repo is now fixed (or will be soon, if the builds are not yet complete).
If you had 'ERROR: Impossible to reset the control' message, give the DEBUG info displayed
Ouput of
linux-enable-ir-emitter -v -d /dev/videoX configure
configure command output
``` **I am using video2 for this command** /usr/lib/linux-enable-ir-emitter/driver/driver-generator: error while loading shared libraries: libopencv_videoio.so.4.5d: cannot open shared object file: No such file or directory ERROR: The configuration has failed. ```Output of
v4l2-ctl --list-devices
Ouput of
v4l2-ctl -d /dev/videoX --list-formats-ext
v4l2 device output
``` **I am using video2 for this command** ioctl: VIDIOC_ENUM_FMT Type: Video Capture [0]: 'GREY' (8-bit Greyscale) Size: Discrete 360x360 Interval: Discrete 0.067s (15.000 fps) Size: Discrete 640x360 Interval: Discrete 0.033s (30.000 fps) ```Additional info