大恒工业相机连接OPENPNP设定出现错误,如何解决,先谢了 一直困扰我导致无法连接机器。

160 views
Skip to first unread message

guo feng

unread,
Jul 22, 2026, 8:46:06 PMJul 22
to OpenPnP
大家好: 有谁遇到这种情况或类似情况,大恒工业相机 MER2-301-12GU3M-5-637,在相机配置时,点击测试如下报错,OP.PNG

simpl...@tuta.io

unread,
Jul 23, 2026, 12:35:29 AMJul 23
to Openpnp, OpenPnP

我没有使用 OpenPnP但我认为这是因为 OpenPnPCapture 对此存在兼容性问题——它只支持 UVC 摄像头



tf38385656

unread,
Jul 23, 2026, 2:33:08 AMJul 23
to ope...@googlegroups.com
Daheng camera used to support python or c++ drivers to start capature ... To use a UVC camera, you might need to write a drivers allows uvc to call python or c++ drivers and transfer back to uvc.

simplemount via OpenPnP <ope...@googlegroups.com> 於 2026年7月23日週四 下午12:35寫道:

我没有使用 OpenPnP但我认为这是因为 OpenPnPCapture 对此存在兼容性问题——它只支持 UVC 摄像头



--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/openpnp/OyCFLOP--F-9%40tuta.io.

simpl...@tuta.io

unread,
Jul 23, 2026, 3:01:03 AMJul 23
to Openpnp, Openpnp
you could also use the opencv camera driver - it should work

or you compile openpnp-capture with the correct FourCC 


Message has been deleted
Message has been deleted

SM

unread,
Jul 23, 2026, 6:20:05 PMJul 23
to OpenPnP
Okay, i think the pictures should be showing up now

just for fun i checked whats wrong with openpnp-capture - there are some twisted numbers
(maybe Jason could correct it in next update)

platformstream.png
it should be:      format4cc = ' RGB';

platformstream2.png
it should be:      return MAKEFOURCC('B','G','R',' ');

platformcontext.PNG
it should be:      newFrameInfo.fourcc = MAKEFOURCC('B','G','R',' ');

After compiling openpnp-capture and building openpnp-capture-java and swapping the jar file most low cost "industrial" cameras (mindvision, daheng, etc.) should work in windows with OpenpnpCaptureCamera driver even though you have to set all the parameters - such as resolution, exposure time, gamma, etc. - in advance using the manufacturer's software. 

OpenpnpCaptureCamera.PNG

SM

unread,
Jul 26, 2026, 1:36:33 PM (11 days ago) Jul 26
to OpenPnP
*** START OF OFFTOPIC ***

Message for guo feng (Bert Alex)

Sorry, i sent you three private emails in response to your enquiry, but it seems none of them got through.

You can try this driver with above changes. It works on my Huateng and Mindvision cameras.
It is important that you adjust everything (resolution, exposure, etc.) with the manufacturer software and store it in the camera before you start OpenPnP.

As your camera has a very powerful sensor (IMX252), I would recommend reducing the resolution (e.g. 1024x1024 pixels or smaller) to speed up image processing.

*** END OF OFFTOPIC ***

guo feng

unread,
Jul 26, 2026, 10:52:52 PM (11 days ago) Jul 26
to OpenPnP
您好
     非常感谢你的帮助,覆盖后,完全可以使用,虽然帧率低了些,不然我就要放弃这个相机了,太酷了。

再次感谢您的帮助
7-27
bert
china
 
daheng.PNG

guo feng

unread,
Aug 2, 2026, 7:32:28 AM (5 days ago) Aug 2
to OpenPnP
若是网络接口是不是还要其他设置,才能使用相机?
Reply all
Reply to author
Forward
0 new messages