AIC. - Artificial Intelligence Command

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command >

AIC. - Artificial Intelligence Command

AIC.DownloadImage

Top


MiniRobotLanguage (MRL)

 

AIC.DownloadImage

Download image file from URL

 

Intention

 

The AIC.DownloadImage command downloads an image from a URL and saves it locally. Optimized for image files with automatic format detection and handling.

 

Syntax

 

AIC.DownloadImage|$$URL|$$SavePath[|$$RetVar]

 

P1 - $$URL - URL of the image to download

P2 - $$SavePath - Local path to save the image

P3 - $$RetVar (optional) - Variable for success/failure

 

Example

 

' Download an image

AIC.DownloadImage|https://example.com/photo.jpg|C:\Images\photo.jpg|$$Result

DBP.$$Result

 

' Download and analyze

AIC.DownloadImage|$$ImageUrl|C:\temp\img.png

AIC.AskVision|Describe this image|C:\temp\img.png|$$Desc

 

Related Commands

 

- AIC.DownloadFile - Download any file

- AIC.UrlSaveFile - General URL download

- AIC.AskVision - Analyze images