Starting With OpenCV-1 🔥😎
OpenCV is a cross-platform library using which we can develop real-time computer vision applications. It mainly focuses on image processing, video capture, and analysis, including face detection and object detection.
Let's Start With Basic Implementation
“ How we can capture the pic and view it in the new Window? ”
→ At which camera you wants to capture
External Cam→ 1 or anyOtheNumber
Internal Cam→ 0
→ Now we read the Pic or take snapshot and it return two values
1st → Return Value(is it captured or Not)
2nd → The Data Which is Given by the Photo
So, For accepting these two value we need two Variable
→Now we also need write those data which is not in Correct format to
specific Image file Extension.
→Now we don’t need the camera our work is Done so we need to release the Camera.
→Lets See the Pic in new window without mannual clicking at the Photio
In this function it need two things -
1st -> What name of the Window We Wants To give ?
2nd -> the Data which we need to see at that window.
→ Here at this only you will try to excute your program will crash becoz
Due to these two reasones →
1. We haven’t tell that How much time it should be visible ?
→ If we not give the specific time then it will show the image forever
2. Through which we want to close that window
→ It we not mention any key it will close through any key
→Now again it will crash we haven’t given any way/function so that it can
it can distroy.
Finally We Are Done With Our Coding Part I hope You Understand Each and every-bit of the Code.