An open API service indexing awesome lists of open source software.

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

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
```