MCPcopy Index your code
hub / github.com/aisingapore/PeekingDuck

github.com/aisingapore/PeekingDuck @1.3.0.post1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.3.0.post1 ↗ · + Follow
1,808 symbols 5,921 edges 313 files 936 documented · 52%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README


Python version PyPI version PyPI Downloads License Documentation Status

Getting started · Tutorials · API docs · FAQ · Report a bug · Communities


PeekingDuck is an open-source, modular framework in Python, built for Computer Vision (CV) inference. The name "PeekingDuck" is a play on: "Peeking" in a nod to CV; and "Duck" in duck typing.

Features

Build realtime CV pipelines

  • PeekingDuck enables you to build powerful CV pipelines with minimal lines of code.

Leverage on SOTA models

Create custom nodes

Installation

Install from PyPI using pip

> pip install peekingduck

Note: for users with ARM-based devices such as a Raspberry Pi or Apple Silicon Mac, please refer to the documentation for more detailed installation instructions.

PeekingDuck can also be installed in a virtual environment.

> peekingduck verify-install

You should see a video of a person waving his hand with bounding boxes overlaid.

The video will close automatically when it is run to the end, select the video window and press q to exit earlier.

Usage

Create a project folder and initialize a PeekingDuck project.

> mkdir <project_dir>
> cd <project_dir>
> peekingduck init

Run the demo pipeline.

> peekingduck run

If you have a webcam, you should see a man waving on the output screen with skeletal frame overlaid.

Terminate the program by clicking on the output screen and pressing q.

Use peekingduck --help to display help information for PeekingDuck's command-line interface.

Gallery

Acknowledgements

This project is supported by the National Research Foundation, Singapore under its AI Singapore Programme (AISG-RP-2019-050). Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not reflect the views of National Research Foundation, Singapore.

License

PeekingDuck is under the open source Apache License 2.0 (:

Even so, your organization may require legal proof of its right to use PeekingDuck, due to circumstances such as the following: - Your organization is using PeekingDuck in a jurisdiction that does not recognize this license - Your legal department requires a license to be purchased - Your organization wants to hold a tangible legal document as evidence of the legal right to use and distribute PeekingDuck

Contact us if any of these circumstances apply to you.

Communities

Core symbols most depended-on inside this repo

check_bounds
called by 119
peekingduck/pipeline/nodes/base.py
run
called by 72
peekingduck/pipeline/nodes/draw/tag.py
get
called by 33
peekingduck/pipeline/nodes/input/utils/png_reader.py
to
called by 27
peekingduck/pipeline/nodes/model/mask_rcnnv1/mask_rcnn_files/detection/image_list.py
resize
called by 21
peekingduck/pipeline/nodes/model/mask_rcnnv1/mask_rcnn_files/detection/transform.py
read
called by 21
peekingduck/pipeline/nodes/input/utils/png_reader.py
download_weights
called by 17
peekingduck/pipeline/nodes/base.py
predict
called by 14
peekingduck/pipeline/nodes/model/jdev1/jde_model.py

Shape

Method 1,120
Function 430
Class 248
Route 10

Languages

Python100%

Modules by API surface

peekingduck/viewer/viewer.py43 symbols
tests/pipeline/nodes/test_node.py35 symbols
tests/pipeline/nodes/draw/test_instance_mask.py32 symbols
tests/pipeline/nodes/dabble/test_statistics.py28 symbols
tests/runner/test_runner.py25 symbols
tests/conftest.py24 symbols
tests/loaders/test_declarative_loader.py23 symbols
tests/pipeline/nodes/model/fairmotv1/test_fairmot.py22 symbols
peekingduck/viewer/playlist.py21 symbols
tests/pipeline/nodes/model/jdev1/test_jde.py20 symbols
tests/cli/test_create_node.py19 symbols
tests/cli/test_core.py19 symbols

For agents

$ claude mcp add PeekingDuck \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact