{"id":85814,"date":"2022-01-18T13:42:19","date_gmt":"2022-01-18T08:12:19","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=85814"},"modified":"2026-06-03T15:22:18","modified_gmt":"2026-06-03T09:52:18","slug":"deep-learning-pneumonia-detection","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/deep-learning-pneumonia-detection\/","title":{"rendered":"Deep Learning Pneumonia Detection Project using Chest X-ray Images"},"content":{"rendered":"<p>Pneumonia is an infection of the lungs caused by fungi, bacteria, and viruses.<\/p>\n<p>This infection can be in one or both lungs. The infection causes inflammation in the air sacs in your lungs, which are called alveoli. The alveoli fill with fluid or pus, making it difficult to breathe. So basically the main causes of Pneumonia are Bacteria and viruses.<\/p>\n<p>General Symptoms of Pneumonia are chest pain, fever, cough, and trouble breathing.<\/p>\n<h3>How can Pneumonia be detected?<\/h3>\n<p>There are various methods to detect pneumonia, some of them are Chest X-ray, Blood or sputum culture, Complete Blood Count (CBC), and various tests.<\/p>\n<p>But as we are going to detect Pneumonia using Deep Learning we will be using the Chest X-ray method to detect.<\/p>\n<h3>About Pneumonia Detection Project:<\/h3>\n<p>In this Project, we will detect Pneumonia using Deep Learning. We will create a model that will classify whether the patient is normal or suffering from pneumonia by looking at Chest X-ray images. The algorithm or the model which we will create should be extremely accurate because the lives of people are at stake.<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/pneumonia-detection-project-training-flow.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-85831\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/pneumonia-detection-project-training-flow.webp\" alt=\"pneumonia detection project training flow\" width=\"1296\" height=\"440\" \/><\/a><\/p>\n<h3>Pneumonia Detection Chest X-ray Dataset:<\/h3>\n<p>We will be using is Chest X-ray images (Pneumonia)\u00a0 for this deep learning project, please download the dataset from the following link: <a href=\"https:\/\/www.kaggle.com\/paultimothymooney\/chest-xray-pneumonia\"><strong>Chest X-ray for Pneumonia Detection<\/strong><\/a><\/p>\n<p>The dataset we are using is already splitted into train, test, and val. Train folder contains training data \/ images which we will use to train our model, similarly the test and val folder also contains Normal and Pneumonia images which will be used to test our model. There are a total 5856 images consisting of normal and pneumonia images both.<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/pneumonia-detection-chest-x-ray.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-85824\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/pneumonia-detection-chest-x-ray.webp\" alt=\"pneumonia detection chest x ray\" width=\"1391\" height=\"720\" \/><\/a><\/p>\n<h3>Pneumonia Detection Deep Learning Project Code<\/h3>\n<p>Please download the pneumonia detection project code from the following link: <a href=\"https:\/\/drive.google.com\/file\/d\/1B-0I8R_M48t9AUv494yBJbOaD_6ojAd4\/view?usp=drive_link\"><strong>Pneumonia Detection Project Code<\/strong><\/a><\/p>\n<h4>Required Libraries:<\/h4>\n<p>These are the following libraries you need to install for pneumonia detection project:<\/p>\n<ul>\n<li>Numpy<\/li>\n<li>Matplotlib<\/li>\n<li>OpenCV<\/li>\n<li>Tensorflow<\/li>\n<li>keras<\/li>\n<\/ul>\n<p>You can install it using pip. So open your command prompt and type pip install numpy, pip install matplotlib, pip install tensorflow etc. You can install all the required libraries like this.<\/p>\n<h3>Now let\u2019s start implementing pneumonia detection project:<\/h3>\n<p>Follow the steps to implement and understand Pneumonia detection using deep learning.<\/p>\n<h4>1.) Importing all the libraries:<\/h4>\n<p>First we will import all the libraries that we will require to implement this project.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import tensorflow\r\nfrom tensorflow.keras.models import Sequential\r\nfrom tensorflow.keras.layers import Conv2D\r\nfrom tensorflow.keras.layers import MaxPooling2D\r\nfrom tensorflow.keras.layers import Flatten\r\nfrom tensorflow.keras.layers import Dense\r\nfrom tensorflow.keras.preprocessing.image import ImageDataGenerator\r\nimport numpy as np\r\nfrom tensorflow.keras.preprocessing import image\r\nimport os\r\nimport matplotlib.pyplot as plt\r\nimport cv2<\/pre>\n<h4>2.) Declaring Variables:<\/h4>\n<p>In this step, we will declare our image size and batch size:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">image_dims = 128\r\nbatch_size = 64<\/pre>\n<h4>3.) Creating Model:<\/h4>\n<p>I will be creating a Convolutional Neural Network model (CNN).<\/p>\n<p>Convolutional Neural Network has an excellent ability to perform image classification and it is preferred for classification problems. CNN model consists of Input layer, Number of hidden and dense layers and at last an output layer. You can understand it better as I have explained below.<\/p>\n<p>In our case we have to classify chest X-ray images as Normal or Pneumonia detected, that\u2019s why we will be creating a convolutional model.<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/pneumonia-detection-convolutional-neural-network-model.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-85825\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/pneumonia-detection-convolutional-neural-network-model.webp\" alt=\"pneumonia detection convolutional neural network model\" width=\"1728\" height=\"691\" \/><\/a><\/p>\n<p>In CNN model there is one input layer, hidden layer, Dense layer, and output Layer.<\/p>\n<ul>\n<li>So the first layer we will create is an input layer with 64 nodes and relu as<br \/>\nan activation function.<\/li>\n<li>And then we will add two more Conv2D layers with 64 nodes each and relu as an activation function.<\/li>\n<li>And then we will create one Dense layer with 128 nodes, and relu as an activation function.<\/li>\n<li>At last we will create an output layer with 1 node and sigmoid as an activation function.<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">model = Sequential()\r\n\r\nmodel.add(Conv2D(64 , (3,3) , activation = 'relu' , input_shape= (image_dims, image_dims, 3)))\r\nmodel.add(MaxPooling2D((2,2)))\r\n\r\nmodel.add(Conv2D(64 , (3,3) , activation = 'relu'))\r\nmodel.add(MaxPooling2D((2,2)))\r\n\r\nmodel.add(Conv2D(64 , (3,3) , activation = 'relu'))\r\nmodel.add(MaxPooling2D((2,2)))\r\n\r\nmodel.add(Flatten())\r\n\r\nmodel.add(Dense(128, activation = 'relu'))\r\n\r\nmodel.add(Dense(1, activation = 'sigmoid'))<\/pre>\n<h4>Let\u2019s see the model that we have created using the model.summary() method.<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">model.summary()<\/pre>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/ml-model-summary.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-85826\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/ml-model-summary.webp\" alt=\"ml model summary\" width=\"1138\" height=\"498\" \/><\/a><\/p>\n<h4>4.) Compile the model:<\/h4>\n<p>Now we will compile our model and set optimizer and loss function.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">model.compile(optimizer = 'adam', loss = 'binary_crossentropy', metrics = ['accuracy'])<\/pre>\n<h4>5.) Creating Training data:<\/h4>\n<p>Now we will generate training data using ImageDataGenerator and set a path to the directory that consists of Normal and Pneumonia X-ray images, from there our training data will be generated.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">input_path = '.\/chest_xray\/'\r\n\r\n# Generate Training data:\r\ntraining_data_generator = ImageDataGenerator(rescale = 1.\/255,\r\n                          shear_range = 0.2,\r\n                          zoom_range = 0.2,\r\n                          horizontal_flip= True)\r\n\r\ntraining_gen = training_data_generator.flow_from_directory(directory=input_path+'train',\r\ntarget_size=(image_dims,image_dims),\r\n                             batch_size=batch_size,\r\n                             class_mode='binary')<\/pre>\n<p><strong>6.) Creating Validation data:<\/strong><br \/>\nValidation data will be created in the same manner as we have created training data using ImagDataGenerator() and flow_from_directory() method that is given by keras to generate data directly.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">validation_data_generator = ImageDataGenerator(rescale= 1.\/255)\r\n\r\nvalidation_gen = validation_data_generator.flow_from_directory(directory= input_path+ 'val',\r\n                             target_size=(image_dims,image_dims),\r\n                             batch_size= batch_size,\r\n                             class_mode= 'binary')<\/pre>\n<p><strong>7.) Fit the data into the model:<\/strong><\/p>\n<p>After creating training and testing data we will fit training data to the model that we have created above to check our model accuracy.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">epochs = 10\r\nhistory = model.fit_generator(training_gen,\r\n             steps_per_epoch= 10,\r\n             epochs = epochs,\r\n             validation_data=validation_gen,\r\n             validation_steps= validation_gen.samples)<\/pre>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/model-accuracy.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-85827\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/model-accuracy.webp\" alt=\"model accuracy\" width=\"1145\" height=\"652\" \/><\/a><\/p>\n<p>As you can see our model accuracy on training data is 94% which is good.<\/p>\n<h4>Let&#8217;s visualize our model accuracy and validation accuracy:<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">plt.figure(figsize=(8,6))\r\nplt.title('TechVidvan Accuracy scores')\r\nplt.plot(history.history['accuracy'])\r\nplt.plot(history.history['val_accuracy'])\r\nplt.legend(['accuracy', 'val_accuracy'])\r\nplt.show()\r\n\r\nplt.figure(figsize=(8,6))\r\nplt.title('TechVidvan Loss value')\r\nplt.plot(history.history['loss'])\r\nplt.plot(history.history['val_loss'])\r\nplt.legend(['loss', 'val_loss'])\r\nplt.show()<\/pre>\n<p><strong>8.) Creating Test data:<\/strong><\/p>\n<p>Now we will create test data to evaluate our model accuracy.<br \/>\nAs our model has not seen test data before, it will help us to check that the model we have created is accurate and can accurately classify the Chest X-ray image as Normal or Pneumonia one.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">test_data_generator = ImageDataGenerator(rescale = 1\/255)\r\n\r\ntest_gen = test_data_generator.flow_from_directory(directory = input_path + 'test',\r\n  target_size = (image_dims, image_dims),\r\n  batch_size = 128,\r\n  class_mode = 'binary'\r\n)\r\n\r\neval_result = model.evaluate_generator(test_gen, 624)\r\nprint('loss rate at evaluation data :', eval_result[0])\r\nprint('accuracy rate at evaluation data :', eval_result[1])<\/pre>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/generate-test-data.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-85828\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/generate-test-data.webp\" alt=\"generate test data\" width=\"1143\" height=\"401\" \/><\/a><\/p>\n<p>Our deep learning model is able to classify the image with 91% accuracy. So the model we have created works fine on classifying the data it has never seen before. So we can use this model to predict whether the person is Normal or suffering from Pneumonia with the help of that person&#8217;s Chest X-ray image.<\/p>\n<h3>Summary<\/h3>\n<p>We have created a Convolutional Neural Network Model which is able to correctly predict that the patient is suffering from Pneumonia or not by using that person\u2019s chest X-ray. So, in this project we have learned how to create CNN models and also learn how to generate data using ImageDataGenerator that is given by keras.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pneumonia is an infection of the lungs caused by fungi, bacteria, and viruses. This infection can be in one or both lungs. The infection causes inflammation in the air sacs in your lungs, which&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":85823,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[210],"tags":[4597,2598,3397,4598,4599,4600],"class_list":["post-85814","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-machine-learning","tag-deep-learning-pneumonia-detection-project","tag-deep-learning-project","tag-ml-project","tag-pneumonia","tag-pneumonia-detection","tag-pneumonia-detection-chest-x-ray"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Deep Learning Pneumonia Detection Project using Chest X-ray Images - TechVidvan<\/title>\n<meta name=\"description\" content=\"Create a Machine Learning Project to detect Pneumonia in chest x ray images using CNN with TensorFlow, NumPy, OpenCV\" \/>\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\/deep-learning-pneumonia-detection\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Deep Learning Pneumonia Detection Project using Chest X-ray Images - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Create a Machine Learning Project to detect Pneumonia in chest x ray images using CNN with TensorFlow, NumPy, OpenCV\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/deep-learning-pneumonia-detection\/\" \/>\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=\"2022-01-18T08:12:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-03T09:52:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2022\/01\/deep-learning-project-pneumonia-detection.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=\"6 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Deep Learning Pneumonia Detection Project using Chest X-ray Images - TechVidvan","description":"Create a Machine Learning Project to detect Pneumonia in chest x ray images using CNN with TensorFlow, NumPy, OpenCV","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\/deep-learning-pneumonia-detection\/","og_locale":"en_US","og_type":"article","og_title":"Deep Learning Pneumonia Detection Project using Chest X-ray Images - TechVidvan","og_description":"Create a Machine Learning Project to detect Pneumonia in chest x ray images using CNN with TensorFlow, NumPy, OpenCV","og_url":"https:\/\/techvidvan.com\/tutorials\/deep-learning-pneumonia-detection\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2022-01-18T08:12:19+00:00","article_modified_time":"2026-06-03T09:52:18+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2022\/01\/deep-learning-project-pneumonia-detection.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":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/deep-learning-pneumonia-detection\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/deep-learning-pneumonia-detection\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Deep Learning Pneumonia Detection Project using Chest X-ray Images","datePublished":"2022-01-18T08:12:19+00:00","dateModified":"2026-06-03T09:52:18+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/deep-learning-pneumonia-detection\/"},"wordCount":887,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/deep-learning-pneumonia-detection\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2022\/01\/deep-learning-project-pneumonia-detection.webp","keywords":["Deep Learning Pneumonia Detection Project","deep learning project","ML project","Pneumonia","Pneumonia Detection","Pneumonia Detection Chest X-ray"],"articleSection":["Machine Learning Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/deep-learning-pneumonia-detection\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/deep-learning-pneumonia-detection\/","url":"https:\/\/techvidvan.com\/tutorials\/deep-learning-pneumonia-detection\/","name":"Deep Learning Pneumonia Detection Project using Chest X-ray Images - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/deep-learning-pneumonia-detection\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/deep-learning-pneumonia-detection\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2022\/01\/deep-learning-project-pneumonia-detection.webp","datePublished":"2022-01-18T08:12:19+00:00","dateModified":"2026-06-03T09:52:18+00:00","description":"Create a Machine Learning Project to detect Pneumonia in chest x ray images using CNN with TensorFlow, NumPy, OpenCV","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/deep-learning-pneumonia-detection\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/deep-learning-pneumonia-detection\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/deep-learning-pneumonia-detection\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2022\/01\/deep-learning-project-pneumonia-detection.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2022\/01\/deep-learning-project-pneumonia-detection.webp","width":1200,"height":628,"caption":"deep learning project pneumonia detection"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/deep-learning-pneumonia-detection\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Deep Learning Pneumonia Detection Project using Chest X-ray Images"}]},{"@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\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":false,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/85814","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=85814"}],"version-history":[{"count":1,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/85814\/revisions"}],"predecessor-version":[{"id":448063,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/85814\/revisions\/448063"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/85823"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=85814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=85814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=85814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}