8000
Skip to content
ย 
ย 

Latest commit

ย 

History

134 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

LinQu

๐Ÿฝ๏ธ ์‹œ๋‹ˆ์–ด ๋Œ€์ƒ ์Œ์‹ ์ด๋ฏธ์ง€ ์ธ์‹ ์„œ๋น„์Šค (Link you) LinQu

๐ŸŒ Service Information

Type URL Status
Production nutricare.koreacentral.cloudapp.azure.com ๐ŸŸข Active

Note: ์„œ๋น„์Šค ๋ฌธ์ œ ๋ฐœ์ƒ ์‹œ ์ด์Šˆ๋ฅผ ์ƒ์„ฑํ•ด์ฃผ์„ธ์š”.

๐Ÿ‘ฅ Team Five Guys

๐Ÿ“ ํ”„๋กœ์ ํŠธ ๊ฐœ์š”

Azure Custom Vision๊ณผ Azure Database for MySQL Flexible Server, Gradio๋ฅผ ํ™œ์šฉํ•œ ์‹œ๋‹ˆ์–ด ๋Œ€์ƒ ์Œ์‹ ์ด๋ฏธ์ง€ ์ธ์‹ ์„œ๋น„์Šค์ž…๋‹ˆ๋‹ค.

๐ŸŽฏ ์ฃผ์š” ๊ธฐ๋Šฅ

  • ์‹ค์‹œ๊ฐ„ ์Œ์‹ ์ด๋ฏธ์ง€ ์ธ์‹ ๋ฐ ๋ถ„๋ฅ˜
  • ๊ฐœ์ธ๋ณ„ ์˜์–‘ ์„ญ์ทจ ๊ธฐ๋ก ๊ด€๋ฆฌ
  • ๋งž์ถคํ˜• ์˜์–‘ ์ •๋ณด ์ œ๊ณต
  • ์ผ์ผ/์ฃผ๊ฐ„ ์˜์–‘ ์„ญ์ทจ ๋ถ„์„

๐Ÿ› ๏ธ Tech Stack

๐ŸŽจ Interface

  • ๐Ÿ–ฅ๏ธ Gradio (Python UI Library)
  • ๐Ÿ“Š Matplotlib (Data Visualization)
  • ๐Ÿ“ธ OpenCV (Image Processing)

๐Ÿง  AI/ML

  • ๐Ÿง  Azure Custom Vision (ML Model)
  • ๐Ÿ”ฎ CNN Architecture
  • ๐ŸŽฏ ResNet50 (Deep Learning Model)
  • ๐ŸŽจ Stable-diffusion (Image Generation)

โ˜๏ธ Cloud Infrastructure

๐Ÿš€ Deployment

  • ๐Ÿ”„ GitHub Actions (Continuous Deployment)
  • ๐Ÿ” GitHub Secrets (Secret Management)

๐Ÿ”จ Development Tools

  • ๐Ÿ Python 3.9+
  • ๐Ÿ““ Jupyter Notebook
  • ๐Ÿ“ Git (Version Control)
  • ๐Ÿ˜œ Gitmoji (Commit Convention)

๐Ÿ“ ํ”„๋กœ์ ํŠธ ๊ตฌ์กฐ

food_classifier/
โ”œโ”€โ”€ custom_vision/                   # Azure Custom Vision
โ”œโ”€โ”€ docs/                            # ๋ฌธ์„œ
โ”œโ”€โ”€ experiments/                     # ์‹คํ—˜ ๊ฒฐ๊ณผ
โ”œโ”€โ”€ food_classifier/
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ service_ui/              # Gradio UI ์ปดํฌ๋„ŒํŠธ
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ clients/             # ์™ธ๋ถ€ ์„œ๋น„์Šค ํ†ต์‹ 
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ml_client.py     # Azure Custom Vision ํ†ต์‹ 
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ db_client.py     # Azure Database for MySQL DB Flexible Server ํ†ต์‹ 
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ components/          # UI ์ปดํฌ๋„ŒํŠธ
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ interfaces/      # ์ธํ„ฐํŽ˜์ด์Šค ์ •์˜
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ utils/           # UI ์œ ํ‹ธ๋ฆฌํ‹ฐ
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ app.py               # ๋ฉ”์ธ UI ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜
โ””โ”€โ”€ requirements.txt                 # ํ”„๋กœ์ ํŠธ ์˜์กด์„ฑ

