OMG, I have been searching about the explanation of all the modes that is used in template matching, and youtube didn't show me this!! thank you kind Sir, you made my day.
Hello Sreeni Sir, Absolutely love your tutorials. Please please continue this series. IT'LL BE GREAT IF YOU could also do real time image processing. Just one video where one can do a video analysis of a microscopic video. Please go for it sir. Thanks a lot. Love your work.
Great video! I have a question, what would be an optimal approach when I try to match my target object in an environment with lots of background object and having good amount of perfectly white as well as black in the background as well? I tried thresholding for matching but it cannot just lead to complete extracion of only target object in either value after binary conversion, i.e. many background object in the same pixel intensity exists. Thanks
This approach draws a TON of bounding boxes around each object, as the res image does not have a single point per object within the threshold. Use non_max_suppression from imutils to find only the best matching bounding box before you draw them. Otherwise, great video!
@@DigitalSreeni Hello Would you be so kind to tell me how to count the number of red rectangles in the bubble example? I am not very familiar with Python object arrays
Hi Sreeni. Thanks for the great video. Just a query based on this, what is best way to modify this template matching technique to also detect the cases where the object of interest is not present at all?
Hello, thank you for your video! Using the example in the video, could template images, like the 'f16_template.jpg' image, be pasted into the bigger image whenever there is a good match? Thanks
Yes. Just replace the pixel values in original image with the values from template and export the array as an image. Please do remember that by doing this you are not processing images but modifying them and may not be acceptable for scientific research purposes.
I never tried. I usually do not try to look at technology and wonder what I can do with it. I look at a problem and find out what technology addresses it in a very simple way.
@@DigitalSreeni Interesting point ;), the reason of this question is to find a localisation algo with 3D image. Only template matching itself seems can't do it
Hello Sir. Really nice tutorial. I have a small query regarding template matching. Is it possible to match same images of different magnification? for ex. how to match 200x to 450x image.Your input will be really hepful. TIA
You need to use a scale-invariant feature detection and matching algorithm, such as SIFT (Scale-Invariant Feature Transform) or SURF (Speeded-Up Robust Features), which are designed to identify and match key points in an image that are invariant to scale changes. This video may help: ruclips.net/video/cA8K8dl-E6k/видео.html
@@DigitalSreeni hello as per your suggestion I watched the video of image registration but unfortunately it's not helping since I have images sort of mesh. It would be really nice if can make a tutorial regarding match images having different magnifications. TIA
Sir your videos are amazing. I needed one suggestion , actually i am interested in deep learning applications in medical domain or healthcare , so i have worked with COvid ct scans recently , now i need to move to an advanced stage , what other things i can work on which involve deep learning or machine learning techniques for medical and healthcare applications ?
Deep learning can be applied to almost any problem provided you have the training data. So the exact application depends on your need. For example, you can define a binary classification problem by sorting infected vs uninfected cases in your CT scans.
Hello I have been watching your videos for a while, and would thank you alot for such information you are giving for us. I would ask you for a help, my graduation project is about image processing in the biomedical field, and I would do it on COVID 19, could you please do more videos about this topic, and if you think it is not a good topic, can you please advise me for a topic which can be beneficial for me.. Again I want to thank you alot for all the information you are supplying
Thanks sir I have my 538 subscribers yet, I want to extend my channel subscribers, I have changed the morning microphone, I am now providing a complete demo of the code along with voice description. Now I need your kind suggestions about how further changes should be made thanks 👍
OMG, I have been searching about the explanation of all the modes that is used in template matching, and youtube didn't show me this!! thank you kind Sir, you made my day.
You're very welcome!
Hello Sreeni Sir,
Absolutely love your tutorials. Please please continue this series. IT'LL BE GREAT IF YOU could also do real time image processing. Just one video where one can do a video analysis of a microscopic video. Please go for it sir. Thanks a lot. Love your work.
Video analysis is similar to image analysis. A video is just a bunch of frames so try loading it and using the same process.
Great video! I have a question, what would be an optimal approach when I try to match my target object in an environment with lots of background object and having good amount of perfectly white as well as black in the background as well? I tried thresholding for matching but it cannot just lead to complete extracion of only target object in either value after binary conversion, i.e. many background object in the same pixel intensity exists. Thanks
This approach draws a TON of bounding boxes around each object, as the res image does not have a single point per object within the threshold. Use non_max_suppression from imutils to find only the best matching bounding box before you draw them. Otherwise, great video!
Good point! Thanks
Thanks.. this video is really helping.... what method do we use if the template is not in the same scale as the object in the input image?
In the F16 example - coul you detect all the planes - ie handle size and rotation variation?
Excellent tutorial and a really good explanation.
Thank you sir! You helped me with a project of my own! :)
Excellent explanation...Thank alot Sir,🙏
import "cv2" could not be resolved, all the imports show that problem, why?.... muchas gracias por compartir
Se if any of these solutions will work for you: stackoverflow.com/questions/66387881/import-cv2-could-not-be-resolved
@@DigitalSreeni
Hello
Would you be so kind to tell me how to count the number of red rectangles in the bubble example?
I am not very familiar with Python object arrays
Hi Sreeni. Thanks for the great video. Just a query based on this, what is best way to modify this template matching technique to also detect the cases where the object of interest is not present at all?
where do I get the image and template used in this code?
Hello, thank you for your video!
Using the example in the video, could template images, like the 'f16_template.jpg' image, be pasted into the bigger image whenever there is a good match? Thanks
Yes. Just replace the pixel values in original image with the values from template and export the array as an image. Please do remember that by doing this you are not processing images but modifying them and may not be acceptable for scientific research purposes.
@@DigitalSreeni Thanks for replying: I'm not 100% on the code yet but I'm glad to hear that it could work. Thanks
Thank you for such a usefull video. But sir i got just black image ? can kindly guide me
Good night.
Good night. It's possible to use the template matching to find objects in a grayscale image?. my original image is in gray scale
Yes, of course.
how can i do this in java without use of opencv
Hi, is there a way to combine DL and template matching to do an object detection?
I never tried. I usually do not try to look at technology and wonder what I can do with it. I look at a problem and find out what technology addresses it in a very simple way.
@@DigitalSreeni Interesting point ;), the reason of this question is to find a localisation algo with 3D image. Only template matching itself seems can't do it
Hello Sir. Really nice tutorial. I have a small query regarding template matching. Is it possible to match same images of different magnification? for ex. how to match 200x to 450x image.Your input will be really hepful. TIA
You need to use a scale-invariant feature detection and matching algorithm, such as SIFT (Scale-Invariant Feature Transform) or SURF (Speeded-Up Robust Features), which are designed to identify and match key points in an image that are invariant to scale changes. This video may help: ruclips.net/video/cA8K8dl-E6k/видео.html
@@DigitalSreeni Thank you for response.i will follow up.
@@DigitalSreeni hello as per your suggestion I watched the video of image registration but unfortunately it's not helping since I have images sort of mesh.
It would be really nice if can make a tutorial regarding match images having different magnifications.
TIA
Can we draw contours using template matching technique ???
Not sure what you mean. We can draw a rectangle around the template image. If you mean drawing shape outline then this is not the process to do that.
@@DigitalSreeni what is that process for getting exact contour ?
great video, check out the detecto python library (build on pytorch). Brilliant library to train and do object detection using a Resnet model.
Hii sir,
Is it possible to find the template matching using google vision api
I am sorry, I am not familiar with the Google vision API.
Sir your videos are amazing. I needed one suggestion , actually i am interested in deep learning applications in medical domain or healthcare , so i have worked with COvid ct scans recently , now i need to move to an advanced stage , what other things i can work on which involve deep learning or machine learning techniques for medical and healthcare applications ?
Deep learning can be applied to almost any problem provided you have the training data. So the exact application depends on your need. For example, you can define a binary classification problem by sorting infected vs uninfected cases in your CT scans.
cv2.TM_SQDIFF = minimum value is the best fit
Everything else = maximum value is the best fit
Thanks for the comment. Yes, when you are trying to match using square difference you want to minimize the difference.
awesome thanks
Thank you sir, can you please do more videos using scikit-image apply surf, hog.. for some cell images segmentation techniques.
❤
Hello
I have been watching your videos for a while, and would thank you alot for such information you are giving for us.
I would ask you for a help, my graduation project is about image processing in the biomedical field, and I would do it on COVID 19, could you please do more videos about this topic, and if you think it is not a good topic, can you please advise me for a topic which can be beneficial for me..
Again I want to thank you alot for all the information you are supplying
I recommend working on real biomedical images such as neuron segmentation or cell segmentation and counting.
Thanks sir I have my 538 subscribers yet, I want to extend my channel subscribers, I have changed the morning microphone, I am now providing a complete demo of the code along with voice description. Now I need your kind suggestions about how further changes should be made thanks 👍
make a video doing this on a live game window