Skip to content
Snippets Groups Projects
Commit c8071e84 authored by Leonardo's avatar Leonardo
Browse files

Arreglito que no me compilaba

parent da2464f1
Branches soingle-file-client
No related tags found
2 merge requests!4Single file y manejo errores,!3use single file
#include <iostream>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netdb.h>
#include <netinet/in.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/highgui/highgui_c.h>
#include <pthread.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
#include <cstdio>
#define UDP_PORT 9998
#define TCP_PORT 9999
......@@ -133,7 +134,7 @@ int printFrame(int received_data_size, char* recibido, int fin, char* buf){
Mat rawData = Mat(1, found, CV_8UC1, jpg);
Mat frame = imdecode(rawData, CV_LOAD_IMAGE_COLOR);
imshow("cliente", frame);
waitKey(fpms);
waitKey(30);
inicio = found + sizeof(delimiter)-1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment