PDFオーバーレイシステムの変更

1 PDFのスキャンと編集を別のメニューにした。スキャンをすると原紙としてC:\ProgramaData\PDFoverlay\jpegにjpeg形式で保存するようにした。このフォルダには、他にPDFファイル(.pdf)、フィールド情報ファイル(.xml)、交点データ(.dat)も保存している。

2 XMLデータのオーバーレイができるようにした。

次のテーマは、名前などのプレースホルダを縦横に自動でコピーすること。

 

 

 

pictscrolltest 20131120 Textプロジェクトについて

このシステムでは、PDF原紙のハードコピー取るプログラムでAdobeのAceobatが必要になるので、事前にシステムに登録しておく必要があります。

 

PDFエディタの修正の覚書
1 PDFを拡大すると、右下の部分が描画されなくなるバグは、拡大時にダブルバッファを作り直していなかった為と判明。以下のように修正。

private void trackBarRatio_Scroll(object sender, EventArgs e)
{
Console.WriteLine(“trackBarRatio_Scroll”);
省略
// ダブルバッファの再構築
myDoubleBuffer.Dispose();
myDoubleBuffer = new Drawing.DoubleBuffer(pict);

}

 

2  マウスホイールを使うと、拡大・縮小してしますバグの修正。trackBarのマウスホイールで処理済にすることで処理をキャンセルする。

Form1_Loadで

// トラックバーでマウスホイールイベントをキャンセルするためにホイールイベントを追
this.trackBarRatio.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.trackBarRatio_MouseWheel);

 

以下のメソッドを追加

private void trackBarRatio_MouseWheel(object sender, MouseEventArgs e)
{
HandledMouseEventArgs handledEventArgs = (HandledMouseEventArgs)e;
handledEventArgs.Handled = true;
}

 

 

 

 

opencvのライブラリーのmake

opencvのライブラリーを修正するには、ソースを修正します。この環境を作るには、opencvの直下のCMakeList.txtを使います。ツールはCMあけ2.8.12を使いました。CMakeのGUIで「Where is the source code:」に「opencv」(CMakeList.txtがある)、「Where to build the binbaries」に「出力先フォルダ名」をいれ、Configureボタンを押し、次にGenerateを押します。すると「出力先フォルダ名」にVisual Studioで開発できる環境が出来上がります。
c:\opencv\mybuildを出力先にしたときに作られるファイルを以下に記します。OpenCV.slnをVisual Studioで開くとライブラリなどの開発が可能です。

c:\opencv\mybuild のディレクトリ

2013/10/30 15:32

.
2013/10/30 15:32 ..
2013/10/30 15:19 3rdparty
2013/10/30 15:20 31,305 ALL_BUILD.vcxproj
2013/10/30 15:20 620 ALL_BUILD.vcxproj.filters
2013/10/30 15:20 apps
2013/10/30 15:20 99,766 CMakeCache.txt
2013/10/30 15:20 CMakeFiles
2013/10/30 15:20 4,256 cmake_install.cmake
2013/10/30 15:19 1,145 cmake_uninstall.cmake
2013/10/30 15:19 5,840 cvconfig.h
2013/10/30 15:20 data
2013/10/30 15:32 0 dd.txt
2013/10/30 15:20 doc
2013/10/30 15:20 include
2013/10/30 15:20 6,108 INSTALL.vcxproj
2013/10/30 15:20 489 INSTALL.vcxproj.filters
2013/10/30 15:19 junk
2013/10/30 15:20 modules
2013/10/30 15:20 93,875 OpenCV.sln
2013/10/30 15:19 opencv2
2013/10/30 15:19 390 OpenCVConfig-version.cmake
2013/10/30 15:19 19,385 OpenCVConfig.cmake
2013/10/30 15:20 24,210 opencv_modules.vcxproj
2013/10/30 15:20 630 opencv_modules.vcxproj.filters
2013/10/30 15:20 23,239 opencv_perf_tests.vcxproj
2013/10/30 15:20 636 opencv_perf_tests.vcxproj.filters
2013/10/30 15:20 23,924 opencv_tests.vcxproj
2013/10/30 15:20 626 opencv_tests.vcxproj.filters
2013/10/30 15:20 21,225 uninstall.vcxproj
2013/10/30 15:20 620 uninstall.vcxproj.filters
2013/10/30 15:19 unix-install
2013/10/30 15:19 4,560 version_string.tmp
2013/10/30 15:19 win-install
2013/10/30 15:20 28,203 ZERO_CHECK.vcxproj
2013/10/30 15:20 712 ZERO_CHECK.vcxproj.filters
23 個のファイル 391,764 バイト
13 個のディレクトリ 90,026,012,672 バイトの空き領域

OpenCV を検証中

OpenCVはコンピュータビジョンライブラリーで画像処理・認識を行うライブラリーです。
今回はVisual Studio 2012で開発ができるまで試しました。
ダウンロードした中でアプリ開発に最低限必要なものは、includeフォルダ、libフォルダだけです。
これを使うには、C++の知識ではなくVisual Studioのプロジェクトで、インクルードファイルやライブラリの
指示をどのように行うかの知識が必要です。2012では、プロジェクト単位にプロジェクトのプロパティから指定します。

以下に、開発で利用したフォルダの一覧をメモしておきます。

コンパイル済みのモジュールは(.lib)
c:\opencv\build\x86\vc11\lib
c:\opencv\build\x86\vc11\staticlib
に入れておきます。

コンパイル済みのモジュールは(.dll)
c:\opencv\build\x86\vc11\bin
に入れておきます。

開発時に使う.h .hppは
c:\opencv\build\x86\vc11\include
に入れておきます。

c:\opencv\build

c:\opencv\build\x86

c:\opencv\build\x86\vc11
c:\opencv\build\x86\vc11\bin
c:\opencv\build\x86\vc11\include
c:\opencv\build\x86\vc11\lib
c:\opencv\build\x86\vc11\staticlib

c:\opencv\build\x86\vc11\bin\opencv_calib3d246.dll
c:\opencv\build\x86\vc11\bin\opencv_calib3d246d.dll
c:\opencv\build\x86\vc11\bin\opencv_contrib246.dll
c:\opencv\build\x86\vc11\bin\opencv_contrib246d.dll
c:\opencv\build\x86\vc11\bin\opencv_core246.dll
c:\opencv\build\x86\vc11\bin\opencv_core246d.dll
c:\opencv\build\x86\vc11\bin\opencv_features2d246.dll
c:\opencv\build\x86\vc11\bin\opencv_features2d246d.dll
c:\opencv\build\x86\vc11\bin\opencv_ffmpeg246.dll
c:\opencv\build\x86\vc11\bin\opencv_flann246.dll
c:\opencv\build\x86\vc11\bin\opencv_flann246d.dll
c:\opencv\build\x86\vc11\bin\opencv_gpu246.dll
c:\opencv\build\x86\vc11\bin\opencv_gpu246d.dll
c:\opencv\build\x86\vc11\bin\opencv_highgui246.dll
c:\opencv\build\x86\vc11\bin\opencv_highgui246d.dll
c:\opencv\build\x86\vc11\bin\opencv_imgproc246.dll
c:\opencv\build\x86\vc11\bin\opencv_imgproc246d.dll
c:\opencv\build\x86\vc11\bin\opencv_legacy246.dll
c:\opencv\build\x86\vc11\bin\opencv_legacy246d.dll
c:\opencv\build\x86\vc11\bin\opencv_ml246.dll
c:\opencv\build\x86\vc11\bin\opencv_ml246d.dll
c:\opencv\build\x86\vc11\bin\opencv_nonfree246.dll
c:\opencv\build\x86\vc11\bin\opencv_nonfree246d.dll
c:\opencv\build\x86\vc11\bin\opencv_objdetect246.dll
c:\opencv\build\x86\vc11\bin\opencv_objdetect246d.dll
c:\opencv\build\x86\vc11\bin\opencv_ocl246.dll
c:\opencv\build\x86\vc11\bin\opencv_ocl246d.dll
c:\opencv\build\x86\vc11\bin\opencv_photo246.dll
c:\opencv\build\x86\vc11\bin\opencv_photo246d.dll
c:\opencv\build\x86\vc11\bin\opencv_stitching246.dll
c:\opencv\build\x86\vc11\bin\opencv_stitching246d.dll
c:\opencv\build\x86\vc11\bin\opencv_superres246.dll
c:\opencv\build\x86\vc11\bin\opencv_superres246d.dll
c:\opencv\build\x86\vc11\bin\opencv_ts246.dll
c:\opencv\build\x86\vc11\bin\opencv_ts246d.dll
c:\opencv\build\x86\vc11\bin\opencv_video246.dll
c:\opencv\build\x86\vc11\bin\opencv_video246d.dll
c:\opencv\build\x86\vc11\bin\opencv_videostab246.dll
c:\opencv\build\x86\vc11\bin\opencv_videostab246d.dll

