-
Notifications
You must be signed in to change notification settings - Fork 14
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
hi project you done is perfect but some errors adressed for me #1
Comments
Hi, Thanks for your comment.
You could also remove this entire line, I was using it to create a tracking algorithm initially. |
hi the i was getting image and it is getting stuck no video feed is recieving but a new tab is opening and drone is not flying i have done upto here because of you please help me with the issues i was facing and i have to say your code was solid |
Hi, Thanks a lot for appreciating this work. I am not sure why there is a lag in your video feed. I personally almost never faced this 'getting stuck' issue. I did face certain lag, but it was not this bad. I would like to investigate more before commenting anything. To begin with, could you please share with me the specifications of your machine. I just want to confirm whether the profile matches with the requirements, because Mask RCNN is a very computationally expensive process and requires large GPU memories to run smoothly. After this we can move on to code investigation. |
hi yeah thanks for response i was using i5 9300h laptop with nvidia gtx 1650 grphics it belong to lenovo gaming series i.e legion 540 |
Hi, So seems like there might be a version mismatch of After all this try executing your code and even then if does not work, please try modifying your
|
hi
thanks for help but i got some errors i modified the code as per your
instructions but getting some 3 errors so please check the screenshot
attached below and please help me and thanks for the reply and the
instructions
[image: Screenshot from 2019-11-12 23-57-09.png]
…On Mon, Nov 11, 2019 at 11:30 PM Saumya Kumaar ***@***.***> wrote:
Hi,
So seems like there might be a version mismatch of av. Please execute sudo
pip install av --upgrade from your terminal. Also, I hope you have
compiled and installed TelloPy. If not, then please do that as well from [
https://github.com/hanyazou/TelloPy] (here).
After all this try executing your code and even then if does not work,
please try modifying your tr.py with the following.
def main():
drone = tellopy.Tello()
tellotrack = TelloCV()
try:
drone.connect()
drone.wait_for_connection(60.0)
retry = 3
container = None
while container is None and 0 < retry:
retry -= 1
try:
container = av.open(drone.get_video_stream())
except av.AVError as ave:
print(ave)
print('retry...')
# skip first 300 frames
frame_skip = 300
while True:
for frame in container.decode(video=0):
if 0 < frame_skip:
frame_skip = frame_skip - 1
continue
start_time = time.time()
image = tellotrack.process_frame(frame)
results = model.detect([image], verbose=0)
r = results[0]
image = display_instances(
image, r['rois'], r['masks'], r['class_ids'], class_names, r['scores'])
cv2.imshow('tello', image)
_ = cv2.waitKey(1) & 0xFF
cv2.waitKey(1)
if frame.time_base < 1.0/60:
time_base = 1.0/60
else:
time_base = frame.time_base
frame_skip = int((time.time() - start_time)/time_base)
except Exception as ex:
exc_type, exc_value, exc_traceback = sys.exc_info()
traceback.print_exception(exc_type, exc_value, exc_traceback)
print(ex)
finally:
drone.quit()
cv2.destroyAllWindows()
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#1?email_source=notifications&email_token=ANTU2KXFDGHEC4G2RN2M4JTQTGMVFA5CNFSM4JF22DTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDXTTOQ#issuecomment-552548794>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANTU2KSFTRZPCHBLS2ZM5ATQTGMVFANCNFSM4JF22DTA>
.
|
Hi, I am not sure why this error
|
hi i tried the latest suggestions but video feed is getting stuck and segmentation getting done for the first image or frame .modified code and regular code i have mailed please check your gmail my account will be vishnu as first name of my gmail in your inbox |
Hi, has the problem "video feed is getting stuck and segmentation getting done for the first image or frame" been solved? I met this problem,too |
I found that if I use "ctrl" I can't click into the "open" of av.open(). Does anyone know why? |
project you done is excellent can you help me with issues i was facing during execution
The text was updated successfully, but these errors were encountered: