Coder Social home page Coder Social logo

Comments (6)

johri-lab avatar johri-lab commented on May 30, 2024

This might have occurred when you selected a directory, instead of running the leafdetectionALLmix.py the code on the current directory.
Previously too, the execution of the two leaf sampler codes has shown this type of error. And has always occurred when we run as python3 leafdetectionALLmix.py -i <directory_name>, instead of running it as python3 leafdetectionALLmix.py -i . i.e. for the current directory.
In generally the error is caused when the file or directory is missing.

I am working on the solution to this too. Also, DM me on gitter for any updates over this issue.

from automatic-leaf-infection-identifier.

Kondwani23 avatar Kondwani23 commented on May 30, 2024

you mean i shud just cd to the leaf sampler folder and run LeafdetectionALLmix.py?

from automatic-leaf-infection-identifier.

Kondwani23 avatar Kondwani23 commented on May 30, 2024

Still giving me the same error

`K:\Tensor\Automatic-leaf-infection-identifier\leaf sampler>Python leafdetectionALLmix.py -i K:\Tensor\Automatic-leaf-infection-identifier\testimage


Image Directory : K:\Tensor\Automatic-leaf-infection-identifier\testimage


The code will run for complete folder. Do you really want to continue(Y/N)?y

Processing images...
'clear' is not recognized as an internal or external command,
operable program or batch file.

Progress:||--------------------------------------------------||0.0%Complete
Image: 1.png
Traceback (most recent call last):
File "leafdetectionALLmix.py", line 79, in
img = cv2.resize(img,(275,183))
cv2.error: OpenCV(3.4.4) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:3784: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'`

from automatic-leaf-infection-identifier.

johri-lab avatar johri-lab commented on May 30, 2024

No run command python3 leafdetectionALLmix.py -i .
Note after -i there is a dot(.) that refers to run the code on the image files in the leaf sampler directory itself.
It won't check for files in sub-directories.
Also, 'clear' is not recognized in windows cmd. You can replace it with 'CLS'

from automatic-leaf-infection-identifier.

DWendou avatar DWendou commented on May 30, 2024

I use Windows OS, in main.py,NameError: name 'ImageFile' is not defined in main.py?

from automatic-leaf-infection-identifier.

johri-lab avatar johri-lab commented on May 30, 2024

I use Windows OS, in main.py,NameError: name 'ImageFile' is not defined in main.py?

The code is designed to fetch the ImageFile variable directly from the GUI.py module. You can either run it by using the GUI interface, (by running GUI.py) or specify the 'ImageFile' explicitly in the code (refer to other branches in the repo without GUI file).

from automatic-leaf-infection-identifier.

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.