AI for Everyone LESSON 7: HOMEWORK SOLUTION, Creating Checkerboard Pattern in OPENCV



You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:

https://www.patreon.com/PaulMcWhorter

In these lessons we will be using a logitech webcam. If you use the identical camera that I have, you will be ensured to get the same results. I suggest your life will be easier if you use the same camera I am using, available from Amazon below:

https://amzn.to/3iwgIW0

In this video I show how to use OpenCV in Python to create a visual of a checkerboard the proper size and color. The checkerboard has 64 squares and is 8X8 in size. This is the homework solution for lesson number 7. We will show you how to use the numpy slice function to define the squares in the numpy image array.

[Disclosure of Material Connection: I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. This means if you visit the link and purchase the item, I will receive an affiliate commission. Regardless, I only recommend products or services I use personally and believe will add value to my readers.]
#ArtificialIntelligence
#Python
#VisualStudioCode

source

21 thoughts on “AI for Everyone LESSON 7: HOMEWORK SOLUTION, Creating Checkerboard Pattern in OPENCV

  • August 19, 2021 at 6:09 pm
    Permalink

    I don't know if I am the only one with this problem, but I got a completely black frame until I moved the cv2.imshow… code to the bottom after the for-loops. I can give u the code if anyone has the same problem. I'm going to guess Spartacus. 🙂 Great video as always!

    Reply
  • August 19, 2021 at 6:09 pm
    Permalink

    Give me an image size and I'll give you a checkerboard.Which colour do you prefer? I am legend. finished home work before watching this video

    Reply
  • August 19, 2021 at 6:09 pm
    Permalink

    Honestly, I folded like a cheap Walmart lawn chair. In my defence, I don’t know Python. To correct this, I’ve started the Python for Beginner’s series. Programming is not the issue, just the syntax.

    Reply
  • August 19, 2021 at 6:09 pm
    Permalink

    No, I did not get it done correctly so I have a good bit of work ahead of me. I do love pineapple on my pizza. I really enjoyed Ben Hur came out it was a long but exciting movie. have a great evening. See you next week.

    Reply
  • August 19, 2021 at 6:09 pm
    Permalink

    Hi Paul this is fun. Glad I found your channel. I am an old fart coming from the Arduino hobbyist world with lots of C++ experience so learning Python is mainly just getting the syntax right. Looking forward to more AI and vPython videos.

    Reply
  • August 19, 2021 at 6:09 pm
    Permalink

    I am legend. I'd love to have a pineapple patch! Sorry, I'm not a movie buff.

    Reply
  • August 19, 2021 at 6:09 pm
    Permalink

    Pine Apple Patch, Ben Hir(but I cheated)!
    My Lawn chair did not fold up, It just kind of collapsed! (But I got it now.)
    Great Lesson Paul!!!!

    Reply
  • August 19, 2021 at 6:09 pm
    Permalink

    The movie is Ben Hur

    honestly i googled it …………………………..

    Reply
  • August 19, 2021 at 6:09 pm
    Permalink

    Perhaps in the future better again more with arduino, your videos with arduino I love very much ! ! I wish you all the best, very much success, Hans from Germany!

    Reply
  • August 19, 2021 at 6:09 pm
    Permalink

    I am a legend! You can make any size of chessboard through my program and you can also vary the size of each square.

    Reply
  • August 19, 2021 at 6:09 pm
    Permalink

    I am Legend! Although I technically made a chess-board (black and white 640 x640), not checkers (red & Black). 🙂

    Reply
  • August 19, 2021 at 6:09 pm
    Permalink

    I am legend, I think. I'm interested in if there are easier ways to do it.

    Reply
  • August 19, 2021 at 6:09 pm
    Permalink

    I am Legend! 1000×1000 pixels is the largest that fits nicely on my laptop screen. But I can range from 200×200 up to the 1000×1000 easily as I used parameters. Easy to go larger that 1000×1000, but checkerboard extends past the edges of the screen.

    Didn't make mine adjustable as to the number of squares.

    The Pineapple patch in Ben Hur.

    I forgot to mention "LET'S GET ROWDY!

    Reply

Leave a Reply

Your email address will not be published.