Skip to content

CSID-DGU/2024-02-CSC4004-2-4-Bullsazoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”Ž ์‹ฌ์ฒญ์ด
2024-02-CSC4004-2-4-Bullsazoo

๐Ÿ’ป ํŒ€์› ์†Œ๊ฐœ

Back End

์‹ ์žฌ์šฉ ๊น€๊ฒฝ์„ญ ์ด๊ฑด๋ฏผ
๐Ÿคด Lead & โš™๏ธ Backend โš™๏ธ Backend โš™๏ธ Backend



Front End

๊ฐ•๊ทผ์šฐ ๊น€๋ฏผ์„ฑ
๐Ÿ’ป Frontend & ๐ŸŽจ Design ๐Ÿ’ป Frontend



ํ”„๋กœ์ ํŠธ ์†Œ๊ฐœ

์‹ฌ์ฒญ์ด ์‹œ๊ฐ ์žฅ์• ์ธ๋“ค์„ ์œ„ํ•œ ์‡ผํ•‘ ๋ณด์กฐ ๋„์šฐ๋ฏธ

  • ๐Ÿ“ธ์นด๋ฉ”๋ผ๋ฅผ ํ†ตํ•ด ์ƒํ’ˆ์„ ๋ถ„์„ํ•˜์—ฌ ์ƒํ’ˆ์˜ ์ •๋ณด๋ฅผ ์•ˆ๋‚ดํ•ฉ๋‹ˆ๋‹ค.
  • ๐ŸŒŸํฌ๊ณ  ์ง๊ด€์ ์ธ UI
  • ๐Ÿ“ข์‹œ๊ฐ์žฅ์• ์ธ์„ ์œ„ํ•œ ์Œ์„ฑ์•ˆ๋‚ด

๐Ÿ’ก์ฃผ์š” ๊ธฐ๋Šฅ

  • AI์™€ ์นด๋ฉ”๋ผ๋ฅผ ํ†ตํ•œ ๊ฐ์ฒด ๋ถ„์„
  • ์ƒํ’ˆ์— ๋Œ€ํ•œ ๊ตฌ์ฒด์ ์ธ ์ •๋ณด ์ œ๊ณต
  • ์Œ์„ฑ ์ž…๋ ฅ/ ์•ˆ๋‚ด ๊ธฐ๋Šฅ ์ œ๊ณต

์‹œ์—ฐ

๋ฉ”์ธ ํ™”๋ฉด ํšŒ์›๊ฐ€์ž… ํ™”๋ฉด

๋กœ๊ทธ์ธ ํ™”๋ฉด ์‚ฌ๋žŒ ํƒ์ง€

์‚ฌ๋ฌผ ํƒ์ง€ ์‚ฌ์šฉ์ž ๋งž์ถคํ™” ํ™”๋ฉด

๊ธฐ์ˆ  ์Šคํƒ

Front END

Back END

icon

Tool

icon icon icon
icon icon

ํŒŒ์ผ ๊ตฌ์กฐ

Front END

src //React ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ ๋ฉ”์ธ ํด๋”๋กœ, ํ”„๋กœ์ ํŠธ์˜ ๋ชจ๋“  ์†Œ์Šค ์ฝ”๋“œ๊ฐ€ ํฌํ•จ๋ฉ๋‹ˆ๋‹ค
 โ”ฃ apis //API ํ†ต์‹  ๊ด€๋ จ ์ฝ”๋“œ๊ฐ€ ํฌํ•จ๋œ ํด๋”์ž…๋‹ˆ๋‹ค
 โ”ฃ assets //ํ”„๋กœ์ ํŠธ์—์„œ ์‚ฌ์šฉํ•˜๋Š” ์ •์  ์ž์›์„ ์ €์žฅํ•˜๋Š” ํด๋”์ž…๋‹ˆ๋‹ค
 โ”ƒ โ”ฃ font //ํ”„๋กœ์ ํŠธ์— ์‚ฌ์šฉ๋˜๋Š” ํฐํŠธ๋ฅผ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค
 โ”ƒ โ”ฃ images //์ด๋ฏธ์ง€ ํŒŒ์ผ์„ svg ํ˜•์‹์œผ๋กœ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค
 โ”ฃ components //UI ์ปดํฌ๋„ŒํŠธ๋ฅผ ์ €์žฅํ•˜๋Š” ํด๋”๋กœ, ์žฌ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ํ™”๋ฉด ๊ตฌ์„ฑ ์š”์†Œ๋ฅผ ํฌํ•จํ•ฉ๋‹ˆ๋‹ค
 โ”ƒ โ”ฃ Camera //๋ฌผ์ฒด ์ธ์‹ ๊ธฐ๋Šฅ ๊ด€๋ จ ์ปดํฌ๋„ŒํŠธ
 โ”ƒ โ”ฃ LandingPage //๋žœ๋”ฉ ํŽ˜์ด์ง€ ๊ด€๋ จ ์ปดํฌ๋„ŒํŠธ
 โ”ƒ โ”ฃ Login //๋กœ๊ทธ์ธ ํŽ˜์ด์ง€ ๊ด€๋ จ ์ปดํฌ๋„ŒํŠธ
 โ”ƒ โ”ฃ MyPage //๋งˆ์ด ํŽ˜์ด์ง€ ๊ด€๋ จ ์ปดํฌ๋„ŒํŠธ
 โ”ƒ โ”— Signup //ํšŒ์›๊ฐ€์ž… ํŽ˜์ด์ง€ ๊ด€๋ จ ์ปดํฌ๋„ŒํŠธ
 โ”ฃ hooks // React์˜ ์ปค์Šคํ…€ ํ›…(Custom Hook)์„ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค
 โ”ฃ pages //๊ฐ ํ™”๋ฉด(ํŽ˜์ด์ง€)๋ณ„๋กœ ๊ตฌ์„ฑ๋œ ์ปดํฌ๋„ŒํŠธ๊ฐ€ ํฌํ•จ๋œ ํด๋”์ž…๋‹ˆ๋‹ค
 โ”ฃ styles //๊ธ€๋กœ๋ฒŒ ์Šคํƒ€์ผ ๋˜๋Š” ํ…Œ๋งˆ ์„ค์ • ํŒŒ์ผ์ด ํฌํ•จ๋ฉ๋‹ˆ๋‹ค
 โ”ฃ App.jsx //๋ฃจํŠธ ์ปดํฌ๋„ŒํŠธ (์ „์—ญ ์ƒํƒœ, ๋ผ์šฐํŒ… ์„ค์ •, ์ „์ฒด ๋ ˆ์ด์•„์›ƒ)
 โ”ฃ main.jsx //ReactDOM์„ ์‚ฌ์šฉํ•ด App.jsx๋ฅผ HTML์— ๋ Œ๋”๋ง
 โ”— router.jsx //React Router๋ฅผ ํ™œ์šฉํ•œ ๋ผ์šฐํŒ… ์„ค์ • ํŒŒ์ผ

