Operator Reference
read_tuple (Operator)
read_tuple — Read a tuple from a file.
Signature
Description
The operator read_tuple reads the contents of FileName and
converts it into Tuple. The default HALCON file extension for the
tuple is 'tup'. The file has to be generated by write_tuple.
Execution Information
- Multithreading type: independent (runs in parallel even with exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
FileName (input_control) filename.read → (string)
Name of the file to be read.
File extension:
.tup
Tuple (output_control) tuple(-array) → (real / integer / string)
Tuple with any kind of data.
Result
If the parameters are correct the operator read_tuple
returns the value 2 (
H_MSG_TRUE)
. Otherwise an exception is raised.
Alternatives
See also
write_tuple,
write_image,
write_region,
open_file
Module
Foundation