---
title: "process"
sidebar_label: "process"
description: "Kotlin binding reference: process."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[ImageProcessor](index.md)/[process](process.md)

# process

[common]\
fun [process](process.md)(path: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), options: [ImageProcessOptions](../ImageProcessOptions/index.md)? = null, where: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

Preprocess an image file; [options](process.md) override the configuration for this call, [where](process.md) the bound placement.

[common]\
fun [process](process.md)(bytes: [ByteArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html), options: [ImageProcessOptions](../ImageProcessOptions/index.md)? = null, where: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

Preprocess an encoded image payload (PNG, JPEG, BMP, ...).

[common]\
fun [process](process.md)(image: [Tensor](../Tensor/index.md), options: [ImageProcessOptions](../ImageProcessOptions/index.md)? = null, where: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

Preprocess decoded pixels: `[H, W, C]` (one image) or `[N, H, W, C]` (a batch) UInt8 channels-last.