• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

mitagger: Medical Image Tagger

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

mitagger

开源软件地址:

https://gitee.com/haozhexie/mitagger

开源软件介绍:

Medical Image Tagger

The project is designed for Harvard Medical School. Users can put some tags for an medical image within the system.

Build Status


Installation Guide

NOTE:

  • We're going to assume that you have installed Python 2.7 and MySQL 5.x on your computer.

Install Django

NOTE:Python 2.7 required

  1. Install pip

    For Unbuntu/Mint Users:

    apt-get install python-pip

    Or you can get standalone pip installer.

  2. 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/

Set up MITagger

  1. Open mitagger/settings.py.
  2. Edit your database configuration at line 59.

Set up Database

  1. 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.

    Reference: http://stackoverflow.com/questions/7475223/mysql-config-not-found-when-installing-mysqldb-python-interface

  2. Create database named mitagger in MySQL.

  3. Use following command to create tables in the database:

    cd /path/to/the/apppython manage.py syncdb

Install Additional Package

  1. Install libtiff to Convert tiff to jpg

    For Ubuntu/Mint Users:

    apt-get install libtiff5 libtiff5-devpip install --upgrade setuptoolspip install --upgrade pippip install numpypip install -e svn+http://pylibtiff.googlecode.com/svn/trunk/
  2. Install Wand to Convert tiff to jpg

    For Ubuntu/Mint Users:

    apt-get install libmagickwand-devpip install Wand
  3. Install NLTK to process natural language

    For Ubuntu/Mint Users:

    apt-get install libyaml-devpip install nltk
  4. Download NLTK Data

    python >>> import nltk >>> nltk.download() # Press d to start downloading >>> d # Type all to download all packages >>> all 
  5. 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 packagesbaseurl=http://packages.elasticsearch.org/elasticsearch/1.3/centosgpgcheck=1gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearchenabled=1

    And your repository is ready for use. You can install it with :

    yum install elasticsearch

    Install Elasticsearch bind for python:

    pip install elasticsearch

Start Server

  1. 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/

  2. 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:57Django 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.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
下一篇:
NapkinML: NapkinML 是 NumPy 中机器学习模型的袖珍实现发布时间:2022-03-24
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap