Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: updated links

Operator View is intended to give allow you an opportunity to design a simple UI for your line operators, where they can view the camera with an evaluation of the current image and optionally see other information or be able to enter/choose inputs, which can then be processed in Codeby https://pekatvision.atlassian.net/wiki/x/LIibKQmodules.

Editor

Editor is the place where you can design, how the Operator View should look - determine what elements it should contain and customize its position, style, and function.

You can get to it from the Camera Accessible from the https://pekatvision.atlassian.net/wiki/x/yYKbKQ tab by selecting Operator View > Edit.

...

This is a parameter for optional elements, which allows you to determine that a certain element will be visible only if the specified key in Context https://pekatvision.atlassian.net/wiki/x/jYibKQ is True. You can then set this key in Code based on your own rules.

...

The camera element shows the current view from the camera - the same as you would see in the Camera Functions tab. To see the evaluated view, evaluation Evaluation needs to be enabled in any module and the Process option enabled in the Camera tab.

...

If you choose dynamic source type you get the option to choose the context Context key which will contain the text to be displayed.

...

Select element allows the operator to select one of the defined options and the chosen option can then be processed in Code.

...

The basic settings you can choose are position, background color, text color, width, font size, and visibility by key.

...

When you finish configuring your operator view in Editor, click on Save and go back to the Camera Functions tab and select Operator View > Open, then a window like this will open (with elements as you defined them in Editor) and the operator can start interacting with it:

...

Info

For images you saved (when you had ‘Save images’ enabled or you ‘Captured' the image while the Operator View was running) you can see the operator inputs at that time in the Inspection https://pekatvision.atlassian.net/wiki/x/2YibKQ tab under 'operatorInput’ key, which is a dictionary containing key-value pairs for all your inputs/selects/sliders.

If you set some dynamic label, you can see the value of its context key (if you set its value in code) at that time under the context key name you selected, so e.g. 'label_key' in this example.

If you set visibility by key for some element and you set its value in code, you will see it here too under the name you selected for the key so e.g. ‘visibility_key’ in this example.

...