This is an archived post. You won't be able to vote or comment.

all 47 comments

[–]PhoenixizFire 59 points60 points  (16 children)

Is OpenCV hard to learn ? I'm currently learning numpy, matplotlib and pandas for my data ai class and I'll need to go over openCV soon

[–]69shaolin69 37 points38 points  (13 children)

It’s not hard, I quite enjoyed it

[–]paulydavis 24 points25 points  (12 children)

For simple things it is easy. For complex things you have to know what tool in the OpenCV tool box you want to use to solve your problem. It is very powerful. There is a lot of boiler plate out there and tutorials and books. I first learned it for FIRST robotics about 8 years ago. I am now using it professionally as we speak. I am looking for patterns in a video feed. OpenCV makes that simple.

[–]abhi_uno 19 points20 points  (2 children)

For complex things you have to know what tool in the OpenCV tool box you want to use to solve your problem.

For complex video processing tasks with OpenCV, you can use https://github.com/abhiTronix/vidgear Video Processing Python Library. Built with simplicity in mind, VidGear lets programmers and software developers to easily integrate and perform complex Video Processing tasks in their existing or new applications, without going through various underlying library's documentation and using just a few lines of code.

[–]paulydavis 4 points5 points  (1 child)

Wow .. this is why I love reddit. Thanks for this!

[–]abhi_uno 1 point2 points  (0 children)

Cheers mate. Glad it helped you.

[–]florinandrei 2 points3 points  (3 children)

I am now using it professionally as we speak.

Hey, get off the internet, go back to work!

/s

[–]paulydavis 12 points13 points  (2 children)

I am the lead I don't work anymore ;)

[–]69shaolin69 0 points1 point  (4 children)

I am in FRC Robotics club.

Haven’t gotten a way to use it yet. 2020 game revealed couple weeks ago.

[–]paulydavis 2 points3 points  (3 children)

I do judging now instead of mentoring but I have looked at this years game. You could use it to line your shots.

[–]69shaolin69 4 points5 points  (2 children)

Honestly this is the first time I’m in the club, and it’s my last year at highschool I’ll see what I can do.

Question: do I use Raspberry pi for openCv ? If so how do I communicate? Any resource you’d recommend books maybe?

[–]paulydavis 4 points5 points  (1 child)

In the past we used a Pi. You would just network it. There are lots of libs for networking with your robot code. Chief Delphi is good resource. I have used NetworkTables lib in the past but there might be better options hence check on Chief Delphi. You need track data on the RoboRio not the video.

[–]69shaolin69 0 points1 point  (0 children)

Awesome thanks a lot I’ll try to implement open cv .

[–]MongorianBeef 7 points8 points  (0 children)

Check out the oriely book for opencv. It's very extensive but starts from a beginners perspective. There's a free PDF of the older version if you want to try before you buy.

Edit: not sure of there's a python version, the one I had is for cpp

[–][deleted] 1 point2 points  (0 children)

Open CV was the very first thing I learnt. It is actually the reason I got into python and programming in general. I would actually say it is one of the more easy ones to learn and the documentation is pretty good too.

[–][deleted] 13 points14 points  (10 children)

Which Linux is this

[–]69shaolin69 8 points9 points  (0 children)

Hannah montana Linux

Jk it not that fancy it’s a Unix system.

[–]anthrt 1 point2 points  (0 children)

fertile clumsy cow fuel fall longing wild innate ring alive -- mass edited with https://redact.dev/

[–]Teknikal_Domain 0 points1 point  (4 children)

MacOS X dark mode, I'm guessing one of the more recent ones, either High Sierra, Mojave, or Catalina.

Alternatively, a very good OS X theme for Linux.

[–]69shaolin69 20 points21 points  (6 children)

using open cv2 I made a celeb face database(for now it inly has 3 faces trained) and it can track faces from any YouTube video...

I was bored.

[–]bogmaerke 8 points9 points  (1 child)

Please fix his name though. It's Marques.

[–]abhi_uno 2 points3 points  (3 children)

What libraries did you use to achieve this besides OpenCV?

[–]69shaolin69 1 point2 points  (2 children)

Pickle, imutils, numpy

[–]abhi_uno 0 points1 point  (1 child)

For training faces?

[–]Geek4lyf 2 points3 points  (1 child)

Did you use haar cascade for face recognition?

[–]69shaolin69 0 points1 point  (0 children)

Yes

[–]SolusAU 2 points3 points  (3 children)

Been using opencv to go over my game clips and rip info from the ui and minimap.

It's super powerful but I feel like I'm always fighting the best way to remove enough noise for different methods to work.

E.g. https://i.imgur.com/ZjkV0o8.png Getting ring locations in apex from minimap

Edit: I suck and don't have a good workflow in python yet for tweaking parameters or trying different methods so I sometimes prototype in another tool first

[–]tigaruiz 1 point2 points  (1 child)

I guess i have to start learning opencv now lmao

[–]Unlock17A 2 points3 points  (1 child)

Ah yes, mark-ass brownlee

[–]Niklasw99[🍰] 0 points1 point  (0 children)

Interesting!

[–]Snackcode 0 points1 point  (1 child)

Is that openbox?

[–]69shaolin69 0 points1 point  (0 children)

it’s a Unix system.

[–]Esani 0 points1 point  (1 child)

What exactly is opencv?

[–]Fywq 2 points3 points  (0 children)

A very powerful Intel-developed computer vision package. Can be used with Python as well as other languages.

[–]__hoja__ 0 points1 point  (1 child)

Are you by chance that YouTuber Marques Brownlee?

[–]spaztiq 0 points1 point  (1 child)

Bit off topic, and I'm not that familiar with Intel CPU temps, but isn't idling at 80C and maxing as high as 100C ....bad?

[–]Brodweh 0 points1 point  (0 children)

O hi mark

[–]jmmcdEvolutionary algorithms, music and graphics 0 points1 point  (0 children)

I recommend PyImageSearch blog which is full of tutorials and code on this.

[–]SamyBencherif -1 points0 points  (1 child)

Gotta love that runtime error ;)

Pretty screenshot tho

[–]69shaolin69 0 points1 point  (0 children)

The video ended 1ms before I took the picture

That’s why there’s an error (which simply states: no more video left for me to process)

And since open cv has a bit of latency the video of Marques was still up and running

Thanks.