-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
camera preview callback not call #1610
Comments
Hello, @tyoungroy Would you please check this report? |
I used source below, anyone can help me? Please! /**
#include "main.h" #include <storage.h> /**
/* Variable for camera display */
} camdata; static camdata cam_data; static int is_checking; static transformation_h t_handle; /**
memcpy (inArray, input_buf, sizeof (uint8_t) * data_size); /* insert input data to appsrc */ return 0; static void static void
} static void
} /**
media_packet_get_buffer_data_ptr (*dst, (void **) &input_buf); media_packet_destroy (*dst); /**
is_checking = 1; camera_unset_media_packet_preview_cb (cam_data.g_camera); image_util_transform_create (&t_handle); G_UNLOCK (callback_lock); static void } /**
/**
*/ /**
*/ /**
*/
int error_code = camera_attr_get_brightness_range (cam_data.g_camera, &min, /* Get the current value of the camera brightness attribute. */ error_code = /* Set new value of the camera brightness attribute */ /**
*/ int error_code = camera_attr_get_zoom_range (cam_data.g_camera, &min, &max); /* Get the current value of the camera zoom attribute. */ error_code = camera_attr_get_zoom (cam_data.g_camera, &zoom); /* Set new value of the camera zoom attribute */ /**
camera_set_media_packet_preview_cb (cam_data.g_camera, preview_frame_cb, NULL); /**
ml_tensors_data_get_tensor_data (data, 0, (void **) &output, &data_size); for (int i = 0; i < 1001; i++) { if (reset_preview == 0) /**
*/ /* Get the size of the parent box. */ /* Set the size of the image object. */ /**
/
/* Create a box for the camera preview. */ Evas *evas = evas_object_evas_get (cam_data.cam_display_box); /* Create buttons for the Camera. */ int error_code = CAMERA_ERROR_NONE; elm_object_disabled_set (cam_data.zoom_bt, EINA_TRUE); /* Create the camera handle for the main camera of the device. */ /* Check the camera state after creating the handle. */ /* Set the display for the camera preview. */ error_code = camera_set_preview_resolution (cam_data.g_camera, CAM_WIDTH, /* Get the camera preview resolution */ /* Show the camera preview UI element. */ /* Start the camera preview. */ error_code = camera_set_preview_cb(cam_data.g_camera, _camera_preview_cb, NULL); error_code = camera_start_preview (cam_data.g_camera); if(camera_is_supported_face_detection (cam_data.g_camera))
} /* Enable other camera buttons. */ |
Hello, @tyoungroy This comment is a reminder. |
I used
/* Set the camera preview callback */
error_code = camera_set_media_packet_preview_cb(facedata.g_camera, _camera_media_packet_preview_cb, NULL);
at the guides link.
https://github.com/Samsung/tizen-docs/blob/master/docs/application/native/guides/multimedia/face-detection.md
But _camera_media_packet_preview_cb function never call.
Please help me this issue.
The text was updated successfully, but these errors were encountered: