Этот коммит содержится в:
Inga Ulusoy 2023-01-12 13:42:38 +01:00 коммит произвёл GitHub
родитель 5d033479ce
Коммит b0ae2f2c19
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -36,7 +36,7 @@ There are sample notebooks in the `misinformation/notebooks` folder for you to e
**You can run this notebook on google colab: [Here](https://colab.research.google.com/github/ssciwr/misinformation/blob/main/notebooks/get-text-from-image.ipynb)** **You can run this notebook on google colab: [Here](https://colab.research.google.com/github/ssciwr/misinformation/blob/main/notebooks/get-text-from-image.ipynb)**
Place the data files and google cloud vision API key in your google drive to access the data. Place the data files and google cloud vision API key in your google drive to access the data.
1. Facial analysis: Use the notebook `facial_expressions.ipynb` to identify if there are faces on the image, if they are wearing masks, and if they are not wearing masks also the race, gender and dominant emotion. 1. Facial analysis: Use the notebook `facial_expressions.ipynb` to identify if there are faces on the image, if they are wearing masks, and if they are not wearing masks also the race, gender and dominant emotion.
**You can run this notebook on google colab: [Here](https://colab.research.google.com/github/ssciwr/misinformation/blob/main/notebooks/facial_expressions.)** **You can run this notebook on google colab: [Here](https://colab.research.google.com/github/ssciwr/misinformation/blob/main/notebooks/facial_expressions.ipynb)**
Place the data files in your google drive to access the data.** Place the data files in your google drive to access the data.**
1. Object analysis: Use the notebook `ojects_expression.ipynb` to identify certain objects in the image. Currently, the following objects are being identified: person, bicycle, car, motorcycle, airplane, bus, train, truck, boat, traffic light, cell phone. 1. Object analysis: Use the notebook `ojects_expression.ipynb` to identify certain objects in the image. Currently, the following objects are being identified: person, bicycle, car, motorcycle, airplane, bus, train, truck, boat, traffic light, cell phone.

2
notebooks/facial_expressions.ipynb сгенерированный
Просмотреть файл

@ -32,7 +32,7 @@
" # install setuptools\n", " # install setuptools\n",
" !pip install setuptools==61 -qqq\n", " !pip install setuptools==61 -qqq\n",
" # install misinformation\n", " # install misinformation\n",
" !pip install git+https://github.com/ssciwr/misinformation.git@set-up-colab -qqq\n", " !pip install git+https://github.com/ssciwr/misinformation.git -qqq\n",
" # mount google drive for data and API key\n", " # mount google drive for data and API key\n",
" from google.colab import drive\n", " from google.colab import drive\n",
"\n", "\n",

4
notebooks/get-text-from-image.ipynb сгенерированный
Просмотреть файл

@ -25,7 +25,7 @@
" # install setuptools\n", " # install setuptools\n",
" !pip install setuptools==61 -qqq\n", " !pip install setuptools==61 -qqq\n",
" # install misinformation\n", " # install misinformation\n",
" !pip install git+https://github.com/ssciwr/misinformation.git@set-up-colab -qqq\n", " !pip install git+https://github.com/ssciwr/misinformation.git -qqq\n",
" # mount google drive for data and API key\n", " # mount google drive for data and API key\n",
" from google.colab import drive\n", " from google.colab import drive\n",
"\n", "\n",
@ -117,7 +117,7 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"misinformation.explore_analysis(mydict, identify=\"text-on-image\", analyse_text=True)" "misinformation.explore_analysis(mydict, identify=\"text-on-image\")"
] ]
}, },
{ {