Available now

MLSD Line Preprocessor: line detection

MLSD Line Preprocessor finds the straight lines in a photo and returns them as a line map, a common guide for architecture and interior images.

Model ID

Input

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

The image to process

Uploading a file needs an account. Create account

JPEG, 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.

About this model

Overview

Upload one image and get back the straight line segments it contains: walls, edges of furniture, window frames. Two thresholds, for line score and distance, control how many short or faint lines are kept.

What you can build

  • Line guides for MLSD ControlNet generation
  • Room layouts to restyle an interior
  • Building outlines for architectural concepts

Prompting tips

  • Works on scenes built from straight edges; curved and organic shapes mostly drop out.
  • Raise the thresholds when the map is cluttered with short lines, and lower them when walls or edges go missing.

What to check

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

Inputs

  • Image (required): URL of the image to process.
  • Score Threshold (optional): Score threshold for the MLSD detector.
  • Distance Threshold (optional): Distance threshold for the MLSD detector.

Output and limits

  • Small or dense text in the image can come out misspelled.
  • Hands, crowds and complex poses can show artifacts; generate a few variations and pick the best.
  • Some prompts or outputs can be refused by safety checks.

Price guide

  • up to: $0.60 / run