Comments (15)
Not sure what might cause this. Is there a reason you need to read in MJPEG instead of YUYV?
from usb_cam.
@rctoris Thanks for your reply.
Because I am working on SVO, so I need a high fps to avoid image blur, but according to v4l2-ctl --list-format-ext -d /dev/video0
, my usb camera fps can only reach to 30fps when set pixel_format to YUYV, and I can get 120fps when set pixel_format to MJPEG.
By the way, when I use luvcview in ubuntu, I can get a normal image at 120fps, 640x480 in MJPEG format.
from usb_cam.
Might be related to this: http://answers.ros.org/question/217382/garbled-image-problem-on-usb_cam/ I'm also having similar problems.
from usb_cam.
hi, i'm having exactly the same problem, did you find any solution ?
from usb_cam.
@LucasMahieu Finally, I wrote a another mjpeg2rgb
function with libjpeg
in usb_cam.cpp. And it works.
from usb_cam.
Thanks a lot @rawk-v for your reply !
We are in school project and don't have enough time to try it,
so using ubuntu 16 solve the problem too.
did you success to get good result with SVO ?
We are also working on it, with a quadricopter
from usb_cam.
I do get some nice desktop graph result with pixhawk IMU and a USB camera, but I don't think it is good enough to test in a real quadcopter with my current camera (a 120fps VGA camera with rolling shutter), as the SVO instruction said, a global shutter with big FOV may get same result as the video. So recently, I bought another camera to test it (I have not yet got it), and I will test it in a quadcopter soon.
from usb_cam.
nice, so you are always working on it !
It is for a personal project ?
With camera are you waiting ?
We are not really good in that stuff ... We have this one http://www.elpcctv.com/full-hd-2mp-usb-camera-black-and-white-module-p-231.html , and the result is nos very robust.
We success to track the camera, but the tracking stop very easily
from usb_cam.
Right, not a personal project, just for study.
I am waiting for the new camera. The camera you are using seems very similar to ours.
This is a rolling shutter camera, you can use a PTAM calibration method and ATAN model to generate the calibration params. The result may be better.
from usb_cam.
Oh great !
Yes we use the PTAM Calibration and we also tried the PINHOLE model
If you want to see the result of our project, it is in French because of our school but its is complet http://fablab.ensimag.fr/index.php/Robotique_:_implémentation_d%27un_système_d%27odométrie_visuelle_embarqué_sur_un_drone
from usb_cam.
Wow! It is really a complete procedure(Google translate is awesome :) ), maybe sometime I should write down mine too for sharing.
Instead of Naze, I use a pixhawk board, and now I am working on OFFBOARD control with ROS running on Odroid, so I can test it in real copter.
from usb_cam.
Yes, we found it is important to keep a written trace of our works.
Yesterday I searched about the pixhawk, it looks to be very adapted and more powerful than naze. Are you student in ETHZ ? It saw pixhawk was developed by ethz's student.
We thought to it too, but how do you want to send the camera stream to the OFF-BOARD computer ? Do you think it will be enough ?
from usb_cam.
Nope, I am a student in china, and they did a great jobs!
I use Odroid XU4 for a companion computer with pixhawk, and Odroid running Ubuntu with ROS middleware, since SVO has a ROS node to publish vision pose data, I use MAVROS to communicate with pixhawk. And then use a msf data fusion framework to combine /svo/pose
and /mavros/imu/data
together to generate local position.
Also mavros node has subscribe ROS topic like /mavros/setpoint_position/local
to send command to pixhawk(PX4 firmware has support for a so-called OFFBOARD mode).
So, I can control pixhawk with OFFBOARD mode according to local position data.
from usb_cam.
Really great ! It is a big project, I wish you will get good result !
Good luck
from usb_cam.
Thank you :)
from usb_cam.
Related Issues (20)
- CMake Error at /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message): A required package was not found HOT 2
- Node exits because of pixel formatting issues? HOT 9
- [High thread usage]Extremely high thread occupancy when using "pixel_format"="yuyv2rgb".
- Udev symlinks for webcams are not accepted anymore HOT 3
- Startup fails if camera is not named /dev/videox
- [abortive exit]Abnormal exit during operation HOT 3
- [bug] When the parameter pixel_format: "uyvy2rgb" is in the configuration file, the No image with rqt_image_view softwar HOT 1
- buliding from source, colcon build error HOT 1
- Frames delay HOT 3
- [hardware acceleration] usb_cam how to develop a high performance hardware accelerated camera driver in jetson orin
- package.xml specifies catkin HOT 2
- where is camera_info_manager.hpp HOT 1
- Tearing image with mjpeg
- Specified format `yuyv` is unsupported by the selected device
- [Calculation formula error] 1usec = 1000 nsec,Shouldn't divide by 1000.
- Error in package.xml HOT 4
- A ROS Driver for V4L USB Cameras是哪一个分支 HOT 2
- Cannot be installed with apt, 404 Not Found while trying to fetch the wrong version on ROS2-Iron
- Failed to parse camera calibration from file
- the unit of time stamp is not corrected
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from usb_cam.