Comments (6)
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.
you mean i shud just cd to the leaf sampler folder and run LeafdetectionALLmix.py?
from automatic-leaf-infection-identifier.
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.
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.
I use Windows OS, in main.py,NameError: name 'ImageFile' is not defined in main.py?
from automatic-leaf-infection-identifier.
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)
- README or enhance me HOT 1
- Couple of syntax error in code
- User guidance HOT 1
- main HOT 1
- which python3 version should i install? HOT 1
- No module named 'PyQt4' HOT 3
- exec(open('main.py').read()) File "<string>", line 74, in <module> ValueError: not enough values to unpack (expected 3, got 2) HOT 2
- error:no module name cv2 when i try to run the leafdetectionALLsametype.py can yu reply fast..ot can ou tell me how to run o jupyer notebook HOT 1
- Traceback (most recent call last): File "leafdetectionALLmix.py", line 134, in <module> _, contours,hierarchy = cv2.findContours(bordered, cv2.RETR_TREE, cv2.CHAIN_APPROX_NONE) ValueError: not enough values to unpack (expected 3, got 2)
- exec(open('main.py').read()) File "<string>", line 16, in <module> AttributeError: 'NoneType' object has no attribute 'shape' HOT 1
- Issue while Installation
- Apply feature extractor
- View
- error for cv2.findContours() HOT 2
- pyQt4 is no found .how to use pyQt5 ? HOT 1
- FileNotFoundError: [Errno 2] No such file or directory: 'datasetlog/Datasetunlabelledlog.csv'
- QWidget: Must construct a QApplication before a QWidget HOT 1
- https://stackoverflow.com/questions/20749819/pyqt5-failing-import-of-qtgui
- program crashes when trying to run python3 leafdetectionALLsametype.py
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from automatic-leaf-infection-identifier.