fasdfsa commited on
Commit
c69d491
·
1 Parent(s): 99f0c2b

一切正常了

Browse files
Files changed (3) hide show
  1. imradv3.vcxproj +9 -9
  2. reame.txt +15 -1
  3. src/main.cpp +3 -3
imradv3.vcxproj CHANGED
@@ -186,6 +186,9 @@
186
  <AdditionalIncludeDirectories>E:\huggingface\imradv3\3rdparty\opencv\include;E:\huggingface\imradv3\3rdparty\imgui;E:\huggingface\imradv3\3rdparty\glfw\include;E:\huggingface\imradv3\3rdparty\freetype\include;E:\huggingface\imradv3\3rdparty\stb;E:\huggingface\imradv3\3rdparty\fa;E:\huggingface\imradv3\3rdparty\nativefiledialog\src\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
187
  <LanguageStandard>stdcpp23</LanguageStandard>
188
  <AdditionalOptions>%(AdditionalOptions) /Zc:__cplusplus /utf-8</AdditionalOptions>
 
 
 
189
  </ClCompile>
190
  <Link>
191
  <SubSystem>Windows</SubSystem>
@@ -196,14 +199,12 @@
196
  <AdditionalDependencies>imgui.lib;glfw.lib;freetype.lib;nativefiledialog.lib;opengl32.lib;glu32.lib;opencv_core4120.lib;opencv_highgui4120.lib;opencv_imgcodecs4120.lib;opencv_imgproc4120.lib;%(AdditionalDependencies)</AdditionalDependencies>
197
  </Link>
198
  </ItemDefinitionGroup>
199
-
200
- <ItemGroup>
201
- <Content Include=".\3rdparty\opencv\lib\*.dll">
202
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
203
- <Link>%(Filename)%(Extension)</Link>
204
- </Content>
205
- </ItemGroup>
206
-
207
  <ItemGroup>
208
  <Content Include=".\style\**">
209
  <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
@@ -211,7 +212,6 @@
211
  <Link>style\%(RecursiveDir)%(Filename)%(Extension)</Link>
212
  </Content>
213
  </ItemGroup>
214
-
215
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
216
  <ImportGroup Label="ExtensionTargets">
217
  </ImportGroup>
 
186
  <AdditionalIncludeDirectories>E:\huggingface\imradv3\3rdparty\opencv\include;E:\huggingface\imradv3\3rdparty\imgui;E:\huggingface\imradv3\3rdparty\glfw\include;E:\huggingface\imradv3\3rdparty\freetype\include;E:\huggingface\imradv3\3rdparty\stb;E:\huggingface\imradv3\3rdparty\fa;E:\huggingface\imradv3\3rdparty\nativefiledialog\src\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
187
  <LanguageStandard>stdcpp23</LanguageStandard>
188
  <AdditionalOptions>%(AdditionalOptions) /Zc:__cplusplus /utf-8</AdditionalOptions>
189
+ <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
190
+ <Optimization>Disabled</Optimization>
191
+ <WholeProgramOptimization>false</WholeProgramOptimization>
192
  </ClCompile>
193
  <Link>
194
  <SubSystem>Windows</SubSystem>
 
199
  <AdditionalDependencies>imgui.lib;glfw.lib;freetype.lib;nativefiledialog.lib;opengl32.lib;glu32.lib;opencv_core4120.lib;opencv_highgui4120.lib;opencv_imgcodecs4120.lib;opencv_imgproc4120.lib;%(AdditionalDependencies)</AdditionalDependencies>
200
  </Link>
201
  </ItemDefinitionGroup>
202
+ <ItemGroup>
203
+ <Content Include=".\3rdparty\opencv\lib\*.dll">
204
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
205
+ <Link>%(Filename)%(Extension)</Link>
206
+ </Content>
207
+ </ItemGroup>
 
 
208
  <ItemGroup>
209
  <Content Include=".\style\**">
210
  <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
 
212
  <Link>style\%(RecursiveDir)%(Filename)%(Extension)</Link>
213
  </Content>
214
  </ItemGroup>
 
215
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
216
  <ImportGroup Label="ExtensionTargets">
217
  </ImportGroup>
reame.txt CHANGED
@@ -1,3 +1,17 @@
1
  see huggingface\imradv2
2
 
3
- 这里把所有非 windows 的东面都删掉了,其他的看原版
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  see huggingface\imradv2
2
 
3
+ see huggingface\ColorTextEditorV2
4
+
5
+ 这里把所有非 windows 的东面都删掉了,其他的看原版
6
+
7
+
8
+ see huggingface\imradv3\src\main.cpp
9
+ void ExplorerUI(TextEditor* editor)
10
+ ExplorerUI(*ctx.codeGen, [&editor](const std::string& fpath) {
11
+ # 双击左边的文件 003.jpg,这里读 ali 识别结果,加载到编缉器
12
+
13
+ see huggingface\imradv3\src\ImGuiColorTextEdit\TextEditor.cpp
14
+ void TextEditor::HandleMouseInputs()
15
+ # 编缉器的点字出行框
16
+
17
+
src/main.cpp CHANGED
@@ -68,9 +68,9 @@ std::pair<std::filesystem::path, std::filesystem::path> get_img_json_pth(const s
68
  auto pth_json = g_currPath.parent_path().parent_path() / std::filesystem::path("data/json") / std::format("{}.json", m5);
69
  #else
70
  // 这是工作目录
71
- auto pth_img = g_currPath.parent_path().parent_path() / std::filesystem::path("data/img") / std::format("{}.txt", m5);
72
- auto pth_json = g_currPath.parent_path().parent_path() / std::filesystem::path("data/json") / std::format("{}.json", m5);
73
- //// 这是可执行文件所在目录
74
  //auto pth_img = g_currPath / std::filesystem::path("data/img") / std::format("{}.txt", m5);
75
  //auto pth_json = g_currPath / std::filesystem::path("data/json") / std::format("{}.json", m5);
76
  #endif // DEBUG
 
68
  auto pth_json = g_currPath.parent_path().parent_path() / std::filesystem::path("data/json") / std::format("{}.json", m5);
69
  #else
70
  // 这是工作目录
71
+ auto pth_img = g_currPath / std::filesystem::path("data/img") / std::format("{}.txt", m5); // .parent_path().parent_path()
72
+ auto pth_json = g_currPath / std::filesystem::path("data/json") / std::format("{}.json", m5); // .parent_path().parent_path()
73
+ //// 这是可执行文件所在目录
74
  //auto pth_img = g_currPath / std::filesystem::path("data/img") / std::format("{}.txt", m5);
75
  //auto pth_json = g_currPath / std::filesystem::path("data/json") / std::format("{}.json", m5);
76
  #endif // DEBUG