SDL. - Interrogate Images

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > SD - Stable Diffusion AI > SDL. - Stable Diffusion Local System > ! SDL. IMG2TXT - Interrogate Images >

SDL. - Interrogate Images

SDL.ClipInterrogate

Previous Top Next


MiniRobotLanguage (MRL)

 

SDL.Interrogate

Analyzes an image file and returns a description or prompt of the image's content (IMG2Txt using CLIP).

 

 

Intention

 
The SDL.Interrogate command is designed to analyze an image file and provide a description or prompt of its content.

This can be useful for understanding the content of an image without having to view it.

A description or prompt of the image's content is generated based on the analysis.

 

SDL.Interrogate analyzes an image file specified by the user and returns a description or prompt of the image's content.

The command takes a mandatory parameter, P1, for the filename of the image to be analyzed.

An optional second parameter, P2, can be provided to store the returned description in a specific variable.

If P2 is omitted, the description is placed on the top of the stack (TOS).

 

$$PAT=D:\JPGs\00_Facebk\

FEF.DoIt|$$FIL|$$PAT

 

MBX.!

ENR.

'-----------------------------------------------------------

:DoIt

SDL.Int|$$FIL|$$RES

DBP.$$FIL - $$RES

' Load and display Picture

ANA.Load|0|$$FIL

ANA.Show|0!

RET.

 

Here is a part of the returned analysis for 4 random pictures.

clip0777

 

 

Syntax

 

 

SDL.Interrogate|P1[|P2]

 

 

Parameter Explanation

 

P1 - Image Filename: Specifies the file path of the image to be analyzed. This is a mandatory parameter.

P2 - Output Variable (Optional): If provided, the description or prompt of the image's content will be stored in this variable.

   If omitted, the description is placed on the Top Of Stack (TOS).

 

 

 

 

Example

 

'***********************************

' SDL.-Sample for interrogating an image

'***********************************

SDL.Interrogate|?path\imageFile.jpg|$$DES

' $$DES will now contain a description or prompt of the image's content

 

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: