diff options
author | David Plowman <david.plowman@raspberrypi.com> | 2021-07-21 12:52:19 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-08-02 03:43:53 +0300 |
commit | 2d99cc53e264f85998aa28d68392fe8c63b5c07a (patch) | |
tree | 62d66a4c52958f4a98538dc25fa066c0dc17ecf6 /utils | |
parent | b40a8d4b454008aeab4c0eb1f63a07083d7d7c74 (diff) |
utils: raspberrypi: ctt: Fix usage of findHomography function
The OpenCV findHomography function now raises an unhandled error if it
receives fewer than 4 points whereas previously the limit was 3. This
makes no material difference to the behaviour of the tuning tool as it
will continue to search for the Macbeth chart at different scales.
Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/raspberrypi/ctt/ctt_macbeth_locator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/raspberrypi/ctt/ctt_macbeth_locator.py b/utils/raspberrypi/ctt/ctt_macbeth_locator.py index 35c84807..cae1d334 100644 --- a/utils/raspberrypi/ctt/ctt_macbeth_locator.py +++ b/utils/raspberrypi/ctt/ctt_macbeth_locator.py @@ -597,10 +597,10 @@ def get_macbeth_chart(img, ref_data): ref_cents.append(ref_cent) """ - At least three squares need to have voted for a centre in + At least four squares need to have voted for a centre in order for a transform to be found """ - if len(sq_cents) < 3: + if len(sq_cents) < 4: raise MacbethError( '\nWARNING: No macbeth chart found!' '\nNot enough squares found' |