<commit_before>Motion Detection
================

Is there anything moving in front of my object? Where exactly?

Getting Started
---------------

Using Angus python SDK:

.. literalinclude:: motiondetection.py


Input
-----

The API takes a stream of 2d still images as input, of format ``jpg`` or ``png``, without constraints on resolution.

Note however that the bigger the resolution, the longer the API will take to process and give a result.

The function ``process()`` takes a dictionary as input formatted as follows:

.. code-block:: javascript

    {'image' : file}

* ``file``: a python ``File Object`` as returned for example by ``open()``.

Output
------
<commit_msg>motiondetection : Fixing unprecise input parameter<commit_after>Motion Detection
================

Is there anything moving in front of my object? Where exactly?

Getting Started
---------------

Using Angus python SDK:

.. literalinclude:: motiondetection.py


Input
-----

The API takes a stream of 2d still images as input, of format ``jpg`` or ``png``, without constraints on resolution.

Note however that the bigger the resolution, the longer the API will take to process and give a result.

The function ``process()`` takes a dictionary as input formatted as follows:

.. code-block:: javascript

    {'image' : file}

* ``image``: a python ``File Object`` as returned for example by ``open()``.

Output
------

{'fraction_non_alphanumeric': 0.14377682403433475, 'fraction_numerical': 0.001430615164520744, 'mean_word_length': 3.6324503311258276, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6335616', 'n_tokens_mistral': 378, 'n_tokens_neox': 353, 'n_words': 180}