WebCamera Detector Using YoloV8

YoloV8 is detector objects in static images, videos, and a live webcam using Python and Ultralytics.

Software Requirements

Install New Release Python and PhyCharm Community Edition To Run This Code

Install Requirements

Before start the program you must install the Requirements

pip install -r requirements.txt

Change The Resolution Camera

For Change the Resolution you can change whatever Ratio or Pixel did you want to use

cap = cv2.VideoCapture(0)
cap.set(3,  1024)   // Length of Resolution
cap.set(4,  600)    // Width of Resolution

Change Scale And Thickness Of Border

You can Change scale or thickness of border at this line

cvzone.putTextRect(img, f'{classNames[cls]} {conf}', (max(0, x1), max(35, y1)),scale=0.9,thickness=2)

Run The Program

Run the python file for start the program

run main.py

Logo