question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problems in getting pictures

See original GitHub issue

I have found there are two problems when I get photos from the drone. The two function get_latest_valid_picture in DroneVision.py and get_groundcam_picture in Minidrone.py.

When I run the example program many times, they show or give me the picture the drone took in the last execution. The main reason is the way that the source program brings photos to the programmer. The source program a picture from the drone the source program downloads the images into files from the drone and read them from the file. This is because of higher latency between the drone and computer than the source program executes, The program commands the drone to send what it is taking, and the program immediately try to read data, but it takes a little time to receive the image. So, the program reads an old file and shows me those old pictures that the drone took in the last execution.

In order to solve this problem, I have modified the two source codes Minidrone.py and DroneVision.py to delete all the images the drone took and saved in their constructors.

I had a hard time finding the reason and solution of this problem. Have you had the same problem with me ? or, is this a problem only happens to me? If this happens to everyone, I hope you will fix this problem or allow and help me to fix this.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
amymcgoverncommented, Oct 4, 2018

ok, I’ll check it out on linux tonight.

1reaction
amymcgoverncommented, Oct 4, 2018

Out of curiosity, are you running windows? It has not been an issue on Mac or linux but I don’t have a windows machine to test on.

Read more comments on GitHub >

github_iconTop Results From Across the Web

25 common Photography problems and how to fix them
1. My photos are all blurred · 2. The colors in my photos look wrong · 3. Everyone in my photos has red...
Read more >
22 Common photography problems (and how to fix them)
We've put together some of the most common photography problems you encounter and offered solutions to get round them.
Read more >
Common photography problems and how to fix them
1. Blurry photos · Improper focus · Slow shutter speed + natural shaking of one's hands · Motion blur · Shallow depth of...
Read more >
Facing Photography Problems? Get Fixes Here!
Getting blurry photos or objects is one of the most commonly encountered issues in photography. In some cases, the entire photo is blurred...
Read more >
30 common photography problems solved
Exposure · 1. How to spot and avoid blown-out highlights · 2. Expose for highlight detail · 3. Getting the right exposure for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found