{"id":88370,"date":"2024-07-01T18:00:36","date_gmt":"2024-07-01T12:30:36","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=88370"},"modified":"2026-06-03T15:22:15","modified_gmt":"2026-06-03T09:52:15","slug":"python-opencv-shooting-game","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/python-opencv-shooting-game\/","title":{"rendered":"Python OpenCV Project &#8211; Shooting Game"},"content":{"rendered":"<p>Welcome to this shooting game by TechVidvan! Get ready to test your shooting skills and precision. Your goal is to shoot total targets given by the game before you run out of bullets. Aim carefully and click to fire bullets at the targets. Aim for successful hits to increase your score, but be cautious as too many misses will deplete your bullets, leading to game over. To fire the bullets, click on the left button of the mouse.<\/p>\n<h2>Sound Effect<\/h2>\n<p>To enhance the gaming experience and add a realistic touch, we are introducing a bullet-firing sound using the versatile pygame library. This library is renowned for handling sound effects in games seamlessly. We have the suitable sound file in .mp3 format, which we are importing into our code via pygame. Players will now enjoy auditory feedback of firing bullets.<\/p>\n<h3>Prerequisites For Shooting Game Using Python OpenCV<\/h3>\n<p>A solid understanding of the Python programming language and knowledge of the OpenCV library are needed.<\/p>\n<p>1. Python 3.7 and above<\/p>\n<p>2. Any Python editor (VS code, Pycharm, etc.)<\/p>\n<h3>Download Python OpenCV Shooting Game Project<\/h3>\n<p>Please download the source code of Python OpenCV Shooting Game Project from the following link: <a href=\"https:\/\/drive.google.com\/file\/d\/1936Yr6Ck2ZGV9oQcCvIt9VmQ7RzgWLKK\/view?usp=drive_link\"><strong>Python OpenCV Shooting Game Project Code.<\/strong><\/a><\/p>\n<h3>Installation<\/h3>\n<p>Open Windows cmd as administrator<\/p>\n<p>1.\u00a0 Install the OpenCV library by running the command in the command prompt.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">pip install opencv-python<\/pre>\n<p>2. Install the pygame library by running the command in the command prompt.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">pip install pygame<\/pre>\n<h3>Let\u2019s Implement Python OpenCV Shooting Game<\/h3>\n<p>To implement the game, follow the below instructions.<\/p>\n<p>1. First, we are importing all the packages that are needed in our implementation.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import cv2\r\nimport numpy as np\r\nimport pygame\r\npygame.init()<\/pre>\n<p>2. This is the name of our game window.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">game_name = 'Shooting Game by TechVidvan'<\/pre>\n<p>3. Here, we are declaring some variables that we are going to use in our implementation, like img_size, img_width, max_hits, max_bullets, bullets, target color, etc.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">img_width, img_height = 800,600\r\ntarget_size = 15\r\nbullet_size = 8\r\nbullet_speed = 8\r\nbullet_color = (0,255,0)\r\ntarget_color = (0,0,255)\r\nhits = 0\r\nmax_hits = 10\r\ntargets = []\r\nbullets = []\r\nmax_bullets = 20\r\nbullet_count  = 0<\/pre>\n<p>4. This function adds the sound effect to bullets firing.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def play_bullet_sound():\r\n    bullet_sound.play()<\/pre>\n<p>5. This function randomly creates a new target with random coordinates within the shootable area of the game window.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def target_create():\r\n    x = np.random.randint(target_size, img_width-target_size)\r\n    y = np.random.randint(target_size,img_height-target_size-250)\r\n    targets.append((x,y))<\/pre>\n<p>6. This function is responsible for drawing the targets on the game image and making them visible to the player.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def target_draw(image):\r\n    for target in targets:\r\n        x,y = target\r\n        cv2.circle(image, (x,y), target_size, target_color, -1)<\/pre>\n<p><strong> Output of this step<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/Shooting-Game-using-OpenCV-and-Python.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-89160\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/Shooting-Game-using-OpenCV-and-Python.webp\" alt=\"Shooting Game using OpenCV and Python\" width=\"1920\" height=\"1080\" \/><\/a><\/p>\n<p>7. This function is responsible for drawing all the fired bullets on the game image, making them visible to the player. The position of bullets are updated in each iteration, and they are continuously drawn on the game image as they move.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def draw_bullets(image):\r\n    for bullet in bullets:\r\n        x,y = bullet\r\n        cv2.circle(image, (x,y), bullet_size,bullet_color, -1)<\/pre>\n<p><strong> Output of this step<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/Shooting-Game-using-OpenCV.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-89161\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/Shooting-Game-using-OpenCV.webp\" alt=\"Shooting Game using OpenCV\" width=\"1920\" height=\"1080\" \/><\/a><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/Shooting-Game.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-89162\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/Shooting-Game.webp\" alt=\"Shooting Game\" width=\"1920\" height=\"1080\" \/><\/a><\/p>\n<p>8. This function ensures that the bullets move smoothly on the game screen until they reach the top of the screen or hit the target. The continuous update of bullet positions gives the illusion of motion and creates the effect of moving towards the target.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def move_bullets():\r\n    global bullets\r\n    new_bullets = []\r\n    for bullet in bullets:\r\n        x,y = bullet\r\n        y -= bullet_speed\r\n        if y&gt;0:\r\n            new_bullets.append((x,y))\r\n    bullets = new_bullets<\/pre>\n<p>9. This function ensures that hits between the bullets and the target are correctly detected and recorded, updating the hits counter accordingly and removing hit targets from the list of targets. This creates the effect of the targets disappearing when hit by bullets and counting the number of successful hits during the game.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def hits_detect():\r\n    global bullets, targets, hits\r\n    new_targets = []\r\n    for target in targets:\r\n        x,y = target\r\n        hit = False\r\n        for bullet in bullets:\r\n            bx, by = bullet\r\n            if abs(bx-x) &lt;= target_size and abs(by-y) &lt;= target_size:\r\n                hit = True\r\n                hits += 1\r\n                break\r\n        if not hit:\r\n            new_targets.append(target)\r\n    targets = new_targets<\/pre>\n<p>10. This function updates the bullet_count variable and the player can fire the bullets by clicking the left mouse button. The game will limit the number of bullets to the maximum allowed and bullet count will reflect the total number of bullets fired by player during the game.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def mouse_callback(event, x,y, flags, param):\r\n    global bullet_count\r\n    if event == cv2.EVENT_LBUTTONDOWN:\r\n        if len(bullets) &lt; max_bullets:\r\n             bullets.append((x,y))\r\n             bullet_count+=1\r\n             play_bullet_sound()<\/pre>\n<p>11. This main function is the core of this game and handles the game loop. It continuously updates the game window to display relevant information such as number of hits, bullets fired, target, etc. If the player hits 10 targets in 20 bullets then the player will win the game and if bullets are over then the game will be over. If the user presses key \u2018q\u2019 the game will stop executing.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def main():\r\n    global hits\r\n    cv2.namedWindow(game_name)\r\n    cv2.setMouseCallback(game_name,mouse_callback)\r\n    while True:\r\n        image = np.zeros((img_height, img_width, 3), dtype=np.uint8)\r\n        target_draw(image)\r\n        draw_bullets(image)\r\n        move_bullets()\r\n        hits_detect()\r\n        cv2.putText(image, f\"Hits : {hits}\/{max_hits}\", (40,40), cv2.FONT_HERSHEY_SIMPLEX, 1, (255,255,255), 2)\r\n        cv2.putText(image, f\"Bullets: {bullet_count}\/{max_bullets}\", (550, 40), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255), 2)\r\n        if hits &gt;= max_hits:\r\n            cv2.putText(image, \"You Won the Game\", (100, 350), cv2.FONT_HERSHEY_SIMPLEX, 2, (0,255,255), 4)\r\n            cv2.imshow(game_name,image)\r\n            cv2.waitKey(2000)\r\n            break\r\n        if bullet_count &gt;= max_bullets:\r\n            cv2.putText(image, \"Game Over\", (250, 350), cv2.FONT_HERSHEY_SIMPLEX, 2, (0, 255, 255), 4)\r\n            cv2.imshow(game_name, image)\r\n            cv2.waitKey(2000)\r\n            break\r\n        cv2.imshow(game_name, image)\r\n        if cv2.waitKey(1) &amp; 0xFF == ord('q'):\r\n            break\r\n        if len(targets) == 0:\r\n            target_create()\r\n    cv2.destroyAllWindows()<\/pre>\n<p>12. It is a very common convention used in python to make sure that main() function is executed only if the script is run as the main program.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">if __name__ == \"__main__\":\r\n    main()<\/pre>\n<h3>Python OpenCV Shooting Game Output<\/h3>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/Shooting-Game-using-OpenCV-and-Python-output-.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-89163\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/Shooting-Game-using-OpenCV-and-Python-output-.webp\" alt=\"Shooting Game using OpenCV and Python output\" width=\"1920\" height=\"1080\" \/><\/a><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/opencv-Shooting-Game-output-.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-89164\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/opencv-Shooting-Game-output-.webp\" alt=\"opencv Shooting Game output\" width=\"1920\" height=\"1080\" \/><\/a><\/p>\n<h3>Python OpenCV Shooting Game Video Output<\/h3>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/Python-OpenCV-Project-Shooting-Game.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-89210\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/Python-OpenCV-Project-Shooting-Game.webp\" alt=\"Python OpenCV Project Shooting Game\" width=\"800\" height=\"450\" data-wp-editing=\"1\" \/><\/a><\/p>\n<h3>Conclusion<\/h3>\n<p>The shooting game using opencv is an exciting and interactive experience where players can test their shooting skills. They fire bullets at targets on the screen, aiming to hit them within a limited number of bullets. It showcases the potential of opencv for creating fun and engaging games, highlighting the fusion of computer vision and gaming technology to entertain and challenge players.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to this shooting game by TechVidvan! Get ready to test your shooting skills and precision. Your goal is to shoot total targets given by the game before you run out of bullets. Aim&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":447388,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[193],"tags":[5584,5551,5573,391,379,5550,481,5655,5582,5586,5585],"class_list":["post-88370","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-opencv-tutorials","tag-create-shooting-game-using-python-opencv","tag-learn-python-opencv","tag-opencv","tag-opencv-project","tag-python-opencv-project","tag-python-opencv-project-for-beginners","tag-python-opencv-project-ideas","tag-python-opencv-shooting-game","tag-python-opencv-shooting-game-project","tag-shooting-game","tag-shooting-game-project"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python OpenCV Project - Shooting Game - TechVidvan<\/title>\n<meta name=\"description\" content=\"The shooting game using opencv is an exciting and interactive experience where players can test their shooting skills.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/python-opencv-shooting-game\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python OpenCV Project - Shooting Game - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"The shooting game using opencv is an exciting and interactive experience where players can test their shooting skills.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/python-opencv-shooting-game\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-01T12:30:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-03T09:52:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/10\/shooting-game.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python OpenCV Project - Shooting Game - TechVidvan","description":"The shooting game using opencv is an exciting and interactive experience where players can test their shooting skills.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/techvidvan.com\/tutorials\/python-opencv-shooting-game\/","og_locale":"en_US","og_type":"article","og_title":"Python OpenCV Project - Shooting Game - TechVidvan","og_description":"The shooting game using opencv is an exciting and interactive experience where players can test their shooting skills.","og_url":"https:\/\/techvidvan.com\/tutorials\/python-opencv-shooting-game\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2024-07-01T12:30:36+00:00","article_modified_time":"2026-06-03T09:52:15+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/10\/shooting-game.webp","type":"image\/webp"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/python-opencv-shooting-game\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-opencv-shooting-game\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/dde481bb412350cde1ed6e389bc0deaf"},"headline":"Python OpenCV Project &#8211; Shooting Game","datePublished":"2024-07-01T12:30:36+00:00","dateModified":"2026-06-03T09:52:15+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-opencv-shooting-game\/"},"wordCount":708,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-opencv-shooting-game\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/10\/shooting-game.webp","keywords":["create shooting game using python opencv","learn python opencv","opencv","opencv project","python opencv project","python opencv project for beginners","python opencv project ideas","python opencv shooting game","python opencv shooting game project","shooting game","shooting game project"],"articleSection":["OpenCV Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/python-opencv-shooting-game\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/python-opencv-shooting-game\/","url":"https:\/\/techvidvan.com\/tutorials\/python-opencv-shooting-game\/","name":"Python OpenCV Project - Shooting Game - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-opencv-shooting-game\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-opencv-shooting-game\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/10\/shooting-game.webp","datePublished":"2024-07-01T12:30:36+00:00","dateModified":"2026-06-03T09:52:15+00:00","description":"The shooting game using opencv is an exciting and interactive experience where players can test their shooting skills.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-opencv-shooting-game\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/python-opencv-shooting-game\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/python-opencv-shooting-game\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/10\/shooting-game.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/10\/shooting-game.webp","width":1200,"height":628,"caption":"shooting game"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/python-opencv-shooting-game\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Python OpenCV Project &#8211; Shooting Game"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/dde481bb412350cde1ed6e389bc0deaf","name":"TechVidvan Team"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/88370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=88370"}],"version-history":[{"count":9,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/88370\/revisions"}],"predecessor-version":[{"id":448067,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/88370\/revisions\/448067"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/447388"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=88370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=88370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=88370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}