Run python script (with numpy dependency) from java

前端 未结 3 1857
逝去的感伤
逝去的感伤 2021-01-16 01:05

In a java application I need to use a specific image processing algorithm that is currently implemented in python. What would be the best approach, knowing that this script

3条回答
  •  再見小時候
    2021-01-16 01:38

    For using numpy within a Java process, Jep now supports numpy. You can also use jpy or JyNI.

    With those libraries you could pass the images between Java and Python as byte arrays and ndarrays as you do your calculations.

提交回复
热议问题