bhowiebkr / laser-level-webcam

A tool for measuring height in microns of arbitrary sized objects using a webcam and a laser level.
MIT License
141 stars 13 forks source link

Error when running on Apple Silicon #11

Closed nanoplane closed 1 year ago

nanoplane commented 1 year ago

not running (camera view is all black) when running on Apple Silicon with the cheap camera I bought.. Camera works on other apps, but not on laser-level... I get the following error in the terminal: Videotoolbox desn't support cvPixelFormat: 2037741171 "yuvs" Camera pix format: Format_YUYV

bhowiebkr commented 1 year ago

Looks to be the camera pixel format being the issue. I've never heard of YUVS before. YUV is common. Not sure what the S stands for. I'll see if I can make sense of it tonight.

nanoplane commented 1 year ago

Weird thing is tha it works fine on my intel MacBook Pro

nanoplane commented 1 year ago

Also works fine running on Windows 11 (under Parallels) on my M2Max MBPro... but not under Mac OS on the same machine.. I suspect it's a code version thing..

bhowiebkr commented 1 year ago

I have no way of testing it on apple silicon. It is most likely related to it being incompatible with QT which is what the tool is built with. I would suggest stick with intel/amd based machines to use this tool