c:\opencv\build\x86\vc11\include\opencv
c:\opencv\build\x86\vc11\include\opencv2

c:\opencv\build\x86\vc11\include\opencv\cv.h
c:\opencv\build\x86\vc11\include\opencv\cv.hpp
c:\opencv\build\x86\vc11\include\opencv\cvaux.h
c:\opencv\build\x86\vc11\include\opencv\cvaux.hpp
c:\opencv\build\x86\vc11\include\opencv\cvwimage.h
c:\opencv\build\x86\vc11\include\opencv\cxcore.h
c:\opencv\build\x86\vc11\include\opencv\cxcore.hpp
c:\opencv\build\x86\vc11\include\opencv\cxeigen.hpp
c:\opencv\build\x86\vc11\include\opencv\cxmisc.h
c:\opencv\build\x86\vc11\include\opencv\highgui.h
c:\opencv\build\x86\vc11\include\opencv\ml.h

c:\opencv\build\x86\vc11\include\opencv2\calib3d
c:\opencv\build\x86\vc11\include\opencv2\contrib
c:\opencv\build\x86\vc11\include\opencv2\core
c:\opencv\build\x86\vc11\include\opencv2\features2d
c:\opencv\build\x86\vc11\include\opencv2\flann
c:\opencv\build\x86\vc11\include\opencv2\gpu
c:\opencv\build\x86\vc11\include\opencv2\highgui
c:\opencv\build\x86\vc11\include\opencv2\imgproc
c:\opencv\build\x86\vc11\include\opencv2\legacy
c:\opencv\build\x86\vc11\include\opencv2\ml
c:\opencv\build\x86\vc11\include\opencv2\nonfree
c:\opencv\build\x86\vc11\include\opencv2\objdetect
c:\opencv\build\x86\vc11\include\opencv2\ocl
c:\opencv\build\x86\vc11\include\opencv2\opencv.hpp
c:\opencv\build\x86\vc11\include\opencv2\opencv_modules.hpp
c:\opencv\build\x86\vc11\include\opencv2\photo
c:\opencv\build\x86\vc11\include\opencv2\stitching
c:\opencv\build\x86\vc11\include\opencv2\superres
c:\opencv\build\x86\vc11\include\opencv2\ts
c:\opencv\build\x86\vc11\include\opencv2\video
c:\opencv\build\x86\vc11\include\opencv2\videostab
c:\opencv\build\x86\vc11\include\opencv2\world
c:\opencv\build\x86\vc11\include\opencv2\calib3d\calib3d.hpp
c:\opencv\build\x86\vc11\include\opencv2\contrib\contrib.hpp
c:\opencv\build\x86\vc11\include\opencv2\contrib\detection_based_tracker.hpp
c:\opencv\build\x86\vc11\include\opencv2\contrib\hybridtracker.hpp
c:\opencv\build\x86\vc11\include\opencv2\contrib\openfabmap.hpp
c:\opencv\build\x86\vc11\include\opencv2\contrib\retina.hpp
c:\opencv\build\x86\vc11\include\opencv2\core\core.hpp
c:\opencv\build\x86\vc11\include\opencv2\core\core_c.h
c:\opencv\build\x86\vc11\include\opencv2\core\cuda_devptrs.hpp
c:\opencv\build\x86\vc11\include\opencv2\core\devmem2d.hpp
c:\opencv\build\x86\vc11\include\opencv2\core\eigen.hpp
c:\opencv\build\x86\vc11\include\opencv2\core\gpumat.hpp
c:\opencv\build\x86\vc11\include\opencv2\core\internal.hpp
c:\opencv\build\x86\vc11\include\opencv2\core\mat.hpp
c:\opencv\build\x86\vc11\include\opencv2\core\opengl_interop.hpp
c:\opencv\build\x86\vc11\include\opencv2\core\opengl_interop_deprecated.hpp
c:\opencv\build\x86\vc11\include\opencv2\core\operations.hpp
c:\opencv\build\x86\vc11\include\opencv2\core\types_c.h
c:\opencv\build\x86\vc11\include\opencv2\core\version.hpp
c:\opencv\build\x86\vc11\include\opencv2\core\wimage.hpp
c:\opencv\build\x86\vc11\include\opencv2\features2d\features2d.hpp
c:\opencv\build\x86\vc11\include\opencv2\flann\allocator.h
c:\opencv\build\x86\vc11\include\opencv2\flann\all_indices.h
c:\opencv\build\x86\vc11\include\opencv2\flann\any.h
c:\opencv\build\x86\vc11\include\opencv2\flann\autotuned_index.h
c:\opencv\build\x86\vc11\include\opencv2\flann\composite_index.h
c:\opencv\build\x86\vc11\include\opencv2\flann\config.h
c:\opencv\build\x86\vc11\include\opencv2\flann\defines.h
c:\opencv\build\x86\vc11\include\opencv2\flann\dist.h
c:\opencv\build\x86\vc11\include\opencv2\flann\dummy.h
c:\opencv\build\x86\vc11\include\opencv2\flann\dynamic_bitset.h
c:\opencv\build\x86\vc11\include\opencv2\flann\flann.hpp
c:\opencv\build\x86\vc11\include\opencv2\flann\flann_base.hpp
c:\opencv\build\x86\vc11\include\opencv2\flann\general.h
c:\opencv\build\x86\vc11\include\opencv2\flann\ground_truth.h
c:\opencv\build\x86\vc11\include\opencv2\flann\hdf5.h
c:\opencv\build\x86\vc11\include\opencv2\flann\heap.h
c:\opencv\build\x86\vc11\include\opencv2\flann\hierarchical_clustering_index.h
c:\opencv\build\x86\vc11\include\opencv2\flann\index_testing.h
c:\opencv\build\x86\vc11\include\opencv2\flann\kdtree_index.h
c:\opencv\build\x86\vc11\include\opencv2\flann\kdtree_single_index.h
c:\opencv\build\x86\vc11\include\opencv2\flann\kmeans_index.h
c:\opencv\build\x86\vc11\include\opencv2\flann\linear_index.h
c:\opencv\build\x86\vc11\include\opencv2\flann\logger.h
c:\opencv\build\x86\vc11\include\opencv2\flann\lsh_index.h
c:\opencv\build\x86\vc11\include\opencv2\flann\lsh_table.h
c:\opencv\build\x86\vc11\include\opencv2\flann\matrix.h
c:\opencv\build\x86\vc11\include\opencv2\flann\miniflann.hpp
c:\opencv\build\x86\vc11\include\opencv2\flann\nn_index.h
c:\opencv\build\x86\vc11\include\opencv2\flann\object_factory.h
c:\opencv\build\x86\vc11\include\opencv2\flann\params.h
c:\opencv\build\x86\vc11\include\opencv2\flann\random.h
c:\opencv\build\x86\vc11\include\opencv2\flann\result_set.h
c:\opencv\build\x86\vc11\include\opencv2\flann\sampling.h
c:\opencv\build\x86\vc11\include\opencv2\flann\saving.h
c:\opencv\build\x86\vc11\include\opencv2\flann\simplex_downhill.h
c:\opencv\build\x86\vc11\include\opencv2\flann\timer.h
c:\opencv\build\x86\vc11\include\opencv2\gpu\device
c:\opencv\build\x86\vc11\include\opencv2\gpu\devmem2d.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\gpu.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\gpumat.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\stream_accessor.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\block.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\border_interpolate.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\color.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\common.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\datamov_utils.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\detail
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\dynamic_smem.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\emulation.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\filters.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\funcattrib.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\functional.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\limits.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\reduce.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\saturate_cast.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\scan.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\simd_functions.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\static_check.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\transform.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\type_traits.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\utility.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\vec_distance.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\vec_math.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\vec_traits.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\warp.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\warp_reduce.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\warp_shuffle.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\detail\color_detail.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\detail\reduce.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\detail\reduce_key_val.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\detail\transform_detail.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\detail\type_traits_detail.hpp
c:\opencv\build\x86\vc11\include\opencv2\gpu\device\detail\vec_distance_detail.hpp
c:\opencv\build\x86\vc11\include\opencv2\highgui\cap_ios.h
c:\opencv\build\x86\vc11\include\opencv2\highgui\highgui.hpp
c:\opencv\build\x86\vc11\include\opencv2\highgui\highgui_c.h
c:\opencv\build\x86\vc11\include\opencv2\highgui\ios.h
c:\opencv\build\x86\vc11\include\opencv2\imgproc\imgproc.hpp
c:\opencv\build\x86\vc11\include\opencv2\imgproc\imgproc_c.h
c:\opencv\build\x86\vc11\include\opencv2\imgproc\types_c.h
c:\opencv\build\x86\vc11\include\opencv2\legacy\blobtrack.hpp
c:\opencv\build\x86\vc11\include\opencv2\legacy\compat.hpp
c:\opencv\build\x86\vc11\include\opencv2\legacy\legacy.hpp
c:\opencv\build\x86\vc11\include\opencv2\legacy\streams.hpp
c:\opencv\build\x86\vc11\include\opencv2\ml\ml.hpp
c:\opencv\build\x86\vc11\include\opencv2\nonfree\features2d.hpp
c:\opencv\build\x86\vc11\include\opencv2\nonfree\gpu.hpp
c:\opencv\build\x86\vc11\include\opencv2\nonfree\nonfree.hpp
c:\opencv\build\x86\vc11\include\opencv2\nonfree\ocl.hpp
c:\opencv\build\x86\vc11\include\opencv2\objdetect\objdetect.hpp
c:\opencv\build\x86\vc11\include\opencv2\ocl\matrix_operations.hpp
c:\opencv\build\x86\vc11\include\opencv2\ocl\ocl.hpp
c:\opencv\build\x86\vc11\include\opencv2\ocl\private
c:\opencv\build\x86\vc11\include\opencv2\ocl\private\util.hpp
c:\opencv\build\x86\vc11\include\opencv2\photo\photo.hpp
c:\opencv\build\x86\vc11\include\opencv2\photo\photo_c.h
c:\opencv\build\x86\vc11\include\opencv2\stitching\detail
c:\opencv\build\x86\vc11\include\opencv2\stitching\stitcher.hpp
c:\opencv\build\x86\vc11\include\opencv2\stitching\warpers.hpp
c:\opencv\build\x86\vc11\include\opencv2\stitching\detail\autocalib.hpp
c:\opencv\build\x86\vc11\include\opencv2\stitching\detail\blenders.hpp
c:\opencv\build\x86\vc11\include\opencv2\stitching\detail\camera.hpp
c:\opencv\build\x86\vc11\include\opencv2\stitching\detail\exposure_compensate.hpp
c:\opencv\build\x86\vc11\include\opencv2\stitching\detail\matchers.hpp
c:\opencv\build\x86\vc11\include\opencv2\stitching\detail\motion_estimators.hpp
c:\opencv\build\x86\vc11\include\opencv2\stitching\detail\seam_finders.hpp
c:\opencv\build\x86\vc11\include\opencv2\stitching\detail\util.hpp
c:\opencv\build\x86\vc11\include\opencv2\stitching\detail\util_inl.hpp
c:\opencv\build\x86\vc11\include\opencv2\stitching\detail\warpers.hpp
c:\opencv\build\x86\vc11\include\opencv2\stitching\detail\warpers_inl.hpp
c:\opencv\build\x86\vc11\include\opencv2\superres\optical_flow.hpp
c:\opencv\build\x86\vc11\include\opencv2\superres\superres.hpp
c:\opencv\build\x86\vc11\include\opencv2\ts\gpu_perf.hpp
c:\opencv\build\x86\vc11\include\opencv2\ts\gpu_test.hpp
c:\opencv\build\x86\vc11\include\opencv2\ts\ts.hpp
c:\opencv\build\x86\vc11\include\opencv2\ts\ts_gtest.h
c:\opencv\build\x86\vc11\include\opencv2\ts\ts_perf.hpp
c:\opencv\build\x86\vc11\include\opencv2\video\background_segm.hpp
c:\opencv\build\x86\vc11\include\opencv2\video\tracking.hpp
c:\opencv\build\x86\vc11\include\opencv2\video\video.hpp
c:\opencv\build\x86\vc11\include\opencv2\videostab\deblurring.hpp
c:\opencv\build\x86\vc11\include\opencv2\videostab\fast_marching.hpp
c:\opencv\build\x86\vc11\include\opencv2\videostab\fast_marching_inl.hpp
c:\opencv\build\x86\vc11\include\opencv2\videostab\frame_source.hpp
c:\opencv\build\x86\vc11\include\opencv2\videostab\global_motion.hpp
c:\opencv\build\x86\vc11\include\opencv2\videostab\inpainting.hpp
c:\opencv\build\x86\vc11\include\opencv2\videostab\log.hpp
c:\opencv\build\x86\vc11\include\opencv2\videostab\motion_stabilizing.hpp
c:\opencv\build\x86\vc11\include\opencv2\videostab\optical_flow.hpp
c:\opencv\build\x86\vc11\include\opencv2\videostab\stabilizer.hpp
c:\opencv\build\x86\vc11\include\opencv2\videostab\videostab.hpp
c:\opencv\build\x86\vc11\include\opencv2\world\world.hpp

c:\opencv\build\x86\vc11\lib\OpenCVConfig.cmake
c:\opencv\build\x86\vc11\lib\opencv_calib3d246.lib
c:\opencv\build\x86\vc11\lib\opencv_calib3d246d.lib
c:\opencv\build\x86\vc11\lib\opencv_contrib246.lib
c:\opencv\build\x86\vc11\lib\opencv_contrib246d.lib
c:\opencv\build\x86\vc11\lib\opencv_core246.lib
c:\opencv\build\x86\vc11\lib\opencv_core246d.lib
c:\opencv\build\x86\vc11\lib\opencv_features2d246.lib
c:\opencv\build\x86\vc11\lib\opencv_features2d246d.lib
c:\opencv\build\x86\vc11\lib\opencv_flann246.lib
c:\opencv\build\x86\vc11\lib\opencv_flann246d.lib
c:\opencv\build\x86\vc11\lib\opencv_gpu246.lib
c:\opencv\build\x86\vc11\lib\opencv_gpu246d.lib
c:\opencv\build\x86\vc11\lib\opencv_haartraining_engine.lib
c:\opencv\build\x86\vc11\lib\opencv_haartraining_engined.lib
c:\opencv\build\x86\vc11\lib\opencv_highgui246.lib
c:\opencv\build\x86\vc11\lib\opencv_highgui246d.lib
c:\opencv\build\x86\vc11\lib\opencv_imgproc246.lib
c:\opencv\build\x86\vc11\lib\opencv_imgproc246d.lib
c:\opencv\build\x86\vc11\lib\opencv_legacy246.lib
c:\opencv\build\x86\vc11\lib\opencv_legacy246d.lib
c:\opencv\build\x86\vc11\lib\opencv_ml246.lib
c:\opencv\build\x86\vc11\lib\opencv_ml246d.lib
c:\opencv\build\x86\vc11\lib\opencv_nonfree246.lib
c:\opencv\build\x86\vc11\lib\opencv_nonfree246d.lib
c:\opencv\build\x86\vc11\lib\opencv_objdetect246.lib
c:\opencv\build\x86\vc11\lib\opencv_objdetect246d.lib
c:\opencv\build\x86\vc11\lib\opencv_ocl246.lib
c:\opencv\build\x86\vc11\lib\opencv_ocl246d.lib
c:\opencv\build\x86\vc11\lib\opencv_photo246.lib
c:\opencv\build\x86\vc11\lib\opencv_photo246d.lib
c:\opencv\build\x86\vc11\lib\opencv_stitching246.lib
c:\opencv\build\x86\vc11\lib\opencv_stitching246d.lib
c:\opencv\build\x86\vc11\lib\opencv_superres246.lib
c:\opencv\build\x86\vc11\lib\opencv_superres246d.lib
c:\opencv\build\x86\vc11\lib\opencv_ts246.lib
c:\opencv\build\x86\vc11\lib\opencv_ts246d.lib
c:\opencv\build\x86\vc11\lib\opencv_video246.lib
c:\opencv\build\x86\vc11\lib\opencv_video246d.lib
c:\opencv\build\x86\vc11\lib\opencv_videostab246.lib
c:\opencv\build\x86\vc11\lib\opencv_videostab246d.lib
c:\opencv\build\x86\vc11\staticlib\IlmImf.lib
c:\opencv\build\x86\vc11\staticlib\IlmImfd.lib
c:\opencv\build\x86\vc11\staticlib\libjasper.lib
c:\opencv\build\x86\vc11\staticlib\libjasperd.lib
c:\opencv\build\x86\vc11\staticlib\libjpeg.lib
c:\opencv\build\x86\vc11\staticlib\libjpegd.lib
c:\opencv\build\x86\vc11\staticlib\libpng.lib
c:\opencv\build\x86\vc11\staticlib\libpngd.lib
c:\opencv\build\x86\vc11\staticlib\libtiff.lib
c:\opencv\build\x86\vc11\staticlib\libtiffd.lib
c:\opencv\build\x86\vc11\staticlib\OpenCVConfig.cmake
c:\opencv\build\x86\vc11\staticlib\opencv_calib3d246.lib
c:\opencv\build\x86\vc11\staticlib\opencv_calib3d246d.lib
c:\opencv\build\x86\vc11\staticlib\opencv_contrib246.lib
c:\opencv\build\x86\vc11\staticlib\opencv_contrib246d.lib
c:\opencv\build\x86\vc11\staticlib\opencv_core246.lib
c:\opencv\build\x86\vc11\staticlib\opencv_core246d.lib
c:\opencv\build\x86\vc11\staticlib\opencv_features2d246.lib
c:\opencv\build\x86\vc11\staticlib\opencv_features2d246d.lib
c:\opencv\build\x86\vc11\staticlib\opencv_ffmpeg246.dll
c:\opencv\build\x86\vc11\staticlib\opencv_flann246.lib
c:\opencv\build\x86\vc11\staticlib\opencv_flann246d.lib
c:\opencv\build\x86\vc11\staticlib\opencv_gpu246.lib
c:\opencv\build\x86\vc11\staticlib\opencv_gpu246d.lib
c:\opencv\build\x86\vc11\staticlib\opencv_haartraining_engine.lib
c:\opencv\build\x86\vc11\staticlib\opencv_haartraining_engined.lib
c:\opencv\build\x86\vc11\staticlib\opencv_highgui246.lib
c:\opencv\build\x86\vc11\staticlib\opencv_highgui246d.lib
c:\opencv\build\x86\vc11\staticlib\opencv_imgproc246.lib
c:\opencv\build\x86\vc11\staticlib\opencv_imgproc246d.lib
c:\opencv\build\x86\vc11\staticlib\opencv_legacy246.lib
c:\opencv\build\x86\vc11\staticlib\opencv_legacy246d.lib
c:\opencv\build\x86\vc11\staticlib\opencv_ml246.lib
c:\opencv\build\x86\vc11\staticlib\opencv_ml246d.lib
c:\opencv\build\x86\vc11\staticlib\opencv_nonfree246.lib
c:\opencv\build\x86\vc11\staticlib\opencv_nonfree246d.lib
c:\opencv\build\x86\vc11\staticlib\opencv_objdetect246.lib
c:\opencv\build\x86\vc11\staticlib\opencv_objdetect246d.lib
c:\opencv\build\x86\vc11\staticlib\opencv_ocl246.lib
c:\opencv\build\x86\vc11\staticlib\opencv_ocl246d.lib
c:\opencv\build\x86\vc11\staticlib\opencv_photo246.lib
c:\opencv\build\x86\vc11\staticlib\opencv_photo246d.lib
c:\opencv\build\x86\vc11\staticlib\opencv_stitching246.lib
c:\opencv\build\x86\vc11\staticlib\opencv_stitching246d.lib
c:\opencv\build\x86\vc11\staticlib\opencv_superres246.lib
c:\opencv\build\x86\vc11\staticlib\opencv_superres246d.lib
c:\opencv\build\x86\vc11\staticlib\opencv_ts246.lib
c:\opencv\build\x86\vc11\staticlib\opencv_ts246d.lib
c:\opencv\build\x86\vc11\staticlib\opencv_video246.lib
c:\opencv\build\x86\vc11\staticlib\opencv_video246d.lib
c:\opencv\build\x86\vc11\staticlib\opencv_videostab246.lib
c:\opencv\build\x86\vc11\staticlib\opencv_videostab246d.lib
c:\opencv\build\x86\vc11\staticlib\zlib.lib
c:\opencv\build\x86\vc11\staticlib\zlibd.lib