๐Ÿ“ ๊ฐ€์ด๋“œ ๋ผ์ธ

Back End

best.pt directory : backend/backend/test/yolov5 best.pt : https://drive.google.com/file/d/15Z3-0yaU2IwgoZvM6V2-ZXNZFlKy0oLo/view?usp=drive_link

๋ฌผ์ฒด์ธ์‹ ๋ฐ ๋กœ๊ทธ์ธ & ํšŒ์›๊ฐ€์ž… ํ…Œ์ŠคํŠธ ๊ฐ€์ด๋“œ๋ผ์ธ (POSTMAN) ์‹คํ–‰ ์ˆœ์„œ

  1. git clone URL
  2. python -m venv .venv(๊ฐ€์ƒํ™˜๊ฒฝ์„ค์ •)
  3. source .venv/Scripts/activate(๊ฐ€์ƒํ™˜๊ฒฝ ํ™œ์„ฑํ™”)
  4. cd backend
  5. pip install -r requirements.txt(ํ•„์ˆ˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์„ค์น˜)
  6. backend/backend/test/feature/object_recognition_realtime ๋ชจ๋“ˆ ์ง์ ‘ ์‹คํ–‰

๋กœ๊ทธ์ธ & ํšŒ์›๊ฐ€์ž… ํ…Œ์ŠคํŠธ

POSTMAN ์‹คํ–‰
method  POST

ํšŒ์›๊ฐ€์ž…(url) : http://127.0.0.1:8000/user/signup/

๋กœ๊ทธ์ธ(url) : http://127.0.0.1:8000/user/login/

Headers : 
Key : Content-Type
Value : application/json

Body :
raw + JSON

์•„๋ž˜ ํ˜•์‹์œผ๋กœ ์ €์žฅ
{
    "personal_id": "์‹ ์žฌ์šฉ",
    "password": "์ž˜์ƒ๊ฒผ์–ด"
}
SEND ๋ฒ„ํŠผ ํด๋ฆญ ๋ฐ ๊ฒฐ๊ณผ
{
		"์•Œ๋ฆผ": "ํšŒ์›๊ฐ€์ž…์ด ์™„๋ฃŒ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฆ„ : ์‹ ์žฌ์šฉ, ๊ฐœ์ธID : ์ž˜์ƒ๊ฒผ์–ด"
}

๋กœ๊ทธ์ธ๋„ ๊ณผ์ •์€ ๋˜‘๊ฐ™์Šต๋‹ˆ๋‹ค.

๋ฌผ์ฒด์ธ์‹ ํ…Œ์ŠคํŠธ

backend/media/uploads ๊ฒฝ๋กœ์— ์ด๋ฏธ์ง€ ์ €์žฅ

POSTMAN ์‹คํ–‰
method : post
urls: http://127.0.0.1:8000/analyze/detect/

Headers 
Key : Content-type
Value : application/json

Body 
raw + JSON
์•„๋ž˜ ํ˜•์‹์œผ๋กœ ์ €์žฅ
{
    "image_name : test.jpt",(์ €์žฅํ•œ ์ด๋ฏธ์ง€ ํŒŒ์ผ ์ด๋ฆ„)
    "user_id": "1" (์‚ฌ์šฉ์ž์˜ ๊ณ ์œ  id (default = 1))
}


๊ฒฐ๊ณผ ์˜ˆ์‹œ
{
    "status": "success",
    "message": "Image processed and objects saved successfully.",
    "detected_objects": [
        "์Šคํ”„๋ผ์ดํŠธ"
    ],
    "processed_image_path": "C:\\Users\\Administrator\\Desktop\\newssss\\2024-02-CSC4004-2-4-Bullsazoo\\backend\\media\\uploads\\please.jpg"
}

์—ฌ๊ธฐ์„œ processed_image_path๋Š” ๋กœ์ปฌ ํ™˜๊ฒฝ์˜ ๊ฒฝ๋กœ

Front end

์‹คํ–‰ ์ˆœ์„œ

  1. git clone URL
  2. cd frontend
  3. cd ossp_neverdie_fe
  4. npm i
  5. npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published