如上这个连接的文件过时了 我需要最新的
时间: 2024-03-18 18:44:12 浏览: 25
非常抱歉,我提供的链接已经过时了。以下是tesseract-ocr官方GitHub仓库中的中文训练数据下载链接:
https://github.com/tesseract-ocr/tessdata/blob/master/script/chi_sim.traineddata
这是中文简体训练数据的链接,你可以在该仓库的script目录中找到其他语言的训练数据。请注意,这些训练数据是根据最新的tesseract-ocr版本编译的,因此建议使用最新版本的tesseract-ocr引擎进行文本识别。使用时请遵循开源许可证规定,不要用于商业用途。
希望这次提供的链接可以为你提供帮助。如果还有其他问题,请随时提问。
相关问题
如上代码我想根据存在Attribute中的op这个值来判断是否需要隐藏或者显示
要根据存在Attribute中的op值来判断是否需要隐藏或显示tab页,你可以使用JSP的标签库和EL表达式来实现条件判断。以下是修改后的代码示例:
```html
<div id="tabGroup" tabGroup="true">
<ul>
<c:choose>
<c:when test="${requestScope.op=='accountsReceivable'}">
<li><a id="tabGroup_tab1" href="#tabGroup_tab1_Div"><%=ResourceManagerServer.getInstance().getMessage(
"acc.AccInvoiceDetail.recievePage")%></a></li>
</c:when>
<c:otherwise>
<li class="hiddenTab"><a id="tabGroup_tab1" href="#tabGroup_tab1_Div"><%=ResourceManagerServer.getInstance().getMessage(
"acc.AccInvoiceDetail.recievePage")%></a></li>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${requestScope.op=='payableExpense'}">
<li><a id="tabGroup_tab2" href="#tabGroup_tab2_Div"><%=ResourceManagerServer.getInstance().getMessage(
"acc.AccInvoiceDetail.payPage")%></a></li>
</c:when>
<c:otherwise>
<li class="hiddenTab"><a id="tabGroup_tab2" href="#tabGroup_tab2_Div"><%=ResourceManagerServer.getInstance().getMessage(
"acc.AccInvoiceDetail.payPage")%></a></li>
</c:otherwise>
</c:choose>
<li><a id="tabGroup_tab3" style="background-color:#fcce00;color: black;"><%=ResourceManagerServer.getInstance().getMessage(
"acc.AccInvoiceDetail.costOrRecievePage")%></a></li>
</ul>
</div>
<style>
.hiddenTab {
display: none;
}
</style>
```
在上面的代码中,我使用了JSP的`<c:choose>`标签和EL表达式来进行条件判断。根据`requestScope.op`的值,如果为`accountsReceivable`或`payableExpense`,则显示对应的tab页,否则将其隐藏。当`requestScope.op`不等于这些特定值时,我添加了一个名为`hiddenTab`的class来隐藏tab页。
请注意,上述代码假设`requestScope.op`是一个已经存在于Attribute中的属性。你可能需要根据你的实际情况进行调整。
根据如上代码,在js文件中如何获取存在Attribute中的op这个值
要在JavaScript文件中获取存在Attribute中的op值,你可以使用`getAttribute()`方法。以下是获取op值的示例代码:
```javascript
var op = document.getElementById("tabGroup").getAttribute("op");
console.log(op);
```
在上面的代码中,我使用`document.getElementById("tabGroup")`来获取具有id为"tabGroup"的元素。然后,使用`getAttribute("op")`来获取该元素中名为"op"的Attribute值并将其赋值给变量`op`。最后,使用`console.log(op)`来输出op的值。
请确保在JavaScript文件中引用的HTML页面中存在id为"tabGroup"的元素,并且该元素具有名为"op"的Attribute。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)