webcam problem

Hello everyone, I purchased this endoscope,

https://www.amazon.com/gp/product/B01H1LHHK6/ref=ox_sc_mini_detail?ie=UTF8&psc=1&smid=A1L5O072QMON71

I wanted to develop an application to interface with this device. The problem is that it does not turn on, there is a black screen. With other software the endoscope works fine.

After a few seconds I press ESC and gives me this error:

(java.exe:1244): GStreamer-CRITICAL **: Trying to dispose element Video Capture, but it is in READY instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference, to allow them to clean up. This problem may also be caused by a refcounting bug in the application or some element.

I use Windows 7 64-bit

how can I solve?

thanks, Gius

Tagged:

Answers

  • I am afraid processing is not able to resolve all the cameras in the market. It really depends on the driver for the device. From your link, it is using UVC, USB Video Class. This is as much as I can say wrt video streaming as this is not my realm.

    Just to add to your issue, have you tried running example code using some other type of camera? This is done to ensure Processing is working properly.

    Another suggestion is to run your device with another version of Windows as it might have different drivers available.

    Hopefully some other forum goers have more suggestions for you.

    Kf

  • edited March 2017

    Thank you for your reply kfrajer. I am using this code for my tests:

    import processing.video.*; Capture webcam;

    void setup() { size(640,480); webcam = new Capture(this,640,480); String[] devices = Capture.list(); println(devices); webcam.start();

    }

    void draw() { if (webcam.available() == true) { webcam.read(); image(webcam ,0,0); }

    }

    with this code work fine webcam and more, but not the endoscope model that I need.

    I can try another code? with other examples?

    With this endoscope everything works fine:

    https://www.amazon.com/KKmoon-Endoscope-Borescope-Inspection-Smartphones/dp/B01M0DQ0DR/ref=sr_1_5?ie=UTF8&qid=1490540404&sr=8-5&keywords=KKmoon+5,5mm+2+in+1

    but I need to work with an endoscope with zoom.

    Is there anyone who has worked with endoscopy usb with zoom and is compatible with Processing?

    thanks, Gius

Sign In or Register to comment.