AugeLab Studio Manual
English
English
  • πŸ‘‹Welcome to AugeLab Studio User Manual
  • πŸ“˜Introduction
    • AugeLab Studio
    • Key Features
    • Use Cases
    • System Requirements
  • πŸš€Getting Started
    • Signing up
    • Installation
    • First Look
    • Simple Tour
    • Your Very First Project
      • Basics
      • Detection
      • Wrapping Up
    • More Local Examples
    • Further Reading
  • πŸ–₯️AugeLab Studio Interface
    • Detailed Look
    • Scenario Area
    • Menu and Toolbar
    • Managing Projects
    • Installing AI and much more
      • Leverage AI with Module Downloader
  • 🧱Function Blocks
    • Block Structures
    • Sockets
    • Blocks Column
    • Connections
    • All Function Blocks
      • AI Blocks
        • Face Detection
        • Mask Detection
        • Object Detection - Custom
        • Object Detection
        • Pose Estimation
        • Safety Equipment Detection
        • Social Distance Detector
        • Super Resolution
        • Text Detection
        • OCR
      • CNN Blocks
        • Average Pooling 2D
        • Batch Normalization
        • Choose Folder 2D
        • Compile Model
        • Conv. Sep. Layer 2D
        • Conv. Trans. Layer 2D
        • Convolutional Layer 2D
        • Dropout Layer
        • Flatten Layer 2D
        • Fully Connected
        • Global Average Pooling 2D
        • Global Max Pooling 2D
        • Input Layer 2D
        • Loss CCE
        • Max Pooling 2D
        • Metrics Accuracy
        • Model EfficientNet
        • Model MobileNet
        • Model ResNet
        • Model VGG
        • Optimizer Adadelta
        • Optimizer Adagrad
        • Optimizer Adam
        • Optimizer Adamax
        • Optimizer FTRL
        • Optimizer Nadam
        • Optimizer RMSProp
        • Optimizer SGD
        • ReLU Layer
        • Softmax Layer
        • Training Parameters
      • Data/Logic
        • Flow Control
          • Batch Concatenation
          • Batch Processing
          • Debatch
          • Get Batch Size
          • HMI Background
          • Subsystem Enabled
          • Subsystem In
          • Subsystem Loop
          • Subsystem Out
          • Subsystem
        • logic
          • All True
          • And
          • Demux
          • Equals
          • Greater
          • Logic Operations
          • Mux
          • Not
          • Or
          • Set - Reset
          • Smaller
        • Mathmetical Operations
          • Add
          • Counter
          • Divide
          • Math Operations
          • Maximum
          • Minimum
          • Multiply
          • Not Equals
          • Round
          • Square Root
          • Subtract
          • Trigonometry
        • Data Operations
          • Data Memory
          • Data to JSON
          • Data Type Converter
          • Datetime Compare
          • Dictionary Operations
          • Exclude Nones
          • Find Substring
          • Get Element
          • Is None
          • List Operations
          • Parse Data Dictionary
          • Replace None
          • String Merge
          • String Operations
        • Referencing
          • Data Read Global
          • Data Read Local
          • Data Write Global
          • Data Write Local
          • Debug Input
          • Tag From
          • Tag To
        • Signal Operators
          • Delay Step
          • Edge Falling
          • Edge Rising
          • Multi Port Switch
          • OFF Delay
          • ON Delay
      • Image/Transformations
        • Analysis
          • Color Density Percentage
          • Get Dimension
          • Histogram On Curve
          • Histogram On Line
          • Image Color Match
          • Image Memory
          • Image Resolution and Channel Value
          • Maximum Images
          • Mean Value of Image
          • Measure Position Distance
          • Minimum Images
          • Non-zero of Image
          • Std. of Image
          • Structural Similarity
        • Transformation Filters
          • Auto Alignment
          • Auto Contrast
          • Color Quantizer and Clustering
          • Color Space
          • Contrast-Brightness-Gamma
          • Contrast Optimization
          • Deconvolution
          • Denoising
          • Distance Transformation
          • FloodFill
          • Grab Cut Algorithm
        • Color Filters
          • 2D Filter
          • Apply Mask
          • Bilateral Filter
          • Blur
          • Edge Filter
          • HSV Filter
          • Image Adaptive Threshold
          • Image Threshold
          • Invert Image
          • Morphological Transformations
          • Normalize Image
          • RGB Mask
          • RGB Set
          • Sobel Filter
        • Operations
          • Add Images Weighted
          • Add Images
          • Collage Images
          • Divide Images
          • Flip Image
          • Image AutoRotator
          • Image Concatenate
          • Image Resize
          • Image Resizer
          • Merge Channels
          • Multiply Images
          • Polar Transform
          • Rotate Image Angle
          • Slice Image
          • Split Image
          • Subtract Images
      • Detections/Shapes
        • Detectors
          • Barcode Reader
          • Blob Detector
          • Blur Detector
          • Circle Detector
          • Corner Detector
          • Custom CNN Model
          • Data Matrix Reader
          • Detect Reference
          • Feature Detector
          • Find Object - Multiple Image
          • Find Object
          • Find Reference
          • Harris Corner Filter
          • Line Detector
          • Match Shapes
          • Measure Object Distance
          • Shape Detector
        • Draw
          • Draw Detections
          • Draw Line
          • Draw Point
          • Draw Rectangle
          • Draw Result On Image
          • Write Date On Image
          • Write Text On Image
        • Roi Processing
          • Check Area (Polygon)
          • Check Area
          • Get Pixel Mouse
          • Get Pixel
          • Get ROI
          • Image ROI Center
          • Image ROI Polygon
          • Image ROI Select Multi
          • Image ROI Select
          • Image ROI
          • Perspective Transform
          • Rectangles in Rectangle
        • Shape Analysis
          • Approximate Contour
          • Choose Line
          • Contour to Image
          • Fill Contour
          • Find Contour
          • Hull Convex
          • Minimum Circle
          • Minimum Ellipse
          • Minimum Rectangle
          • Minimum Rotated Rectangle
          • Most Similar Shape
          • Point Polygon Test
      • Input/Output
        • Communication
          • Modbus Connect
          • Modbus Read
          • Modbus Write
          • MQTT Publish
          • MQTT Subscribe
          • OPC UA Client
          • OPC UA Read
          • OPC UA Write
          • REST API - Get
          • REST API - Post
          • Send Mail
          • Siemens S7 Connect
          • Siemens S7 Read
          • Siemens S7 Write
        • Data Inputs
          • Date-Time List
          • Date-Time
          • Headless Check
          • Keyboard/Barcode Reader
          • Logic Input
          • Number Input
          • Number Range
          • PWM (Pulse Width Modulation)
          • Rising Edge
          • String Input
          • Text
        • Image Inputs
          • Camera IP (ONVIF)
          • Camera IP
          • Camera USB External
          • Camera USB Vidgear
          • Camera USB
          • Load Image From Path
          • Load Image
          • Make Image
          • Pixel
          • Video
        • Outputs/Exports
          • CSV Export
          • Cycle Timer
          • File/Folder Operations
          • GPU Statistics
          • Image Logger
          • Image Write
          • Led Output
          • Multi Image Write
          • Output
          • Scope
          • Show Image
          • Stop
  • πŸ“‘Devices and Communication
    • Camera Usage
    • Communication Protocols
    • Further Reading
  • 🧩Example Projects
    • Demo Projects
    • Circumference Measurement
    • Object Counting
    • Tile Width Measurement
    • Human Detection
    • Object Detection
  • πŸ”‘Key Features
    • Deploy Custom HMI Applications
    • Annotate Data for Object Detection
    • Train Custom AI Models
      • Choosing the Right Database
      • When to Stop Training
    • Create Plugins
      • Components
      • Coding Reference
    • Share Your Solutions with Community
    • Instal Python Packages
  • πŸ“‘FAQ
    • Contact Us
    • FAQ
    • Setting up a full project
  • Additional Resources
    • Training Schedule
    • Training Materials
    • AugeLab Experts
  • Appendix
    • Dictionary
    • References
