Training guide updates (#24033)

* add new images

* update boxes

* copy updates and fix checkmark spacing

* update wide images and boxes

* tune path and smaller triangle

* tune bounding boxes

* clean up

* same triangle as c3

* revert panda

* optimize images

* Revert "revert panda"

This reverts commit f66aac85a0.

* add comment

* add new step18

* final fixes

* pixel perfect
pull/24045/head
Shane Smiskol 2022-03-25 17:04:53 -07:00 committed by GitHub
parent bb36a1c8b2
commit 405ecbced3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
41 changed files with 32 additions and 29 deletions

View File

@ -2,3 +2,6 @@
echo "compressing training guide images" echo "compressing training guide images"
optipng -o7 -strip all training/* training_wide/* optipng -o7 -strip all training/* training_wide/*
# This can sometimes provide smaller images
# mogrify -quality 100 -format jpg training_wide/* training/*

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 688 KiB

After

Width:  |  Height:  |  Size: 914 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 743 KiB

After

Width:  |  Height:  |  Size: 947 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 708 KiB

After

Width:  |  Height:  |  Size: 919 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 720 KiB

After

Width:  |  Height:  |  Size: 793 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 894 KiB

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 718 KiB

After

Width:  |  Height:  |  Size: 818 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 612 KiB

After

Width:  |  Height:  |  Size: 707 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 821 KiB

After

Width:  |  Height:  |  Size: 871 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 897 KiB

After

Width:  |  Height:  |  Size: 1010 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 792 KiB

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 949 KiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 821 KiB

After

Width:  |  Height:  |  Size: 944 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 794 KiB

After

Width:  |  Height:  |  Size: 915 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 738 KiB

After

Width:  |  Height:  |  Size: 854 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 852 KiB

After

Width:  |  Height:  |  Size: 1001 KiB

View File

@ -23,7 +23,7 @@ void TrainingGuide::mouseReleaseEvent(QMouseEvent *e) {
if (boundingRect[currentIndex].contains(e->x(), e->y())) { if (boundingRect[currentIndex].contains(e->x(), e->y())) {
if (currentIndex == 9) { if (currentIndex == 9) {
const QRect yes = QRect(692, 842, 492, 148); const QRect yes = QRect(707, 804, 531, 164);
Params().putBool("RecordFront", yes.contains(e->x(), e->y())); Params().putBool("RecordFront", yes.contains(e->x(), e->y()));
} }
currentIndex += 1; currentIndex += 1;

View File

@ -25,52 +25,52 @@ private:
int currentIndex = 0; int currentIndex = 0;
// Bounding boxes for each training guide step // Bounding boxes for each training guide step
const QRect continueBtnStandard = {1610, 0, 310, 1080}; const QRect continueBtnStandard = {1620, 0, 300, 1080};
QVector<QRect> boundingRectStandard { QVector<QRect> boundingRectStandard {
QRect(650, 710, 720, 190), QRect(112, 804, 619, 166),
continueBtnStandard, continueBtnStandard,
continueBtnStandard, continueBtnStandard,
QRect(1442, 565, 230, 310), QRect(1476, 565, 253, 308),
QRect(1515, 562, 133, 60), QRect(1501, 529, 184, 108),
continueBtnStandard, continueBtnStandard,
QRect(1580, 630, 215, 130), QRect(1613, 665, 178, 153),
QRect(1210, 0, 485, 590), QRect(1220, 0, 420, 730),
QRect(1460, 400, 375, 210), QRect(1335, 499, 440, 147),
QRect(166, 842, 1019, 148), QRect(112, 820, 996, 148),
QRect(1460, 210, 300, 310), QRect(1412, 199, 316, 333),
continueBtnStandard, continueBtnStandard,
QRect(1375, 80, 545, 1000), QRect(1237, 63, 683, 1017),
continueBtnStandard, continueBtnStandard,
QRect(1610, 130, 280, 800), QRect(1455, 110, 313, 860),
QRect(1385, 485, 400, 270), QRect(1253, 519, 383, 228),
continueBtnStandard, continueBtnStandard,
continueBtnStandard, continueBtnStandard,
QRect(1036, 769, 718, 189), QRect(630, 804, 626, 164),
QRect(201, 769, 718, 189), QRect(108, 804, 426, 164),
}; };
const QRect continueBtnWide = {1850, 0, 310, 1080}; const QRect continueBtnWide = {1840, 0, 320, 1080};
QVector<QRect> boundingRectWide { QVector<QRect> boundingRectWide {
QRect(654, 721, 718, 189), QRect(112, 804, 618, 164),
continueBtnWide, continueBtnWide,
continueBtnWide, continueBtnWide,
QRect(1690, 570, 165, 300), QRect(1641, 558, 210, 313),
QRect(1690, 560, 133, 60), QRect(1662, 528, 184, 108),
continueBtnWide, continueBtnWide,
QRect(1820, 630, 180, 155), QRect(1814, 621, 211, 170),
QRect(1360, 0, 460, 620), QRect(1350, 0, 497, 755),
QRect(1570, 400, 375, 215), QRect(1553, 516, 406, 112),
QRect(167, 842, 1018, 148), QRect(112, 804, 1126, 164),
QRect(1610, 210, 295, 310), QRect(1598, 199, 316, 333),
continueBtnWide, continueBtnWide,
QRect(1555, 90, 610, 990), QRect(1364, 90, 796, 990),
continueBtnWide, continueBtnWide,
QRect(1600, 140, 280, 790), QRect(1593, 114, 318, 853),
QRect(1385, 490, 750, 270), QRect(1379, 511, 391, 243),
continueBtnWide, continueBtnWide,
continueBtnWide, continueBtnWide,
QRect(1138, 755, 718, 189), QRect(630, 804, 626, 164),
QRect(303, 755, 718, 189), QRect(108, 804, 426, 164),
}; };
QString img_path; QString img_path;