Stb-tester v30 released: Ubuntu 18.04, stbt.match transparency

50 views
Skip to first unread message

David Röthlisberger

unread,
Feb 22, 2019, 6:12:56 AM2/22/19
to stb-t...@googlegroups.com
Stb-tester v30 provides support for Ubuntu 18.04, OpenCV 3, and
Tesseract 4.

`stbt.match` supports transparency: Transparent pixels in the reference
image will be ignored when looking for a match within the video-frame.
This is a huge usability improvement when looking for buttons,
selections/highlights, and similar outlines that have dynamic content.

For the full list of changes see the release notes:
https://github.com/stb-tester/stb-tester/blob/master/docs/release-notes.md#v30

Packages for Ubuntu 16.04 and 18.04 are available in our PPA:
https://github.com/stb-tester/stb-tester/wiki/Getting-started-with-stb-tester#install-stb-tester


Kind regards,

David Röthlisberger
Stb-tester.com Ltd.

--
Stb-tester.com Ltd is a company registered in England and Wales.
Registered number: 08800454. Registered office: 33b Aliwal Road,
Battersea, London, SW11 1RB.

martin...@kentor.se

unread,
Feb 22, 2019, 6:59:38 AM2/22/19
to stb-tester
Sounds great. Transparency support I've been missing for ages :)

Rinaldo Merlo

unread,
Apr 8, 2019, 12:11:08 PM4/8/19
to stb-tester
Hi. Tried using the new transparency today. Getting the following error..

Reference image xxxxxxx.png has alpha channel, but transparency support requires match_method SQDIFF or CCORR_NORMED (you specified MatchMethod.SQDIFF_NORMED)

This is with the my setup:

$ lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description:    Ubuntu 18.04.2 LTS

Release:        18.04

Codename:       bionic


$ stbt --version

stb-tester 30-5-gbefe47c


$ python

Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15) 

[GCC 7.3.0] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> import cv2

>>> cv2.__version__

'3.2.0'

>>> 


Do I need to update something?


Rinaldo.


On Friday, 22 February 2019 11:59:38 UTC, marti...@kentor.se wrote:
Sounds great. Transparency support I've been missing for ages :)

martin...@kentor.se

unread,
Apr 9, 2019, 3:36:29 AM4/9/19
to stb-tester
I haven't had the chance to actually test this myself yet but it sounds to me as if you need to set your match parameters:
https://stb-tester.com/manual/python-api?highlight=stbt%20match#stbt.MatchParameters

Rinaldo Merlo

unread,
Apr 11, 2019, 12:03:42 PM4/11/19
to stb-tester
Thanks Martin, that was indeed the issue.
Reply all
Reply to author
Forward
0 new messages