2018-10-30
How to initialize a Blob variable in Caffe as zero

Sometimes we define variable in caffe using Blob, which is convenient, but how do we initialize it as zero or other value?

Read More

2013-11-06
visual studio is driving me crazy

Recently, I’v been working on a project using vs2010, my solution contains 2 projects, one of them compiles a dll, the other is a testing project. Everything is fine during my testing and debugging, but out of no where I can’t set any breakpoint in the dll project, vs2010 tells me that: “This Breakpoint Will Not Currently Be Hit, The Source Code is Different from the Original”. I immediatly clean and rebuild the entire solution, of course not working, still cannot hit the breakpoint. Then I google it for a while, there are serval solutions:

Read More

2013-09-24
VS2010: Error MSB3073, The command copy exited with code 1

Recently, I’v been working on a project about pre-processing of OCR images. I copy the project to home, when build it , This error occurs: “Error 15 error MSB3073 : The command copy exited with code 1”.

This project is built with vs2010, it works fine at lab. But at my own computer it failed compiling. The problem is with the post-build event, the solution has eight projects, each one copy it’s building result to a working directory “bin”, this command failed to find the building result and cause the compiling error.

Read More

2013-09-18
Error using MODI in Csharp(office 2007 version)

Recently I have to use MODI (Microsoft office Document Imaging) to do some OCR, I google some codes, one of them is in csharp from here, like below

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
private static string OCR(string fileToOCR)
{
MODI.Document md = new MODI.Document();
md.Create(fileToOCR);
try
{
md.OCR(MODI.MiLANGUAGES.miLANG_CHINESE_SIMPLIFIED, true, true);
}
catch (Exception e)
{
Console.WriteLine(e.ToString());
return "Error!";
}
MODI.Image img = (MODI.Image)md.Images[0];
MODI.Layout layout = img.Layout;
layout = img.Layout;
string result = layout.Text;
md.Close(false);
return result;
}

Read More

2013-04-25
CxImage在VS2008下的编译

这个是以前老博客的文章,貌似以前写的有意义的不多,就单个转贴过来了,SAE上面的真的找不回来了,操蛋的新浪

基本过程是:

  1. 下载。。。
  2. 用vs2008打开。。
  3. 一些必要设置,很重要:有4个模式,其中切换到debug和unicode debug模式下,修改如下设置,对于目录下的13个项目,都要设置,分别是属性->C/C++->常规->调试信息格式:修改为 程序数据库(/Zi)属性->链接器->常规->启用增量连接:修改为 否(/INCREMENTAL:NO)对于13个项目的debug和unicode模式都要修改不修改的话中间可能会出现这种错误:LINK : fatal error LNK1000: Internal error during IncrBuildImage
Read More