Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stops detection of objects when one person appears in a region #38

Closed
alex-savin opened this issue May 25, 2019 · 4 comments
Closed

Stops detection of objects when one person appears in a region #38

alex-savin opened this issue May 25, 2019 · 4 comments

Comments

@alex-savin
Copy link

Hey Folks,

I have a problem with detecting a "person" object. When it appears in a region frigate stops detecting any objects at all. I was trying to play around with variable "min_person_area", setting it low (70) or high (7000), but nothing helps.
Might be I setup something wrong, could you please help me to figure out a proper way.

Thanks in advance

Frame with the "car" objects
frigate_cars

Frame with the "car" and "person" objects, but there are no more frames
frigate_person

@blakeblackshear
Copy link
Owner

Do you see any errors in the logs when a person steps in the frame?

@alex-savin
Copy link
Author

alex-savin commented May 25, 2019

@blakeblackshear

Exception in thread Thread-10:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/opt/frigate/frigate/object_detection.py", line 55, in run
    self.cameras[frame['camera_name']].add_objects(parsed_objects)
  File "/opt/frigate/frigate/video.py", line 260, in add_objects
    y_location = min(int(obj['ymax']), len(self.mask)-1)
TypeError: object of type 'NoneType' has no len()

and after that all the logs fulfilled with

queue full. moving on
queue full. moving on
queue full. moving on
queue full. moving on
queue full. moving on
queue full. moving on
queue full. moving on
queue full. moving on
...

@alex-savin
Copy link
Author

@blakeblackshear I found the issue, I was missing mask file back-mask.bmp in the config folder

Sorry for disturbing!

PS: Could you please brief explanation for the mask and how to use it?! Thank you in advance

@blakeblackshear
Copy link
Owner

It must be the same dimensions as your video feed, and if the bottom center of the bounding box for the detected person is on a black pixel, it will be ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants