Skip to content
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

Init calibration with blender benchmark #1

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from
Open
30 changes: 30 additions & 0 deletions calibration_with_blender/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
cmake_minimum_required(VERSION 3.16)

project(calibration_with_blender VERSION 0.1.0)

#if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
# message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan")
# file(DOWNLOAD "https://raw.githubusercontent.com/conan-io/cmake-conan/0.18.1/conan.cmake"
# "${CMAKE_BINARY_DIR}/conan.cmake"
# TLS_VERIFY ON)
#endif()
#
#include(${CMAKE_BINARY_DIR}/conan.cmake)
#
#conan_cmake_configure(REQUIRES opencv/4.5.5
# GENERATORS cmake_find_package)
#
#conan_cmake_autodetect(settings)
#
#conan_cmake_install(PATH_OR_REFERENCE .
# BUILD missing
# REMOTE conancenter
# SETTINGS ${settings})

find_package(OpenCV REQUIRED)

add_executable(image_distort image_distort.cpp)
add_executable(calibration_benchmark calibration_benchmark.cpp)

target_link_libraries(image_distort PRIVATE opencv_highgui opencv_calib3d opencv_imgproc)
target_link_libraries(calibration_benchmark PRIVATE opencv_highgui opencv_calib3d opencv_imgproc)
9 changes: 9 additions & 0 deletions calibration_with_blender/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Calibration with blender
### Create synth images with calibration pattern by blender:
* Open calibration.blend in blender
* Copy render.py content to blender text editor
* Run script in blender
* Distort images by image_distort.cpp

### Pattern generation command
gen_pattern.py -c 14 -r 19 -T checkerboard -u px -s 220 -w 3508 -h 4961 && convert out.svg checkerboard.png
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add reference to OpenCV repo where to get gen_pattern.py and refererence to ImageMagick is required. At least apt-get install ...

Binary file added calibration_with_blender/calibration.blend
Binary file not shown.
Loading