conn = sqlite3.connect('tiles_index.db') cur = conn.cursor() cur.execute('SELECT file_path FROM tiles') missing = [p for (p,) in cur.fetchall() if not os.path.isfile(p)] print(f'Missing files: len(missing)') /project_root │ ├─ /source_images # original PPPE153 files (max) ├─ /tiles_min # down‑scaled "min" tiles (800x800) ├─ /tiles_max # full‑resolution tiles (optional) ├─ /index │ └─ tiles_index.db ├─ /scripts │ └─ mosaic_builder.py ├─ /output │ ├─ /drafts │ └─ /final └─ /assets └─ target.jpg # your master image Having distinct folders prevents accidental overwriting and speeds up batch operations. 5. Pre‑Processing Tiles for Optimal Quality 5.1 Resizing & Normalising If you plan to use the min set (800 × 800 px) but need a different tile size (e.g., 250 × 250 px), batch‑resize:
import cv2 def to_linear_srgb(bgr): srgb = bgr[..., ::-1] / 255.0 # BGR→RGB & normalise linear = np.where(srgb <= 0.04045, srgb / 12.92, ((srgb + 0.055) / 1.055) ** 2.4) return linear Many JPEG tiles contain compression noise. Apply a light non‑local means filter: pppe153 mosaic015838 min high quality
Use conda to manage the Python environment: conn = sqlite3
denoised = cv2.fastNlMeansDenoisingColored(img, None, 10, 10, 7, 21) Apply a light non‑local means filter: Use conda
magick mogrify -path clean_tiles -filter Gaussian -define convolve:scale='2,2' -quality 95 *.jpg Or in Python (OpenCV):
conn = sqlite3.connect('tiles_index.db') cur = conn.cursor() cur.execute('SELECT file_path FROM tiles') missing = [p for (p,) in cur.fetchall() if not os.path.isfile(p)] print(f'Missing files: len(missing)') /project_root │ ├─ /source_images # original PPPE153 files (max) ├─ /tiles_min # down‑scaled "min" tiles (800x800) ├─ /tiles_max # full‑resolution tiles (optional) ├─ /index │ └─ tiles_index.db ├─ /scripts │ └─ mosaic_builder.py ├─ /output │ ├─ /drafts │ └─ /final └─ /assets └─ target.jpg # your master image Having distinct folders prevents accidental overwriting and speeds up batch operations. 5. Pre‑Processing Tiles for Optimal Quality 5.1 Resizing & Normalising If you plan to use the min set (800 × 800 px) but need a different tile size (e.g., 250 × 250 px), batch‑resize:
import cv2 def to_linear_srgb(bgr): srgb = bgr[..., ::-1] / 255.0 # BGR→RGB & normalise linear = np.where(srgb <= 0.04045, srgb / 12.92, ((srgb + 0.055) / 1.055) ** 2.4) return linear Many JPEG tiles contain compression noise. Apply a light non‑local means filter:
Use conda to manage the Python environment:
denoised = cv2.fastNlMeansDenoisingColored(img, None, 10, 10, 7, 21)
magick mogrify -path clean_tiles -filter Gaussian -define convolve:scale='2,2' -quality 95 *.jpg Or in Python (OpenCV):
Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.
When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.
If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.
You can also use your keyboard to move the cards as follows:
If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.
When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.
To see how well you know the information, try the Quiz or Test activity.
| "Know" box contains: | |
| Time elapsed: | |
| Retries: |