Skip to main content

Posts

Showing posts from July, 2020

Open_cv_first_project

Step 1 - connect local server first (click on connect button) install packages commands are there.. command (i) !pip install cmake dlib face_recognition numpy opencv-python command (ii) !pip install opencv-python Step 2 - connect google drive folder where your picture uploaded. command (i)  from google.colab import drive command (ii) drive.mount('/gdrive/')  => click on link which show in your screen and allow all services than copy paist link those you get in screen  then your drive will be connect with google colab. command (iii) %cd /gdrive/My Drive/Open CV Project => using this connect your drive folder.. command (iv) ls => this command show you those images names on screen. step 3 - show image on screen. command (i)  import cv2 command (ii) from google.colab.patches import cv2_imshow command (iii) image = cv2.imread('test.jpg') => read image using this command and store one variable (image) command (iv) c...

First Sheet solution raman classes Patterns

                         Patterns #include<iostream> using namespace std; /* Question-1 n=4 * ** *** **** */ half_triangle(int n){ cout<<endl<<" half_triangle "<<endl; for(int i=0;i<n;i++){ for(int j=0;j<=i;j++){ cout<<"*"; } cout<<endl; } } /* Question-2 n=5 1 2 3 4 5 6 7 8 9 10 */ half_triangle_1_10(int n){ cout<<endl<<" half_triangle_1-10 "<<endl; int c=1; for(int i=0;i<n;i++){ for(int j=0;j<=i;j++){ cout<<c<<" "; c++; } cout<<endl; } } /* Question-3 n=4 0 1 0 1 0 1 0 1 0 1 */ binary_number_half_triangle(int n){ cout<<endl<<" binary_number_half_triangle "<<endl; int c=0; for(int i=0;i<n;i++){ for(int j=0;j<=i;j++){ if(c==0){ cout<<c...