- Error means that the const char*, which is string data, cannot be converted to the corresponding function int;
- Send the definition of sendData
char a[]={
0xFF
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0xFE
};
if(text==
"person"
)
{
a[
1
]=
1
;
a[
2
]=((boxes[i].x2-boxes[i].x1)/
2
+boxes[i].x1)/
3
;
a[
3
]=((boxes[i].y2-boxes[i].y1)/
2
+boxes[i].y1)/
3
;
}
openPort(
"/dev/ttyUSB0"
);//
1
configurePort(openPort(
"/dev/ttyUSB0"
));
sendData(
"/dev/ttyUSB0"
, a,
8
,
IMAGE
);
0 Answer
这家伙很懒,什么都没留下...