{
  "nbformat": 4,
  "nbformat_minor": 0,
  "metadata": {
    "colab": {
      "provenance": []
    },
    "kernelspec": {
      "name": "python3",
      "display_name": "Python 3"
    },
    "language_info": {
      "name": "python"
    }
  },
  "cells": [
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "id": "PCee5ZTbZYI0"
      },
      "outputs": [],
      "source": [
        "import cv2\n",
        "from google.colab.patches import cv2_imshow\n",
        "\n",
        "image_path = \"/content/panda.jpg\"\n",
        "\n",
        "img = cv2.imread(image_path)\n",
        "\n",
        "if img is not None:\n",
        "    cv2_imshow(img)\n",
        "else:\n",
        "    print(\"Error: Image not found or unable to load.\")"
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "import cv2\n",
        "from google.colab.patches import cv2_imshow\n",
        "\n",
        "image_path = \"/content/panda.jpg\"\n",
        "img = cv2.imread(image_path)\n",
        "if img is not None:\n",
        "    cv2.line(\n",
        "        img,\n",
        "        (20, 160),\n",
        "        (200, 160),\n",
        "        (0, 255, 255),\n",
        "        5\n",
        "    )\n",
        "    cv2_imshow(img)\n",
        "else:\n",
        "    print(\"Error: Image not found or unable to load.\")"
      ],
      "metadata": {
        "id": "h3i9oupMZYjG"
      },
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "import cv2\n",
        "from google.colab.patches import cv2_imshow\n",
        "\n",
        "image_path = \"/content/panda.jpg\"\n",
        "\n",
        "img = cv2.imread(image_path)\n",
        "\n",
        "if img is not None:\n",
        "    cv2.rectangle(\n",
        "        img,\n",
        "        (30, 30),\n",
        "        (300, 200),\n",
        "        (0, 255, 0),\n",
        "        5\n",
        "    )\n",
        "\n",
        "\n",
        "    cv2_imshow(img)\n",
        "\n",
        "else:\n",
        "    print(\"Error: Image not found or unable to load.\")"
      ],
      "metadata": {
        "id": "QOgVFAQDZYlO"
      },
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "import cv2\n",
        "from google.colab.patches import cv2_imshow\n",
        "\n",
        "image_path = \"/content/panda.jpg\"\n",
        "\n",
        "img = cv2.imread(image_path)\n",
        "\n",
        "if img is not None:\n",
        "\n",
        "    cv2.circle(\n",
        "        img,\n",
        "        (200, 200),\n",
        "        80,\n",
        "        (255, 0, 0),\n",
        "        3\n",
        "    )\n",
        "\n",
        "    cv2_imshow(img)\n",
        "else:\n",
        "    print(\"Error: Image not found or unable to load.\")"
      ],
      "metadata": {
        "id": "0loSIFWaZYnD"
      },
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "import cv2\n",
        "from google.colab.patches import cv2_imshow\n",
        "\n",
        "image_path = \"/content/panda.jpg\"\n",
        "img = cv2.imread(image_path)\n",
        "\n",
        "if img is not None:\n",
        "    font = cv2.FONT_HERSHEY_SIMPLEX\n",
        "\n",
        "    cv2.putText(\n",
        "        img,\n",
        "        \"GeeksForGeeks\",\n",
        "        (50, 50),\n",
        "        font,\n",
        "        0.8,\n",
        "        (0, 255, 0),\n",
        "        2,\n",
        "        cv2.LINE_AA\n",
        "    )\n",
        "    cv2_imshow(img)\n",
        "else:\n",
        "    print(\"Error: Image not found or unable to load.\")"
      ],
      "metadata": {
        "id": "Hqjm_VxmZYpu"
      },
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [],
      "metadata": {
        "id": "P0kBq4PJZgFb"
      },
      "execution_count": null,
      "outputs": []
    }
  ]
}