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

Camcalib produces images with a black line in the top left corner #578

Open
fbottarel opened this issue May 14, 2019 · 11 comments
Open

Camcalib produces images with a black line in the top left corner #578

fbottarel opened this issue May 14, 2019 · 11 comments

Comments

@fbottarel
Copy link

Description of the failure

Black lines started showing up at the top of the image streams

Detailed conditions and logs of the failure

The Dragonfly cameras output this kind of video stream at 320x240 (image is magnified for better identification of the issue). The top rows of pixels seem corrupted.

image

By resetting the camera via the frameGrabberGui, the image goes back to default parameters (640x480 resolution) and the feed corruption seems no longer present.

image

Rebooting either the cameras, the pc104 or the whole robot does not solve the problem.

@julijenv
Copy link
Contributor

Hi @fbottarel ,
did you try to run the same test on both cameras?!?!
if yes, i guess it is not hardware related but mainly software - firmware related, if not please do so and if it is just present in one camera, maybe the flat ribbon cable is damaged.
Always in the case of your answer is YES, please try to launch the same test on green iCub, does it make the same thing? I would recommend you to talk to @barbalberto or @Nicogene about that.

@Nicogene
Copy link
Member

Probably the black line is present also in the 640x480 image but it is too small to be seen since the resolution is higher.

It seems not a resolution-dependent problem, dragonfly2 device is pretty old and nobody changed since a while. The only thing changed are how the images are handled in yarp(move semantics etc).

Unfortunately in these day I am at Erzelli. A check good check as @julijenv suggested is to visualize the image 320x240 on the green iCub.

@fbottarel
Copy link
Author

@julijenv both cameras exhibit the same behaviour. I will test this on the green icub as soon as they are done with their tests today.

@Nicogene both resolutions feature the corruption. The corruption disappears if press the "Reset Camera" button in the FrameGrabberGui, and the camera goes back to a 640x480 resolution (but with no bayer encoding?!)

Also: I dumped some frames with yarpdatadumper and the corrupted pixels are still there -> yarpview is not the problem.

@fbottarel
Copy link
Author

Update: camCalib seems to be the culprit here. Here you can see images streamed from the raw camera feed and from camCalib. The top left of the images streamed from camCalib seems to be corrupted.
Peek 2019-05-15 09-48
@Nicogene halp pls

@Nicogene
Copy link
Member

So i think we can say that it is a software problem then I will move the issue in icub-main

@Nicogene Nicogene transferred this issue from robotology/icub-tech-support May 15, 2019
@Nicogene Nicogene changed the title Black lines in camera feed Camcalib produces images with a black line in the top left corner May 15, 2019
@Nicogene
Copy link
Member

It would be useful to know if it is reproducible also with usbCamera (I guess yes) and if it affects icub-main on master or devel branch.

@Nicogene
Copy link
Member

I tryed with latest devel both icub-main and yarp and the image look fine also 320x240 using the usbCamera.
Could be the bayer? cc @barbalberto

@fbottarel
Copy link
Author

I can get some raw image dumps and try on my laptop before updating the robot machines.

@Nicogene
Copy link
Member

Usually those artifacts happens when the header is considered has part of the image, probably there is some byte alignment issue with the Bayer coding.

@fbottarel
Copy link
Author

I thought we used Bayer encoding only for streaming 640x480 images, does that also happen for lower res?

@frank-foerster
Copy link

Just to confirm, that I observed a similar or same problem. In my case the "flickering bar" is not at the very top and broader than what is depicted in the gifs above. I am using Bayer encoding here as recommended in the Wiki.
camCalib_flickerin_1

When trying to produce the gifs for this entry, once it ended up being as bad as in the following, but one one occasion no flickering bar at all occurred:
camCalib_flickering_2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants