Image Preprocessors

M-LSD line segment detection preprocessor.

Input

Fields marked * are required. Review the price before generating.

URL of the image to process

Uploading a file needs an account. Create accountJPEG, PNG, WebP · up to 25 MB

Additional settings

Score threshold for the MLSD detector

Distance threshold for the MLSD detector

Price$0.60 / run

You sign up first. Your settings are kept.

API code for this input

Complete the required fields and fix input errors to see API code.

How to use Image Preprocessors

Getting started

Detect line segments in an image with MLSD. Start with a source whose important structural lines are clearly visible.

Review your result

Compare detected lines with the source. Check missing segments and false lines from texture; this result is not a measured architectural drawing.

Inputs and settings

Provide image_url. score_threshold and distance_threshold both default to 0.1 in the provider schema.

Adjust one threshold at a time and record it with the output. Compare the line map before using it in another operation.