navigate Logo

Getting Started

  • Quick Start Guide
  • Software Installation
  • I Want To…

User Guide

  • Supported Hardware
  • Supported File Formats
  • User Interface Walkthrough
  • Setting Up A Microscope
  • Acquiring Data
  • Case Studies

Development

  • Contributing Guidelines
  • Developer Install
  • Software Architecture
  • Feature Container
  • REST-API
  • Plugin Architecture

Troubleshooting & Known Issues

  • Troubleshooting
  • Known Issues

Plugins

  • navigate Plugin Template
  • navigate Confocal Projection
  • navigate at Scale
  • navigate Constant Velocity Acquisition
  • navigate MMCore
  • navigate ilastik Server
  • navigate Photoactivation

Reference

  • Implemented Microscopes
  • Software API
    • navigate.config
    • navigate.controller
    • navigate.log_files
    • navigate.model
    • navigate.tools
      • navigate.tools.common_dict_tools
      • navigate.tools.common_functions
      • navigate.tools.decorators
      • navigate.tools.file_functions
      • navigate.tools.image
        • navigate.tools.image.create_arrow_image
        • navigate.tools.image.text_array
      • navigate.tools.linear_algebra
      • navigate.tools.main_functions
      • navigate.tools.multipos_table_tools
      • navigate.tools.sdf
      • navigate.tools.slicing
      • navigate.tools.waveform_template_funcs
      • navigate.tools.xml_tools
    • navigate.view
navigate
  • Software API
  • navigate.tools
  • navigate.tools.image
  • navigate.tools.image.text_array
  • View page source

navigate.tools.image.text_array

navigate.tools.image.text_array(text: str, offset: tuple = (0, 0))

Create a binary array from a piece of text

Use Default font to avoid OS related errors.

Parameters:
  • text (str) – Text to convert

  • offset (tuple) – (x,y) offset from upper left of image

  • font_size (int) – Size of font in pixels

Returns:

Binary array of text

Return type:

np.array

Previous Next

© Copyright 2025, Dean Lab, UT Southwestern Medical Center.