Giter Site home page Giter Site logo

Comments (4)

mrnugget avatar mrnugget commented on July 3, 2024

Regarding 1.: See #4
Regarding 2.: the error comes from the fact that you're running this on Ubuntu. brew is a package manager for macOS.

from opencv-haar-classifier-training.

rajarao47 avatar rajarao47 commented on July 3, 2024

Hi Nugget,
Thanks for your help. I did more research and realized that brew package is for mac OS. (Sorry for this as I am just bit new in programming and exploring slowly)
While running step 5, I am still getting below error message as
sh 1: ### Syntax error: "(" unexpected
"Samples' folder is still empty.

opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 -maxzangle 0.5 -maxidev 40 -w 24 -h 25 -img ./positive_images/posi (431).jpg -bg tmp -vec samples/posi (431).jpg.vec -num 2
sh: 1: Syntax error: "(" unexpected
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 -maxzangle 0.5 -maxidev 40 -w 24 -h 25 -img ./positive_images/posi (399).jpg -bg tmp -vec samples/posi (399).jpg.vec -num 2
sh: 1: Syntax error: "(" unexpected
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 -maxzangle 0.5 -maxidev 40 -w 24 -h 25 -img ./positive_images/posi (343).jpg -bg tmp -vec samples/posi (343).jpg.vec -num 2
sh: 1: Syntax error: "(" unexpected
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 -maxzangle 0.5 -maxidev 40 -w 24 -h 25 -img ./positive_images/posi (208).jpg -bg tmp -vec samples/posi (208).jpg.vec -num 2
sh: 1: Syntax error: "(" unexpected
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 -maxzangle 0.5 -maxidev 40 -w 24 -h 25 -img ./positive_images/posi (562).jpg -bg tmp -vec samples/posi (562).jpg.vec -num 2
sh: 1: Syntax error: "(" unexpected
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 -maxzangle 0.5 -maxidev 40 -w 24 -h 25 -img ./positive_images/posi (185).jpg -bg tmp -vec samples/posi (185).jpg.vec -num 2
sh: 1: Syntax error: "(" unexpected
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 -maxzangle 0.5 -maxidev 40 -w 24 -h 25 -img ./positive_images/posi (535).jpg -bg tmp -vec samples/posi (535).jpg.vec -num 2
sh: 1: Syntax error: "(" unexpected

Kindly help.
Is there any alternate command required for Ubuntu instead of brew

from opencv-haar-classifier-training.

mrnugget avatar mrnugget commented on July 3, 2024

from opencv-haar-classifier-training.

rajarao47 avatar rajarao47 commented on July 3, 2024

Hi,
I have corrected the naming of the .jpg files. It worked fine now. Thanks for your help.

from opencv-haar-classifier-training.

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.