feat: Conducted full project readiness and foil detection audit.
- Created claude_review_summary.md with findings across all 4 phases - Fixed README workspace setup (removed Desktop/Google Drive specifics) - Fixed duplicate Step 4 numbering in Section 3 (now Step 6: Create ML) - Updated Foil Shopping List: added StepAndCompleat, flagged Gilded/Silver Screen as low priority - Added Stamp Classifier to the Create ML step - Incremented AppConfig buildNumber to 2 - Stamp_Data/Stamped and Stamp_Data/Clean directories created locally (gitignored) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
44
README.md
44
README.md
@@ -47,8 +47,8 @@ Help us make IYmtg smarter! If you find a card that scans incorrectly, you can c
|
||||
## Part 2: Workspace & Assets
|
||||
|
||||
### Step 1: Workspace Setup
|
||||
1. Create the master folder on your Desktop.
|
||||
2. Right-click -> Sync with Google Drive (Critical for backups).
|
||||
1. Create the master folder in your preferred location (Desktop, OneDrive, or any synced drive).
|
||||
2. Ensure the folder is synced with a cloud backup service (OneDrive, Google Drive, iCloud Drive, etc.).
|
||||
3. Organize your sub-folders exactly as shown below:
|
||||
|
||||
```text
|
||||
@@ -74,8 +74,32 @@ Place the following assets in `Assets.xcassets` in the Xcode project.
|
||||
| **share_watermark** | 400x100 | Watermark. | "A watermark logo text 'Verified by IYmtg'. White text with a checkmark icon. Clean, bold font. Solid black background. Professional verification seal style. Aspect ratio 4:1." |
|
||||
| **card_placeholder**| 600x840 | Loading State. | "A generic trading card back design. Grey and silver swirl pattern. Mystical and abstract. No text. Aspect ratio 2.5:3.5." |
|
||||
|
||||
### Automated Resizing
|
||||
We have provided a Python script to automatically crop and resize your AI-generated images to the exact dimensions required above.
|
||||
### Image Generation and Resizing
|
||||
|
||||
To generate and resize the visual assets for the app, you can use the provided script. This script uses the Gemini Image API to generate images based on the prompts defined in `IYmtg_Automation/image_generation_prompts.json`, and then automatically resizes them.
|
||||
|
||||
#### Automated Generation (Recommended)
|
||||
|
||||
**Setup:**
|
||||
|
||||
1. **Get a Gemini API Key:** You will need an API key from Google AI Studio.
|
||||
2. **Set the API Key:** Open the `IYmtg_Automation/generate_images.py` file and set your API key in the configuration section.
|
||||
3. **Install dependencies:**
|
||||
```bash
|
||||
pip install requests pillow
|
||||
```
|
||||
|
||||
**Usage:**
|
||||
|
||||
```bash
|
||||
python3 IYmtg_Automation/generate_images.py
|
||||
```
|
||||
|
||||
The generated images will be saved in the `Raw_Assets` directory, and the resized images will be saved in the `Ready_Assets` directory.
|
||||
|
||||
#### Manual Resizing (If You Already Have Images)
|
||||
|
||||
If you have your own AI-generated images and only need to resize them:
|
||||
|
||||
1. **Setup:** Ensure you have Python installed and run `pip install Pillow`.
|
||||
2. **Folders:** Run the script once to generate the `Raw_Assets` and `Ready_Assets` folders in `IYmtg_Master`.
|
||||
@@ -111,15 +135,16 @@ Acquire one of each (~$50 total) to train the Foil Classifier. This ensures the
|
||||
| **Etched** | Harmonize (Strixhaven Archive) | Metallic, grainy texture, matte finish, no rainbow. |
|
||||
| **Pre-Modern** | Opt (Dominaria Remastered - Retro) | Shooting star in text box, specific retro frame shine. |
|
||||
| **Textured** | Rivaz of the Claw (Dominaria United) | Raised 3D pattern on surface, fingerprint-like feel. |
|
||||
| **Gilded** | Riveteers Charm (New Capenna) | Embossed gold frame elements, glossy raised texture. |
|
||||
| **Galaxy** | Command Performance (Unfinity) | Embedded "stars" or sparkles in the foil pattern. |
|
||||
| **Surge** | Explore (Warhammer 40k) | Rippling "wave" pattern across the entire card. |
|
||||
| **Silver Screen** | Otherworldly Gaze (Double Feature) | Grayscale art with silver metallic highlights. |
|
||||
| **Oil Slick** | Basic Land (Phyrexia: ONE - Compleat) | Raised, slick black-on-black texture, high contrast. |
|
||||
| **Step and Compleat** | Elesh Norn (Phyrexia: ONE Showcase) | Phyrexian oil-slick effect on the card frame; black-silver high contrast. |
|
||||
| **Confetti** | Negate (Wilds of Eldraine - Confetti) | Glittering "confetti" sparkles scattered on art. |
|
||||
| **Halo** | Uncommon Legend (MOM: Multiverse) | Swirling circular pattern around the frame. |
|
||||
| **Neon Ink** | Hidetsugu (Neon Yellow) | Bright, fluorescent ink layer on top of foil. |
|
||||
| **Fracture** | Enduring Vitality (Duskmourn Japan) | Shattered glass pattern, highly reflective. |
|
||||
| **Gilded** *(low priority)* | Riveteers Charm (New Capenna) | Embossed gold frame elements, glossy raised texture. Training folder not yet created. |
|
||||
| **Silver Screen** *(low priority)* | Otherworldly Gaze (Double Feature) | Grayscale art with silver metallic highlights. Single-set type — deprioritized. |
|
||||
|
||||
### Step 2: The Stamp Classifier Shopping List
|
||||
Acquire pairs of cards to train the `StampDetector` (Promo/Date Stamped vs. Regular). This is a **Binary Classifier**, meaning the AI learns by comparing "Yes" vs "No".
|
||||
@@ -201,10 +226,11 @@ IYmtg_Training/
|
||||
└── BindersDents/
|
||||
```
|
||||
|
||||
### Step 4: Create ML
|
||||
### Step 6: Create ML
|
||||
1. **Foil Classifier:** Train an Image Classification model using `Foil_Data`. Export as `IYmtgFoilClassifier.mlmodel`.
|
||||
2. **Condition Classifier:** Train an Object Detection model using `Condition_Data`. Export as `IYmtgConditionClassifier.mlmodel`.
|
||||
3. **Import:** Drag both `.mlmodel` files into the Xcode Project Navigator.
|
||||
2. **Stamp Classifier:** Train an Image Classification model using `Stamp_Data`. Export as `IYmtgStampClassifier.mlmodel`.
|
||||
3. **Condition Classifier:** Train an Object Detection model using `Condition_Data`. Export as `IYmtgConditionClassifier.mlmodel`.
|
||||
4. **Import:** Drag all `.mlmodel` files into the Xcode Project Navigator.
|
||||
|
||||
## 4. Backend & Security
|
||||
|
||||
|
||||
Reference in New Issue
Block a user