-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pygame Crashes #4
Comments
Hi Alexsandro and Ali, I can't see 'My image window' because of the stuck in cv2.imshow('My image', frame). Monk drone and a Tello drone have same symthom. Any ideas or clues would be greatly appreciated. From Brion KIM |
Hi @aliiikz I have removed the cv2 dependency. Thx Regarding your camera problem, it seems to be something on your computer since it works fine for me(Mac). I suggest you try to create another project and play with cv2 and your camera. It should be very simple. Once you manage to run it on another project, you can bring the learning and adjust it to this project |
@JaeMyoungKIM I suggest you do the same. Make sure you can make cv2 and the camera work than try o fix it in the project |
@apssouza22 I had installed your requirements without cv2. cv2 is not a python package. Isn't cv2 interchangeable with opencv-python? I have tried to use opencv-python version 3.x and recent 4.x, but they have the same above problem. Please let me know how to make cv2. I am going to run your code on Mac. |
Yeah. It requires both. Opencv-python is just a python wrapper for opencv. Opencv is written in C and need to be installed. Please search how to install opencv/cv2 for your environment. How I said before, create another project and make sure you have opencv working on your laptop. |
Thank you very much for your kind guidelines. I couldn't run in Mac because of my old iOS version, but I succeeded in running with anaconda environment. |
Hi @JaeMyoungKIM @apssouza22 , could you please let me know how it worked for you? I am trying to run it on windows but its not getting the video feed. While if I run a simple separate code for video feed from the drone it is working. It is just not working in the project. |
As I remember, opencv installed in ubuntu did not work normally. When I
tried it in the Anaconda environment, it worked normally.
JaeMyoung KIM
2023년 6월 7일 (수) 오후 9:30, sree3333 ***@***.***>님이 작성:
… Thank you very much for your kind guidelines. I couldn't run in Mac
because of my old iOS version, but I succeeded in running with anaconda
environment.
Hi @JaeMyoungKIM <https://github.com/JaeMyoungKIM> @apssouza22
<https://github.com/apssouza22> , could you please let me know how it
worked for you? I am trying to run it on windows but its not getting the
video feed. While if I run a simple separate code for video feed from the
drone it is working. It is just not working in the project.
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABEMGL7NFIRXQYNWVU2ECVTXKBX6XANCNFSM6AAAAAAUIVRHKE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
*김재명 연구전문위원/공학박사*
*초지능창의연구소/모빌리티로봇연구본부/울산지능화융합연구실*
*ET**R**I*
*010-9413-4286 (**울산** 052-240-3021, **대전** 042-860-5042)*
***@***.*** ***@***.***> / ***@***.****
***@***.***>* / ***@***.*** ***@***.***>*
|
Hi Alexsandro,
Your project is awesome, but I have come across some problems regarding running the project
Environment:
OS: Ubuntu 20.04
Python Version: 3.8.10
Pip Version: 22.3.1
Cuda: 11.0.3
Pip list:
pip3 install -r requirements.txt
it gives me this error:Output:
Solution: When I remove
cv2
from requirements file the problem was resolved. cv2 requires opencv-python which you have included in requirements filepython3 main.py
it gives me this error:output:
My Solution:
It because there are two
VideoCapture
on the project, to resolve this issue i commentedself.cap = cv2.VideoCapture(0)
in thevideo.py
,line 8
and the problem went away. but I have no Idea if this is one of the reasons for pygame not working.the ouput:
This is the part where i got stuck. It crashes and tells me to force quit.
Also I have a Dji Tello, but I have not tested it on my drone.
The text was updated successfully, but these errors were encountered: