# Comparing an image with a pattern one

**URL:** <https://discourse.processing.org/t/comparing-an-image-with-a-pattern-one/20626>\
**Category:** Libraries\
**Created:** [May 8, 2020, 11:59am UTC](https://discourse.processing.org/t/comparing-an-image-with-a-pattern-one/20626 "2020-05-08T11:59:12Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [May 11, 2020, 10:20pm UTC](https://discourse.processing.org/t/comparing-an-image-with-a-pattern-one/20626/3 "2020-05-11T22:20:07Z")

</div>

Can you explain your actual application – do you want it to recognize a banana or a car, or identify which chess piece you are holding, or follow a red ball or a marker? Your actual specific need matters a lot with these kinds of problems.

BoofCV can do template matching – but it method probably not going to work for your needs (depending on what they are)

> [@BoofCV now includes QR code detecting, templates, and motion detection](https://discourse.processing.org/t/boofcv-now-includes-qr-code-detecting-templates-and-motion-detection/4698):
>
> Updated the processing wrapper around [BoofCV](http://boofcv.org) with so that it now uses BoofCV 0.31. Also added a few new features. [Template matching](https://boofcv.org/index.php?title=Example_Template_Matching) allows you to search for an image within an other image. [Motion Detection](http://boofcv.org/index.php?title=Example_Background_Stationary_Camera) (a.k.a. background modeling) allows you to detect moving objects from a stationary camera. [QR Code detector](http://boofcv.org/index.php?title=Example_Detect_QR_Code) and QR Code generate are both included. You can thank Jean-noël Lafargue for making a request that template matching be brought over to the Processing wrapper. Wouldn’t have occurred t…

If you want robust general object detection based on YOLO, then you could try using this tutorial for Processing+opencv:

[http://www.magicandlove.com/blog/2018/08/08/darknet-yolo-v3-testing-in-processing-with-the-opencv-dnn-module/](http://www.magicandlove.com/blog/2018/08/08/darknet-yolo-v3-testing-in-processing-with-the-opencv-dnn-module/)

see for example: [Conflicting libraries (YOLO comp vision) - #7 by TTG](https://discourse.processing.org/t/conflicting-libraries-yolo-comp-vision/6812/7)

---

_[View the full topic](https://discourse.processing.org/t/comparing-an-image-with-a-pattern-one/20626)._
