<div dir="ltr"><div dir="ltr">Hi David,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 21 Jul 2021 at 12:52, David Plowman <<a href="mailto:david.plowman@raspberrypi.com">david.plowman@raspberrypi.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The OpenCV findHomography function now raises an unhandled error if it<br>
receives fewer than 4 points whereas previously the limit was 3. This<br>
makes no material difference to the behaviour of the tuning tool as it<br>
will continue to search for the Macbeth chart at different scales.<br>
<br>
Signed-off-by: David Plowman <<a href="mailto:david.plowman@raspberrypi.com" target="_blank">david.plowman@raspberrypi.com</a>><br></blockquote><div><br></div><div>I wonder if we could perhaps do a OpenCV version check on startup to</div><div>catch things like this in the future?  But that's not related to this fix...</div><div><br></div><div>Reviewed-by: Naushir Patuck <<a href="mailto:naush@raspberrypi.com">naush@raspberrypi.com</a>><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
---<br>
 utils/raspberrypi/ctt/ctt_macbeth_locator.py | 4 ++--<br>
 1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/utils/raspberrypi/ctt/ctt_macbeth_locator.py b/utils/raspberrypi/ctt/ctt_macbeth_locator.py<br>
index 35c84807..cae1d334 100644<br>
--- a/utils/raspberrypi/ctt/ctt_macbeth_locator.py<br>
+++ b/utils/raspberrypi/ctt/ctt_macbeth_locator.py<br>
@@ -597,10 +597,10 @@ def get_macbeth_chart(img, ref_data):<br>
                     ref_cents.append(ref_cent)<br>
<br>
                     """<br>
-                    At least three squares need to have voted for a centre in<br>
+                    At least four squares need to have voted for a centre in<br>
                     order for a transform to be found<br>
                     """<br>
-            if len(sq_cents) < 3:<br>
+            if len(sq_cents) < 4:<br>
                 raise MacbethError(<br>
                     '\nWARNING: No macbeth chart found!'<br>
                     '\nNot enough squares found'<br>
-- <br>
2.20.1<br>
<br>
</blockquote></div></div>