Ask Your Question
0

usb_cam high cpu Raspberry pi 3

asked 2020-01-13 19:47:23 -0600

mateusguilherme gravatar image

updated 2020-01-14 17:00:31 -0600

Hello

I am using a logitech c270 webcam with the usb_cam package. But when I run the program the Raspberry cpu reaches 100% usage. Not to mention the fact that the FPS is too slow.

my usb_cam-test.launch

<launch>
  <node name="usb_cam" pkg="usb_cam" type="usb_cam_node" output="screen" >
    <param name="video_device" value="/dev/video0" />
    <param name="image_width" value="1280" />
    <param name="image_height" value="720" />
    <param name="pixel_format" value="mjpeg" />
    <param name="pixel_format" value="30" />
    <param name="camera_frame_id" value="usb_cam" />
    <param name="io_method" value="mmap"/>
  </node>
  <node name="image_view" pkg="image_view" type="image_view" respawn="false" output="screen">
    <remap from="image" to="/usb_cam/image_raw"/>
    <param name="autosize" value="true" />
  </node>
</launch>

My webcam supports MJPEG format, so there should be no high computational load.

does anyone have any suggestions?

edit retag flag offensive close merge delete

Comments

even though you already have an answer, I'm still going to close this question. The reason being that you've not followed the support guidelines, specifically the sections about not posting screenshots of terminals (unless there really is no other way).

If you replace the screenshots with the actual text (use the edit button/link for that), we can re-open your question.

gvdhoorn gravatar imagegvdhoorn ( 2020-01-14 08:28:16 -0600 )edit

ok i removed the print

mateusguilherme gravatar imagemateusguilherme ( 2020-01-14 17:01:11 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-01-14 01:55:35 -0600

misken gravatar image

I don't know if it helps but it might be worth a check: we recently encountered a bug (?) with the latest kernel version of Ubuntu 18. The realsense cpu usage jumped to 100%. After downgrading the kernel (unfortunately, I don't remember the exact version, maybe half a year old), everything went beck to normal cpu usage. No other changes, just the kernel. I know, that it doesn't exactly match your setup but I wanted to mention it.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-01-13 19:47:23 -0600

Seen: 20 times

Last updated: Jan 14