From 7f2c66d70e8a28e9f4ea62e0ac437fd764c390b7 Mon Sep 17 00:00:00 2001 From: Karolina Date: Sat, 3 Apr 2021 00:10:24 +0200 Subject: [PATCH 1/5] 20_color_rotate_warp docs Added docs for color rotate warp. Demo TBA. --- docs/source/samples/20_color_rotate_warp.rst | 22 ++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docs/source/samples/20_color_rotate_warp.rst diff --git a/docs/source/samples/20_color_rotate_warp.rst b/docs/source/samples/20_color_rotate_warp.rst new file mode 100644 index 000000000..9d254bdbc --- /dev/null +++ b/docs/source/samples/20_color_rotate_warp.rst @@ -0,0 +1,22 @@ +20 - Color Rotate Warp +========================= + +This example shows usage of ImageWarp to crop a rotated rectangle area on a frame, or perform various image transforms: rotate, mirror, flip, +perspective transform. + +Setup +##### + +.. include:: /includes/install_from_pypi.rst + + +Source code +########### + +Also `available on GitHub `__ + +.. literalinclude:: ../../../examples/20_color_rotate_warp.py + :language: python + :linenos: + +.. include:: /includes/footer-short.rst From d182f7cb9fb80fa6ee9c6598636e629a0cdb6079 Mon Sep 17 00:00:00 2001 From: Karolina Date: Mon, 5 Apr 2021 12:31:48 +0200 Subject: [PATCH 2/5] title styling updated update after comments --- docs/source/samples/20_color_rotate_warp.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/samples/20_color_rotate_warp.rst b/docs/source/samples/20_color_rotate_warp.rst index 9d254bdbc..ab27a8d81 100644 --- a/docs/source/samples/20_color_rotate_warp.rst +++ b/docs/source/samples/20_color_rotate_warp.rst @@ -1,5 +1,5 @@ 20 - Color Rotate Warp -========================= +====================== This example shows usage of ImageWarp to crop a rotated rectangle area on a frame, or perform various image transforms: rotate, mirror, flip, perspective transform. From 043e732fbc18fcace091480e73e9d6f451c8e920 Mon Sep 17 00:00:00 2001 From: cafemoloko Date: Mon, 5 Apr 2021 13:57:56 +0200 Subject: [PATCH 3/5] added 19 & 20 to index --- docs/source/index.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/source/index.rst b/docs/source/index.rst index 77c7fbe89..a4e1a31e2 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -90,6 +90,8 @@ Now, pick a tutorial or code sample and start utilizing Gen2 capabilities samples/16_device_queue_event.rst samples/17_video_mobilenet.rst samples/18_rgb_encoding_mobilenet.rst + samples/19_mono_camera_control docs.rst + samples/20_color_rotate_warp.rst samples/22_1_tiny_yolo_v3_decoding_on_device.rst samples/22_2_tiny_yolo_v4_decoding_on_device.rst samples/23_autoexposure_roi.rst From 2d01871eaeedfc471d62cc69b000f139170c51c0 Mon Sep 17 00:00:00 2001 From: cafemoloko Date: Mon, 5 Apr 2021 18:15:24 +0200 Subject: [PATCH 4/5] description: changed to ImageManip --- docs/source/samples/20_color_rotate_warp.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/samples/20_color_rotate_warp.rst b/docs/source/samples/20_color_rotate_warp.rst index ab27a8d81..9c2ae2a3a 100644 --- a/docs/source/samples/20_color_rotate_warp.rst +++ b/docs/source/samples/20_color_rotate_warp.rst @@ -1,7 +1,7 @@ 20 - Color Rotate Warp ====================== -This example shows usage of ImageWarp to crop a rotated rectangle area on a frame, or perform various image transforms: rotate, mirror, flip, +This example shows usage of ImageManip to crop a rotated rectangle area on a frame, or perform various image transforms: rotate, mirror, flip, perspective transform. Setup From 2a34bc98dfca1584807660f5a339c7349a2ade13 Mon Sep 17 00:00:00 2001 From: cafemoloko Date: Mon, 5 Apr 2021 19:38:35 +0200 Subject: [PATCH 5/5] 20_color_rotate_warp.py - typo corrected --- examples/20_color_rotate_warp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/20_color_rotate_warp.py b/examples/20_color_rotate_warp.py index dd8b7e085..6da521be5 100755 --- a/examples/20_color_rotate_warp.py +++ b/examples/20_color_rotate_warp.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """ -This example shows usage of ImageWarp to crop a rotated rectangle area on a frame, +This example shows usage of ImageManip to crop a rotated rectangle area on a frame, or perform various image transforms: rotate, mirror, flip, perspective transform. """