Web Cam Error - Could not acquired image from webcam feed


Getting Error: could not acquired image from webcam feed.


There’s a good chance I don’t have this configured properly. Any idea where to look for the solution?

Web logs show the following:

at Tue 2024-09-24 21:17:01 CDT, ends at Thu 2024-09-26 13:51:28 CDT. –
Sep 26 13:50:59 mycodo python[2661]: File “/home/smguth/Mycodo/mycodo/utils/influx.py”, line 301, in query_string
Sep 26 13:50:59 mycodo python[2661]: ret_value = query_flux(
Sep 26 13:50:59 mycodo python[2661]: File “/home/smguth/Mycodo/mycodo/utils/influx.py”, line 185, in query_flux
Sep 26 13:50:59 mycodo python[2661]: from influxdb_client import InfluxDBClient
Sep 26 13:50:59 mycodo python[2661]: File “/var/mycodo-root/env/lib/python3.9/site-packages/influxdb_client/init.py”, line 382, in
Sep 26 13:50:59 mycodo python[2661]: from influxdb_client.client.delete_api import DeleteApi
Sep 26 13:50:59 mycodo python[2661]: File “/var/mycodo-root/env/lib/python3.9/site-packages/influxdb_client/client/delete_api.py”, line 7, in
Sep 26 13:50:59 mycodo python[2661]: from influxdb_client.client._base import _BaseDeleteApi
Sep 26 13:50:59 mycodo python[2661]: File “/var/mycodo-root/env/lib/python3.9/site-packages/influxdb_client/client/_base.py”, line 22, in
Sep 26 13:50:59 mycodo python[2661]: from influxdb_client.client.write.dataframe_serializer import DataframeSerializer
Sep 26 13:50:59 mycodo python[2661]: File “/var/mycodo-root/env/lib/python3.9/site-packages/influxdb_client/client/write/dataframe_serializer.py”, line 12, in
Sep 26 13:50:59 mycodo python[2661]: from influxdb_client.client.write.point import _ESCAPE_KEY, _ESCAPE_STRING, _ESCAPE_MEASUREMENT, DEFAULT_WRITE_PRECISION
Sep 26 13:50:59 mycodo python[2661]: File “/var/mycodo-root/env/lib/python3.9/site-packages/influxdb_client/client/write/point.py”, line 40, in
Sep 26 13:50:59 mycodo python[2661]: import numpy as np
Sep 26 13:50:59 mycodo python[2661]: File “/var/mycodo-root/env/lib/python3.9/site-packages/numpy/init.py”, line 119, in
Sep 26 13:50:59 mycodo python[2661]: raise ImportError(msg) from e
Sep 26 13:50:59 mycodo python[2661]: ImportError: Error importing numpy: you should not try to import numpy from
Sep 26 13:50:59 mycodo python[2661]: its source directory; please exit the numpy source tree, and relaunch
Sep 26 13:50:59 mycodo python[2661]: your python interpreter from there.
Sep 26 13:51:04 mycodo python[4721]: — Opening /dev/video0…
Sep 26 13:51:04 mycodo python[4721]: Trying source module v4l2…
Sep 26 13:51:04 mycodo python[4721]: /dev/video0 opened.
Sep 26 13:51:04 mycodo python[4721]: No input was specified, using the first.
Sep 26 13:51:04 mycodo python[4721]: Setting Brightness to 142 (49%).
Sep 26 13:51:04 mycodo python[4721]: Adjusting resolution from 1024x768 to 1280x720.

Not sure if this will help or not but still not sure why I get the Error: Could not acquire image.

Microsoft LifeCam Studio 1080p HD Webcam

image

– Journal begins at Tue 2024-09-24 21:17:01 CDT, ends at Sat 2024-10-05 18:42:31 CDT. –
Oct 05 18:42:19 mycodo python[3529]: Adjusting resolution from 1024x768 to 1280x720.
Oct 05 18:42:19 mycodo python[3529]: — Capturing frame…
Oct 05 18:42:19 mycodo python[3529]: Captured frame in 0.00 seconds.
Oct 05 18:42:19 mycodo python[3529]: — Processing captured image…
Oct 05 18:42:19 mycodo python[3529]: Disabling banner.
Oct 05 18:42:20 mycodo python[3529]: Writing JPEG image to ‘/opt/Mycodo/cameras/339ae30f-b9bd-4c23-9b22-557e5419142a/still/Still-1-webcam-2024-10-05_18-42-15.jpg’.
Oct 05 18:42:23 mycodo python[3529]:
Oct 05 18:42:23 mycodo python[3534]: — Opening /dev/video0…
Oct 05 18:42:23 mycodo python[3534]: Trying source module v4l2…
Oct 05 18:42:23 mycodo python[3534]: /dev/video0 opened.
Oct 05 18:42:23 mycodo python[3534]: No input was specified, using the first.
Oct 05 18:42:23 mycodo python[3534]: Setting Brightness to 142 (49%).
Oct 05 18:42:23 mycodo python[3534]: Adjusting resolution from 1024x768 to 1280x720.
Oct 05 18:42:23 mycodo python[3534]: — Capturing frame…
Oct 05 18:42:24 mycodo python[3534]: Captured frame in 0.00 seconds.
Oct 05 18:42:24 mycodo python[3534]: — Processing captured image…
Oct 05 18:42:24 mycodo python[3534]: Disabling banner.
Oct 05 18:42:24 mycodo python[3534]: Writing JPEG image to ‘/opt/Mycodo/cameras/339ae30f-b9bd-4c23-9b22-557e5419142a/still/Still-1-webcam-2024-10-05_18-42-20.jpg’.
Oct 05 18:42:28 mycodo python[3534]:
Oct 05 18:42:28 mycodo python[3537]: — Opening /dev/video0…
Oct 05 18:42:28 mycodo python[3537]: Trying source module v4l2…
Oct 05 18:42:28 mycodo python[3537]: /dev/video0 opened.
Oct 05 18:42:28 mycodo python[3537]: No input was specified, using the first.
Oct 05 18:42:28 mycodo python[3537]: Setting Brightness to 142 (49%).
Oct 05 18:42:28 mycodo python[3537]: Adjusting resolution from 1024x768 to 1280x720.
Oct 05 18:42:28 mycodo python[3537]: — Capturing frame…
Oct 05 18:42:29 mycodo python[3537]: Captured frame in 0.00 seconds.
Oct 05 18:42:29 mycodo python[3537]: — Processing captured image…
Oct 05 18:42:29 mycodo python[3537]: Disabling banner.
Oct 05 18:42:29 mycodo python[3537]: Writing JPEG image to ‘/opt/Mycodo/cameras/339ae30f-b9bd-4c23-9b22-557e5419142a/still/Still-1-webcam-2024-10-05_18-42-25.jpg’.