Crunchbang23 has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks, I have a project about real-time lane detection and I'm willing to use Perl instead of Python.Anyone tried something similar?Is it even possible?I don't have much knowledge about Perl but I'm willing to learn and this project may be a good starting point.
  • Comment on Opencv and Perl on Raspberry Pi 3 (Raspbian)

Replies are listed 'Best First'.
Re: Opencv and Perl on Raspberry Pi 3 (Raspbian)
by hippo (Archbishop) on Oct 27, 2017 at 10:01 UTC

    Welcome to PerlMonks and the wonderful world of Perl.

    Anyone tried something similar? Is it even possible?

    I've not been involved with Opencv, but others have. You can find a (the?) binding module at Cv.

    I don't have much knowledge about Perl but I'm willing to learn and this project may be a good starting point.

    Perhaps, but it does sound a little in-at-the-deep-end. If you are willing to put in a good bit of effort then the rewards could be substantial. There are tutorials here (see the menu) and there's perlintro and the FAQ for some of the basics. Start reading through some of those and see how you get on. Good luck.

Re: Opencv and Perl on Raspberry Pi 3 (Raspbian)
by stevieb (Canon) on Oct 27, 2017 at 13:37 UTC

    I don't know about OpenCV, but as far as Perl on the Raspberry Pi, it's definitely doable. There's a whole slew of libraries available specifically for the Pi, aggregated into a single class hierarchy (RPi::WiringPi) which uses the base wiringPi API (WiringPi::API).

Re: Opencv and Perl on Raspberry Pi 3 (Raspbian)
by wjw (Priest) on Oct 27, 2017 at 13:12 UTC

    A search on mcpan shows only 4 modules directly related to opencv. I would take a look on there first and see if any of those modules might offer up something close to what you need.

    Then I would ensure that they are available for RPi.

    Assuming the first two things are affirmative, I would then examine your project design (hardware and software) and examine exactly what you want Perl to do.

    This sounds like a fairly involved project, and that makes it a good one. But if you are diving into a new language, expect to have to 'use and learn the basics' at the start of the project. Perl is a fantastic language and it works well on the RPi(I use it on a couple of mine). Just know thqt not everything available on a larger compute platform is available on the RPi, and that might give you some hints as to whether or not your project is a good fit for Perl. (Perl is way cool, but not the answer to everything, or at least not the best answer to everything).

    Hope you find something useful in this. And best of luck on your project! Sounds like an excellent one!

    ...the majority is always wrong, and always the last to know about it...

    A solution is nothing more than a clearly stated problem...

      Thanks a lot for the replies you guys, I will try and if I find any difficulties I know where to seek help. ^^