Powered by GitBook
On this page
  • πŸ“₯ Inputs
  • πŸ“€ Outputs

Was this helpful?

  1. Function Blocks
  2. All Function Blocks
  3. Data/Logic
  4. Data Operations

Dictionary Operations

This function block provides an interface for various operations that can be performed on dictionaries. Users can create, update, remove, extend, retrieve, copy, parse, and stringify dictionary data.

πŸ“₯ Inputs

Dict This input accepts a dictionary object to perform operations on, depending on the selected method.

πŸ“€ Outputs


<h2 id="controls">πŸ•ΉοΈ Controls</h2>

`Select Method` A dropdown menu allowing users to choose the operation they want to perform on the dictionary. Options include:

- Create
- Update
- Remove
- Extend
- Get
- Copy
- Parse
- To String

`Info Text` Displays information and descriptions about the selected method, including input requirements and constraints.

<h2 id="features">🎨 Features</h2>

`Versatile Dictionary Operations` The block can perform a variety of dictionary operations, making it a central tool for data manipulation.

`Dynamic Socket Adjustments` The input and output sockets will update dynamically based on the selected method, ensuring that users have the correct inputs and outputs for their chosen action.

<h2 id="usage">πŸ“ Usage Instructions</h2>

1. **Select Operation**: Choose the desired dictionary operation from the `Select Method` dropdown.

2. **Connect Inputs**: Depending on the selected method, connect the necessary inputs to the `Dict` socket.

3. **Execute Operation**: Run the block to perform the selected dictionary operation.

4. **Retrieve Output**: Access the output socket to obtain the result of the operation.

<h2 id="evaluation">πŸ“Š Evaluation</h2>

The function block evaluates the selected operation and processes the input dictionary accordingly.

<h2 id="tips-and-tricks">πŸ’‘ Tips and Tricks</h2>

<details>

<summary>Using Create Method</summary>

When using the ``Create`` method, ensure both keys and values have the same length before executing to avoid errors.

</details>

<details>

<summary>Updating and Removing Keys</summary>

When updating or removing using the ``Update`` or ``Remove`` methods, check that the key exists in the dictionary before execution to prevent errors.

</details>

<details>

<summary>Parsing JSON to Dictionary</summary>

When using the ``Parse`` method, ensure that the input string is formatted correctly as JSON with double quotes, or it may throw an error.

</details>

<details>

<summary>Stringifying a Dictionary</summary>

Using the ``To String`` method allows you to convert a dictionary to JSON format, which can be useful for logging or transmitting dictionary data.

</details>

<h2 id="troubleshooting">πŸ› οΈ Troubleshooting</h2>

<details>

<summary>Expected Key Not Found</summary>

If you're trying to update or remove a key that doesn’t exist, ensure that you check for its presence in the dictionary beforehand to avoid unnecessary errors.

</details>

<details>

<summary>Paring Invalid JSON</summary>

When using the ``Parse`` method, if you encounter a JSON decoding error, double-check that your string uses double quotes and is correctly formatted.

</details>
PreviousDatetime CompareNextExclude Nones

Last updated 8 months ago

Was this helpful?

🧱