How to Capture Screenshot Using Python in Hindi - CodeWithShani

Capture Screenshot Using Python 




Introduction:

हेलो दोस्तों ! आज की इस पोस्ट में मैं आपको बताने वाला हूं कि आप किस तरीके से Python Programming Language की मदद से कंप्यूटर में screenshot लेने का प्रोजेक्ट कैसे बना सकते हैं तो अगर आप भी इसके बारे में जानना चाहते हैं तो आप इस पोस्ट को अंत तक पढ़े और ध्यान से पढ़ें ताकि आपको सब कुछ सही से समझ में आ जाए |


Library Installation:

दोस्तों इस प्रोजेक्ट को करने के लिए हमें एक Python Library की जरूरत पड़ेगी जिसका नाम है pyscreenshot तो सबसे पहले आपको इस लाइब्रेरी को अपने system (Computer) में install करना है, install करने के लिए आप pip command का यूज कर सकते हैं |



Code for Capture Screenshot Using Python:


import pyscreenshot

image=pyscreenshot.grab()

image.show()

image.save("CodeWithShani.png")


Explanation:

1. दोस्तो सबसे पहले हमने pyscreenshot लाइब्रेरी को import करा लिया है जिसकी मदद से हम Screenshot Taker बना रहे हैं

2. उसके बाद हमने image नाम का एक variable बनाया है और इसमें पूरी Screen को Capture करने के लिए हमने लिखा है pyscreenshot.grab() तो इस grab() Function से पूरी Screen Capture हो जाएगी |

3. उसके बाद इस image को दिखाने के लिए हमने लिखा है image.show() जिससे कि इमेज Open हो सके |

4. और उसके बाद इस image को save करने के लिए हमने लिखा है image.save और इसके अंदर हमने इस image का नाम दिया है "CodeWithShani.png" और इस इमेज का extension लगाना बहुत ही जरूरी है |

5. Save and Run this Program.


Output:

CodeWithShani.png


Summary:

तो इस तरीके से आप Python Programming Language की मदद से अपने computer में Screenshot लेने का Python Project बना सकते हैं वह भी बहुत ही आसानी तरीके से| तो अगर आपको यह प्रोजेक्ट पसंद आया तो प्लीज हमें कमेंट करके जरूर बताएं और अगर आप इसी तरह के और भी प्रोजेक्ट के बारे में जानना चाहते हैं तो आप हमें फॉलो करें और हमारे YouTube Channel "CodeWithShani" को जरूर सब्सक्राइब करें |


Click Here To Download Source Code


Read Also:


Tags : 

#codewithshani #code_with_shani #pythonproject #python #coding #coder #programming #programmer #pythonlanguage #pythonprogramming #computer #computerscience #trending #projects #ebook #java #javascript #clanguage #cprogramming #react #js #converter  #howto #how #usingpython #hindi #inhindi #shanibhai #codergirl #coderlife #coderpower #coders #coderslife #codingbootcamp #codingishun #codinglife #programacian #pythoncoder #programmerlife #code #python3 #pythonhub #developer #development #html ##webdevelopment #website #linux #css #bootstrap #project #screenshot #capture

एक टिप्पणी भेजें

0 टिप्पणियाँ