roboflow / inference

A fast, easy-to-use, production-ready inference server for computer vision supporting deployment of many popular model architectures and fine-tuned models.
https://inference.roboflow.com
Other
1.3k stars 116 forks source link

Extend perspective correction to warp image #503

Closed grzegorz-roboflow closed 3 months ago

grzegorz-roboflow commented 3 months ago

Description

Extend perspective correction block to allow user to also warp the image into new perspective

Type of change

Please delete options that are not relevant.

How has this change been tested, please provide a testcase or example of how you tested the change?

VSCode run config:

        {  /* perspective correction */
            "name": "perspective correction",
            "type": "debugpy",
            "request": "launch",
            "program": "${workspaceFolder}/examples/run_perspective_correction.py",
            "console": "integratedTerminal",
            "args": [
                "--source-path",
                "/path/to/image.src",
                "--model-id",
                "chess-pieces-and-chess-board-instance-segmentation/6",
                "--zones-from-class-name", "board",
                "--extend-perspective-polygon-by-detections-anchor", "",
                "--warp-image"
            ],
            "env": {
                "ROBOFLOW_API_KEY": "<secret>",
                "LOG_LEVEL": "DEBUG",
                "DISABLE_VERSION_CHECK": "True"
            },
            "justMyCode": false,
        },
Screenshot 2024-07-02 at 15 10 21

Any specific deployment considerations

N/A

Docs

N/A