Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ente raspberry pi 5 camera test #133

Draft
wants to merge 4 commits into
base: ente
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
bug fix
liammcalpineduckietown committed Dec 3, 2024
commit 754169a77149058cb80aa5cd15b50007f5b6e1dd
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ async def worker(self):
# get first frame
numpy_array = self._camera.capture_array() if self._camera else None
if self.configuration.rotation:
numpy_array = numpy.rot90(numpy_array, -1)
numpy_array = numpy.rot90(numpy_array)
success, jpeg_encoded_numpy_array = cv2.imencode('.jpeg', numpy_array)
# keep reading
while not self.is_shutdown:
@@ -47,7 +47,7 @@ async def worker(self):
# grab next frame
numpy_array = self._camera.capture_array() if self._camera else None
if self.configuration.rotation:
numpy_array = numpy.rot90(numpy_array, -1)
numpy_array = numpy.rot90(numpy_array)
success, jpeg_encoded_numpy_array = cv2.imencode('.jpeg', numpy_array)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add measurements of CPU usage on the Pi 5

self.loginfo("Camera worker stopped.")