# AI and Processing

**URL:** <https://discourse.processing.org/t/ai-and-processing/46571>\
**Category:** Processing\
**Created:** [June 18, 2025, 4:04pm UTC](https://discourse.processing.org/t/ai-and-processing/46571 "2025-06-18T16:04:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeffmarc](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jeffmarc](https://discourse.processing.org/u/jeffmarc)\
**Post date:** [June 18, 2025, 4:04pm UTC](https://discourse.processing.org/t/ai-and-processing/46571/1 "2025-06-18T16:04:24Z")

</div>

I want to use AI in Processing , has anyone done this?  
I want AI to rank a set of images for uniform appearance.  
I tested this online with Claude and it worked !  
Now I want o integrate it into my Processing program that acquires the images  
and call the AI to give it a ranking.

I would like to do this in a offline application.  
The Processing program acquires the image.  
Then AI analyzes and ranks it with a number from 1-100

Thanks  
Jeff Marc

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [June 19, 2025, 6:39pm UTC](https://discourse.processing.org/t/ai-and-processing/46571/3 "2025-06-19T18:39:22Z")

</div>

Hello @jeffmarc

> [@jeffmarc](#):
>
> I want to use AI in Processing , has anyone done this?

I have not done this but research suggests that it can be done.  
What has your research revealed?

> [@jeffmarc](#):
>
> I would like to do this in a offline application.

You can export Processing applications if desired.  
You can offload the AI processing to an external local application.

This will launch Python on my PC and I can add a script later:

```auto
void setup() {
  try {
    String pythonPath = "C:\\Users\\GLV\\AppData\\Local\\Programs\\Python\\Python313\\python.exe";
    String[] command = {
      "cmd.exe", "/c", "start", "cmd", "/k", "\"" + pythonPath + "\""
    };
    Runtime.getRuntime().exec(command);
  } catch (Exception e) {
    e.printStackTrace();
  }
}

```

You can run a script (Python or otherwise) that uses your local AI to process and rank images.  
Store the ranking somehow (file is one example) then read the file and use in Processing.

Or use py5 directly:

> **[Welcome to py5! — py5 documentation](https://py5coding.org/)**

This came up in my exploration:

> **[Let’s code a Neural Network from scratch — Part 3](https://medium.com/typeme/lets-code-a-neural-network-from-scratch-part-3-87e23adbe4b6)**
>
> Part 1, Part 2 & Part 3

This has certainly generated my interest and I will explore this for my personal development. I have done similar with Processing in the past to offload the processing of information and return the results.

Have fun!

`:)`
