Open moebiussurfing opened 2 years ago
can you try yarn electron-build-win
https://github.com/thomasgeissl/popeye/blob/master/package.json#L15
it compiled. It creates that exe: D:_CODE_JS\JS 2022\popeye\dist\win-unpacked\popeye.exe
But the cam image is not appearing. should I must run the other steps / PowerShell windows be opened too? Or just to run that exe?
--
I tried to run
yarn dev #to start the frontend dev process
and then the exe but it's the same:
no cam drawing.
--
If I run on two different PowerShell windows:
yarn dev #to start the frontend dev process
yarn electron-dev #to start the electron dev process
It works.
--
The compilation log:
PS D:\_CODE\_JS\JS 2022\popeye> yarn electron-build-win
yarn run v1.22.19
$ yarn build && electron-builder -w -c.extraMetadata.main=dist/electron.js
$ vite build --base=./
vite v3.0.4 building for production...
✓ 11422 modules transformed.
dist/index.html 0.74 KiB
dist/assets/index.6d606818.css 0.01 KiB / gzip: 0.03 KiB
dist/assets/index.efef8aa3.js 1185.48 KiB / gzip: 339.21 KiB
(!) Some chunks are larger than 500 KiB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/guide/en/#outputmanualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
• electron-builder version=23.1.0 os=10.0.19044
• loaded configuration file=package.json ("build" field)
• description is missed in the package.json appPackageFile=D:\_CODE\_JS\JS 2022\popeye\package.json
• author is missed in the package.json appPackageFile=D:\_CODE\_JS\JS 2022\popeye\package.json
• writing effective config file=dist\builder-effective-config.yaml
• packaging platform=win32 arch=x64 electron=19.0.10 appOutDir=dist\win-unpacked
• downloading url=https://github.com/electron/electron/releases/download/v19.0.10/electron-v19.0.10-win32-x64.zip size=88 MB parts=8
• downloaded url=https://github.com/electron/electron/releases/download/v19.0.10/electron-v19.0.10-win32-x64.zip duration=11.21s
• default Electron icon is used reason=application icon is not set
• downloading url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB parts=1
• downloaded url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=3.859s
• building target=nsis file=dist\popeye Setup 0.0.0.exe archs=x64 oneClick=true perMachine=false
• downloading url=https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.4.1/nsis-3.0.4.1.7z size=1.3 MB parts=1
• downloaded url=https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.4.1/nsis-3.0.4.1.7z duration=1.419s
• downloading url=https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-resources-3.4.1/nsis-resources-3.4.1.7z size=731 kB parts=1
• downloaded url=https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-resources-3.4.1/nsis-resources-3.4.1.7z duration=1.321s
• building block map blockMapFile=dist\popeye Setup 0.0.0.exe.blockmap
Done in 100.56s.
yarn dev #to start the frontend dev process
yarn electron-dev #to start the electron dev process
these are the steps for starting the dev process. i havent fixed it to only execute one command.
once you build it with yarn electron-build-win
, you should be able to just run the app with a simple double click, or maybe start it from the ps to get the app logs.
maybe there is an issue with permissions. or i fucked it up when i tried to integrate the device chooser. can you try removing the videoConstraints in MPose and MHands. maybe that fixes it, it should use then the default camera.
i will have a look later.
i just tested with an external camera and it seems to work.
the only strange thing i encountered was that the image is not updating when no pose is recognized. if the camera is not user facing it stays white. i guess the overlay with the drawn landmarks only gets updated on change.
edit: tested on osx btw
edit: the blank image when no poses are recognized should be fixed with the latest commit