How to Count Objects in an Image using Python? | Tutorial | Computer Vision

Sdílet
Vložit
  • čas přidán 16. 06. 2021
  • Track any phone location by its number :
    -------------------------------------------------------------------------------
    Get my FREE eBook on Getting started with Google Maps Platform:
    www.codewithsamcodes.com/goog...
    -------------------------------------------------------------------------------
    💻 Exclusive Content 💻
    👥 Patreon: / samcode
    ------------------------------------------------------------------------------
    Hey guys! Dear programming enthusiast! Today we are going to learn how to count objects in an image. To count the images one has to make use of computer vision libraries.
    In today's tutorial, we will be making use of the cvlib library which is very simple, easy, and a high-level library in Python. If you don’t have the library installed yet click on the various links of the library's below.
    OpenCV Module - pypi.org/project/opencv-python/
    Numpy Module - pypi.org/project/numpy/
    Matplotlib Module - pypi.org/project/matplotlib/
    Cvlib Module - pypi.org/project/cvlib/
    CheckOut My Other Content!
    Easy Password Generator in Python:
    • How to Build a Passwor...
    How to Create Your Own Email Bot!
    • Secrets of Voice Mail ...
    Python Blockchain Tutorial:
    • How to Build a Python ...
    Python internet Speed Test:
    • Secrets of Python inte...
    Code a Trading Bot 🤖 in Python:
    • How to train a Trading...
    Predicting Stock Prices in Python using Machine Learning:
    • Predicting Stock Price...
    Mining Bitcoin with Python Code:
    • Mining Bitcoin with Py...
    How to Convert any Python File to .EXE :
    • How to Convert your Py...
    Python Crash Course For Absolute Beginners:
    • Python Tutorial For Be...
    💻 Exclusive Content 💻
    👥 Patreon: / samcode
    🌐 Social Media & Contact 🌐
    🌐 Twitter: / samcodes_
    📁 GitHub: github.com/sammy007-debug
    🌐 Discord: / discord
    #computervision #countingobjectsinpython #machinelearning

Komentáře • 13

  • @suyashmisra7406
    @suyashmisra7406 Před 3 lety +3

    i always hit the like button even before i start watching. you deserve it bro :)
    edit : tried for various images and the boxes don't appear . any idea what might be wrong?
    i don't see any error messages either.

    • @samcodes2912
      @samcodes2912  Před 3 lety +1

      Thanks man. The boxes don't appear at all? Did you use the right image location?

    • @harshdhiman7924
      @harshdhiman7924 Před rokem

      @@samcodes2912 yes I did but boxes dont appear

  • @uniquemalik6278
    @uniquemalik6278 Před 2 lety +1

    Now how would you do the same concept but using a video file?

  • @jehusaludez440
    @jehusaludez440 Před měsícem

    how would you do the same concept but using many images?

  • @ashwinkumar5223
    @ashwinkumar5223 Před rokem

    I am getting error while Running the below code .. Error is "
    IndexError: invalid index to scalar variable."

  • @jasonaguilar742
    @jasonaguilar742 Před 9 měsíci

    What version of every libraries, I am having problem to execute

  • @hoaninh8434
    @hoaninh8434 Před 9 měsíci

    I have the error when I tried to run the code on MacBook Pro 13. Please advise :(😪😔
    Unresolved reference 'poly' :6
    A Unused import statement 'import numpy as np' :3
    A Unused import statement 'from numpy.I.polynomial import poly' :6

  • @AnshupalBantra
    @AnshupalBantra Před 2 lety +2

    Hi Sam, could you please share the code file?

  • @ashwinkumar5223
    @ashwinkumar5223 Před rokem

    box,label,count=cv.detect_common_objects(im2)