<commit_before># Inselect

[ ![Travis status](https://travis-ci.org/NaturalHistoryMuseum/inselect.svg?branch=master) ](https://travis-ci.org/NaturalHistoryMuseum/inselect)

A tool for the semi-automated segmentation and annotation of scanned images of museum objects.

You can download the latest release of Inselect for Windows, for Mac and the Python source from our [Project page](http://naturalhistorymuseum.github.io/inselect).

## Windows development environment

- Install [git](http://git-scm.com/download/win) ;
- Download the latest build of [Anaconda](https://store.continuum.io/cshop/anaconda/), Python 2.7.x build, and install using default options;
- Download [OpenCV](http://opencv.org/downloads.html) (2.x version) and extract the archive;
- Copy the file `<open cv extract root>/build/python/2.7/x86/cv2.pyd` to `<anaconda root>/Lib/site-packages` (Replace x86 by 64 as appropriate);
- Get the Inselect source:
```shell
git clone https://github.com/NaturalHistoryMuseum/inselect.git
cd inselect
python inselect.py
```

## To build the Windows installer

```shell
pip install cx_Freeze
build.bat
```

The installer will in the `dist` directory.

## OS X development environment

- Install [git](http://git-scm.com/download/mac) ;
- Download the latest build of [Anaconda](https://store.continuum.io/cshop/anaconda/), Python 2.7.x build, and install using default options ;
- Install precompiled OpenCV package:
```shell
conda install -c https://conda.binstar.org/jjhelmus opencv
```

- Install other dependencies:
```shell
conda install PySide
```

- Get the Inselect source:
```shell
git clone https://github.com/NaturalHistoryMuseum/inselect.git
cd inselect
./inselect.py
```

## To build the OS X installer

Install homebrew.

```shell
pip install pyinstaller
brew install upx
./build.sh
```

## Ubuntu 12.04-LTS development environment

```shell
apt-get install python-pip git python-pyside python-opencv python-numpy python-scipy python-matplotlib python2.7-dev
git clone https://github.com/NaturalHistoryMuseum/inselect.git
cd inselect
./inselect.py
```

## Toolbar icons in the compiled application,
If the toolbar icons in inselect/data change then you need to refresh a Python
file:
```shell
pyside-rcc icons.qrc > inselect/gui/icons.py
```
This taken from a [stackoverflow thread](http://stackoverflow.com/a/11547144)


## License
<commit_msg>Barcodes / gouda<commit_after># Inselect

[ ![Travis status](https://travis-ci.org/NaturalHistoryMuseum/inselect.svg?branch=master) ](https://travis-ci.org/NaturalHistoryMuseum/inselect)

A tool for the semi-automated segmentation and annotation of scanned images of museum objects.

You can download the latest release of Inselect for Windows, for Mac and the Python source from our [Project page](http://naturalhistorymuseum.github.io/inselect).

## Windows development environment

- Install [git](http://git-scm.com/download/win) ;
- Download the latest build of [Anaconda](https://store.continuum.io/cshop/anaconda/), Python 2.7.x build, and install using default options;
- Download [OpenCV](http://opencv.org/downloads.html) (2.x version) and extract the archive;
- Copy the file `<open cv extract root>/build/python/2.7/x86/cv2.pyd` to `<anaconda root>/Lib/site-packages` (Replace x86 by 64 as appropriate);
- Get the Inselect source:
```shell
git clone https://github.com/NaturalHistoryMuseum/inselect.git
cd inselect
python inselect.py
```

## To build the Windows installer

```shell
pip install cx_Freeze
build.bat
```

The installer will in the `dist` directory.

## OS X development environment

- Install [git](http://git-scm.com/download/mac) ;
- Download the latest build of [Anaconda](https://store.continuum.io/cshop/anaconda/), Python 2.7.x build, and install using default options ;
- Install precompiled OpenCV package:
```shell
conda install -c https://conda.binstar.org/jjhelmus opencv
```

- Install other dependencies:
```shell
conda install PySide
```

- Get the Inselect source:
```shell
git clone https://github.com/NaturalHistoryMuseum/inselect.git
cd inselect
./inselect.py
```

## To build the OS X installer

Install homebrew.

```shell
pip install pyinstaller
brew install upx
./build.sh
```

## Ubuntu 12.04-LTS development environment

```shell
apt-get install python-pip git python-pyside python-opencv python-numpy python-scipy python-matplotlib python2.7-dev
git clone https://github.com/NaturalHistoryMuseum/inselect.git
cd inselect
./inselect.py
```

## Barcode reading

Install [gouda](https://github.com/NaturalHistoryMuseum/gouda/). See
`inselect/gui/plugins/barcode.py`.

## Toolbar icons in the compiled application,
If the toolbar icons in inselect/data change then you need to refresh a Python
file:
```shell
pyside-rcc icons.qrc > inselect/gui/icons.py
```
This taken from a [stackoverflow thread](http://stackoverflow.com/a/11547144)


## License

{'fraction_non_alphanumeric': 0.1220715166461159, 'fraction_numerical': 0.011508425811755036, 'mean_word_length': 4.705744431418523, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 17, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4380988', 'n_tokens_mistral': 1621, 'n_tokens_neox': 1506, 'n_words': 463}