Image Processing

Description

Module: geocompy.geo.img

Definitions for the GeoCOM Imaging subsystem.

Types

  • GeoComIMG

Definitions

class GeoComIMG(parent: GeoComType)[source]

Imaging subsystem of the GeoCOM protocol.

This subsystem provides access to the telescoping camera functions for instruments that possess such functionality.

Added in version GeoCOM-TPS1200.

Parameters:
parent: GeoComType

The parent protocol instance of this subsystem.

get_telescopic_configuration(at: Device | str = Device.CFCARD) GeoComResponse[tuple[int, int, CameraFunctions, str]][source]

RPC 23400, IMG_GetTccConfig

Gets the current telescopic camera settings on the specified memory device.

Parameters:
at: Device | str = Device.CFCARD

Memory device, by default CFCARD

Returns:

Params:
  • int: Current image number.

  • int: JPEG compression quality [0; 100]%

  • CameraFunctions: Current camera function combination.

  • str: File name prefix.

Error codes:
  • FATAL: CF card is not available, or config file does not exist.

  • IVVERSION: Config file version differs from system software.

  • NA: Imaging license not found.

Return type:

GeoComResponse

set_telescopic_configuration(imgnumber: int, quality: int, functions: CameraFunctions | int, prefix: str, saveto: Device | str = Device.CFCARD) GeoComResponse[None][source]

RPC 23401, IMG_SetTccConfig

Sets the telescopic camera settings on the specified memory device.

Parameters:
imgnumber: int

Image number.

quality: int

JPEG compression quality [0; 100]%.

functions: CameraFunctions | int

Camera function combination.

prefix: str

File name prefix.

saveto: Device | str = Device.CFCARD

Memory device, by default CFCARD

Returns:

Error codes:
  • FATAL: CF card is not available or full, or any parameter is out of valid range.

  • NA: Imaging license not found.

Return type:

GeoComResponse

set_telescopic_exposure_time(time: int) GeoComResponse[None][source]

RPC 23403, IMG_SetTCCExposureTime

Added in version GeoCOM-VivaTPS.

Sets the exposure time for the telescopic camera.

Parameters:
time: int

Exposure time [ms].

Return type:

GeoComResponse

take_telescopic_image(device: Device | str = Device.CFCARD) GeoComResponse[int][source]

RPC 23401, IMG_SetTccConfig

Takes image with the telescopic camera, on the specified memory device.

Parameters:
device: Device | str = Device.CFCARD

Memory device, by default CFCARD

Returns:

Params:
  • int: Number of new image.

Error codes:
  • IVRESULT: Not supported by telescope firmware.

  • FATAL: CF card is not available or is full.

  • NA: Imaging license not found.

Return type:

GeoComResponse