journal
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| journal [2022/09/23 02:25] – [Journal] jhagstrand | journal [2023/01/12 11:51] (current) – removed jhagstrand | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | |||
| - | >====== Journal ====== | ||
| - | |||
| - | 13 Jun \\ | ||
| - | Purchase mini traffic cones from lazada. | ||
| - | |||
| - | 29 Jun \\ | ||
| - | Take photos of a red traffic cones from different angles. Using Android phone. | ||
| - | |||
| - | 30 Jun \\ | ||
| - | Upload photos to Google Drive folder \\ | ||
| - | /My\ Drive/ | ||
| - | |||
| - | 1 Jul \\ | ||
| - | create skateboard.ipynb for use with Google Colab \\ | ||
| - | example https:// | ||
| - | |||
| - | 2 Jul \\ | ||
| - | Image processing. | ||
| - | $ python3 prepimage.py \\ | ||
| - | output into folder: \\ | ||
| - | /My\ Drive/ | ||
| - | |||
| - | Image labeling. | ||
| - | https:// | ||
| - | one file named classes.name \\ | ||
| - | one .txt file for each .jpg file \\ | ||
| - | output into same folder with the images: \\ | ||
| - | /My\ Drive/ | ||
| - | one row for each detected object \\ | ||
| - | 5 fields per row: | ||
| - | * index into label list in file classes.name, | ||
| - | * x normalized as percentage of width | ||
| - | * y (top to bottom) normalized as percentage of height | ||
| - | * w normalized as percentage of width | ||
| - | * h normalized as percentage of height | ||
| - | |||
| - | 13 Jul \\ | ||
| - | Received Tello drone. \\ | ||
| - | Had to do three things to get it to hover. | ||
| - | - Calibrate. | ||
| - | - Turn off the AC. | ||
| - | - Lay a patterned sheet down on the floor. | ||
| - | |||
| - | Tried two apps. | ||
| - | - Tello. | ||
| - | - TelloMe. | ||
| - | |||
| - | 16 jul \\ | ||
| - | Flew Tello outside \\ | ||
| - | TelloMe does not do orbit and follow at the same time. \\ | ||
| - | Video drops frames with increased distanced. \\ | ||
| - | |||
| - | 31 Jul \\ | ||
| - | I've been running programs driving the Tello, testing sockets, and using OpenCV. \\ | ||
| - | Today, I got an error Failed to load module " | ||
| - | Traceback (most recent call last): | ||
| - | File " | ||
| - | img = cv2.imread(coneimg, | ||
| - | NameError: name ' | ||
| - | |||
| - | I ran \\ | ||
| - | `sudo apt-get install python-opencv` \\ | ||
| - | and now `import cv2` says \\ | ||
| - | ModuleNotFoundError: | ||
| - | |||
| - | `pip install opencv-python` says \\ | ||
| - | ERROR: Could not find a version that satisfies the requirement opencv-python (from versions: none) \\ | ||
| - | ERROR: No matching distribution found for opencv-python \\ | ||
| - | |||
| - | Why would I use pip vs apt-get? \\ | ||
| - | |||
| - | I ran \\ | ||
| - | `sudo apt-get remove python-opencv` \\ | ||
| - | `sudo apt-get purge python-opencv` \\ | ||
| - | still no module named ' | ||
| - | |||
| - | Corrected using `sudo apt-get install python3-opencv` \\ | ||
| - | It installed version 3.2. Don't know how to get 3.3.1. \\ | ||
| - | |||
| - | /My\ Drive/ | ||
| - | |||
| - | 1 Jul< | ||
| - | create skateboard.ipynb for use with Google Colab< | ||
| - | example https:// | ||
| - | |||
| - | 2 Jul< | ||
| - | Image processing. | ||
| - | $ python3 prepimage.py< | ||
| - | output into folder:< | ||
| - | /My\ Drive/ | ||
| - | |||
| - | Image labeling. | ||
| - | https:// | ||
| - | one file named classes.name< | ||
| - | one .txt file for each .jpg file< | ||
| - | output into same folder with the images:< | ||
| - | /My\ Drive/ | ||
| - | one row for each detected object< | ||
| - | 5 fields per row: | ||
| - | * index into label list in file classes.name, | ||
| - | * x normalized as percentage of width | ||
| - | * y (top to bottom) normalized as percentage of height | ||
| - | * w normalized as percentage of width | ||
| - | * h normalized as percentage of height | ||
| - | |||
| - | 13 Jul | ||
| - | Received Tello drone. | ||
| - | Had to do three things to get it to hover. | ||
| - | 1. Calibrate. | ||
| - | 1. Turn off the AC. | ||
| - | 1. Lay a patterned sheet down on the floor. | ||
| - | |||
| - | Tried two apps. | ||
| - | 1. Tello. | ||
| - | 1. TelloMe. | ||
| - | |||
| - | 16 jul | ||
| - | Flew Tello outside | ||
| - | TelloMe does not do orbit and follow at the same time. | ||
| - | Video drops frames with increased distanced. | ||
| - | |||
| - | 31 Jul | ||
| - | I've been running programs driving the Tello, testing sockets, and using OpenCV. | ||
| - | Today, I got an error Failed to load module " | ||
| - | Traceback (most recent call last): | ||
| - | File " | ||
| - | img = cv2.imread(coneimg, | ||
| - | NameError: name ' | ||
| - | I ran | ||
| - | `sudo apt-get install python-opencv` | ||
| - | and now `import cv2` says | ||
| - | ModuleNotFoundError: | ||
| - | |||
| - | `pip install opencv-python` says | ||
| - | ERROR: Could not find a version that satisfies the requirement opencv-python (from versions: none) | ||
| - | ERROR: No matching distribution found for opencv-python | ||
| - | |||
| - | Why would I use pip vs apt-get? | ||
| - | |||
| - | I ran | ||
| - | `sudo apt-get remove python-opencv` | ||
| - | `sudo apt-get purge python-opencv` | ||
| - | still no module named ' | ||
| - | |||
| - | Corrected using `sudo apt-get install python3-opencv` | ||
| - | It installed version 3.2. Don't know how to get 3.3.1. | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
journal.1663914359.txt.gz · Last modified: 2022/09/23 02:25 by jhagstrand