Support for mutiple displays

Asked by Bill Andrews

Hello

We have a specific need as we have customized HW that allows us to have up to 16 video boards and displays in our systems. IS there any restriction on how big a windows or linux desktop can be that we can capture

Thanks!
Bill

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

SikuliX contains a ScreenUnion class, that combines all active monitors into one big screen area, where the individual monitor areas are positioned according to their relative coordinates to the primaries monitor top left corner (0,0).
The coordinates and the relative position to the primary depend on the graphics configuration, that Java evaluates from the collected information returned by the underlying system.
In the current version, this feature is only used by the IDE's preview and principally works.

The problem: needed memory resources:
a captured image internally is an integer or byte array, depending on the type of image:
- only colour info per pixel: 3 bytes per pixel
- color + transparency: 4-Byte integer per pixel

SikuliX internally switches as soon as possible to the 3-bytes-per-pixel version.

Taking a typical monitor size of about 1900 x 1200:
- about 2.3 M pixels
- giving a byte array of length 6.9 M

including intermediate storage (conversion to final OpenCV Mat), capturing such one monitor might result in a max memory consumption of about 10 - 20 Mbytes.

the maximum array size limited by the max integer value (about 2000 million) is not the problem here, but simply the memory available to the application.

In the end, it is simply a case of testing. I do not have experiences with more than 2 monitors, but I know that people are using Sikuli in environments with 4+ monitors and I never heard about capturing problems.

Can you help with this problem?

Provide an answer of your own, or ask Bill Andrews for more information if necessary.

To post a message you must log in.