OpenCV Drawing Fucntions cv.line(), cv.circle() , cv.rectangle(), cv.ellipse(), cv.putText()

cv.line()

This is used to draw a line on passed MAT(window part) actually it changes the color of the window pixel from given point to ending given points with adjesting the color and thickness by passing as argument along with MAT and other import attributes
 

 cv.circle()

Similarly it is also USed to create the shape which Circle we passes here the radius and the middle point to the circle


similarly for other functions,  can take information about the argument passed in these functions from official website of the OpenCV but some common arguments are,MAT,  color, thickness, radius, size, initial point, ending point 


cv.ellipse() 

Used to create the ellipse with different different attributes 
To draw the ellipse, we need to pass several arguments. One argument is the center location (x,y). Next argument is axes lengths (major axis length, minor axis length). angle is the angle of rotation of ellipse in anti-clockwise direction. startAngle and endAngle denotes the starting and ending of ellipse arc measured in clockwise direction from major axis. i.e. giving values 0 and 360 gives the full ellipse. For more details, check the documentation of cv.ellipse(). Below example draws a half ellipse at the center of the image.


cv.putText()

it put the Text on given MAT and display it

Comments

  1. -- Online SQL Editor to Run SQL Online.
    -- Use the editor to create new tables, insert data and all other SQL opDES

    --DESC Student
    --ALTER TABLE Student ADD ("College" varchar(100))
    --CREATE TABLE countries("country_id" int,"country_Name" varchar(50),"region_id" int)
    --DROP TABLE Branch;
    --DROP TABLE Customer;
    --Crete the table for the given schema 1 Brach: Branch NAme, Branch City

    --CREATE TABLE Branch("branchName" varchar(20),"branchCity" varchar(20),"branchId" int);

    --Customer: CusName,Cuscity

    --Create TAble Customer("CusName" varchar(50),"cusCity" varchar(50));

    -- Add New Col BranchNUmber in Branch and Cusid in Customer Table

    --ALTER TABLE Branch ADD "branchNumber" int ;
    --ALTER TABLE Customer ADD "cusId" varchar(10);

    -- Delete the Col Cuscity from Customer table

    --Alter Table Customer DROP COLUMN "cusCity";

    -- Modify the Data Type of Branch id is Character Type

    -- ERROR
    --ALTER Table Branch MODIFY COLUMN "branchId" char(10);
    -- ERROR

    -- Rename the Branch Table to newBranch
    ALter table Branch RENAME Branch to newBranch;

    --Delete the branch Table -- Drop
    --DROP TABLE newBranch;

    ReplyDelete

Post a Comment

Pageviews