Skip to content

Commit 79fe7c2

Browse files
committed
tidy
1 parent 083c9b5 commit 79fe7c2

File tree

8 files changed

+55
-55
lines changed

8 files changed

+55
-55
lines changed

README.md

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2-
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
33
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
4-
5-
- [Mediapipe autoit udf](#mediapipe-autoit-udf)
6-
- [Usage of the UDF](#usage-of-the-udf)
7-
- [Prerequisites](#prerequisites)
8-
- [Usage](#usage)
9-
- [AutoIt](#autoit)
10-
- [PowerShell](#powershell)
11-
- [csharp](#csharp)
12-
- [Runtime example](#runtime-example)
13-
- [Compile time example](#compile-time-example)
14-
- [Running examples](#running-examples)
15-
- [Developpement](#developpement)
16-
- [Prerequisites](#prerequisites-1)
17-
- [Environment](#environment)
18-
- [Generate the UDF files](#generate-the-udf-files)
19-
20-
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
4+
5+
- [Mediapipe autoit udf](#mediapipe-autoit-udf)
6+
- [Usage of the UDF](#usage-of-the-udf)
7+
- [Prerequisites](#prerequisites)
8+
- [Usage](#usage)
9+
- [AutoIt](#autoit)
10+
- [PowerShell](#powershell)
11+
- [csharp](#csharp)
12+
- [Runtime example](#runtime-example)
13+
- [Compile time example](#compile-time-example)
14+
- [Running examples](#running-examples)
15+
- [Developpement](#developpement)
16+
- [Prerequisites](#prerequisites-1)
17+
- [Environment](#environment)
18+
- [Generate the UDF files](#generate-the-udf-files)
19+
20+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2121

2222
# Mediapipe autoit udf
2323

@@ -28,8 +28,8 @@ Partial COM+ binding to [mediapipe](https://google.github.io/mediapipe/)
2828
## Prerequisites
2929

3030
- Download and extract [opencv-4.7.0-windows.exe](https://opencv.org/releases/) into a folder
31-
- Download and extract [autoit-opencv-4.7.0-com-v2.4.0.7z](https://github.com/smbape/node-autoit-opencv-com/releases/download/v2.4.0/autoit-opencv-4.7.0-com-v2.4.0.7z) into a folder
32-
- Download and extract [autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.3.0.7z](https://github.com/smbape/node-autoit-mediapipe-com/releases/download/v0.3.0/autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.3.0.7z) into a folder
31+
- Download and extract [autoit-opencv-4.7.0-com-v2.4.1.7z](https://github.com/smbape/node-autoit-opencv-com/releases/download/v2.4.1/autoit-opencv-4.7.0-com-v2.4.1.7z) into a folder
32+
- Download and extract [autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.4.0.7z](https://github.com/smbape/node-autoit-mediapipe-com/releases/download/v0.4.0/autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.4.0.7z) into a folder
3333

3434
## Usage
3535

@@ -536,31 +536,31 @@ Install [7-zip](https://www.7-zip.org/download.html) and add the 7-zip folder to
536536
Then, in [Git Bash](https://gitforwindows.org/), execute the following commands
537537

538538
```sh
539-
# download autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.3.0.7z
540-
curl -L 'https://github.com/smbape/node-autoit-mediapipe-com/releases/download/v0.3.0/autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.3.0.7z' -o autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.3.0.7z
539+
# download autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.4.0.7z
540+
curl -L 'https://github.com/smbape/node-autoit-mediapipe-com/releases/download/v0.4.0/autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.4.0.7z' -o autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.4.0.7z
541541

542-
# extract the content of autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.3.0.7z into a folder named autoit-mediapipe-com
543-
7z x autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.3.0.7z -aoa -oautoit-mediapipe-com
542+
# extract the content of autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.4.0.7z into a folder named autoit-mediapipe-com
543+
7z x autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.4.0.7z -aoa -oautoit-mediapipe-com
544544

545-
# download autoit-opencv-4.7.0-com-v2.4.0.7z
546-
curl -L 'https://github.com/smbape/node-autoit-opencv-com/releases/download/v2.4.0/autoit-opencv-4.7.0-com-v2.4.0.7z' -o autoit-opencv-4.7.0-com-v2.4.0.7z
545+
# download autoit-opencv-4.7.0-com-v2.4.1.7z
546+
curl -L 'https://github.com/smbape/node-autoit-opencv-com/releases/download/v2.4.1/autoit-opencv-4.7.0-com-v2.4.1.7z' -o autoit-opencv-4.7.0-com-v2.4.1.7z
547547

548-
# extract the content of autoit-opencv-4.7.0-com-v2.4.0.7z into a folder named autoit-opencv-com
549-
7z x autoit-opencv-4.7.0-com-v2.4.0.7z -aoa -oautoit-opencv-com
548+
# extract the content of autoit-opencv-4.7.0-com-v2.4.1.7z into a folder named autoit-opencv-com
549+
7z x autoit-opencv-4.7.0-com-v2.4.1.7z -aoa -oautoit-opencv-com
550550

551551
# download opencv-4.7.0-windows.exe
552552
curl -L 'https://github.com/opencv/opencv/releases/download/4.7.0/opencv-4.7.0-windows.exe' -o opencv-4.7.0-windows.exe
553553

554554
# extract the content of opencv-4.7.0-windows.exe into a folder named opencv-4.7.0-windows
555555
./opencv-4.7.0-windows.exe -oopencv-4.7.0-windows -y
556556

557-
# download autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.3.0-src.zip
558-
curl -L 'https://github.com/smbape/node-autoit-mediapipe-com/archive/refs/tags/v0.3.0.zip' -o autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.3.0-src.zip
557+
# download autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.4.0-src.zip
558+
curl -L 'https://github.com/smbape/node-autoit-mediapipe-com/archive/refs/tags/v0.4.0.zip' -o autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.4.0-src.zip
559559

560-
# extract the examples folder of autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.3.0-src.zip
561-
7z x autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.3.0-src.zip -aoa 'node-autoit-mediapipe-com-0.3.0\examples'
562-
cp -rf node-autoit-mediapipe-com-0.3.0/* ./
563-
rm -rf node-autoit-mediapipe-com-0.3.0
560+
# extract the examples folder of autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.4.0-src.zip
561+
7z x autoit-mediapipe-0.9.3.0-opencv-4.7.0-com-v0.4.0-src.zip -aoa 'node-autoit-mediapipe-com-0.4.0\examples'
562+
cp -rf node-autoit-mediapipe-com-0.4.0/* ./
563+
rm -rf node-autoit-mediapipe-com-0.4.0
564564

565565
# download mediapipe-0.9.3.0-src.zip
566566
curl -L 'https://github.com/google/mediapipe/archive/refs/tags/v0.9.1.zip' -o mediapipe-0.9.3.0-src.zip
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
22
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
3-
<assemblyIdentity type="win32" name="mediapipe.sxs" version="0.3.0.0" />
3+
<assemblyIdentity type="win32" name="mediapipe.sxs" version="0.4.0.0" />
44

55
<dependency>
66
<dependentAssembly>
7-
<assemblyIdentity type="win32" name="autoit_opencv_com470.sxs" version="2.4.0.0" />
7+
<assemblyIdentity type="win32" name="autoit_opencv_com470.sxs" version="2.4.1.0" />
88
</dependentAssembly>
99
</dependency>
1010

1111
<dependency>
1212
<dependentAssembly>
13-
<assemblyIdentity type="win32" name="autoit_mediapipe_com-0.9.3.0-470.sxs" version="0.3.0.0" />
13+
<assemblyIdentity type="win32" name="autoit_mediapipe_com-0.9.3.0-470.sxs" version="0.4.0.0" />
1414
</dependentAssembly>
1515
</dependency>
1616
</assembly>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
22
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
3-
<assemblyIdentity type="win32" name="mediapiped.sxs" version="0.3.0.0" />
3+
<assemblyIdentity type="win32" name="mediapiped.sxs" version="0.4.0.0" />
44

55
<dependency>
66
<dependentAssembly>
7-
<assemblyIdentity type="win32" name="autoit_opencv_com470d.sxs" version="2.4.0.0" />
7+
<assemblyIdentity type="win32" name="autoit_opencv_com470d.sxs" version="2.4.1.0" />
88
</dependentAssembly>
99
</dependency>
1010

1111
<dependency>
1212
<dependentAssembly>
13-
<assemblyIdentity type="win32" name="autoit_mediapipe_com-0.9.3.0-470d.sxs" version="0.3.0.0" />
13+
<assemblyIdentity type="win32" name="autoit_mediapipe_com-0.9.3.0-470d.sxs" version="0.4.0.0" />
1414
</dependentAssembly>
1515
</dependency>
1616
</assembly>

examples/googlesamples/examples/face_detector/autoit/face_detector.au3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Returns:
112112
Image with bounding boxes.
113113
#ce
114114
Func visualize($image, $detection_result, $scale = 1.0)
115-
Local $MARGIN = 10 * $scale; pixels
115+
Local $MARGIN = 10 * $scale ; pixels
116116
Local $ROW_SIZE = 10 ; pixels
117117
Local $FONT_SIZE = $scale
118118
Local $FONT_THICKNESS = 2 * $scale

examples/googlesamples/examples/gesture_recognizer/autoit/gesture_recognizer.au3

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,17 @@ Func Main()
7171

7272
Local $image, $recognition_result, $top_gesture, $hands_landmarks
7373

74-
for $image_file_name in $IMAGE_FILENAMES
75-
; STEP 3: Load the input image.
76-
$image = $mp.Image.create_from_file($MEDIAPIPE_SAMPLES_DATA_PATH & "\" & $image_file_name)
74+
For $image_file_name In $IMAGE_FILENAMES
75+
; STEP 3: Load the input image.
76+
$image = $mp.Image.create_from_file($MEDIAPIPE_SAMPLES_DATA_PATH & "\" & $image_file_name)
7777

78-
; STEP 4: Recognize gestures in the input image.
79-
$recognition_result = $recognizer.recognize($image)
78+
; STEP 4: Recognize gestures in the input image.
79+
$recognition_result = $recognizer.recognize($image)
8080

81-
; STEP 5: Process the result. In this case, visualize it.
82-
$top_gesture = $recognition_result.gestures(0)[0]
83-
$hands_landmarks = $recognition_result.hand_landmarks
84-
display_image_with_gestures_and_hand_landmarks($image, $top_gesture, $hands_landmarks)
81+
; STEP 5: Process the result. In this case, visualize it.
82+
$top_gesture = $recognition_result.gestures(0)[0]
83+
$hands_landmarks = $recognition_result.hand_landmarks
84+
display_image_with_gestures_and_hand_landmarks($image, $top_gesture, $hands_landmarks)
8585
Next
8686

8787
$cv.waitKey()

examples/googlesamples/examples/hand_landmarker/autoit/hand_landmarker.au3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Func Main()
7272
; STEP 2: Create an ImageClassifier object.
7373
Local $base_options = $autoit.BaseOptions(_Mediapipe_Params("model_asset_path", $_MODEL_FILE))
7474
Local $options = $vision.HandLandmarkerOptions(_Mediapipe_Params("base_options", $base_options, _
75-
"num_hands", 2))
75+
"num_hands", 2))
7676
Local $detector = $vision.HandLandmarker.create_from_options($options)
7777

7878
; STEP 3: Load the input image.

examples/googlesamples/examples/object_detection/autoit/object_detector.au3

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Func Main()
6464
; STEP 2: Create an ObjectDetector object.
6565
Local $base_options = $autoit.BaseOptions(_Mediapipe_Params("model_asset_path", $_MODEL_FILE))
6666
Local $options = $vision.ObjectDetectorOptions(_Mediapipe_Params("base_options", $base_options, _
67-
"score_threshold", 0.5))
67+
"score_threshold", 0.5))
6868
Local $detector = $vision.ObjectDetector.create_from_options($options)
6969

7070
; STEP 3: Load the input image.
@@ -90,7 +90,7 @@ Returns:
9090
Image with bounding boxes.
9191
#ce
9292
Func visualize($image, $detection_result, $scale = 1.0)
93-
Local $MARGIN = 10 * $scale; pixels
93+
Local $MARGIN = 10 * $scale ; pixels
9494
Local $ROW_SIZE = 10 ; pixels
9595
Local $FONT_SIZE = $scale
9696
Local $FONT_THICKNESS = $scale

scripts/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const INCLUDED_EXT = [".au3", ".cs", ".ps1"];
5252
const EXCLUDED_FILES = ["csrun.ps1"];
5353
const INCLUDED_FILES = argv.slice(1);
5454

55-
eachOfLimit(["test", "examples/autoit", "examples/dotnet"], 1, (folder, i, next) => {
55+
eachOfLimit(["test", "examples/autoit", "examples/dotnet", "examples/googlesamples"], 1, (folder, i, next) => {
5656
explore(sysPath.join(cwd, folder), (path, stats, next) => {
5757
const file = sysPath.relative(cwd, path);
5858
const basename = sysPath.basename(file);

0 commit comments

Comments
 (0)