From 2f28968f8e392daf611634b5ee78b5dc9b832bd5 Mon Sep 17 00:00:00 2001 From: esimov Date: Tue, 24 Nov 2026 09:49:55 +0200 Subject: [PATCH] Preparation for release v1.5.1 --- README.md | 14 +++++++------- build.sh | 2 +- examples/native/README.md | 18 ++++++++++++++++++ {demos => examples}/native/facedet/main.go | 0 .../native/facial_landmark/main.go | 0 {demos => examples}/native/init.go | 0 {demos => examples}/native/puploc/main.go | 0 {demos => examples}/python/README.md | 0 {demos => examples}/python/blinkdet/README.MD | 0 .../python/blinkdet/blinkdet.go | 0 {demos => examples}/python/blinkdet/blinkdet.h | 0 .../python/blinkdet/blinkdet.py | 0 {demos => examples}/python/facedet/README.MD | 0 {demos => examples}/python/facedet/demo.py | 0 {demos => examples}/python/facedet/faceblur.py | 0 {demos => examples}/python/facedet/pigo.go | 0 {demos => examples}/python/facedet/pigo.h | 0 .../python/facial_landmark/README.MD | 0 .../python/facial_landmark/flploc.go | 0 .../python/facial_landmark/flploc.h | 0 .../python/facial_landmark/flploc.py | 0 .../python/masquerade/README.MD | 0 .../python/masquerade/puploc.go | 0 {demos => examples}/python/masquerade/puploc.h | 0 .../python/masquerade/puploc.py | 0 {demos => examples}/python/puploc/README.MD | 0 {demos => examples}/python/puploc/puploc.go | 0 {demos => examples}/python/puploc/puploc.h | 0 {demos => examples}/python/puploc/puploc.py | 0 .../python/talk_detector/README.MD | 0 .../python/talk_detector/talkdet.go | 0 .../python/talk_detector/talkdet.h | 0 .../python/talk_detector/talkdet.py | 0 {demos => examples}/python/web/README.md | 0 {demos => examples}/python/web/capture.py | 0 {demos => examples}/python/web/main.go | 0 .../python/web/requirements.txt | 0 snapcraft.yaml | 2 +- 38 files changed, 27 insertions(+), 9 deletions(-) create mode 100644 examples/native/README.md rename {demos => examples}/native/facedet/main.go (100%) rename {demos => examples}/native/facial_landmark/main.go (100%) rename {demos => examples}/native/init.go (100%) rename {demos => examples}/native/puploc/main.go (100%) rename {demos => examples}/python/README.md (100%) rename {demos => examples}/python/blinkdet/README.MD (100%) rename {demos => examples}/python/blinkdet/blinkdet.go (100%) rename {demos => examples}/python/blinkdet/blinkdet.h (100%) rename {demos => examples}/python/blinkdet/blinkdet.py (100%) rename {demos => examples}/python/facedet/README.MD (100%) rename {demos => examples}/python/facedet/demo.py (100%) rename {demos => examples}/python/facedet/faceblur.py (100%) rename {demos => examples}/python/facedet/pigo.go (100%) rename {demos => examples}/python/facedet/pigo.h (100%) rename {demos => examples}/python/facial_landmark/README.MD (100%) rename {demos => examples}/python/facial_landmark/flploc.go (100%) rename {demos => examples}/python/facial_landmark/flploc.h (100%) rename {demos => examples}/python/facial_landmark/flploc.py (100%) rename {demos => examples}/python/masquerade/README.MD (100%) rename {demos => examples}/python/masquerade/puploc.go (100%) rename {demos => examples}/python/masquerade/puploc.h (100%) rename {demos => examples}/python/masquerade/puploc.py (100%) rename {demos => examples}/python/puploc/README.MD (100%) rename {demos => examples}/python/puploc/puploc.go (100%) rename {demos => examples}/python/puploc/puploc.h (100%) rename {demos => examples}/python/puploc/puploc.py (100%) rename {demos => examples}/python/talk_detector/README.MD (100%) rename {demos => examples}/python/talk_detector/talkdet.go (100%) rename {demos => examples}/python/talk_detector/talkdet.h (100%) rename {demos => examples}/python/talk_detector/talkdet.py (100%) rename {demos => examples}/python/web/README.md (100%) rename {demos => examples}/python/web/capture.py (100%) rename {demos => examples}/python/web/main.go (100%) rename {demos => examples}/python/web/requirements.txt (100%) diff --git a/README.md b/README.md index 026cd8c9..b264c3ba 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Build](https://github.com/esimov/pigo/actions/workflows/build.yml/badge.svg)](https://github.com/esimov/pigo/actions/workflows/build.yml) [![go.dev reference](https://img.shields.io/badge/pkg.go.dev-reference-007d9c?logo=go)](https://pkg.go.dev/github.com/esimov/pigo/core) [![license](https://img.shields.io/github/license/esimov/pigo)](./LICENSE) -[![release](https://img.shields.io/badge/release-v1.5.0-blue.svg)](https://github.com/esimov/pigo/releases/tag/v1.5.0) +[![release](https://img.shields.io/badge/release-v1.5.1-blue.svg)](https://github.com/esimov/pigo/releases/tag/v1.5.1) [![pigo](https://snapcraft.io/pigo/badge.svg)](https://snapcraft.io/pigo) Pigo is a pure Go face detection, pupil/eyes localization and facial landmark points detection library based on the **[Pixel Intensity Comparison-based Object detection](https://arxiv.org/pdf/1305.4537.pdf)** paper. @@ -17,7 +17,7 @@ The reason why this library has been developed is because all of the currently e ## Key features - [x] Does not require OpenCV or any 3rd party modules to be installed -- [x] High processing speed +- [x] [High processing speed](#real-time-face-detection) - [x] There is no need for image preprocessing prior to detection - [x] There is no need for the computation of integral images, image pyramid, HOG pyramid or any other similar data structure - [x] The face detection is based on pixel intensity comparison encoded in the binary file tree structure @@ -33,14 +33,14 @@ The reason why this library has been developed is because all of the currently e ## Real time face detection ### Native support -**The library does not require any additional modules or third party applications to be installed**, although if you you wish to try out the real time native webcam [Go demos](https://github.com/esimov/pigo/tree/master/demos/native) you might need to install a couple of dependencies required by the [Gio](http://gioui.org/) library. +**The library does not require any additional modules or third party applications to be installed**, although if you you wish to try out the real time native Go webcam [examples](https://github.com/esimov/pigo/tree/master/examples/native) you might need to install a couple of dependencies required by the [Gio](http://gioui.org/) library. Head over to this section https://gioui.org/#installation to check all the required dependencies. -For accessing the webcam we are using [Pion](https://github.com/pion/mediadevices). For all the required dependencies check the project repository. For Windows and MacOS all the codecs should be available by default. On Linux based systems you might need to install additional dependencies. +The [Pion](https://github.com/pion/mediadevices) library is used to access the webcam. For all the required dependencies check the project repository. For Windows and MacOS all the codecs should be available by default. On Linux based systems you might need to install additional dependencies. -### Using as a shared library -The Pigo library can be incorporated into other languages also in case a C linking is supported by the targeted language. The demos from the [python](https://github.com/esimov/pigo/tree/master/demos/python) folders are proof of concepts of how Pigo can be embedded as a shared library into a Python program. +### Using Pigo as shared library +The Pigo library can be incorporated into other languages in case C linking is supported by the targeted language. The examples in the [python](https://github.com/esimov/pigo/tree/master/examples/python) folder are proof of concepts of how Pigo can be embedded as a shared object into a Python program. Head over to this [subtopic](#real-time-face-detection-running-as-a-shared-object) for more details. @@ -198,7 +198,7 @@ Note: In case of in plane rotated faces the angle value should be adapted to the ## Running the library as a shared object (SO/DLL) -The demos from the [python](https://github.com/esimov/pigo/tree/master/demos/python) folder are meant to show how the library can be integrated into other languages, like in this case, Python. +The examples from the [python](https://github.com/esimov/pigo/tree/master/examples/python) folder are meant to show how the library can be integrated into other languages, like in this case, Python. ### How does it works? From the Python script we access the webcam, converts the pixel data to a byte array and through `cgo` we transfer the results as a **shared object** to the Go program where the core face detection is happening. But as you can imagine this operation is not cost effective, resulting in lower frame rates and higher latency. diff --git a/build.sh b/build.sh index 7576446f..a9230032 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ #!/bin/bash set -e -VERSION="1.5.0" +VERSION="1.5.1" PROTECTED_MODE="no" export GO15VENDOREXPERIMENT=1 diff --git a/examples/native/README.md b/examples/native/README.md new file mode 100644 index 00000000..a0c005f9 --- /dev/null +++ b/examples/native/README.md @@ -0,0 +1,18 @@ +## Go native demos + +This directory contains a few real time face detection demos running in a native Go environment. + +## Dependencies +- [GioUI](https://gioui.org/) +- [Pion](https://github.com/pion/mediadevices) + +## Run +```bash +$ go run main.go +``` + +## Notice + +For the `WASM` port check this subfolder: + +https://github.com/esimov/pigo/tree/master/wasm diff --git a/demos/native/facedet/main.go b/examples/native/facedet/main.go similarity index 100% rename from demos/native/facedet/main.go rename to examples/native/facedet/main.go diff --git a/demos/native/facial_landmark/main.go b/examples/native/facial_landmark/main.go similarity index 100% rename from demos/native/facial_landmark/main.go rename to examples/native/facial_landmark/main.go diff --git a/demos/native/init.go b/examples/native/init.go similarity index 100% rename from demos/native/init.go rename to examples/native/init.go diff --git a/demos/native/puploc/main.go b/examples/native/puploc/main.go similarity index 100% rename from demos/native/puploc/main.go rename to examples/native/puploc/main.go diff --git a/demos/python/README.md b/examples/python/README.md similarity index 100% rename from demos/python/README.md rename to examples/python/README.md diff --git a/demos/python/blinkdet/README.MD b/examples/python/blinkdet/README.MD similarity index 100% rename from demos/python/blinkdet/README.MD rename to examples/python/blinkdet/README.MD diff --git a/demos/python/blinkdet/blinkdet.go b/examples/python/blinkdet/blinkdet.go similarity index 100% rename from demos/python/blinkdet/blinkdet.go rename to examples/python/blinkdet/blinkdet.go diff --git a/demos/python/blinkdet/blinkdet.h b/examples/python/blinkdet/blinkdet.h similarity index 100% rename from demos/python/blinkdet/blinkdet.h rename to examples/python/blinkdet/blinkdet.h diff --git a/demos/python/blinkdet/blinkdet.py b/examples/python/blinkdet/blinkdet.py similarity index 100% rename from demos/python/blinkdet/blinkdet.py rename to examples/python/blinkdet/blinkdet.py diff --git a/demos/python/facedet/README.MD b/examples/python/facedet/README.MD similarity index 100% rename from demos/python/facedet/README.MD rename to examples/python/facedet/README.MD diff --git a/demos/python/facedet/demo.py b/examples/python/facedet/demo.py similarity index 100% rename from demos/python/facedet/demo.py rename to examples/python/facedet/demo.py diff --git a/demos/python/facedet/faceblur.py b/examples/python/facedet/faceblur.py similarity index 100% rename from demos/python/facedet/faceblur.py rename to examples/python/facedet/faceblur.py diff --git a/demos/python/facedet/pigo.go b/examples/python/facedet/pigo.go similarity index 100% rename from demos/python/facedet/pigo.go rename to examples/python/facedet/pigo.go diff --git a/demos/python/facedet/pigo.h b/examples/python/facedet/pigo.h similarity index 100% rename from demos/python/facedet/pigo.h rename to examples/python/facedet/pigo.h diff --git a/demos/python/facial_landmark/README.MD b/examples/python/facial_landmark/README.MD similarity index 100% rename from demos/python/facial_landmark/README.MD rename to examples/python/facial_landmark/README.MD diff --git a/demos/python/facial_landmark/flploc.go b/examples/python/facial_landmark/flploc.go similarity index 100% rename from demos/python/facial_landmark/flploc.go rename to examples/python/facial_landmark/flploc.go diff --git a/demos/python/facial_landmark/flploc.h b/examples/python/facial_landmark/flploc.h similarity index 100% rename from demos/python/facial_landmark/flploc.h rename to examples/python/facial_landmark/flploc.h diff --git a/demos/python/facial_landmark/flploc.py b/examples/python/facial_landmark/flploc.py similarity index 100% rename from demos/python/facial_landmark/flploc.py rename to examples/python/facial_landmark/flploc.py diff --git a/demos/python/masquerade/README.MD b/examples/python/masquerade/README.MD similarity index 100% rename from demos/python/masquerade/README.MD rename to examples/python/masquerade/README.MD diff --git a/demos/python/masquerade/puploc.go b/examples/python/masquerade/puploc.go similarity index 100% rename from demos/python/masquerade/puploc.go rename to examples/python/masquerade/puploc.go diff --git a/demos/python/masquerade/puploc.h b/examples/python/masquerade/puploc.h similarity index 100% rename from demos/python/masquerade/puploc.h rename to examples/python/masquerade/puploc.h diff --git a/demos/python/masquerade/puploc.py b/examples/python/masquerade/puploc.py similarity index 100% rename from demos/python/masquerade/puploc.py rename to examples/python/masquerade/puploc.py diff --git a/demos/python/puploc/README.MD b/examples/python/puploc/README.MD similarity index 100% rename from demos/python/puploc/README.MD rename to examples/python/puploc/README.MD diff --git a/demos/python/puploc/puploc.go b/examples/python/puploc/puploc.go similarity index 100% rename from demos/python/puploc/puploc.go rename to examples/python/puploc/puploc.go diff --git a/demos/python/puploc/puploc.h b/examples/python/puploc/puploc.h similarity index 100% rename from demos/python/puploc/puploc.h rename to examples/python/puploc/puploc.h diff --git a/demos/python/puploc/puploc.py b/examples/python/puploc/puploc.py similarity index 100% rename from demos/python/puploc/puploc.py rename to examples/python/puploc/puploc.py diff --git a/demos/python/talk_detector/README.MD b/examples/python/talk_detector/README.MD similarity index 100% rename from demos/python/talk_detector/README.MD rename to examples/python/talk_detector/README.MD diff --git a/demos/python/talk_detector/talkdet.go b/examples/python/talk_detector/talkdet.go similarity index 100% rename from demos/python/talk_detector/talkdet.go rename to examples/python/talk_detector/talkdet.go diff --git a/demos/python/talk_detector/talkdet.h b/examples/python/talk_detector/talkdet.h similarity index 100% rename from demos/python/talk_detector/talkdet.h rename to examples/python/talk_detector/talkdet.h diff --git a/demos/python/talk_detector/talkdet.py b/examples/python/talk_detector/talkdet.py similarity index 100% rename from demos/python/talk_detector/talkdet.py rename to examples/python/talk_detector/talkdet.py diff --git a/demos/python/web/README.md b/examples/python/web/README.md similarity index 100% rename from demos/python/web/README.md rename to examples/python/web/README.md diff --git a/demos/python/web/capture.py b/examples/python/web/capture.py similarity index 100% rename from demos/python/web/capture.py rename to examples/python/web/capture.py diff --git a/demos/python/web/main.go b/examples/python/web/main.go similarity index 100% rename from demos/python/web/main.go rename to examples/python/web/main.go diff --git a/demos/python/web/requirements.txt b/examples/python/web/requirements.txt similarity index 100% rename from demos/python/web/requirements.txt rename to examples/python/web/requirements.txt diff --git a/snapcraft.yaml b/snapcraft.yaml index 718a3cf3..7ddae297 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -1,5 +1,5 @@ name: pigo -version: '1.5.0' +version: '1.5.1' summary: Pure Go face detection library description: | Key features: