shapes

Detect circles in openCV

Detect circles in openCV Question: I have a problem with choosing right parameters for HoughCircles function. I try to detect circles from video. This circles are made by me, and has almost the same dimension. Problem is that camera is in move. When I change maxRadius it still detect bigger circles somehow (see the right …

Total answers: 3

How to create a DataFrame of random integers with Pandas?

How to create a DataFrame of random integers with Pandas? Question: I know that if I use randn, the following code gives me what I am looking for, but with elements from a normal distribution. But what if I just wanted random integers? import pandas as pd import numpy as np df = pd.DataFrame(np.random.randn(100, 4), …

Total answers: 3

How can I draw half circle in OpenCV?

How can I draw half circle in OpenCV? Question: How can I draw half circle in OpenCV like below? If not, how can I do this especially in Python? Asked By: Yuda Prawira || Source Answers: There is an ellipse function (link) where you can specify a start angle and an end angle. Answered By: …

Total answers: 4