The project is designed for Harvard Medical School. Users can put some tags for an medical image within the system.
NOTE:
- We're going to assume that you have installed Python 2.7 and MySQL 5.x on your computer.
NOTE: Python 2.7 required
Install pip
For Unbuntu/Mint Users:
apt-get install python-pip
Or you can get standalone pip installer.
Install Django using pip
For users who has installed pip
pip install django==1.7.6
Or you can install Django manually.
Tip: Know more information on install Django at https://docs.djangoproject.com/en/1.6/intro/install/
mitagger/settings.py
.To connect MySQL in Python, we need install mysql-python
first.
You can install it using pip
:
pip install mysql-python
Tip: If you get error message like this:
EnvironmentError: mysql_config not found
.
Create database named mitagger
in MySQL.
Use following command to create tables in the database:
cd /path/to/the/app
python manage.py syncdb
Install libtiff to Convert tiff to jpg
For Ubuntu/Mint Users:
apt-get install libtiff5 libtiff5-dev
pip install --upgrade setuptools
pip install --upgrade pip
pip install numpy
pip install -e svn+http://pylibtiff.googlecode.com/svn/trunk/
Install Wand to Convert tiff to jpg
For Ubuntu/Mint Users:
apt-get install libmagickwand-dev
pip install Wand
Install NLTK to process natural language
For Ubuntu/Mint Users:
apt-get install libyaml-dev
pip install nltk
Download NLTK Data
python
>>> import nltk
>>> nltk.download()
# Press d to start downloading
>>> d
# Type all to download all packages
>>> all
Install Elasticsearch
For Ubuntu/Mint Users: Elasticsearch is running on Java, if you don't have a JRE on your machine, please install one.
For example, We use OpenJDK7:
apt-get install openjdk-7-jre
Download and install the Public Signing Key
wget -qO - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
Add the following to your /etc/apt/sources.list to enable the repository
deb http://packages.elasticsearch.org/elasticsearch/1.3/debian stable main
Run apt-get update and the repository is ready for use. You can install it with :
apt-get install elasticsearch
For RHEL/CentOS Users: Download and install the Public Signing Key
rpm --import http://packages.elasticsearch.org/GPG-KEY-elasticsearch
Add the following in your /etc/yum.repos.d/ directory in a file named (for example) elasticsearch.repo
[elasticsearch-1.3]
name=Elasticsearch repository for 1.3.x packages
baseurl=http://packages.elasticsearch.org/elasticsearch/1.3/centos
gpgcheck=1
gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch
enabled=1
And your repository is ready for use. You can install it with :
yum install elasticsearch
Install Elasticsearch bind for python:
pip install elasticsearch
If you want to use this application on a production site, use Apache with mod_wsgi.
Tip: Get more information at https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/modwsgi/
If you just want to experiment with this application, just use following command:
python manage.py runserver
If you will get following output,
May 14, 2014 - 04:50:57
Django version 1.6.4, using settings 'mitagger.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
The application is deployed successfully. And you can use the application by visit http://127.0.0.1:8000 in web browser.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型