Code Monkey home page Code Monkey logo

Comments (9)

bethesirius avatar bethesirius commented on August 27, 2024

To get more your system information, type
uname -a
and cat /etc/debian_version
and cat /usr/src/linux-headers-$(uname -r)/.config | grep UINPUT
in your terminal and send me the results.
Also, check whether /dev/uinput or /dev/input/uinput is existing.

from chosuntruck.

gotope avatar gotope commented on August 27, 2024

@bethesirius

debian:~/Downloads$ uname -a
Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) x86_64 GNU/Linux

debian:~/Downloads$ cat /etc/debian_version
8.7

debian:~/Downloads$ cat /usr/src/linux-headers-$(uname -r)/.config | grep UINPUT
CONFIG_INPUT_UINPUT=m

debian:~/Downloads$ ls /dev/uinput
/dev/uinput

debian:~/Downloads$ ls /dev/input/uinput
ls: cannot access /dev/input/uinput: No such file or directory

from chosuntruck.

bethesirius avatar bethesirius commented on August 27, 2024

You have to enable uinput. Because I don't have debian system, i am not sure of this.
Change the option CONFIG_INPUT_UINPUT=m to CONFIG_INPUT_UINPUT=y in the .config file.

from chosuntruck.

gotope avatar gotope commented on August 27, 2024

modify that to "y" and reboot, still failed,
or need recompile the kernel with the headers?

debian:~/ChosunTruck-master/linux$ cat /usr/src/linux-headers-$(uname -r)/.config | grep UINPUT
#CONFIG_INPUT_UINPUT=m
CONFIG_INPUT_UINPUT=y

debian:~/ChosunTruck-master/linux$ ./ChosunTruck -D
error: open: No such file or directory

from chosuntruck.

bethesirius avatar bethesirius commented on August 27, 2024

I'm sorry. Revert your .config file.
Uinput is built as a module in your debian. So, you need to insert the uinput module.
modprobe uinput
lsmod|grep input
ls -l /dev/uinput
I found this solution from https://bbs.archlinux.org/viewtopic.php?id=203169

from chosuntruck.

gotope avatar gotope commented on August 27, 2024

@bethesirius thanks, that's works.

// use sudo can create it now
debian:~/ChosunTruck-master/linux$ sudo ./ChosunTruck
OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in Mat, file /usr/opencv-3.2.0/modules/core/src/matrix.cpp, line 522
terminate called after throwing an instance of 'cv::Exception'
what(): /usr/opencv-3.2.0/modules/core/src/matrix.cpp:522: error: (-215) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function Mat

from chosuntruck.

bethesirius avatar bethesirius commented on August 27, 2024

Okay, I will change the ambiguous error message :)
And, your new OpenCV Error is difference from the uinput issue. I recommend that you close this and open new issue.

from chosuntruck.

mrasyidaqmar avatar mrasyidaqmar commented on August 27, 2024

Hi, actually I had the same issue and ended up the same as the @gotope 's last posting, which is the OpenCV Error. Has this issue been opened or resolved somewhere? Thanks.

from chosuntruck.

chi3236 avatar chi3236 commented on August 27, 2024

@mrasyid No, it didn't. Please open a new issue with your enviornment like OS version, if you still have that trouble. Thanks.

from chosuntruck.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.