Giter VIP home page Giter VIP logo

Comments (2)

paul-cvp avatar paul-cvp commented on May 12, 2024

Ok, so I think it is an opencv issue. My solution is to just set the negative values to 0 in the box_points array, so that the opencv copy method can do it's job. Not sure if it works in general but on my dataset it is usually the top of the picture that is cropped to hide peoples faces and I guess the pretrained resnet50_coco_best_v2.0.1.h5 will tend to detect people with their faces not cropped. :)

My solution:
In imageai/Detection/init.py line 743 I add:
detection_details = [0 if x < 0 else x for x in detection_details]

from imageai.

OlafenwaMoses avatar OlafenwaMoses commented on May 12, 2024

I am happy you found a way around the issue. I will investigate the issue further to see if a more solid solution can be provided, else I will adopt your approach of keeping the negative value at 0.

Also, the RetinaNet model (resnet_coco_best_v2.0.1.h5) can detect persons irrespective of the perspective they are viewed from.

from imageai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.