From 52b5a784d78051254c0363ad31d8a53c36590837 Mon Sep 17 00:00:00 2001 From: Thierry Nischelwitzer Date: Thu, 2 Nov 2023 15:07:39 +0100 Subject: [PATCH] Bugfix/install issues (#140) * update packages and only headless, update install instructions * skip lock and update readme * remove pipenv --------- Co-authored-by: Thierry Nischelwitzer --- CHANGELOG.MD | 5 + Pipfile | 17 --- Pipfile.lock | 313 --------------------------------------------------- README.md | 30 ++++- package.json | 9 +- 5 files changed, 33 insertions(+), 341 deletions(-) delete mode 100644 Pipfile delete mode 100644 Pipfile.lock diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 8ea076f..339cbda 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,3 +1,8 @@ +# 2.0.1 (2023-11-01) + +- After a lot of install issues. We removed `pipenv` again and changed the install-instructions + - For Bookworm we added an extra install step for an virtual environment + # 2.0.0 (2023-10-01) ## Breaking Changes diff --git a/Pipfile b/Pipfile deleted file mode 100644 index 8fc3b0e..0000000 --- a/Pipfile +++ /dev/null @@ -1,17 +0,0 @@ -[[source]] -url = "https://pypi.org/simple" -verify_ssl = true -name = "pypi" - -[packages] -face-recognition = "==1.3.0" -numpy = "==1.25.2" -opencv-python = "==4.8.0.74" -dlib = "*" -picamera2 = "*" - -[dev-packages] -black = "*" - -[requires] -python_version = "3" diff --git a/Pipfile.lock b/Pipfile.lock deleted file mode 100644 index ff3d605..0000000 --- a/Pipfile.lock +++ /dev/null @@ -1,313 +0,0 @@ -{ - "_meta": { - "hash": { - "sha256": "91be164b6ce8e08a00f2012df60f0645024f1da485d45812b2be87d1e0972e4f" - }, - "pipfile-spec": 6, - "requires": { - "python_version": "3" - }, - "sources": [ - { - "name": "pypi", - "url": "https://pypi.org/simple", - "verify_ssl": true - } - ] - }, - "default": { - "click": { - "hashes": [ - "sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28", - "sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de" - ], - "markers": "python_version >= '3.7'", - "version": "==8.1.7" - }, - "dlib": { - "hashes": [ - "sha256:2d4f618073bc6b297aa01ce05595a2d32b5b37e69cafd99f796e77346f6dcfb5" - ], - "index": "pypi", - "version": "==19.24.2" - }, - "face-recognition": { - "hashes": [ - "sha256:5e5efdd1686aa566af0d3cc1313b131e4b197657a8ffd03669e6d3fad92705ec", - "sha256:c543e91c8cfbf24d19db04e511ebbddcb23894bcee510133729ee78e9f4b5e83" - ], - "index": "pypi", - "version": "==1.3.0" - }, - "face-recognition-models": { - "hashes": [ - "sha256:b79bd200a88c87c9a9d446c990ae71c5a626d1f3730174e6d570157ff1d896cf" - ], - "version": "==0.3.0" - }, - "numpy": { - "hashes": [ - "sha256:0d60fbae8e0019865fc4784745814cff1c421df5afee233db6d88ab4f14655a2", - "sha256:1a1329e26f46230bf77b02cc19e900db9b52f398d6722ca853349a782d4cff55", - "sha256:1b9735c27cea5d995496f46a8b1cd7b408b3f34b6d50459d9ac8fe3a20cc17bf", - "sha256:2792d23d62ec51e50ce4d4b7d73de8f67a2fd3ea710dcbc8563a51a03fb07b01", - "sha256:3e0746410e73384e70d286f93abf2520035250aad8c5714240b0492a7302fdca", - "sha256:4c3abc71e8b6edba80a01a52e66d83c5d14433cbcd26a40c329ec7ed09f37901", - "sha256:5883c06bb92f2e6c8181df7b39971a5fb436288db58b5a1c3967702d4278691d", - "sha256:5c97325a0ba6f9d041feb9390924614b60b99209a71a69c876f71052521d42a4", - "sha256:60e7f0f7f6d0eee8364b9a6304c2845b9c491ac706048c7e8cf47b83123b8dbf", - "sha256:76b4115d42a7dfc5d485d358728cdd8719be33cc5ec6ec08632a5d6fca2ed380", - "sha256:7dc869c0c75988e1c693d0e2d5b26034644399dd929bc049db55395b1379e044", - "sha256:834b386f2b8210dca38c71a6e0f4fd6922f7d3fcff935dbe3a570945acb1b545", - "sha256:8b77775f4b7df768967a7c8b3567e309f617dd5e99aeb886fa14dc1a0791141f", - "sha256:90319e4f002795ccfc9050110bbbaa16c944b1c37c0baeea43c5fb881693ae1f", - "sha256:b79e513d7aac42ae918db3ad1341a015488530d0bb2a6abcbdd10a3a829ccfd3", - "sha256:bb33d5a1cf360304754913a350edda36d5b8c5331a8237268c48f91253c3a364", - "sha256:bec1e7213c7cb00d67093247f8c4db156fd03075f49876957dca4711306d39c9", - "sha256:c5462d19336db4560041517dbb7759c21d181a67cb01b36ca109b2ae37d32418", - "sha256:c5652ea24d33585ea39eb6a6a15dac87a1206a692719ff45d53c5282e66d4a8f", - "sha256:d7806500e4f5bdd04095e849265e55de20d8cc4b661b038957354327f6d9b295", - "sha256:db3ccc4e37a6873045580d413fe79b68e47a681af8db2e046f1dacfa11f86eb3", - "sha256:dfe4a913e29b418d096e696ddd422d8a5d13ffba4ea91f9f60440a3b759b0187", - "sha256:eb942bfb6f84df5ce05dbf4b46673ffed0d3da59f13635ea9b926af3deb76926", - "sha256:f08f2e037bba04e707eebf4bc934f1972a315c883a9e0ebfa8a7756eabf9e357", - "sha256:fd608e19c8d7c55021dffd43bfe5492fab8cc105cc8986f813f8c3c048b38760" - ], - "index": "pypi", - "version": "==1.25.2" - }, - "opencv-python": { - "hashes": [ - "sha256:009e3ce356a0cd2d7423723e00a32fd3d3cc5bb5970ed27a9a1f8a8f221d1db5", - "sha256:038ba7075e55cb8e2846663ae970f0fb776a45b48ee69a887bf4ee15e2570083", - "sha256:31d0d59fc8fdf703de4cec46c79b9f8d026fdde9d23d6e2e6a66809feeebbda9", - "sha256:43dd0dfe331fb95767af581bf3b2781d7a72cf6560ddf2f55949fe547f3e5c9f", - "sha256:458e5dc377f15fcf769d80314f3d885bd95457b1a2891bee67df2eb24a1d3a52", - "sha256:66eadb5882ee56848b67f9fb57aadcaca2f4c9d9d00a0ef11043041925b51291", - "sha256:8fe0018d0056a5187c57120b6b3f6c3e706c13b45c48e54e86d245a9a16fac84" - ], - "index": "pypi", - "version": "==4.8.0.74" - }, - "picamera2": { - "hashes": [ - "sha256:13a5c3d672e2f10aa2e8358c03dfdaa298fbcc750b62a64f851e3f04460573ae", - "sha256:81018413dd5d99f288cf2bbefb4a76c138b31242ad514b2c47f9ee2563ecea9b" - ], - "index": "pypi", - "version": "==0.3.12" - }, - "pidng": { - "hashes": [ - "sha256:560eb008086f8a715fd9e1ab998817a7d4c8500a7f161b9ce6af5ab27501f82c" - ], - "markers": "python_version >= '3.6'", - "version": "==4.0.9" - }, - "piexif": { - "hashes": [ - "sha256:3bc435d171720150b81b15d27e05e54b8abbde7b4242cddd81ef160d283108b6", - "sha256:83cb35c606bf3a1ea1a8f0a25cb42cf17e24353fd82e87ae3884e74a302a5f1b" - ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", - "version": "==1.1.3" - }, - "pillow": { - "hashes": [ - "sha256:00e65f5e822decd501e374b0650146063fbb30a7264b4d2744bdd7b913e0cab5", - "sha256:040586f7d37b34547153fa383f7f9aed68b738992380ac911447bb78f2abe530", - "sha256:0b6eb5502f45a60a3f411c63187db83a3d3107887ad0d036c13ce836f8a36f1d", - "sha256:1ce91b6ec08d866b14413d3f0bbdea7e24dfdc8e59f562bb77bc3fe60b6144ca", - "sha256:1f62406a884ae75fb2f818694469519fb685cc7eaff05d3451a9ebe55c646891", - "sha256:22c10cc517668d44b211717fd9775799ccec4124b9a7f7b3635fc5386e584992", - "sha256:3400aae60685b06bb96f99a21e1ada7bc7a413d5f49bce739828ecd9391bb8f7", - "sha256:349930d6e9c685c089284b013478d6f76e3a534e36ddfa912cde493f235372f3", - "sha256:368ab3dfb5f49e312231b6f27b8820c823652b7cd29cfbd34090565a015e99ba", - "sha256:38250a349b6b390ee6047a62c086d3817ac69022c127f8a5dc058c31ccef17f3", - "sha256:3a684105f7c32488f7153905a4e3015a3b6c7182e106fe3c37fbb5ef3e6994c3", - "sha256:3a82c40d706d9aa9734289740ce26460a11aeec2d9c79b7af87bb35f0073c12f", - "sha256:3b08d4cc24f471b2c8ca24ec060abf4bebc6b144cb89cba638c720546b1cf538", - "sha256:3ed64f9ca2f0a95411e88a4efbd7a29e5ce2cea36072c53dd9d26d9c76f753b3", - "sha256:3f07ea8d2f827d7d2a49ecf1639ec02d75ffd1b88dcc5b3a61bbb37a8759ad8d", - "sha256:520f2a520dc040512699f20fa1c363eed506e94248d71f85412b625026f6142c", - "sha256:5c6e3df6bdd396749bafd45314871b3d0af81ff935b2d188385e970052091017", - "sha256:608bfdee0d57cf297d32bcbb3c728dc1da0907519d1784962c5f0c68bb93e5a3", - "sha256:685ac03cc4ed5ebc15ad5c23bc555d68a87777586d970c2c3e216619a5476223", - "sha256:76de421f9c326da8f43d690110f0e79fe3ad1e54be811545d7d91898b4c8493e", - "sha256:76edb0a1fa2b4745fb0c99fb9fb98f8b180a1bbceb8be49b087e0b21867e77d3", - "sha256:7be600823e4c8631b74e4a0d38384c73f680e6105a7d3c6824fcf226c178c7e6", - "sha256:81ff539a12457809666fef6624684c008e00ff6bf455b4b89fd00a140eecd640", - "sha256:88af2003543cc40c80f6fca01411892ec52b11021b3dc22ec3bc9d5afd1c5334", - "sha256:8c11160913e3dd06c8ffdb5f233a4f254cb449f4dfc0f8f4549eda9e542c93d1", - "sha256:8f8182b523b2289f7c415f589118228d30ac8c355baa2f3194ced084dac2dbba", - "sha256:9211e7ad69d7c9401cfc0e23d49b69ca65ddd898976d660a2fa5904e3d7a9baa", - "sha256:92be919bbc9f7d09f7ae343c38f5bb21c973d2576c1d45600fce4b74bafa7ac0", - "sha256:9c82b5b3e043c7af0d95792d0d20ccf68f61a1fec6b3530e718b688422727396", - "sha256:9f7c16705f44e0504a3a2a14197c1f0b32a95731d251777dcb060aa83022cb2d", - "sha256:9fb218c8a12e51d7ead2a7c9e101a04982237d4855716af2e9499306728fb485", - "sha256:a74ba0c356aaa3bb8e3eb79606a87669e7ec6444be352870623025d75a14a2bf", - "sha256:b4f69b3700201b80bb82c3a97d5e9254084f6dd5fb5b16fc1a7b974260f89f43", - "sha256:bc2ec7c7b5d66b8ec9ce9f720dbb5fa4bace0f545acd34870eff4a369b44bf37", - "sha256:c189af0545965fa8d3b9613cfdb0cd37f9d71349e0f7750e1fd704648d475ed2", - "sha256:c1fbe7621c167ecaa38ad29643d77a9ce7311583761abf7836e1510c580bf3dd", - "sha256:c7cf14a27b0d6adfaebb3ae4153f1e516df54e47e42dcc073d7b3d76111a8d86", - "sha256:c9f72a021fbb792ce98306ffb0c348b3c9cb967dce0f12a49aa4c3d3fdefa967", - "sha256:cd25d2a9d2b36fcb318882481367956d2cf91329f6892fe5d385c346c0649629", - "sha256:ce543ed15570eedbb85df19b0a1a7314a9c8141a36ce089c0a894adbfccb4568", - "sha256:ce7b031a6fc11365970e6a5686d7ba8c63e4c1cf1ea143811acbb524295eabed", - "sha256:d35e3c8d9b1268cbf5d3670285feb3528f6680420eafe35cccc686b73c1e330f", - "sha256:d50b6aec14bc737742ca96e85d6d0a5f9bfbded018264b3b70ff9d8c33485551", - "sha256:d5d0dae4cfd56969d23d94dc8e89fb6a217be461c69090768227beb8ed28c0a3", - "sha256:d5db32e2a6ccbb3d34d87c87b432959e0db29755727afb37290e10f6e8e62614", - "sha256:d72e2ecc68a942e8cf9739619b7f408cc7b272b279b56b2c83c6123fcfa5cdff", - "sha256:d737a602fbd82afd892ca746392401b634e278cb65d55c4b7a8f48e9ef8d008d", - "sha256:d80cf684b541685fccdd84c485b31ce73fc5c9b5d7523bf1394ce134a60c6883", - "sha256:db24668940f82321e746773a4bc617bfac06ec831e5c88b643f91f122a785684", - "sha256:dbc02381779d412145331789b40cc7b11fdf449e5d94f6bc0b080db0a56ea3f0", - "sha256:dffe31a7f47b603318c609f378ebcd57f1554a3a6a8effbc59c3c69f804296de", - "sha256:edf4392b77bdc81f36e92d3a07a5cd072f90253197f4a52a55a8cec48a12483b", - "sha256:efe8c0681042536e0d06c11f48cebe759707c9e9abf880ee213541c5b46c5bf3", - "sha256:f31f9fdbfecb042d046f9d91270a0ba28368a723302786c0009ee9b9f1f60199", - "sha256:f88a0b92277de8e3ca715a0d79d68dc82807457dae3ab8699c758f07c20b3c51", - "sha256:faaf07ea35355b01a35cb442dd950d8f1bb5b040a7787791a535de13db15ed90" - ], - "markers": "python_version >= '3.8'", - "version": "==10.0.0" - }, - "python-prctl": { - "hashes": [ - "sha256:b4ca9a25a7d4f1ace4fffd1f3a2e64ef5208fe05f929f3edd5e27081ca7e67ce" - ], - "version": "==1.8.1" - }, - "simplejpeg": { - "hashes": [ - "sha256:14c65198c56860cf99a63375bec721f55b6281984ca9bce3418282e950e5f049", - "sha256:17c9d5b194f561b2068da093f40266f8819977ca23e036a49568886043b21116", - "sha256:226dfbc199a94fb799cd24897d3b2dae5e8db42ac8b013f8b86325919c037a37", - "sha256:2ca6745db0429c467901d280b3f40e607012a7440fa9a936b1152702dd90ac16", - "sha256:3667ff7c18bc0807324cbddcd6431187d0cc5307fe6508282c826a397cb42dbb", - "sha256:4d309265eda597d92b6bde6fa860cef5aa518effe02a38a34cec03abf33ba29b", - "sha256:54a88e86aa757939dc2fb704713887a88862d8000504c0aa950c9ffb470a0a73", - "sha256:662c595cde050c18fdeb5e0ecc2584e87f55c4c61c833044f9ebe1394f38fb27", - "sha256:695018277082e3d5321cc07c89c2872b19bec7194f77ed8a99e403dbd72cf82d", - "sha256:775f55e5d3dd02e5cc99ecadd496b7fa81da72455de5433e53955ce9f0038583", - "sha256:77e670afea451cbbca955ce0efea556ebcecb0fa682f877b4c703217fff9f55f", - "sha256:82e3e7b1148e878732690b3367fd87d4e259a17658328e0b262c7d4977015fc4", - "sha256:83262e1cd6d6ff9607d42b79ec9fb48eca81a7513615362b8b4f121b85f17e92", - "sha256:889611167d62473231e070b75ecbcefc7f36a2c8c35da870f6ac0c7d8a50c49a", - "sha256:8fcd71e71bb9bf444eab2c69f0d6d82ca571019a23c0295faac2f52ec40bffca", - "sha256:95067a1f0b85acdacd087488fe471fe75d07fa331f5f94755e8a39675fcddcde", - "sha256:961449537dbc496b91c509a0f4f5debf5545e9d228ebec7abeec01e2bff145bc", - "sha256:97a46c42dd5c96313b1c2cad4d56f0ee892767b71b5f1702386256082c1dd4dd", - "sha256:a79a14b74cfb5dadaf722d47157e937fd2d82f044546a55c7c7543934297c50b", - "sha256:b1cd5876b35b9bf9ad12f7bc744acede0fa6f37cdb6867c69eb5f1eb36b96366", - "sha256:cca8e5f37b526b4152e91b036ecc616c0ae486de74b3840184d1df388dccb285", - "sha256:cd2a01ff393a13c152275c817df479b093bd0c7db464cd66c477032f5b68ce4e", - "sha256:d280dd6cb089c66ea82e6ef1d81bffae97ebb7f0fb6ffbeb56ea46afb9fda780", - "sha256:db3683a0bbe654c41517f5663c335f21f44650a2348c37d73697b6f18e5f0445", - "sha256:e0bffc4c09a8088cd09e36464f5c17439e237b494c9c0d1fd34ea71d902d3ba0", - "sha256:e4bf9b8879a59df8848aa235bc81cb8fc82b2d23f4c5c14d5340ae09292cd3e6", - "sha256:e9e5ec91440106daaf963f6c44bf35731e5eb2c4edb63ce53a415e8db132e7bb", - "sha256:f0f780f89bee1a162c43c988fa79cd2989fdca0948cb89a5238df760f17525c9", - "sha256:f41412ef99cf3e94536d0fb731b19d8a0530e92ee61e1646d553be4960f5eb2b", - "sha256:fad0186d77756624becaa5e58bc2c6fb3c2d8f303d5518416d5867f74f4d8fbb" - ], - "markers": "python_version >= '3.7'", - "version": "==1.7.1" - }, - "v4l2-python3": { - "hashes": [ - "sha256:34737ac0ef5bd3167d29379276e0881f6e0539db9e3e881a5df7cbec6c264391", - "sha256:b7ae81ce7e2908498bd7e9bb978d5ed9ab70c12ba79c45ddda65d0a302422f9f" - ], - "version": "==0.3.2" - } - }, - "develop": { - "black": { - "hashes": [ - "sha256:01ede61aac8c154b55f35301fac3e730baf0c9cf8120f65a9cd61a81cfb4a0c3", - "sha256:022a582720b0d9480ed82576c920a8c1dde97cc38ff11d8d8859b3bd6ca9eedb", - "sha256:25cc308838fe71f7065df53aedd20327969d05671bac95b38fdf37ebe70ac087", - "sha256:27eb7a0c71604d5de083757fbdb245b1a4fae60e9596514c6ec497eb63f95320", - "sha256:327a8c2550ddc573b51e2c352adb88143464bb9d92c10416feb86b0f5aee5ff6", - "sha256:47e56d83aad53ca140da0af87678fb38e44fd6bc0af71eebab2d1f59b1acf1d3", - "sha256:501387a9edcb75d7ae8a4412bb8749900386eaef258f1aefab18adddea1936bc", - "sha256:552513d5cd5694590d7ef6f46e1767a4df9af168d449ff767b13b084c020e63f", - "sha256:5c4bc552ab52f6c1c506ccae05681fab58c3f72d59ae6e6639e8885e94fe2587", - "sha256:642496b675095d423f9b8448243336f8ec71c9d4d57ec17bf795b67f08132a91", - "sha256:6d1c6022b86f83b632d06f2b02774134def5d4d4f1dac8bef16d90cda18ba28a", - "sha256:7f3bf2dec7d541b4619b8ce526bda74a6b0bffc480a163fed32eb8b3c9aed8ad", - "sha256:831d8f54c3a8c8cf55f64d0422ee875eecac26f5f649fb6c1df65316b67c8926", - "sha256:8417dbd2f57b5701492cd46edcecc4f9208dc75529bcf76c514864e48da867d9", - "sha256:86cee259349b4448adb4ef9b204bb4467aae74a386bce85d56ba4f5dc0da27be", - "sha256:893695a76b140881531062d48476ebe4a48f5d1e9388177e175d76234ca247cd", - "sha256:9fd59d418c60c0348505f2ddf9609c1e1de8e7493eab96198fc89d9f865e7a96", - "sha256:ad0014efc7acf0bd745792bd0d8857413652979200ab924fbf239062adc12491", - "sha256:b5b0ee6d96b345a8b420100b7d71ebfdd19fab5e8301aff48ec270042cd40ac2", - "sha256:c333286dc3ddca6fdff74670b911cccedacb4ef0a60b34e491b8a67c833b343a", - "sha256:f9062af71c59c004cd519e2fb8f5d25d39e46d3af011b41ab43b9c74e27e236f", - "sha256:fb074d8b213749fa1d077d630db0d5f8cc3b2ae63587ad4116e8a436e9bbe995" - ], - "index": "pypi", - "version": "==23.7.0" - }, - "click": { - "hashes": [ - "sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28", - "sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de" - ], - "markers": "python_version >= '3.7'", - "version": "==8.1.7" - }, - "mypy-extensions": { - "hashes": [ - "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d", - "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782" - ], - "markers": "python_version >= '3.5'", - "version": "==1.0.0" - }, - "packaging": { - "hashes": [ - "sha256:994793af429502c4ea2ebf6bf664629d07c1a9fe974af92966e4b8d2df7edc61", - "sha256:a392980d2b6cffa644431898be54b0045151319d1e7ec34f0cfed48767dd334f" - ], - "markers": "python_version >= '3.7'", - "version": "==23.1" - }, - "pathspec": { - "hashes": [ - "sha256:1d6ed233af05e679efb96b1851550ea95bbb64b7c490b0f5aa52996c11e92a20", - "sha256:e0d8d0ac2f12da61956eb2306b69f9469b42f4deb0f3cb6ed47b9cce9996ced3" - ], - "markers": "python_version >= '3.7'", - "version": "==0.11.2" - }, - "platformdirs": { - "hashes": [ - "sha256:b45696dab2d7cc691a3226759c0d3b00c47c8b6e293d96f6436f733303f77f6d", - "sha256:d7c24979f292f916dc9cbf8648319032f551ea8c49a4c9bf2fb556a02070ec1d" - ], - "markers": "python_version >= '3.7'", - "version": "==3.10.0" - }, - "tomli": { - "hashes": [ - "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc", - "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f" - ], - "markers": "python_version < '3.11'", - "version": "==2.0.1" - }, - "typing-extensions": { - "hashes": [ - "sha256:440d5dd3af93b060174bf433bccd69b0babc3b15b1a8dca43789fd7f61514b36", - "sha256:b75ddc264f0ba5615db7ba217daeb99701ad295353c45f9e95963337ceeeffb2" - ], - "markers": "python_version < '3.10'", - "version": "==4.7.1" - } - } -} diff --git a/README.md b/README.md index cb8df77..0922893 100644 --- a/README.md +++ b/README.md @@ -15,18 +15,38 @@ This module works in the background, and so no screenshots are available. - [face_recognition](#fr) - [numpy](#numpy) - [picamera2](#picamera2) +- [libcap-dev](#libcap-dev) ## Installation -The installation is much more simplified now. You can run `npm install` to install all the node packages and after that it will install all packages with pip. This can take a while to compile the whole opencv stuff. +The installation is much more simplified now. You can run `npm ci` to install all the node packages and after that it will install all packages with pip. This can take a while to compile the whole opencv stuff. Be sure that your raspberry pi has enough cooling to do this job, it will be heavy used. -But that this is working you need installed following before: +But that this is working you need installed system wide tools before: -- node +- node with nvm + - [install instructions](https://github.com/nvm-sh/nvm#installing-and-updating) + - run `nvm install --lts` to install latest LTS version + - run `nvm use --lts` to use latest LTS version - pip -- pipenv + - `sudo apt install python3-pip` +- libcap-dev + - `sudo apt install libcap-dev` +- install python dependencies + - If you working with Bookworm you need to create first an virtual environment, please have a look in the next chapter + - `pip install face-recognition numpy dlib picamera2 opencv-python-headless` + +### Some additional steps for Bookworm and above to run it with an virtual environment + +If you want/need to install it with an virtual environment, you need to do following steps before you install the packages with pip + +- create environment with `python3 -m venv ~/python-facereco` +- activate environment with `source ~/python-facereco/bin/activate` +- install pip packages with `pip install face-recognition numpy dlib picamera2 opencv-python-headless` +- Because some libraries uses global installed libs which are not available with pip, you need to change the config of your virtual environment + - `nano ~/python-facereco/pyvenv.cfg` + - Change line `include-system-site-packages = false` to `include-system-site-packages = true` ## Install the Module @@ -121,7 +141,7 @@ To setup the module in MagicMirror², add the following section to the `config.j detectionMethod: 'hog', // how fast in ms should the modules hide and show (face effect) animationSpeed: 0, - // Path to Python to run the face recognition (null / '' means default path) + // Path to Python to run the face recognition (null / '' means default path, with Bookworm you need to set the virutal environment like /home/youruser/python-facereco/bin/python3. You can also find out the correct path if you are activated the virtual environment and run "which python3") pythonPath: null, // Boolean to toggle welcomeMessage welcomeMessage: true, diff --git a/package.json b/package.json index 3425d77..41b9e76 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mmm-face-reco-dnn", - "version": "2.0.0", + "version": "2.0.1", "description": "Face Recognition with Open CV and Deep Neural Network", "main": "MMM-Face-Reco-DNN.js", "repository": { @@ -25,11 +25,8 @@ "scripts": { "lint": "eslint .", "prettier": "prettier --write **/*.js", - "black": "pipenv run black **/*.py", - "pipenv-location": "pipenv --venv", - "encode": "pipenv run python3 tools/encode.py -i dataset -e model/encodings.pickle", - "recognition": "pipenv run python3 tools/recognition.py -e model/encodings.pickle -c model/haarcascade_frontalface_default.xml", - "postinstall": "pipenv install --site-packages" + "encode": "python tools/encode.py -i dataset -e model/encodings.pickle", + "recognition": "python tools/recognition.py -e model/encodings.pickle -c model/haarcascade_frontalface_default.xml" }, "dependencies": { "python-shell": "5.0.0",