-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Load JSON and record #6739
Comments
@ggeof , The std::string preset_json((std::istreambuf_iterator<char>(t)), std::istreambuf_iterator<char>());
if (auto advanced_mode_dev = p->get_active_profile().get_device().as<serializable_device>();)
{
advanced_mode_dev.load_json(preset_json);
.... |
I no longer have the mistake for your code. But my configuration is not applied to my camera... |
Hi @ggeof Are you trying to set the resolution or FPS speed with your json file before starting a recording, please? If you are, this should be done with cfg statements, as json settings for resolution and FPS will get overridden by the pipeline when it starts. |
Hi @MartyG-RealSense, |
I believe that the "APD Temperature" refers to a camera component called the Avalanche Photodiode. https://en.wikipedia.org/wiki/Avalanche_photodiode Temperatures are usually read-only, and changing the value of a temperature with scripting would defeat the purpose of monitoring it. Instead, you could use indirect ways to affect operating temperatures (for example, reducing the Laser Power value to try to reduce Projector temperature). C++ code for changing Laser Power with the current RealSense SDK is under the Librealsense2 heading in the link below. https://github.com/IntelRealSense/librealsense/wiki/API-How-To#controlling-the-laser Minimum distance can be affected by changing the value of the Disparity Shift option. Increasing its value reduces minimum distance (MinZ) and enables the camera to get closer to an object, though it also lowers the maximum observable distance (MaxZ). Another way of affecting the minimum distance of depth is to set a threshold filter post-processing filter that ignores data that is below a defined minimum distance. The link below has a C++ script that includes code within it for setting the Threshold Filter https://stackoverflow.com/questions/59054413/intel-realsense-depth-camera-d435i-noises-and-mounds |
Oops I was wrong I was talking about laser power. I don't know why I mentioned the temperature. |
Do you need some C++ code for changing the Disparity Shift value, please? |
No thank you. I will play with the function |
Do you need further assistance on this? *If we don’t hear from you in 7 days, this issue will be closed. |
Issue Description
Hello,
I search to launch a Record. But before, I want to load a JSON file for my device. But the code
Not working...
it turns me on :
null pointer passed for argument "dev"
I suppose because
this->p->get_active_profile().get_device()
it's arecorder
.Do you have a solution for my problem ?
Or it's possible to record starting from a device that's already "started" ?
The text was updated successfully, but these errors were encountered: