Crop images with Opencv and Python

Поділитися
Вставка
  • Опубліковано 1 жов 2024
  • source code and files: pysource.com/2...
    In this video tutorial, we will see how to easily and quickly crop images, or a portion of an image using Opencv and Python.
    ➤ Full Video courses:
    Object Detection: pysource.com/o...
    ➤ Follow me on:
    Instagram: / pysource7
    LinkedIn: / pysource
    ➤ For business inquiries:
    pysource.com/c...
    #opencv #crop #images
  • Наука та технологія

КОМЕНТАРІ • 31

  • @diseaseddates4242
    @diseaseddates4242 2 роки тому +1

    excilent content ! now how would i loop this on file and save every picture ?

  • @me965563
    @me965563 3 роки тому +2

    This is exactly what I needed thanks

  • @CarneyAsada101
    @CarneyAsada101 2 роки тому +1

    Thank you for this, it seems to be exactly what I was looking for! Reading about how to do it online is confusing, so it’s great to be able to watch you do it and make sense of what is going on!
    I will be applying this to turn one photo into 12 photos for an Instagram grid. Is there anything I should consider about this video with that in mind?

  • @raquelcosta2730
    @raquelcosta2730 3 роки тому +1

    Thank you for explaining everything so clearly! Definitely the best channel :)

  • @jeepjr
    @jeepjr 3 роки тому +1

    Teacher, first congratulations for the channel. I need your help, I have a simple image with a range of 5 placements where the quantity is identified, how do I identify the biggest color type red and say where the X,Y is, and if you can help me, and only for create an alert.

    • @pysource-com
      @pysource-com  3 роки тому +1

      You can check my other video on youtube about HSV colorspaces because there it's explained.
      You need to sort the contours detected by the area and take the biggest one so you can locate the biggest color

  • @iyshwaryakannan6677
    @iyshwaryakannan6677 Рік тому

    Hi sir, I wanted to display only the region of bounding box and make other region into some other color

  • @jordanmhrnz132
    @jordanmhrnz132 Рік тому

    can you tell why my whole images is not being displayed?

  • @shdnas6695
    @shdnas6695 2 роки тому

    Can someone explain why did he use "-" in column 5?
    "rows", "cols", _ = img.shape
    what is the underscore above doing??

    • @adityawandile5905
      @adityawandile5905 2 роки тому

      img.shape is returning tuple of three variable containing (rows,column and channel). this value is are store in rows, cols, _ respectively.
      _ can used as an variable name so it act as an variable name to store the value of channel .

  • @gsunil3697
    @gsunil3697 2 роки тому

    Bro,its not working for videos plz help me

  • @ebitunyan3894
    @ebitunyan3894 2 роки тому

    Hi, nice tutorial, simple and straight forward. Can you make a video on automatic image slicing?

  • @omkarupare8706
    @omkarupare8706 3 роки тому

    i want to crop rectangle from video as image

  • @riyushachannel4761
    @riyushachannel4761 2 роки тому

    Nice it work 👍🏻, thanks 🙏

  • @sudiptachatterjee5862
    @sudiptachatterjee5862 3 роки тому

    Good job dear.
    I need some help from your end.
    Please

    • @pysource-com
      @pysource-com  3 роки тому +1

      Hi, I do offer consulting services.
      Please head over to this page, choose the service and fill the form: pysource.com/services/

  • @thapamilan7
    @thapamilan7 3 роки тому

    can you please show us how to crop only circular colorful portion ?

  • @analuciademoraislimalucial6039
    @analuciademoraislimalucial6039 2 роки тому

    thanks, thanks thanks!! help me a lot

  • @matthewgale2575
    @matthewgale2575 2 роки тому

    very good examples, thank you

  • @adonis9555
    @adonis9555 2 роки тому

    Your english is very good

  • @h3ptagrama
    @h3ptagrama 2 роки тому

    How do you save that cropped image in the directory afterwards???????? for example saving /xxx/xxx/Roi.png

  • @farahfekih6802
    @farahfekih6802 3 роки тому

    Thank you that was useful

  • @muruganbala9217
    @muruganbala9217 3 роки тому

    Nice info.....thanks :)

  • @atchutaify
    @atchutaify 3 роки тому

    you are awesome

  • @sirajdinadeshina480
    @sirajdinadeshina480 3 роки тому

    Well-done bro...thanks

  • @gustavofelicidade_
    @gustavofelicidade_ 3 роки тому

    Thanks a lot

  • @bulganamarsanaa1102
    @bulganamarsanaa1102 3 роки тому

    hi Sergio how do we use this ROI on real time detection?

    • @pysource-com
      @pysource-com  3 роки тому

      Hi Bulgan, you will need to proceed in two steps:
      1) Perform realtime object detection
      2) Use the coordinates of the objects detected to extract the ROI

  • @r.iyushofficial5318
    @r.iyushofficial5318 3 роки тому

    Awesome

  • @budibudi4896
    @budibudi4896 3 роки тому

    Coding horisontal

  • @joeyzhou1483
    @joeyzhou1483 2 роки тому

    Thanks for sharing, may I know how to read the huge big images? maybe 10000000*1000000, I don't know how to remove the limit of opencv.