Skip to content

scijava/scripting-appose-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Python Scripting with Appose

This library provides a JSR-223-compliant scripting plugin for the Python language, built on the appose Python package.

It is implemented as a ScriptLanguage plugin for the SciJava Common platform, which means that in addition to being usable directly as a javax.script.ScriptEngineFactory, it also provides some functionality on top.

For a complete list of scripting languages available as part of the SciJava platform, see the Scripting page on the SciJava Common wiki.

See also:

Example

#@script (language="appose-python", pypi=["cellcast"])

#@ Img image

#@ Double (value=1.0, description="minimum percentile value for normalization") pmin
#@ Double (value=99.8, description="maximum percentile value for normalization") pmax
#@ Double (value=0.479, description="Polygon probability threshold") prob_threshold
#@ Double (value=0.3, description="Non-Maximum Suppression threshold") nms_threshold
#@ Boolean (value=true, description="Set True for GPU inference via WebGPU, False for CPU inference") gpu

#@output Img labels

import cellcast.models.stardist_2d as stardist
labels = stardist.predict_versatile_fluo(
    image,
    pmin,
    pmax,
    prob_threshold,
    nms_threshold,
    gpu,
)

About

[PROOF-OF-CONCEPT] SciJava script language backed by appose-python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors