Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
subtitle:
|
| 4 |
-
author:
|
| 5 |
-
date:
|
| 6 |
format:
|
| 7 |
html:
|
| 8 |
toc: true
|
|
@@ -18,170 +18,161 @@ format:
|
|
| 18 |
toc: true
|
| 19 |
keep-tex: true
|
| 20 |
documentclass: scrreprt
|
| 21 |
-
classoption:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
---
|
| 23 |
|
| 24 |
-
|
| 25 |
-
**
|
| 26 |
-
**
|
| 27 |
-
:
|
| 28 |
|
| 29 |
-
|
|
|
|
|
|
|
| 30 |
|
| 31 |
-
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
-
|
| 34 |
|
| 35 |
-
-
|
| 36 |
-
- External machine signal
|
| 37 |
-
- Push button
|
| 38 |
-
- Obstacle sensor
|
| 39 |
-
- Encoder
|
| 40 |
-
- RS485 protocol
|
| 41 |
-
- Step 2: Connect the power supply
|
| 42 |
-
- Step 3: Provide an access point
|
| 43 |
-
- Step 4: Register at console.monitait.com
|
| 44 |
|
| 45 |
-
#
|
| 46 |
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
|
| 53 |
### Step 1: Connect the Sensors
|
| 54 |
|
| 55 |
#### External Machine Signal
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
- **Counting Defects**: Connect ejector/machine NG signal to NG inputs (5 & 6)
|
| 60 |
-
โ Bidirectional & opto-isolated
|
| 61 |
|
| 62 |
#### Push Button
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
**Production Count** โ OK (4) + GND (1), bridge OK (3) โ +V (2)
|
| 66 |
-
**Defect Count** โ same logic using NG (6 & 5)
|
| 67 |
|
| 68 |
#### Obstacle Sensor
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
**
|
| 88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
|
| 90 |
-
|
| 91 |
-
Add Watcher โ Enter Registration ID โ Set station & advanced options (multiplication factor, timeout, etc.)
|
| 92 |
|
| 93 |
# Chapter 2 โ AI Training
|
| 94 |
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
- Step
|
| 100 |
-
- Step 2: Administration (Create tasks & upload images)
|
| 101 |
-
- Step 3: Evaluation
|
| 102 |
-
- Step 4: Deploy trained weights
|
| 103 |
|
| 104 |
-
### Step 1: AI Training Platform
|
| 105 |
-
|
| 106 |
-
{width=95%}
|
| 107 |
-
|
| 108 |
-
#### Basic Tools โ How to Annotate
|
| 109 |
-
{width=95%}
|
| 110 |
|
|
|
|
| 111 |
1. Confirm correct task
|
| 112 |
2. Choose category
|
| 113 |
-
3. Draw bounding box
|
| 114 |
4. Save โ next image
|
| 115 |
|
| 116 |
-
####
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
- Image ID display
|
| 120 |
-
- Show/Hide panels
|
| 121 |
-
- Pan & zoom (Ctrl + scroll)
|
| 122 |
-
- Edit / delete boxes
|
| 123 |
|
| 124 |
-
#### Tips
|
| 125 |
-
|
|
|
|
|
|
|
| 126 |
|
| 127 |
-
|
| 128 |
-
- Overlapping objects โ draw elsewhere โ drag, or hide with eye icon
|
| 129 |
-
- Add metadata via โ+โ in right panel
|
| 130 |
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
-
|
| 135 |
-
- Labels โ define categories & colors
|
| 136 |
2. After creation โ โฎ โ **Upload Images** (.jpg, .png, .jpeg)
|
| 137 |
|
| 138 |
**Best Practices**
|
| 139 |
-
- Use visually distinct categories
|
| 140 |
-
- Always label main object (e.g., โbottleโ)
|
| 141 |
-
- Use descriptive IDs (bottle-pk-100)
|
| 142 |
-
- Monitait team
|
| 143 |
|
| 144 |
### Step 3: Evaluation
|
| 145 |
|
| 146 |
-
####
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
- **
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
-
|
| 154 |
-
|
| 155 |
-
|
|
| 156 |
-
|-
|
| 157 |
-
|
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
-
|
| 164 |
-
-
|
| 165 |
-
- Multiple reviewers
|
| 166 |
-
- Avoid similar/confusing categories
|
| 167 |
-
- Consult Monitait team for optimal augmentations
|
| 168 |
|
| 169 |
### Step 4: Deploy Trained Model
|
| 170 |
|
| 171 |
-
|
| 172 |
-
- `best.pt` (final weights)
|
| 173 |
-
- Unique **Training ID**
|
| 174 |
-
|
| 175 |
-
**Deployment Steps**
|
| 176 |
-
1. Verify new `best.pt` performs better on sample images
|
| 177 |
-
2. Copy to machine:
|
| 178 |
-
`/home/projects/inference/best.pt`
|
| 179 |
-
3. Restart the inference system
|
| 180 |
-
|
| 181 |
-
The new model is now live.
|
| 182 |
-
|
| 183 |
-
---
|
| 184 |
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Monitait Step-by-Step User Guide
|
| 3 |
+
subtitle: Hardware (WatcherJET 3.0) & AI Training Platform
|
| 4 |
+
author: Monitait.com
|
| 5 |
+
date: '2025-10-13'
|
| 6 |
format:
|
| 7 |
html:
|
| 8 |
toc: true
|
|
|
|
| 18 |
toc: true
|
| 19 |
keep-tex: true
|
| 20 |
documentclass: scrreprt
|
| 21 |
+
classoption:
|
| 22 |
+
- paper=a4
|
| 23 |
+
- twoside=false
|
| 24 |
+
sdk: docker
|
| 25 |
+
emoji: ๐
|
| 26 |
+
colorFrom: purple
|
| 27 |
+
colorTo: indigo
|
| 28 |
+
pinned: true
|
| 29 |
+
short_description: Docs
|
| 30 |
---
|
| 31 |
|
| 32 |
+
# Monitait Step-by-Step User Guide
|
| 33 |
+
**WatcherJET 3.0 Hardware + AI Training Platform**
|
| 34 |
+
**Version:** 1.0 โ **Date:** October 13, 2025
|
| 35 |
+
**Powered by Monitait** โ [monitait.com](https://monitait.com)
|
| 36 |
|
| 37 |
+
---
|
| 38 |
+
|
| 39 |
+
## Download Full Illustrated Manuals (PDF)
|
| 40 |
|
| 41 |
+
| Document | Pages | Link |
|
| 42 |
+
|---------------------------------------------|-------|---------------------------------------------------------------------------------------|
|
| 43 |
+
| Chapter 1 โ Hardware & WatcherJET 3.0 | 27 | [CHAP-1-AI-HARDWARE.pdf](CHAP-1-AI-HARDWARE.pdf) |
|
| 44 |
+
| Chapter 2 โ AI Training | 15 | [CHAP-2-AI-TRAINING.pdf](CHAP-2-AI-TRAINING.pdf) |
|
| 45 |
|
| 46 |
+
All wiring diagrams, screenshots, and detailed illustrations are in these PDFs.
|
| 47 |
|
| 48 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
+
# Chapter 1 โ Hardware & WatcherJET 3.0
|
| 51 |
|
| 52 |
+
### Quick Setup (4 Steps)
|
| 53 |
+
1. **Connect the sensors**
|
| 54 |
+
2. **Connect the power supply** (12โ24 V DC)
|
| 55 |
+
3. **Provide an access point (AP)**
|
| 56 |
+
4. **Register at** [console.monitait.com/factory/watchers](https://console.monitait.com/factory/watchers)
|
| 57 |
|
| 58 |
### Step 1: Connect the Sensors
|
| 59 |
|
| 60 |
#### External Machine Signal
|
| 61 |
+
- Production Count โ Connect any 12โ24 V signal to **OK inputs (3 & 4)**
|
| 62 |
+
- Defect Count โ Connect ejector/NG signal to **NG inputs (5 & 6)**
|
| 63 |
+
โ Bidirectional, opto-isolated
|
|
|
|
|
|
|
| 64 |
|
| 65 |
#### Push Button
|
| 66 |
+
- Production: Button โ OK (4) + GND (1); bridge OK (3) โ +V (2)
|
| 67 |
+
- Defects: Same wiring using NG (5 & 6)
|
|
|
|
|
|
|
| 68 |
|
| 69 |
#### Obstacle Sensor
|
| 70 |
+
- Black wire โ OK or NG input
|
| 71 |
+
- Brown โ +V (2)
|
| 72 |
+
- Blue โ GND (1)
|
| 73 |
+
- Bridge remaining OK/NG โ +V (2)
|
| 74 |
+
|
| 75 |
+
#### Encoder
|
| 76 |
+
White โ NG (6) | Black โ OK (4) | Brown โ +V | Blue โ GND
|
| 77 |
+
Bridge (3) & (5) โ +V (2)
|
| 78 |
+
|
| 79 |
+
#### RS485 Protocol
|
| 80 |
+
A โ terminal 8 | B โ terminal 7
|
| 81 |
+
|
| 82 |
+
### Step 2: Power Supply
|
| 83 |
+
- 12โ24 V DC, max 2 A
|
| 84 |
+
- Connect to terminals (1) & (2) โ green power LED turns on
|
| 85 |
+
|
| 86 |
+
### Step 3: Network Connection
|
| 87 |
+
- **Best:** Wired LAN (add firewall rule `*.monitait.com`)
|
| 88 |
+
- **Temporary:** Mobile hotspot โ SSID: `Monitait`, Password: `p@ssword`
|
| 89 |
+
|
| 90 |
+
### Step 4: Register the Watcher
|
| 91 |
+
1. Go to console.monitait.com โ Watchers โ Add Watcher
|
| 92 |
+
2. Enter Registration ID (shown on phone when connected to hotspot)
|
| 93 |
+
3. Set station, multiplication factor, timeout, etc.
|
| 94 |
+
4. Test: Trigger sensor โ red heart LED must blink
|
| 95 |
+
|
| 96 |
+
### High-Current Power, Emitters & Actuators
|
| 97 |
+
- High-current PSU โค 48 V โ terminals (9 & 10)
|
| 98 |
+
- Emitters: Positive โ PSU, Negative โ U (12) or B (11) depending on alignment
|
| 99 |
+
- Ejector output (15), Warning output (16) โ connect to PLC (opto-isolated NPN)
|
| 100 |
+
|
| 101 |
+
### Keys & Indicators
|
| 102 |
+
- Key-1: Buzzer on/off
|
| 103 |
+
- Key-3: Enable camera
|
| 104 |
+
- Key-4: Enable scanner
|
| 105 |
+
- Green power, red heart (data), checkmark (OK), rejection (NG), thunder (PPS)
|
| 106 |
|
| 107 |
+
---
|
|
|
|
| 108 |
|
| 109 |
# Chapter 2 โ AI Training
|
| 110 |
|
| 111 |
+
### Table of Contents
|
| 112 |
+
- Step 1: AI Training Platform
|
| 113 |
+
- Step 2: Administration (Tasks & Images)
|
| 114 |
+
- Step 3: Evaluation
|
| 115 |
+
- Step 4: Deploy Weights
|
|
|
|
|
|
|
|
|
|
| 116 |
|
| 117 |
+
### Step 1: AI Training Platform โ Annotation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
|
| 119 |
+
#### Basic Workflow
|
| 120 |
1. Confirm correct task
|
| 121 |
2. Choose category
|
| 122 |
+
3. Draw bounding box (click โ drag โ click)
|
| 123 |
4. Save โ next image
|
| 124 |
|
| 125 |
+
#### Keyboard Shortcuts (fast annotation)
|
| 126 |
+
`1 2 3 4 Q W E R T Y U I` โ select categories instantly
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
|
| 128 |
+
#### Tips
|
| 129 |
+
- Overlapping objects โ draw elsewhere then drag, or hide with eye icon
|
| 130 |
+
- No images visible โ all annotated; use < > buttons
|
| 131 |
+
- Add metadata (optional) via โ+โ in right panel
|
| 132 |
|
| 133 |
+
### Step 2: Administration โ Create Task
|
|
|
|
|
|
|
| 134 |
|
| 135 |
+
1. Tasks โ **+ NEW TASK**
|
| 136 |
+
- Enter name (e.g., โBottle Defect Detectionโ)
|
| 137 |
+
- Set quantity, type (object detection, classification, etc.)
|
| 138 |
+
- Add labels/categories with colors
|
|
|
|
| 139 |
2. After creation โ โฎ โ **Upload Images** (.jpg, .png, .jpeg)
|
| 140 |
|
| 141 |
**Best Practices**
|
| 142 |
+
- Use visually distinct categories
|
| 143 |
+
- Always label the main object (e.g., โbottleโ)
|
| 144 |
+
- Use descriptive IDs (bottle-pk-100, pen-dp-105)
|
| 145 |
+
- Monitait team performs training and selects best augmentations
|
| 146 |
|
| 147 |
### Step 3: Evaluation
|
| 148 |
|
| 149 |
+
#### Key Concepts
|
| 150 |
+
- **TP** = correct detection
|
| 151 |
+
- **FP** = false alarm
|
| 152 |
+
- **FN** = missed defect
|
| 153 |
+
- **TN** = correctly identified good item
|
| 154 |
+
|
| 155 |
+
| Metric | Formula | Meaning |
|
| 156 |
+
|-----------|-----------------------------|--------------------------------------|
|
| 157 |
+
| Precision | TP / (TP + FP) | Accuracy of positive predictions |
|
| 158 |
+
| Recall | TP / (TP + FN) | How many real defects were found |
|
| 159 |
+
| F1-Score | 2 ร (P ร R) / (P + R) | Balance between precision & recall |
|
| 160 |
+
| mAP | Mean Average Precision | Overall model quality (higher = better) |
|
| 161 |
+
|
| 162 |
+
#### How to Improve Accuracy & Recall
|
| 163 |
+
- Diverse dataset (lighting, angles, backgrounds)
|
| 164 |
+
- Tight, consistent bounding boxes
|
| 165 |
+
- Multiple reviewers
|
| 166 |
+
- Avoid similar/confusing categories
|
| 167 |
+
- Consult Monitait team for optimal augmentation and training settings
|
|
|
|
|
|
|
|
|
|
| 168 |
|
| 169 |
### Step 4: Deploy Trained Model
|
| 170 |
|
| 171 |
+
Every successful training produces:
|
| 172 |
+
- `best.pt` (final weights)
|
| 173 |
+
- Unique **Training ID** โ record it!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
|
| 175 |
+
**Deployment on production machine:**
|
| 176 |
+
```bash
|
| 177 |
+
cp best.pt /home/projects/inference/best.pt
|
| 178 |
+
# Restart inference service โ new model is live
|