Giter VIP home page Giter VIP logo

Comments (4)

arnav095 avatar arnav095 commented on September 26, 2024

I am facing the same issue and I also need help regarding this.

from facedetect.

arnav095 avatar arnav095 commented on September 26, 2024

in my python 3.7 on window 8 , and I have installed opencv-python through pip

I import cv2 and sys and everything.. But.. When it reaches imagePath = sys.argv[1] or
cascPath = sys.argv[2] It says:

list index out of range. !

I changed it to 0, and it passes, but then it tells me assertion error

for that line: gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)

what's the solution?
have you found the solution?

from facedetect.

Elect96 avatar Elect96 commented on September 26, 2024

Hey!
I have faced the very same problem. You need to open up your python file with the Terminal using: "python your_project_name.py your_picture.jpg".

If you are using PyCharm you can find the Terminal on the bottom, it lives between "TODO" and "Python Console" tabs.

Hope it helps.
~Elect96

from facedetect.

hemali-14 avatar hemali-14 commented on September 26, 2024

I'm facing same issue.
I import sys

image_path = sys.argv[1]
IndexError: list index out of range

I tried with sys.argv[0] it is working fine

from facedetect.

Related Issues (18)

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.