https://github.com/pgmjun/opencv_dog_and_cat_face_detector
detect dog and cat face API Server with OpenCV, FastAPI
https://github.com/pgmjun/opencv_dog_and_cat_face_detector
dog-face-detect fastapi opencv opencv-cat-face-detector opencv-dog-face-detector
Last synced: about 1 month ago
JSON representation
detect dog and cat face API Server with OpenCV, FastAPI
- Host: GitHub
- URL: https://github.com/pgmjun/opencv_dog_and_cat_face_detector
- Owner: PgmJun
- Created: 2024-01-02T14:57:36.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-03T08:01:32.000Z (over 2 years ago)
- Last Synced: 2024-01-03T16:27:20.111Z (over 2 years ago)
- Topics: dog-face-detect, fastapi, opencv, opencv-cat-face-detector, opencv-dog-face-detector
- Language: Python
- Homepage:
- Size: 76.2 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenCV를 활용한 강아지,고양이 얼굴 탐지 API 서버 🐶🐱
Dog and cat face detector api server with OpenCV
### Main Tech
- Python 3.9
- FastAPI
- OpenCV
- Numpy
- Uvicorn
### Docs
FastAPI 서버 실행 후, `http://127.0.0.1/docs` 접속
Access line `http://127.0.0.1/docs` after running FastAPI server
---
## 사용 방법 (How to use)
### pip를 최신버전으로 업데이트 (Update pip to latest version)
```shell
python -m pip install --upgrade pip
```
### FastAPI 설치 (Install FastAPI)
```shell
pip install fastapi
```
### Numpy 설치 (Install Numpy)
```shell
pip install numpy
```
### OpenCV 설치 (Install OpenCV)
```shell
pip install opencv-python
```
### Uvicorn 설치 (Install Uvicorn)
```shell
pip install "uvicorn[standard]"
```
FastAPI로 작성한 프로그램을 작동시키기 위해서는 작동시킬 서버가 필요하다.
`유비콘(Uvicorn)`은 비동기 호출을 지원하는 파이썬용 웹 서버이며, 이를 사용해서 FastAPI를 실행시킬 수 있다.
To run a program written with FastAPI, you need a server to run it.
`Uvicorn` is a web server for Python that supports asynchronous calls, which can be used to run FastAPI.
### 서버 실행 (Run server)
```shell
uvicorn main:app --reload
```