PDFの解析は、正規表現で行う

PDFの構文は、正規表現を使って解析するのがベスト。
サンプルはRegEXTestというプロジェクトに保存。Z:\開発_システム開発のソースと自社開発システムのドキュメント\その他に保存しました。今後いろいろなパターンを登録する予定。

コメントを登録ユーザーに制限しました

海外からのコメントスパムに遭ったようです。

登録ユーザーしかコメントできないようにsettingsから変更したつもりです。

BufferedGraphicsContextv_1 Line_2にライン追加中にマウスを移動させるときに一時的なラインを表示する処理を追加した。 この追加によって、今マウスアップしたら、どのような線が引けるかがリアルタイムでわかるようになった。四角の追加も同様の修正を行った。

BufferedGraphicsContextv_1 Line_2として保存。

スマートフォンアプリ考

・葬儀関連
長屋が幼なじみが父親を亡くし、葬式の手配から何からまったく何も分からなかったという経験を聞いたことから、死亡診断書を病院が発行してから、役所で埋葬許可書を取得し、葬儀屋へ葬儀の依頼を出すまでの手順などをアプリやWebサービスとして、真夜中だろうとスマホからアクセスできるようになれば、と思った。
<調査結果>
既に葬儀屋さんの比較検索サイトは大量に存在しており、大体の流れはつかめるのかも。
<私見>
葬儀の手配だけでなくそれまでの役所的手続きの流れがもっと分かりやすく

