send_xldT_send_xldSendXldSendXldsend_xld (Operator)

Name

send_xldT_send_xldSendXldSendXldsend_xld — Send an XLD object over a socket connection.

Signature

send_xld(XLD : : Socket : )

Herror T_send_xld(const Hobject XLD, const Htuple Socket)

void SendXld(const HObject& XLD, const HTuple& Socket)

void HSocket::SendXld(const HXLD& XLD) const

void HXLD::SendXld(const HSocket& Socket) const

static void HOperatorSet.SendXld(HObject XLD, HTuple socket)

void HSocket.SendXld(HXLD XLD)

void HXLD.SendXld(HSocket socket)

def send_xld(xld: HObject, socket: HHandle) -> None

Description

send_xldsend_xldSendXldSendXldsend_xld sends an XLD object over the socket connection determined by SocketSocketSocketsocketsocket. The receiving HALCON process must call receive_xldreceive_xldReceiveXldReceiveXldreceive_xld to read the XLD object from the socket.

Execution Information

Parameters

XLDXLDXLDXLDxld (input_object)  xld(-array) objectHXLDHObjectHObjectHobject

XLD object to be sent.

SocketSocketSocketsocketsocket (input_control)  socket HSocket, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Socket number.

Example (HDevelop)

* Process 1
dev_set_colored (12)
open_socket_accept (3000, [], [], AcceptingSocket)
socket_accept_connect (AcceptingSocket, 'true', Socket)
receive_image (Image, Socket)
edges_sub_pix (Image, Edges, 'canny', 1.5, 20, 40)
send_xld (Edges, Socket)
receive_xld (Polygons, Socket)
split_contours_xld (Polygons, Contours, 'polygon', 1, 5)
gen_parallels_xld (Polygons, Parallels, 10, 30, 0.15, 'true')
send_xld (Parallels, Socket)
receive_xld (ModParallels, Socket)
receive_xld (ExtParallels, Socket)
stop ()
close_socket (Socket)
close_socket (AcceptingSocket)

* Process 2
dev_set_colored (12)
open_socket_connect ('localhost', 3000, [], [], Socket)
read_image (Image, 'mreut')
send_image (Image, Socket)
receive_xld (Edges, Socket)
gen_polygons_xld (Edges, Polygons, 'ramer', 2)
send_xld (Polygons, Socket)
split_contours_xld (Polygons, Contours, 'polygon', 1, 5)
receive_xld (Parallels, Socket)
mod_parallels_xld (Parallels, Image, ModParallels, ExtParallels, \
                   0.4, 160, 220, 10)
send_xld (ModParallels, Socket)
send_xld (ExtParallels, Socket)
stop ()
close_socket (Socket)

Possible Predecessors

open_socket_connectopen_socket_connectOpenSocketConnectOpenSocketConnectopen_socket_connect, socket_accept_connectsocket_accept_connectSocketAcceptConnectSocketAcceptConnectsocket_accept_connect

See also

receive_xldreceive_xldReceiveXldReceiveXldreceive_xld, send_imagesend_imageSendImageSendImagesend_image, receive_imagereceive_imageReceiveImageReceiveImagereceive_image, send_regionsend_regionSendRegionSendRegionsend_region, receive_regionreceive_regionReceiveRegionReceiveRegionreceive_region, send_tuplesend_tupleSendTupleSendTuplesend_tuple, receive_tuplereceive_tupleReceiveTupleReceiveTuplereceive_tuple, get_next_socket_data_typeget_next_socket_data_typeGetNextSocketDataTypeGetNextSocketDataTypeget_next_socket_data_type

Module

Foundation