Ask Your Question

psychobyte's profile - activity

2017-04-03 13:08:20 -0500 received badge  Taxonomist
2016-10-21 10:05:17 -0500 received badge  Famous Question (source)
2015-10-03 21:53:56 -0500 received badge  Notable Question (source)
2014-11-15 22:38:00 -0500 received badge  Popular Question (source)
2014-05-08 13:46:59 -0500 received badge  Nice Question (source)
2012-08-16 12:17:58 -0500 received badge  Teacher (source)
2012-08-16 04:12:54 -0500 received badge  Self-Learner (source)
2012-08-16 00:38:43 -0500 answered a question errors with cv2.HoughCircles

OK, figured it out.

had to import cv module and update the constant:

import cv2
import cv2.cv # here
import numpy as np
img = cv2.imread('testimage.jpg')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
circ = cv2.HoughCircles(gray, cv.CV_HOUGH_GRADIENT, 1, 10) # and here
2012-08-16 00:09:37 -0500 received badge  Editor (source)
2012-08-16 00:09:04 -0500 asked a question errors with cv2.HoughCircles

Hi,

I'm using opencv 2.3.2 on Ubuntu 12.04 w/ python bindings. I'm trying to use the cv2.HoughCircles() function. When I run it I get this error.

**AttributeError: 'module' object has no attribute 'CV_HOUGH_GRADIENT'**


import cv2
import numpy as np
img = cv2.imread('testimage.jpg')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
circ = cv2.HoughCircles(gray, cv2.CV_HOUGH_GRADIENT, 1, 10)

Any ideas?

2012-08-10 13:23:03 -0500 commented question stationary target shooting algorithm

Hi,

this is one example http://www.centerfireguns.com/do-all-traps-resetting-target-ap22.html

i suppose segmenting by color is not practical because after getting shot they begin to lose their coloring. Although, i suppose it may not be uncommon to re-spray them to refresh their coloring.

I'm thinking that I could order them by by centroid positions. (left to right, 1,2,3, etc)

2012-08-10 01:38:01 -0500 received badge  Student (source)
2012-08-08 17:20:54 -0500 asked a question stationary target shooting algorithm

Hi,

I'm totally new to opencv and my c++ isn't too great. That said, I'm trying to use the OpenCV python bindings(for now) to create a real-time application that will track when a resetting shooting target is hit and keep score. I'm hoping to get some suggestions on how to develop the algorithm.

so basically, the targets are circles or perhaps "Lollipop-shaped"(i'm sure squares will be used as well). When they are shot they will either drop out of view or perhaps switch sides on the platform.

For the first phase, I'd like to be able to identify the targets(target 1, target 2, target 3, etc) by position and give a score when it is hit (goes down). The targets can vary in size based on how far a way they are (25-50 yards). The targets can reset during a shooting session so "object permanence" would be nice as well.

I'm practising with object detection through tutorials (python) right now using still images and recorded video. Can anyone offer some suggestion how to tackle this problem?

Thanks!