Skip to content

Commit

Permalink
Libsvbony update to 1.12.1 (#865)
Browse files Browse the repository at this point in the history
* Updated SVBONY Camera SDK to Version 1.12.1

Change Log of libsvbony
 * Support SC432M camera
 * Add the SVB_BAD_PIXEL_CORRECTION_THRESHOLD parameter to set the threshold for bad pixel correction.
 * If the difference with surrounding pixels exceeds the threshold, it will be dynamically corrected.
 * It takes effect only when the SVB_BAD_PIXEL_CORRECTION_ENABLE parameter is turned on
 * The cooling camera will no longer turn off cooling and fan when certain parameters are set

* Add SVBONY Camera SDK library 1.12.1 for macos x64
  • Loading branch information
jctk authored Dec 16, 2023
1 parent a439cf2 commit 85b986c
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 1 deletion.
12 changes: 12 additions & 0 deletions debian/libsvbony/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
libsvbony (1.12.1) bionic; urgency=low

* Upgraded to upstream SVBONY SDK vers. 1.12.1 :
* *** Note: The following changes were made both 1.12.1 and 1.12.1 ***
* Support SC432M camera
* Add the SVB_BAD_PIXEL_CORRECTION_THRESHOLD parameter to set the threshold for bad pixel correction.
* If the difference with surrounding pixels exceeds the threshold, it will be dynamically corrected.
* It takes effect only when the SVB_BAD_PIXEL_CORRECTION_ENABLE parameter is turned on
* The cooling camera will no longer turn off cooling and fan when certain parameters are set

-- Tetsuya Kakura <[email protected]> Fri, 1 Dec 2023 12:00:00 +0900

libsvbony (1.11.4) bionic; urgency=low

* Upgraded to upstream SVBONY SDK vers. 1.11.4 :
Expand Down
2 changes: 1 addition & 1 deletion libsvbony/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required (VERSION 3.0)
project (libsvbony)

set (SVBCAMERASDK_VERSION "1.11.4")
set (SVBCAMERASDK_VERSION "1.12.1")
set (SVBCAMERASDK_SOVERSION "1")

list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/")
Expand Down
43 changes: 43 additions & 0 deletions libsvbony/SVBCameraSDK.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ typedef enum SVB_CONTROL_TYPE{ //Control type//
SVB_COOLER_POWER, //range: 0-100

SVB_BAD_PIXEL_CORRECTION_ENABLE,
SVB_BAD_PIXEL_CORRECTION_THRESHOLD,
}SVB_CONTROL_TYPE;

typedef struct _SVB_CONTROL_CAPS
Expand Down Expand Up @@ -478,6 +479,29 @@ SVB_ERROR_INVALID_IMGTYPE, //unsupported image format, make sure iWidth and iHei
***************************************************************************/
SVBCAMERA_API SVB_ERROR_CODE SVBSetROIFormat(int iCameraID, int iStartX, int iStartY, int iWidth, int iHeight, int iBin);

/***************************************************************************
Descriptions:
set the ROI area before capture.
you must stop capture before call it.
the width and height is the value after binning.
ie. you need to set width to 640 and height to 480 if you want to run at 640X480@BIN2
SVB120's data size must be times of 1024 which means width*height%1024=0SVBSetStartPos
Paras:
int CameraID: this is get from the camera property use the API SVBGetCameraInfo
int iWidth, the width of the ROI area. Make sure iWidth%8 = 0.
int iHeight, the height of the ROI area. Make sure iHeight%2 = 0,
further, for USB2.0 camera SVB120, please make sure that iWidth*iHeight%1024=0.
int iBin, binning method. bin1=1, bin2=2
int iMode, binning mode, binning average is 0 and binning sum is 1
return:
SVB_SUCCESS : Operation is successful
SVB_ERROR_CAMERA_CLOSED : camera didn't open
SVB_ERROR_INVALID_ID :no camera of this ID is connected or ID value is out of boundary
SVB_ERROR_INVALID_SIZE, //wrong video format size
SVB_ERROR_INVALID_IMGTYPE, //unsupported image format, make sure iWidth and iHeight and binning is set correct
***************************************************************************/
SVBCAMERA_API SVB_ERROR_CODE SVBSetROIFormatEx(int iCameraID, int iStartX, int iStartY, int iWidth, int iHeight, int iBin, int iMode);

/***************************************************************************
Descriptions:
Expand All @@ -497,6 +521,25 @@ SVB_ERROR_INVALID_ID :no camera of this ID is connected or ID value is out of b
***************************************************************************/
SVBCAMERA_API SVB_ERROR_CODE SVBGetROIFormat(int iCameraID, int *piStartX, int *piStartY, int *piWidth, int *piHeight, int *piBin);

/***************************************************************************
Descriptions:
Get the current ROI area setting .
Paras:
int CameraID: this is get from the camera property use the API SVBGetCameraInfo
int *piWidth, pointer to the width of the ROI area
int *piHeight, pointer to the height of the ROI area.
int *piBin, pointer to binning method. bin1=1, bin2=2
int *piMode, pointer to binning mode, binning average is 0 and binning sum is 1
return:
SVB_SUCCESS : Operation is successful
SVB_ERROR_CAMERA_CLOSED : camera didn't open
SVB_ERROR_INVALID_ID :no camera of this ID is connected or ID value is out of boundary
***************************************************************************/
SVBCAMERA_API SVB_ERROR_CODE SVBGetROIFormatEx(int iCameraID, int *piStartX, int *piStartY, int *piWidth, int *piHeight, int *piBin, int *piMode);

/***************************************************************************
Descriptions:
Get the droped frames .
Expand Down
Binary file modified libsvbony/libSVBCameraSDK_amd64.bin
Binary file not shown.
Binary file modified libsvbony/libSVBCameraSDK_armv6.bin
Binary file not shown.
Binary file modified libsvbony/libSVBCameraSDK_armv7.bin
Binary file not shown.
Binary file modified libsvbony/libSVBCameraSDK_armv8.bin
Binary file not shown.
Binary file modified libsvbony/libSVBCameraSDK_mac64.bin
Binary file not shown.
Binary file modified libsvbony/libSVBCameraSDK_x86.bin
Binary file not shown.

0 comments on commit 85b986c

Please sign in to comment.