Raspberry Pi LESSON 46: Calculating Frames Per Second (FPS) In OpenCV and Overlay on Frame

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024
  • Announcing the Most Awesome Raspberry Pi Lessons of All Times! This time we RUMBLE!
    In this class series, we will be using the most excellent Sunfounder Ultimate Raspberry Pi kit, available here: (Affiliate Link)
    amzn.to/3tSk9Mo
    or for our UK friends, amzn.to/3I5d401
    In this lesson I will show you how to use the Raspberry Pi camera on the Bullseye operating system, in either 32 bit or 64 bit mode. I will show you how to operate the camera using OpenCV. We will learn how to instrument the code to calculate the Frames Per Second, or FPS. We will both print the FPS and display it as an overlay on the display.
    If you want to grab those cool little straight jumper wires I am using to keep my breadboard builds neat and clean you can snag a box of them here:
    amzn.to/36NyfHq
    If you guys are interested in the oscilloscope I am using, you can pick one up here (affiliate link):
    amzn.to/3v13Mhl
    You guys get your hardware ordered so you can follow along at home!
    You will also need a Raspberry Pi. I suggest the Raspberry Pi 4. If you do not already have one, this is the most suitable gear I could find:
    amzn.to/3pBMfKm
    The Raspberry Pi's are sort of pricy right now, so you can look on ebay or elsewhere to see if there are any deals. You will need a SD card. If you do not already have one, this is a good one:
    amzn.to/3KcXTn2
    I like using a wireless keyboard and mouse to have fewer wires. You can certainly use your USB keyboard and mouse, but if you want a nice wireless one, this one works on the pi. We demonstrate this by using a button switch to control a LED.
    amzn.to/36Rv9Sk
    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:
    / paulmcwhorter
    [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. ]
    #bullseye
    #opencv
    #raspberrypi
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 42

  • @timefactortheoryofgravitya7578
    @timefactortheoryofgravitya7578 11 หลายเดือนก่อน +1

    Although much is review form college 10 years ago, these lessons are showing how powerful the newer python language is and I am also learning many newer concepts. I should raise my patreon contributions as these lessons are priceless! (or should I say, cheaper than taking a college class)

  • @martinlewis645
    @martinlewis645 ปีที่แล้ว

    Another great lesson. My daughter loves the camera zoomed way in. Lots of fun and funny faces. I'm trying to get her interested in coding. Hard to compete with cheer....

  • @DavidConner-yz2ud
    @DavidConner-yz2ud 11 หลายเดือนก่อน

    As a retired engineer, I'm really enjoying your classes. now I'm going to try out the camera stuff on Bullseye 64-bit. Also, i.m curious whether Visual Python might work on Bulleye as I never got that to work in Buster.

  • @garethhunt6220
    @garethhunt6220 11 หลายเดือนก่อน

    i am a legend thank you paul great to be part of this looking forward to where this is going have a interesting application for this type of tech

  • @billfield8300
    @billfield8300 ปีที่แล้ว +1

    Another great lesson Paul. Thanks.

  • @CarbonMusicCouch
    @CarbonMusicCouch ปีที่แล้ว +1

    Thank you Paul!

  • @peteoheat
    @peteoheat ปีที่แล้ว +2

    Very glad to have found your lessons. I've been struggling with the changes for computer vision between buster and bullseye. These are a real help

  • @kalidabdul6862
    @kalidabdul6862 ปีที่แล้ว +1

    Thanks paul

  • @tntragan
    @tntragan ปีที่แล้ว

    I am legend(I think). We'll see after I see your code. I came up with around 27 frames per second. It would tick up or down every now and then.

  • @leodirectvleo1703
    @leodirectvleo1703 ปีที่แล้ว +1

    You are the best ,dear brother

  • @donaldhoudek2889
    @donaldhoudek2889 ปีที่แล้ว +1

    Hi Paul,
    Great video again!
    After seeing it I decided to give it a try and add a rear view camera to my 2012 F150. It should be a nice project. I will probably have the Pi (set up as an AP), have the iPad access it via Wi-Fi and display it inside the F150 cab.
    Second project could be 2 of these cameras mounted in the Brick Mail Box that I am currently building. The current design has a upper level glass block ring around it and instead of a dim light behind the glass blocks, have high output IR light modules (which is not really bright to the human eye) illuminating the area. It would be nice to add license plate number capture to the cameras and save the numbers to a file/dB for dB searches and to see how many times the same cars go past or maybe assist the local police with a list if requested. They have already requested a dump of my home security cameras to ID a person of interest. I believe I saw this license plate reader code on GitHub, need to research again.

  • @gooberminther3tik25
    @gooberminther3tik25 ปีที่แล้ว

    960x480 NoIR FRSet: 45 +a trickle
    My Grandson is gonna love his new Pironman on his 13th Birthday. Got him the Raphael Kit as well.

  • @laurenth7187
    @laurenth7187 ปีที่แล้ว

    Sorry, but i just would like a tutorial about how to send data to a server, between 2 ESP8266. One is the server, the other reads temp and humidity and every 5 mn it awakes, and then establish a connection and send the reading, then, i goes to sleep.

  • @vaughntaylor2855
    @vaughntaylor2855 ปีที่แล้ว +2

    Thank you for another great lesson Paul! God Bless You and Your Family!

  • @tkklein
    @tkklein ปีที่แล้ว +1

    I miss these good o'l videos!

  • @jameslewellen150
    @jameslewellen150 ปีที่แล้ว +1

    Love the videos. Got the homework done, looks like you made some improvements, will implement them.

  • @RicardoMaciasYepez6913
    @RicardoMaciasYepez6913 9 หลายเดือนก่อน

    Hi Profff, why im getting 5-7 fps im using raspberry pi 4 model B os Bookworm pi camera v2.1 opencv version 4.8.1?

    • @RicardoMaciasYepez6913
      @RicardoMaciasYepez6913 9 หลายเดือนก่อน

      I discovered that this drop in the fps occurs when i execute the script on mobaxterm thrugh ssh, but when i execute it in the raspberry pi directly from pi os interface the fps goes up to 50-60fps

  • @louisdirect
    @louisdirect ปีที่แล้ว

    Love this lesson. Thank you Paul! I got the homework done, Since working with the Raspberry pi 7 inch display I had to play around with the settings. My settings are (480 X 270) pos=15,30 height= 0,75 color 175,100,125 (light purple), weight=2

  • @dphair3805
    @dphair3805 ปีที่แล้ว

    Paul, I'm new to Raspberry Pi and Python and have completed apx. 20 lessons so things are starting to come together. I've jumped to the camera modules as I'm interested in making a home surveillance system that can be configured for me with no monthly fees or back doors. Your Bullseye camera setup allowed me to get my cameral working even without having the camera interface on the configuration menu. You are one of my favourite content providers and it's nice to have a consistent and logical sequence to learn from. My understanding of loops, tabs, spaces, caps, sequencing of commands, library's and general python setup is growing very slowly even with your excellent piece by bit explanation. You may already have a lesson on general python overview and commands that I've missed.
    Thank You

  • @thumbthrasher
    @thumbthrasher ปีที่แล้ว

    Thank you Paul great tutorial 👍
    I'm not using a gui though how would the code differ if using just a terminal and writing to a file using nano?

  • @HungNguyen-gl2xt
    @HungNguyen-gl2xt 10 หลายเดือนก่อน

    I'm a legend. Thanks for your lesson very much

  • @neilausten9404
    @neilausten9404 ปีที่แล้ว

    Fyi -you forgot 'weight' on your website version of the program.

  • @pralaymajumdar1206
    @pralaymajumdar1206 9 หลายเดือนก่อน

    Outstanding lesson.... Learn a lot from u sir🙏

  • @daveCotterill
    @daveCotterill ปีที่แล้ว

    Great lesson again. Thank-you

  • @LorenBurdette
    @LorenBurdette ปีที่แล้ว

    Great lesson. on a pi 3b+. biggest stable resolution was 960x480 hanging right at 30fps. Really enjoying get to use the cam.

    • @kengtecksoh4789
      @kengtecksoh4789 7 หลายเดือนก่อน

      I achieve the same stable resolution for Pi Zero 2 W.

  • @cbrombaugh
    @cbrombaugh ปีที่แล้ว

    Thanks for another great lesson Paul. The camera is neat addition to the Pi.

  • @BrianBeam-nl4lw
    @BrianBeam-nl4lw ปีที่แล้ว

    Another awesome lesson, thanks Paul

  • @keithlohmeyer
    @keithlohmeyer ปีที่แล้ว

    Homework tangent posted th-cam.com/video/_7dVDraJtTE/w-d-xo.html
    Knowing a thing exists is the important thing. Thanks Paul for letting us know these things exists!

    • @paulmcwhorter
      @paulmcwhorter  ปีที่แล้ว +1

      Excellent! Interesting info.

  • @MrCameronMoore
    @MrCameronMoore ปีที่แล้ว

    Wow! It's amazing what we can do with a Raspberry Pi and a camera