๐Ÿ“Š System Interaction Flow

์ด ์„น์…˜์€ service_ui ๋ชจ๋“ˆ์„ ํ†ตํ•ด ์‚ฌ์šฉ์ž์™€ ์‹œ์Šคํ…œ ๊ฐ„์˜ ์ƒํ˜ธ์ž‘์šฉ์„ ๋‘ ๊ฐ€์ง€ ์ฃผ์š” ํ๋ฆ„์œผ๋กœ ์„ค๋ช…ํ•ฉ๋‹ˆ๋‹ค. ์ฒซ ๋ฒˆ์งธ ํ๋ฆ„์€ ๊ณ ๊ฐ ์ •๋ณด์™€ ์ตœ๊ทผ ์˜์–‘ ์„ฑ๋ถ„ ์„ญ์ทจ ์ •๋ณด๋ฅผ ์กฐํšŒํ•˜๋Š” ๊ณผ์ •์ด๋ฉฐ, ๋‘ ๋ฒˆ์งธ ํ๋ฆ„์€ ์ด๋ฏธ์ง€๋ฅผ ์ฒ˜๋ฆฌํ•˜์—ฌ ์˜์–‘ ์ •๋ณด๋ฅผ ์ œ๊ณตํ•˜๋Š” ๊ณผ์ •์ž…๋‹ˆ๋‹ค.

1. ๐Ÿ“Š ๊ณ ๊ฐ ์ •๋ณด ์กฐํšŒ (Customer Information Retrieval)

์ด ๋‹ค์ด์–ด๊ทธ๋žจ์€ ์‚ฌ์šฉ์ž๊ฐ€ Gradio UI๋ฅผ ํ†ตํ•ด ๊ณ ๊ฐ ์ฝ”๋“œ์™€ ๋ณดํ˜ธ์ž ์ฝ”๋“œ๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์—์„œ ๊ณ ๊ฐ ์ •๋ณด์™€ ์ตœ๊ทผ 5์ผ์น˜ ์˜์–‘ ์„ฑ๋ถ„ ์„ญ์ทจ ์ •๋ณด๋ฅผ ์กฐํšŒํ•˜๋Š” ๊ณผ์ •์„ ์„ค๋ช…ํ•ฉ๋‹ˆ๋‹ค. ์กฐํšŒ๋œ ์ •๋ณด๋Š” ์‚ฌ์šฉ์ž์—๊ฒŒ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.

%%{
  init: {
    'theme': 'base',
    'themeVariables': {
      'primaryColor': '#1E90FF',
      'primaryTextColor': '#FFFFFF',
      'primaryBorderColor': '#4682B4',
      'lineColor': '#32CD32',
      'secondaryColor': '#FFD700',
      'tertiaryColor': '#F0F8FF'
    }
  }
}%%

sequenceDiagram
    title Customer Information and Nutrition Retrieval
    actor User
    participant UI as ๐Ÿ“ฑ Gradio UI
    participant VM as โ˜๏ธ Azure VM
    participant DB as ๐Ÿ—ƒ๏ธ Azure MySQL
    
    User->>UI: Access Interface
    UI->>User: Request Codes
    Note over User,UI: Customer Code &<br/>Guardian Code
    User->>UI: Enter Both Codes
    UI->>VM: Send Codes
    Note over VM: Combine Codes
    VM->>DB: Query Customer Info and Recent Nutrition
    Note over DB: Flexible Server
    DB->>VM: Return Customer Info and Recent Nutrition
    
    VM->>UI: Display Customer Info and Recent Nutrition
    UI->>User: Show Customer Info and Recent Nutrition
