LandingLens | LandingLens on Snowflake |
---|---|
Set Up Inspection Points for Images Sent via API
You can set up multiple configurations for each Inspection Point.
- Create an Inspection Point.
- Select Web API from the Image Source drop-down menu.
- Enter the port that you will use to send images to LandingEdge in the Port field.LandingEdge will monitor this port to receive images from your API call. The supported port number range is 7000 to 8000. If setting up multiple Inspection Points, use a different port for each Inspection Point.
- If you want other devices (different IP addresses) on your network to be able to send images to the web API endpoint, select the Allow External Access checkbox.
- Verify that Self is selected from the Inspection Start drop-down menu. This option means that sending an image via web API will trigger the inspection process to start. (This is the only option when using the web API method.)
- Set up the Cloud Connection and Modelsettings.
- Skip the Communication section.
- (Optional) Set up Image Saving settings.
- (Optional) Set up Other Settings settings.
- (Optional) Set up Custom Processing.
Web API Documentation
To access the LandingEdge web APIs in Swagger, first ensure that the Inspection Point is running. Then go tohttp://localhost:[port]/docs
, where [port]
is the number you entered in the Port field when setting up the Inspection Point. For example, if you entered 7054 as your port number, then you would go to http://localhost:7054/docs
.


Web API Endpoints
The Web API provides the following possible endpoints you can use. All endpoints return the predictions as JSON.- /images
- /RGB24mmf
Example: /Images Endpoint
The following script shows how to use the/images
endpoint to run inference on images that are already on your device.
Example: /RGB24mmf Endpoint
The /RGB24mmf endpoint is only available on Windows.
/RGB24mmf
endpoint to run inference on images stored in your device’s memory.