Coder Social home page Coder Social logo

Comments (15)

rctoris avatar rctoris commented on June 25, 2024

Not sure what might cause this. Is there a reason you need to read in MJPEG instead of YUYV?

from usb_cam.

rawk-v avatar rawk-v commented on June 25, 2024

@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.

tobyhijzen avatar tobyhijzen commented on June 25, 2024

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.

LucasMahieu avatar LucasMahieu commented on June 25, 2024

hi, i'm having exactly the same problem, did you find any solution ?

from usb_cam.

rawk-v avatar rawk-v commented on June 25, 2024

@LucasMahieu Finally, I wrote a another mjpeg2rgb function with libjpeg in usb_cam.cpp. And it works.

from usb_cam.

LucasMahieu avatar LucasMahieu commented on June 25, 2024

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.

rawk-v avatar rawk-v commented on June 25, 2024

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.

LucasMahieu avatar LucasMahieu commented on June 25, 2024

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.

rawk-v avatar rawk-v commented on June 25, 2024

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.

LucasMahieu avatar LucasMahieu commented on June 25, 2024

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.

rawk-v avatar rawk-v commented on June 25, 2024

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.

LucasMahieu avatar LucasMahieu commented on June 25, 2024

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.

rawk-v avatar rawk-v commented on June 25, 2024

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.

LucasMahieu avatar LucasMahieu commented on June 25, 2024

Really great ! It is a big project, I wish you will get good result !
Good luck

from usb_cam.

rawk-v avatar rawk-v commented on June 25, 2024

Thank you :)

from usb_cam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.