Skip to content

Fish Scanner AI

Bosaj edited this page Oct 18, 2026 · 1 revision

📱 AI Camera Fish Scanner Architecture

The AI Camera Fish Scanner (Tab 02 in L7OT) transforms any smartphone camera or desktop browser into an intelligent seafood companion at the fish auction or market counter.


🎯 Architecture & Visual Pipeline

+---------------------------------------------------------------------------------+
|  1. Image Capture / Upload                                                      |
|     • HTML5 MediaDevices / getUserMedia video stream                            |
|     • High-resolution file upload fallback for mobile photo galleries           |
|---------------------------------------------------------------------------------|
|  2. Client-Side Preprocessing                                                   |
|     • Aspect ratio normalization and canvas frame snapshot                      |
|     • Contrast enhancement to reveal fin rays, lateral lines, and gill texture  |
|---------------------------------------------------------------------------------|
|  3. Morphological & Taxonomic Classification                                    |
|     • Body Silhouette: Fusiform (Pelagic), Depressed (Flatfish), Anguilliform   |
|     • Coloration Cues: Silver-blue (Sardine), Pink (Pageot), Golden (Dorade)   |
|     • Tail / Fin Markers: Forked caudal fin, dorsal spines, tentacle count     |
|---------------------------------------------------------------------------------|
|  4. Instant Intelligence Return                                                 |
|     • Identified species (Arabic, Darija, French, English, Latin)              |
|     • Current ONP port spot price & regional auction benchmark                 |
|     • Freshness checklist & ideal Moroccan culinary preparation                 |
+---------------------------------------------------------------------------------+

🔬 Visual Classification Key for Major Moroccan Families

  1. Sardines & Clupeidae (Sardina pilchardus):
    • Long cylindrical fusiform body, dark blue-green dorsal surface, silver flank with a row of dark lateral spots. Short dorsal fin.
  2. Sparidae (Sparus aurata / Pagellus bogaraveo):
    • Deep oval compressed body, continuous dorsal fin with sharp anterior spines. Dorade is distinguished by the gold bar between the eyes; Pageot by intense pink-red pigmentation and a dark blotch at the origin of the lateral line.
  3. Pleuronectiformes / Flatfish (Solea solea / Scophthalmus maximus):
    • Asymmetric body lying on one side with both eyes on the upper right side. Brownish-grey cryptically mottled skin.
  4. Octopodidae (Octopus vulgaris):
    • Sac-like bulbous mantle (calotte) with 8 muscular arms bearing two rows of suckers each.
  5. Caridea / Penaeidae (Parapenaeus longirostris):
    • Translucent pale-pink carapace with a long serrated rostrum and long white antennae.

⚡ Privacy & Offline Edge Execution

  • The camera scanner operates entirely inside client memory.
  • Video frames captured via <video> or <input type="file"> are rendered onto in-memory HTML5 <canvas> elements without external telemetry leaks or remote cloud photo storage.

Clone this wiki locally