usb_cam high cpu Raspberry pi 3
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?
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.ok i removed the print