Ask Your Question
0

Identify the maize tassel and count the total number of it

asked 2018-08-30 03:37:04 -0600

ubs717 gravatar image

Hi, I am very new to OpenCV, What I am trying to do is identify the maize tassel from the following image image description

The way I tried is "template matching" from openCV Here is the template: image description

the method I used is cv2.TM_CCOEFF_NORMED, and the threshold I used is 0.7 after matching, I got: image description

Perfect point out my template!! However, what I want is circle out all maize tassels in the picture. I tried to use a lower threshold, like 0.6, and got:

image description

which showed lots of non-specific targets... Any suggestion will be appreciated, thanks a lot. Please remind me if I didn't give enough information here.

Best, Shu-Yun

edit retag flag offensive close merge delete

Comments

I don't understand your method : template matching in opencv is not invariant by scale and rotation

LBerger gravatar imageLBerger ( 2018-08-30 04:22:33 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-08-30 04:39:27 -0600

berak gravatar image

i don't think, you'll get far here, using template matching. as said before, the variation in pose / rotation /overlap with other plant parts is far too large.

gather a few hundred cropped positive examples, split up the remainder of the images into cropped negatives of the same size, and try to re-train (transfer learning) an existing SSD or YOLO cnn .

edit flag offensive delete link more

Comments

Thanks, I will try to do that.

ubs717 gravatar imageubs717 ( 2018-09-06 04:12:38 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-08-30 03:37:04 -0600

Seen: 153 times

Last updated: Aug 30 '18