SDK Version: Azure Kinect Sensor SDK v1.1.0.Please advice.ĭesktop (please complete the following information): Are there any other sample examples of capture are also helpful. I am not sure what is the mistake I am doing. jpg The image should just as the IR Camera image as shown in the Kinect Viewer Tool. Height = int.from_bytes(height, "little")Ī clearer image is required which can be saved as. S = socket.socket(socket.AF_INET, socket.SOCK_STREAM) Python Code for receiving the image buffer and displaying the image.īUFFER_SIZE =1024 # Normally 1024, but we want fast response Send(s, (char *)&height, sizeof(int), 0) Server_address.sin_port = htons(server_port) Ĭonnect(s, (struct sockaddr *)& server_address, sizeof(server_address)) Uint8_t * imgData = k4a_image_get_buffer(image) Ĭonst uint32_t arr_size = width * height Int width = k4a_image_get_width_pixels(image) Int height = k4a_image_get_height_pixels(image) K4a_image_t image = k4a_capture_get_ir_image(capture) K4a_device_get_capture(device, &capture, TIMEOUT_IN_MS) K4a_device_start_cameras(device, &config) K4a_device_configuration_t config = K4A_DEVICE_CONFIG_INIT_DISABLE_ALL Ĭonfig.camera_fps = K4A_FRAMES_PER_SECOND_30 Ĭlor_format = K4A_IMAGE_FORMAT_COLOR_MJPG Ĭlor_resolution = K4A_COLOR_RESOLUTION_2160P Ĭpth_mode = K4A_DEPTH_MODE_NFOV_UNBINNED K4a_device_open(K4A_DEVICE_DEFAULT, &device) #pragma comment(lib,"ws2_32.lib") //Winsock Library
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |