What do you want to save?
Add Code snippet
New code examples
-
Python 2022-02-02 20:50:46
python opencv draw rectangle
image = cv2.imread(path) start_point = (5, 5) end_point = (220, 220) # Blue color in BGR color = (255, 0, 0) # Line thickness of 2 px thickness = 2 # Using cv2.rectangle() method # Draw a rectangle with blue line borders of thickness of 2... Add solution -
Javascript 2021-11-06 02:51:19
canvas round rectangle
function draw() { var canvas = document.getElementById('canvas'); if (canvas.getContext) { var ctx = canvas.getContext('2d'); roundedRect(ctx, 12, 12, 150, 150, 15); roundedRect(ctx, 19, 19, 150, 150, 9); roundedRect(ctx, 53, 53, 49, ... Add solution -
Other 2021-09-21 19:22:03
facecascade = cv2.cascadeclassifier(cascpath)
import cv2 import sys # get paths for the image and haar cascade imagePath = sys.argv[1] cascPath = sys.argv[2] # Create the haar cascade faceCascade = cv2.CascadeClassifier(cascPath) # Read the image and convert to gray image = cv2.imread(imagePath) g... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5