・観光関連
日本語しかない案内表示/掲示に対してQRコードを提供し、外国人観光客がQRコード読み取りアプリを介して、自国語での案内を読めるようにする。
<検証>
camdictionaryアプリで日本語看板を英語翻訳を試すも、文字単位でしか認識しなかった。
<私見>
QRコードからURLをブラウザで開く、という機能の提供は想定できても、どの業種業態職種へのどの国の人が何を求めてやってくるのか、ニーズ把握は最低限必要だと感じた。QRコードの使用目的としてなら、防水で紫外線による褪色にも強いコーティングされたQRコードシールを防災用に各電柱に貼らせてもらい、住所、GPS値などの現在地情報と、現在地から最寄りの交通手段や避難場所を通知できるようにすれば、地域住民/企業にもスポンサーになってもらいやすく、自治体への売り込みも分かりやすく進めやすい。QRコードを読み取るアプリの認知を高めることもできそうだと思った。

 

PictureBoxの描画スピードを上げる

href=”http://imagingsolution.net/program/csharp/bufferedgraphicscontext/

 C#でグラフィックスを描画するのには、いろいろな方法があり、それぞれスピードが違います。結論として、DoubleBufferedを有効にしてPaintイベントで取得するGraphicsオブジェクトに対して描画するのが一番早いと書いてあります。
 ここのサンプルを実行すると、速さが実感できます。サンプル(BufferedGraphicsContext)は、Z:\開発_システム開発のソースと自社開発システムのドキュメント\その他\BufferedGraphicsContextに保存してあります。
 Gridを描画するように変更してありますが、前に東さんに作ってもらったものに比べて、かなり速くなっています。

 PDFの帳票作成ツールは、この方式に変更するつもりです。

また、描画した図形を選択するアルゴリズムは以下を参照します。ただしソースコードが省略されているため、役に立たないかも。教員だけがウンロードできるとのこと。

    自己紹介

    ブログについての説明や、自己紹介を書くスペースです。必要ない場合は削除するだけ!

    続きを読む

    検索

We love WordPress
One in a Million Theme by WordPress theme