141 lines
3.7 KiB
Plaintext
141 lines
3.7 KiB
Plaintext
{
|
||
"cells": [
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "8a340f1a-f6d6-4ca5-a8f1-d53f6eafa00e",
|
||
"metadata": {},
|
||
"source": [
|
||
"<a align=\"center\" href=\"https://gitee.com/CV_Lab/opencv_webcam\" target=\"_blank\" alt=\"Simple Icons\" >\n",
|
||
"<img src=\"https://gitee.com/CV_Lab/opencv_webcam/attach_files/932349/download/%E7%81%AB%E7%AE%AD.svg\" width=64 height=64></a>\n",
|
||
"\n",
|
||
"<p>opencv-webcam-script v0.2(Jupyter版)</p>\n",
|
||
"<p>创建人:曾逸夫</p>\n",
|
||
"<p>创建时间:2022-01-02</p>"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "68e88aa6-99c8-42b9-a189-70e42e7e6460",
|
||
"metadata": {},
|
||
"source": [
|
||
"<a href=\"https://pypi.org/project/opencv-webcam-script/\"><img src=\"https://img.shields.io/badge/PyPi-v0.1-brightgreen?logo=pypi\" alt=\"PyPi\" /></a>\n",
|
||
"<a href=\"https://gitee.com/CV_Lab/opencv_webcam/releases/v0.1\"><img src=\"https://img.shields.io/badge/latest%20version-v0.1-green\" alt=\"Version\" /></a>\n",
|
||
"<a href=\"https://hub.docker.com/r/zengdockerdocker/opencv-webcam-script\"><img src=\"https://img.shields.io/badge/docker-v0.1-blue?logo=docker\" alt=\"Docker\" /></a>\n",
|
||
"<a href=\"https://gitee.com/CV_Lab/opencv_webcam/blob/master/LICENSE\"><img src=\"https://img.shields.io/badge/license-GPL--3.0-blue\" alt=\"License\" /></a>"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "5518d6e0-89ca-41d3-8be6-a3c76bc32709",
|
||
"metadata": {},
|
||
"source": [
|
||
"## 安装"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "f25bb221-dee2-499b-8879-f87ab35a9a60",
|
||
"metadata": {},
|
||
"source": [
|
||
"### 克隆、安装依赖"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": null,
|
||
"id": "89e07b19-7efa-4221-a220-f698b948cee2",
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": [
|
||
"# 首先手动创建虚拟环境\n",
|
||
"# conda create -n ow python==3.8 # 虚拟环境名称为ow\n",
|
||
"# conda activate ow # 激活虚拟环境\n",
|
||
"!git clone https://gitee.com/CV_Lab/opencv_webcam.git # clone\n",
|
||
"%cd opencv_webcam\n",
|
||
"%pip install -qr requirements.txt -U # install"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "b6bbf4a0-db17-4727-96f0-ba6370b7eae6",
|
||
"metadata": {},
|
||
"source": [
|
||
"## 运行"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": null,
|
||
"id": "58307de4-173b-46a9-b30d-c12cfe4a1de2",
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": [
|
||
"# 常规调用\n",
|
||
"!python opencv_webcam.py"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": null,
|
||
"id": "f04eab9b-f7fc-42a0-a3df-6d546bcde5d9",
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": [
|
||
"# 视频帧自动保存\n",
|
||
"!python opencv_webcam.py -isasf"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": null,
|
||
"id": "acaf3636-8f83-47af-8161-2614a24cf3cc",
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": []
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": null,
|
||
"id": "6b564768-4ea4-4081-a9e8-6799dd862ef8",
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": []
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "2e706723-b274-41c7-b439-ccf9198e59b7",
|
||
"metadata": {},
|
||
"source": []
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": null,
|
||
"id": "bbf16f8a-50fb-41f6-8c6d-31152ce29217",
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": []
|
||
}
|
||
],
|
||
"metadata": {
|
||
"kernelspec": {
|
||
"display_name": "Python 3 (ipykernel)",
|
||
"language": "python",
|
||
"name": "python3"
|
||
},
|
||
"language_info": {
|
||
"codemirror_mode": {
|
||
"name": "ipython",
|
||
"version": 3
|
||
},
|
||
"file_extension": ".py",
|
||
"mimetype": "text/x-python",
|
||
"name": "python",
|
||
"nbconvert_exporter": "python",
|
||
"pygments_lexer": "ipython3",
|
||
"version": "3.8.12"
|
||
}
|
||
},
|
||
"nbformat": 4,
|
||
"nbformat_minor": 5
|
||
}
|