Loading

2. ๐Ÿ“Š ์˜์–‘ ์ •๋ณด ๋ถ„์„ (Nutrition Information Analysis)

์ด ๋‹ค์ด์–ด๊ทธ๋žจ์€ ์‚ฌ์šฉ์ž๊ฐ€ ์Œ์‹ ์ด๋ฏธ์ง€๋ฅผ ์ œ์ถœํ•˜๋ฉด ์˜์–‘ ์ •๋ณด๋ฅผ ๋ถ„์„ํ•˜๊ณ  ํ‘œ์‹œํ•˜๋Š” ๊ณผ์ •์„ ์„ค๋ช…ํ•ฉ๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž๋Š” ์นด๋ฉ”๋ผ๋กœ ์ดฌ์˜ํ•˜๊ฑฐ๋‚˜ ๊ฐค๋Ÿฌ๋ฆฌ์—์„œ ์ด๋ฏธ์ง€๋ฅผ ์„ ํƒํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ, Custom Vision์ด ์Œ์‹์„ ์‹๋ณ„ํ•ฉ๋‹ˆ๋‹ค. ๋ถ„์„๋œ ๊ฒฐ๊ณผ๋Š” ์ผ์ผ ๊ถŒ์žฅ ์˜์–‘์†Œ ๋Œ€๋น„ ์„ญ์ทจ๋Ÿ‰์„ ๋ง‰๋Œ€ ๊ทธ๋ž˜ํ”„๋กœ ์‹œ๊ฐํ™”ํ•˜๊ณ , ์˜ค๋Š˜ ์„ญ์ทจํ•œ ์Œ์‹ ๊ธฐ๋ก์„ ํ•จ๊ป˜ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค.

%%{
  init: {
    'theme': 'base',
    'themeVariables': {
      'primaryColor': '#1E90FF',
      'primaryTextColor': '#FFFFFF',
      'primaryBorderColor': '#4682B4',
      'lineColor': '#32CD32',
      'secondaryColor': '#FFD700',
      'tertiaryColor': '#F0F8FF'
    }
  }
}%%

sequenceDiagram
    title Image Processing and Nutrition Information
    actor User
    participant UI as ๐Ÿ“ฑ Gradio UI
    participant VM as โ˜๏ธ Azure VM
    participant ML as ๐Ÿง  Custom Vision
    participant DB as ๐Ÿ—ƒ๏ธ Azure MySQL
    
    UI->>User: Show Image Input Options
    Note over User,UI: Camera or<br/>Gallery Upload
    
    alt Camera
        User->>UI: Capture Photo
    else Gallery
        User->>UI: Upload Image
    end
    
    UI->>VM: Send Image
    VM->>ML: Request Prediction
    Note over ML: Process image<br/>Classify food
    
    ML->>VM: Return Food Name & Confidence
    Note over ML,VM: Food classification<br/>with confidence score
    
    VM->>DB: Record Food Consumption with Timestamp
    Note over DB: Log food id and<br/>consumption time
    VM->>DB: Query Nutrition Info using Food Name
    Note over DB: Flexible Server
    
    DB->>VM: Return Nutrition Data
    
    VM->>UI: Format Result
    UI->>User: Show Nutrition Info & Confidence
Loading

๐Ÿค Contributing

ํ”„๋กœ์ ํŠธ ๊ธฐ์—ฌ ๋ฐฉ๋ฒ•์€ CONTRIBUTING.md๋ฅผ ์ฐธ๊ณ ํ•ด์ฃผ์„ธ์š”.

๐Ÿ“ž Support

๋ฌธ์ œ๊ฐ€ ์žˆ์œผ์‹œ๋‹ค๋ฉด ์ด์Šˆ๋ฅผ ์ƒ์„ฑํ•ด์ฃผ์„ธ์š”.

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0