Open jiankang1991 opened 8 years ago
I have the same issue. Anyone can help ?
Okay so first I made sure the file I wanted to open existed and everything was okay but it still didn't work. What I ended up doing out of desperation is switching the import statements, ie. putting import cv2 at the beginning of the file and that is what worked. Don't know if it helps you.
Cheers
@natanielruiz Thank you very much, it helps me. But still wondering why it helps
Check out if the value "img" is empty, I once passed a wrong image path, so I also met the error you proposed!
@lielizabeth Yes I have no idea why it works, if anyone figures it out please post here. It's puzzling.
Check out if the image path legal, for example, I put my image xxx.jpg on the same folder of YOLO_xxx_tf.py. Then use python YOLO_xxx_tf.py -fromfile xxx.jpg It worked
Update: If you want to use the person.jpg in "test" folder, use -fromfile test//person.jpg ↑windows platform
hope this helps you ! https://github.com/YunYang1994/tensorflow-yolov3
sudo modprobe bcm2835-v4l2
use this code inside opencv environment, it may be useful
I think you should put your floder path to your PC path....
May it be useful~
@natanielruiz which file are you talking about that should be kept after import cv2
hey guys well am working with LSB-stegnography, i am hiding a text inside an image so this is what i typed:
python LSBSteg.py encode -i /root/deskt op/splashz.bmp -o scrt.bmp -f /root/desktop/secretive.txt.gpg && ls
and this is what it responded to me:
Traceback (most recent call last):
File "LSBSteg.py", line 189, in
is there anything i need to change in the LSBSteg.py ??? currently i am new to python programming please i need help
Reasons for error maybe :
It may mean that the image youre trying to load is currently being used.
make the full path of the image, it works for me
Hi, I come across an error when I run the demo. Here is what I type:
python YOLO_tiny_tf.py -fromfile /home/kang/Documents/work_code_PC1/online_code/YOLO_tensorflow/test/person.jpg
And It shows:I do not know where the error comes out. Because I have already input the image with
-fromfile /home/kang/Documents/work_code_PC1/online_code/YOLO_tensorflow/test/person.jpg
Can anyone help? Thank you.