Go to advanced search

by elriri35
Fri Dec 25, 2015 5:15 pm
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 25271

Re: Volunteers to assist with this project: Honey Bee Counte

i had may be a solution if you want speed up your processing : import io import time import threading import picamera # Create a pool of image processors done = False lock = threading.Lock() pool = [] class ImageProcessor(threading.Thread): def __init__(self): super(ImageProcessor, self).__init__() ...
by elriri35
Mon Dec 07, 2015 10:48 pm
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 25271

Re: Volunteers to assist with this project: Honey Bee Counte

One question.

What is your setup? Because with my Pi2 and the picamera, i get only 2/3fps.
by elriri35
Fri Dec 04, 2015 1:26 pm
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 25271

Re: Volunteers to assist with this project: Honey Bee Counte

I found this error: replace: for i in xrange(len(freeKP)): # new keypoints if freeKP[i]: bees.append(Bee(keypoints[i].pt)) hive.append(kp.pt) by: for i in xrange(len(freeKP)): # new keypoints if freeKP[i]: bees.append(Bee(keypoints[i].pt)) hive.append(keypoints[i].pt)
by elriri35
Fri Dec 04, 2015 10:37 am
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 25271

Re: Volunteers to assist with this project: Honey Bee Counte

i just tried with 640x480 video but same result.

Outs are not counted.
by elriri35
Fri Dec 04, 2015 10:34 am
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 25271

Re: Volunteers to assist with this project: Honey Bee Counte

Really sorry, I thought the image was resized to 640x480.
I'm going to test with the correct format.

I know python and opencv since only two days ...
by elriri35
Fri Dec 04, 2015 9:47 am
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 25271

Re: Volunteers to assist with this project: Honey Bee Counte

Check in my code the positions: #Entry location hive = Hive(0,0,50,480) #drawing rectangle cv2.rectangle(frame, (0, 0), (50, 480), (255,0,0), 2) The size of the source video is: 176x144 it almost seems like the entry box is not at the right position If was the case, IN did not work as well no ?
by elriri35
Fri Dec 04, 2015 9:36 am
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 25271

Re: Volunteers to assist with this project: Honey Bee Counte

Thanks for reply!

Video is public now.
by elriri35
Fri Dec 04, 2015 9:24 am
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 25271

Re: Volunteers to assist with this project: Honey Bee Counte

Here is my problem: https://youtu.be/kLVhmkU43vM We notice when "a bee" appears in the rectangle is not counted in OUT but the script count correctly when a bee disappears in the entry. Here is my code: #------------ # statistical background model, build a model from previous frames class BGmodel(ob...
by elriri35
Thu Dec 03, 2015 8:53 pm
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 25271

Re: Volunteers to assist with this project: Honey Bee Counte

here it is, The code is python only. Depedencies : numpy opencv (cv2) the code is still under heavy development. You can tweak a few parameters around line 154 : # input video file cap = cv2.VideoCapture('bees1.h264') # morphological structuring element to clean the image kernel = cv2.getStructurin...

Go to advanced search