Qt调用谷歌拼音输入插件

要在Qt中调用谷歌拼音输入插件
编译谷歌拼音输入法源码:

可以通过编译谷歌拼音输入法的源码来实现在Qt中的应用。以下是一些步骤:
下载QtInputMethod_GooglePinyin源码,例如从Gitee获取。
使用MinGW64或MSVC2019_64构建套件编译源码。
编译完成后,将生成的tgtsmlInputContextPlugin.dll复制到Qt安装目录下的plugins/platforminputcontexts目录中。
在应用程序中设置环境变量QT_IM_MODULE为tgtsml,这样当光标聚焦在输入文本框时,会自动弹出虚拟键盘。

创建自定义输入法插件:

可以将谷歌拼音输入法编译成静态库或动态库,并在Qt中创建一个自定义的输入法插件。以下是一些关键步骤:
将谷歌拼音输入法的源码剥离出来,C++实现,并编译成静态库或动态库。
在Qt项目中添加静态库或动态库的链接,并包含相关的头文件和源文件。
实现一个自定义的输入法类,封装谷歌拼音输入法的调用接口,例如pinyin_im::init和pinyin_im::search函数。
使用QtInputMethod_GooglePinyin项目:

该项目提供了一个完整的解决方案,包括编译好的输入法插件和示例程序。以下是一些关键步骤:
下载QtInputMethod_GooglePinyin源码。
使用MinGW64或MSVC2019_64构建套件编译源码。
将编译生成的tgtsmlInputContextPlugin.dll复制到Qt安装目录下的plugins/platforminputcontexts目录中。
在应用程序中设置环境变量QT_IM_MODULE为tgtsml,这样当光标聚焦在输入文本框时,会自动弹出虚拟键盘。
请添加图片描述

#ifndef KEYBOARDFORM_H
#define KEYBOARDFORM_H#include <QWidget>
class QPushButton;
class QLabel;class KeyboardForm : public QWidget
{Q_OBJECTpublic:KeyboardForm(QWidget *parent = 0);void clearChineseCache();private:void chineseCharactersUpdatePrevious();void chineseCharactersUpdateNext();void chineseCharactersSelected();void btnBackspaceClicked();void btnEnterClicked();void btnUpperClicked();void btnSymbolsClicked();void btnLanguageClicked();void btnBlankspaceClicked();void btnEmojiClicked();void characterButtonClicked();void updateKeyboard();void updateButtonStateOfChineseCharacters();void searchChineseCharacters(const int &currentpage);void hideKeyboard();QList<QPushButton*> character_btns_list, chinese_characters_list, change_chinese_characters_page_list;enum InputMode{zh, en, symb};InputMode current_mode, last_mode;QWidget *widget_keyboard, *widget_pinyin;bool upper_mode;QLabel *m_label_pinyin;int m_symbol_page;signals:void sendKeyToFocusItem(const QString &keytext);
};#endif // KEYBOARDFORM_H
#include "keyboardform.h"
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QFontDatabase>
#include <QFile>
#include <QApplication>
#include "pinyinime.h"using namespace ime_pinyin;#define chinesecharacters_number    7
const char *keyboard_characters = "qwertyuiopasdfghjklzxcvbnm,.?";
const QString keyboard_symbols[] = {"1", "2", "3", "4", "5", "6", "7", "8", "9", "0","@", "#", "_", "\"", "“", "”", ",", ",", ".", "。",";", ";", ":", ":", "'", "’", "、", "!", "!","~", "~", "+", "-", "*", "/", "=", "÷", "×", "√","`", "?", "^", "&&", "%", "|", "(", ")", "(", ")","[", "]", "【", "】", "{", "}", "<", ">", "《","》", "$", "€", "£", "¢", "¥", "§", "—", "/", "\","·", "……", "——", "→", "←", "↑", "↓", "■", "□", "●","○", "『", "』", "「", "」", "★", "☆", "◆", "◇"}; //29*3KeyboardForm::KeyboardForm(QWidget *parent): QWidget(parent)
{character_btns_list.clear();current_mode = InputMode::en;upper_mode = false;m_symbol_page = 0;this->setFixedSize(800,250);int keyboard_btn_width = this->width()/11.5;int keyboard_btn_height = this->height()/5.0;//设置主窗体样式this->setAttribute(Qt::WA_TranslucentBackground);this->setWindowFlags(Qt::Tool | \Qt::FramelessWindowHint | \Qt::WindowStaysOnTopHint | \Qt::WindowDoesNotAcceptFocus);//加载QSS样式表QFile qss(":/res/stylesheet.qss");if(false == qss.open(QFile::ReadOnly))return;this->setStyleSheet(qss.readAll());qss.close();//图标字体int fontId = QFontDatabase::addApplicationFont(":/res/FontAwesome.otf");QString fontName = QFontDatabase::applicationFontFamilies(fontId).at(0);QFont btnicofont(fontName);btnicofont.setPixelSize(10);//单行布局QHBoxLayout *hb[6];for(int i=0; i<6; i++){hb[i] = new QHBoxLayout();hb[i]->setMargin(0);i == 1 ? hb[i]->setSpacing(2) : hb[i]->setSpacing(0);}widget_pinyin = new QWidget(this);widget_pinyin->setFixedHeight(keyboard_btn_height);//拼音缓存m_label_pinyin = new QLabel(this);m_label_pinyin->setFixedHeight(keyboard_btn_height*0.4);hb[0]->addWidget(m_label_pinyin);hb[0]->addStretch(1);//汉子缓存for(int i=0; i<chinesecharacters_number; i++){QPushButton *btn = new QPushButton(this);btn->setFixedHeight(keyboard_btn_height*0.6);hb[1]->addWidget(btn);if(i != chinesecharacters_number - 1) hb[1]->addStretch(1);if (i == 0 || i == chinesecharacters_number-1){change_chinese_characters_page_list.append(btn);btn->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);btn->setFont(btnicofont);btn->setText(i == 0 ? QString(QChar(0xf0d9)) : QString(QChar(0xf0da)));btn->setObjectName("hanzichangepage");i == 0 ? \connect(btn, &QPushButton::clicked, this, &KeyboardForm::chineseCharactersUpdatePrevious) :connect(btn, &QPushButton::clicked, this, &KeyboardForm::chineseCharactersUpdateNext);}else{chinese_characters_list.append(btn);btn->setObjectName("hanzicandidates");connect(btn, &QPushButton::clicked, this, &KeyboardForm::chineseCharactersSelected);}}QVBoxLayout *vb_pinyin = new QVBoxLayout(widget_pinyin);vb_pinyin->addLayout(hb[0]);vb_pinyin->addLayout(hb[1]);vb_pinyin->setMargin(0);vb_pinyin->setSpacing(0);widget_keyboard = new QWidget(this);widget_keyboard->setFixedHeight(keyboard_btn_height*4.0);//键盘for(int i=0; i<29; i++){QPushButton *btn = new QPushButton(QChar(keyboard_characters[i]),this);btn->setFixedSize(keyboard_btn_width, keyboard_btn_height);character_btns_list.append(btn);connect(btn, &QPushButton::clicked, this, &KeyboardForm::characterButtonClicked);}//第一排字母:0-9for(int i=0; i<10; i++){hb[2]->addWidget(character_btns_list.at(i));}QPushButton *btn_backspace = new QPushButton(QChar(0xf060));btn_backspace->setFont(btnicofont);btn_backspace->setFixedSize(keyboard_btn_width*1.5, keyboard_btn_height);btn_backspace->setObjectName("function_button");hb[2]->addWidget(btn_backspace);connect(btn_backspace, &QPushButton::clicked, this, &KeyboardForm::btnBackspaceClicked);//第二排字母:10-18hb[3]->addStretch(1);for(int i=10; i<19; i++){hb[3]->addWidget(character_btns_list.at(i));}QPushButton *btn_enter = new QPushButton("Enter");btn_enter->setFixedSize(keyboard_btn_width*1.5, keyboard_btn_height);btn_enter->setObjectName("function_button");hb[3]->addWidget(btn_enter);hb[3]->addStretch(1);connect(btn_enter, &QPushButton::clicked, this, &KeyboardForm::btnEnterClicked);//第三排字母:20-26QPushButton *btn_upper = new QPushButton(QChar(0xf062));btn_upper->setFixedSize(keyboard_btn_width*1.5, keyboard_btn_height);btn_upper->setFont(btnicofont);btn_upper->setObjectName("function_button");hb[4]->addWidget(btn_upper);connect(btn_upper, &QPushButton::clicked, this, &KeyboardForm::btnUpperClicked);for(int i=19; i<29; i++){hb[4]->addWidget(character_btns_list.at(i));}character_btns_list.append(btn_upper);//第四排功能键QPushButton *btn_symbols = new QPushButton(".?123");btn_symbols->setFixedSize(keyboard_btn_width*1.5, keyboard_btn_height);btn_symbols->setObjectName("function_button");hb[5]->addWidget(btn_symbols);connect(btn_symbols, &QPushButton::clicked, this, &KeyboardForm::btnSymbolsClicked);QPushButton *btn_language = new QPushButton(QChar(0xf0ac));btn_language->setFixedSize(keyboard_btn_width, keyboard_btn_height);btn_language->setFont(btnicofont);btn_language->setObjectName("function_button");hb[5]->addWidget(btn_language);connect(btn_language, &QPushButton::clicked, this, &KeyboardForm::btnLanguageClicked);QPushButton *btn_blankspace = new QPushButton("English");btn_blankspace->setFixedHeight(keyboard_btn_height);hb[5]->addWidget(btn_blankspace);character_btns_list.append(btn_blankspace);connect(btn_blankspace, &QPushButton::clicked, this, &KeyboardForm::btnBlankspaceClicked);QPushButton *btn_emoji = new QPushButton(QChar(0xf118));btn_emoji->setFixedSize(keyboard_btn_width, keyboard_btn_height);btn_emoji->setFont(btnicofont);btn_emoji->setObjectName("emoji");hb[5]->addWidget(btn_emoji);connect(btn_emoji, &QPushButton::clicked, this, &KeyboardForm::btnEmojiClicked);QPushButton *btn_hidekeyboard = new QPushButton(QString(QChar(0xf11c)).append(QChar(0xf103)));btn_hidekeyboard->setFixedSize(keyboard_btn_width*1.5, keyboard_btn_height);btn_hidekeyboard->setFont(btnicofont);btn_hidekeyboard->setObjectName("function_button");hb[5]->addWidget(btn_hidekeyboard);connect(btn_hidekeyboard, &QPushButton::clicked, this, &KeyboardForm::hideKeyboard);QVBoxLayout *vb_keyboard = new QVBoxLayout(widget_keyboard);vb_keyboard->setMargin(0);vb_keyboard->setSpacing(0);for(int i=2; i<6; i++){vb_keyboard->addLayout(hb[i]);}QVBoxLayout *vb_system = new QVBoxLayout(this);vb_system->setMargin(0);vb_system->setSpacing(0);vb_system->addStretch(1);vb_system->addWidget(widget_pinyin);vb_system->addWidget(widget_keyboard);widget_pinyin->hide();updateButtonStateOfChineseCharacters();
}void KeyboardForm::updateButtonStateOfChineseCharacters()
{if(m_label_pinyin->text().isEmpty()){m_label_pinyin->setHidden(true);change_chinese_characters_page_list.at(0)->setHidden(true);change_chinese_characters_page_list.at(1)->setHidden(true);}else{m_label_pinyin->setHidden(false);change_chinese_characters_page_list.at(0)->setHidden(false);change_chinese_characters_page_list.at(1)->setHidden(false);}
}void KeyboardForm::chineseCharactersUpdatePrevious()
{searchChineseCharacters(-1);
}void KeyboardForm::chineseCharactersUpdateNext()
{searchChineseCharacters(1);
}void KeyboardForm::chineseCharactersSelected()
{emit sendKeyToFocusItem(((QPushButton*)sender())->text());clearChineseCache();
}void KeyboardForm::btnBackspaceClicked()
{if(current_mode != InputMode::zh || m_label_pinyin->text().isEmpty()){emit sendKeyToFocusItem("\x7F");}else{m_label_pinyin->setText(m_label_pinyin->text().left(m_label_pinyin->text().length()-1));if(m_label_pinyin->text().isEmpty()){clearChineseCache();}else{searchChineseCharacters(0);}}
}void KeyboardForm::btnEnterClicked()
{if(current_mode != InputMode::zh || m_label_pinyin->text().isEmpty()){emit sendKeyToFocusItem("\n");}else{emit sendKeyToFocusItem(m_label_pinyin->text());clearChineseCache();}
}void KeyboardForm::btnUpperClicked()
{if(current_mode == InputMode::en){upper_mode = !upper_mode;}else if(current_mode == InputMode::zh){if(!m_label_pinyin->text().isEmpty() && m_label_pinyin->text().right(1).compare("'")){m_label_pinyin->setText(m_label_pinyin->text().append("'"));}}else{if(m_symbol_page == 0){m_symbol_page = 1;character_btns_list.at(character_btns_list.length()-2)->setText("2/3");}else if(m_symbol_page == 1){m_symbol_page = 2;character_btns_list.at(character_btns_list.length()-2)->setText("3/3");}else{m_symbol_page = 0;character_btns_list.at(character_btns_list.length()-2)->setText("1/3");}}updateKeyboard();
}void KeyboardForm::btnSymbolsClicked()
{if(current_mode != InputMode::symb){widget_pinyin->setHidden(true);if(current_mode == InputMode::en){character_btns_list.at(character_btns_list.length()-1)->setText("Symbols");}else if(current_mode == InputMode::zh){character_btns_list.at(character_btns_list.length()-1)->setText("符号");}((QPushButton*)sender())->setText("abc");last_mode = current_mode;current_mode = InputMode::symb;character_btns_list.at(character_btns_list.length()-2)->setText("1/3");}else{((QPushButton*)sender())->setText(".?123");current_mode = last_mode;m_symbol_page = 0;}upper_mode = false;updateKeyboard();
}void KeyboardForm::btnLanguageClicked()
{upper_mode = false;if(current_mode == InputMode::zh){current_mode = InputMode::en;}else if(current_mode == InputMode::en){current_mode = InputMode::zh;}if(current_mode != InputMode::symb){last_mode = current_mode;updateKeyboard();}
}void KeyboardForm::clearChineseCache()
{m_label_pinyin->setText("");for(int i=0; i<chinese_characters_list.length(); i++){chinese_characters_list.at(i)->setText("");}updateButtonStateOfChineseCharacters();
}void KeyboardForm::hideKeyboard()
{clearChineseCache();this->hide();
}void KeyboardForm::updateKeyboard()
{if(current_mode != InputMode::zh){clearChineseCache();}if(current_mode == InputMode::symb){character_btns_list.at(character_btns_list.length()-2)->setCheckable(false);for(int i=0; i<29; i++){character_btns_list.at(i)->setText(keyboard_symbols[i + m_symbol_page*29]);}}else{if(true == upper_mode && current_mode == InputMode::en){character_btns_list.at(character_btns_list.length()-2)->setCheckable(true);character_btns_list.at(character_btns_list.length()-2)->setChecked(true);for(int i=0; i<26; i++){character_btns_list.at(i)->setText(QChar(keyboard_characters[i]).toUpper());}}else{for(int i=0; i<26; i++){character_btns_list.at(i)->setText(QChar(keyboard_characters[i]));}}if(current_mode == InputMode::en){widget_pinyin->setHidden(true);character_btns_list.at(character_btns_list.length()-5)->setText(",");character_btns_list.at(character_btns_list.length()-4)->setText(".");character_btns_list.at(character_btns_list.length()-3)->setText("?");character_btns_list.at(character_btns_list.length()-2)->setText(QChar(0xf062));character_btns_list.at(character_btns_list.length()-1)->setText("English");}else if(current_mode == InputMode::zh){character_btns_list.at(character_btns_list.length()-2)->setCheckable(false);widget_pinyin->setHidden(false);character_btns_list.at(character_btns_list.length()-5)->setText(",");character_btns_list.at(character_btns_list.length()-4)->setText("。");character_btns_list.at(character_btns_list.length()-3)->setText("?");character_btns_list.at(character_btns_list.length()-2)->setText("分词");character_btns_list.at(character_btns_list.length()-1)->setText("拼音");}}
}void KeyboardForm::btnBlankspaceClicked()
{if(current_mode != InputMode::zh || m_label_pinyin->text().isEmpty()){emit sendKeyToFocusItem(" ");}else{emit sendKeyToFocusItem(chinese_characters_list.at(0)->text());clearChineseCache();}
}void KeyboardForm::btnEmojiClicked()
{emit sendKeyToFocusItem("::)");
}void KeyboardForm::characterButtonClicked()
{if(current_mode == InputMode::zh){if(((QPushButton*)sender())->text() == "," || ((QPushButton*)sender())->text() == "。" || ((QPushButton*)sender())->text() == "?"){emit sendKeyToFocusItem(((QPushButton*)sender())->text());}else{if(m_label_pinyin->text().length()<15){m_label_pinyin->setText(m_label_pinyin->text().append(((QPushButton*)sender())->text()));searchChineseCharacters(0);updateButtonStateOfChineseCharacters();}}}else{emit sendKeyToFocusItem(((QPushButton*)sender())->text());}
}void KeyboardForm::searchChineseCharacters(const int &currentpage)
{const int max_spelling_length = 32;const int max_decoded_length = 32;const int max_single_hanzi = 20;static unsigned int page_change_times = 0;QString app_dir(qApp->applicationDirPath()+"/dict");im_open_decoder(QString("%1/dict_pinyin.dat").arg(app_dir).toLocal8Bit().data(),QString("%1/dict_pinyin_user.dat").arg(app_dir).toLocal8Bit().data());im_set_max_lens(max_spelling_length, max_decoded_length);im_reset_search();QByteArray bytearray(m_label_pinyin->text().toUtf8());char *pinyin(bytearray.data());size_t cand_num = im_search(pinyin, bytearray.size());size_t decode_len;im_get_sps_str(&decode_len);if (decode_len == 1){if (cand_num > 10) cand_num = 10;}else{size_t single = 0;size_t multi = 0;char16 *cand_buf = new char16[max_decoded_length];for(size_t i = 0; i < cand_num; i++){im_get_candidate(i, cand_buf, max_decoded_length);if (strlen((char *)cand_buf) > 2){multi++;}else{single++;if (single > max_single_hanzi) break;}}cand_num = multi + single;delete cand_buf;}switch(currentpage){case 1:if(cand_num > chinese_characters_list.length() && page_change_times < cand_num - chinese_characters_list.length())page_change_times++;break;case -1:if(page_change_times > 0) page_change_times--;break;default:page_change_times = 0;break;}if(0 == page_change_times)change_chinese_characters_page_list.at(0)->setEnabled(false);elsechange_chinese_characters_page_list.at(0)->setEnabled(true);if(page_change_times == cand_num - chinese_characters_list.length())change_chinese_characters_page_list.at(1)->setEnabled(false);elsechange_chinese_characters_page_list.at(1)->setEnabled(true);char16 *cand_buf = new char16[max_decoded_length];char16 *cand;QString cand_str;for (unsigned i = 0; i < cand_num; i++){cand = im_get_candidate(i, cand_buf, max_decoded_length);if (cand){cand_str = QString::fromUtf16(cand);if (i == 0) cand_str.remove(0, im_get_fixed_len());}else{cand_str = "";}int tmpindex = i - page_change_times;if(tmpindex >= 0 && tmpindex < chinese_characters_list.length()){switch(currentpage){case 1:chinese_characters_list.at(tmpindex)->setText(cand_str);break;case -1:chinese_characters_list.at(tmpindex)->setText(cand_str);break;default:chinese_characters_list.at(tmpindex)->setText(cand_str);break;}}}delete cand_buf;
}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://xiahunao.cn/news/3268944.html

如若内容造成侵权/违法违规/事实不符,请联系瞎胡闹网进行投诉反馈,一经查实,立即删除!

相关文章

Cyberchef基础概念之-循环语句操作-Jump/Label

在本专栏的前面的文章介绍了fork,merge,subsection,register等多种概念来解决实际场景的问题。本文将介绍的Jump/Label的操作类似于编程语言中的for和while的功能&#xff0c;相信在学会使用jump操作后&#xff0c;将有助于解决更为复杂的数据处理问题。 本文将详细的介绍该操…

小程序的运营方法:从入门到精通

随着科技的快速发展&#xff0c;小程序已成为我们日常生活和工作中不可或缺的一部分。小程序无需下载安装&#xff0c;即用即走的特点深受用户喜爱。那么&#xff0c;如何运营好一个小程序呢&#xff1f;下面就为大家分享一些小程序的运营方法。 一、明确目标用户 在运营小程序…

【计算机网络】单臂路由实现VLAN间路由实验

一&#xff1a;实验目的 1&#xff1a;掌握如何在路由器端口上划分子接口&#xff0c;封装dot1q协议&#xff0c;实现VLAN间的路由。 二&#xff1a;实验仪器设备及软件 硬件&#xff1a;RCMS-C服务器、网线、Windows 2019/2003操作系统的计算机等。具体为&#xff1a;路由器…

集成千兆网口(Gigabit Ethernet Port)的作用主要是提供高速的有线网络连接,其工作原理涉及以下几个关键点:

传输速率&#xff1a; 千兆网口支持的最高传输速率达到1 Gbps&#xff08;即每秒10亿位&#xff09;&#xff0c;是传统百兆网口&#xff08;100 Mbps&#xff09;的十倍速度。这使得它能够处理更大量、更高质量的数据传输。 数据传输效率&#xff1a; 千兆网口能显著提高局域…

express连接mysql

一、 安装express npm install express --save二、express配置 //引入 const express require("express"); //创建实例 const app express(); //启动服务 app.listen(8081, () > {console.log("http://localhost:8081"); });三、安装mysql npm i m…

pip install albumentations安装下载超级细水管

albumentations 是一个用于图像增强的 Python 库&#xff0c;它提供了丰富的图像变换功能&#xff0c;可以用于数据增强&#xff0c;从而提高深度学习模型的泛化能力。 直接安装命令&#xff1a; pip install albumentations但是如果半夜遇到这种19kB/s的下载速度 为头发着想&…

《Milvus Cloud向量数据库指南》——Zilliz引领非结构化数据革命:北京Meetup圆满落幕,共绘AI新篇章

7月20日北京Unstructured Data Meetup圆满落幕:Zilliz引领非结构化数据革命,共绘AI新蓝图 随着数字时代的到来,数据已成为驱动社会进步与产业升级的关键要素。其中,非结构化数据以其形式多样、内容丰富、增长迅速的特点,在医疗、金融、教育、娱乐等多个领域展现出巨大的应…

Ruby、Python、Java 开发者必备:Codigger之软件项目体检

在编程的广阔天地里&#xff0c;Ruby、Python 和 Java 开发者们各自凭借着独特的语言特性&#xff0c;构建着精彩纷呈的应用世界。然而&#xff0c;无论使用哪种语言&#xff0c;确保项目的高质量始终是至关重要的目标。而 Codigger 项目体检则成为了实现这一目标的得力助手&am…

在线投稿小程序的设计

管理员账户功能包括&#xff1a;系统首页&#xff0c;个人中心&#xff0c;用户管理&#xff0c;编辑管理&#xff0c;用户文章管理&#xff0c;文章分类管理&#xff0c;文章展示管理&#xff0c;文章稿酬管理&#xff0c;通知公告管理&#xff0c;系统管理 微信端账号功能包…

LabVIEW开发射频测试和测量系统

本文将介绍如何使用LabVIEW开发一个射频&#xff08;RF&#xff09;测试和测量系统。该系统的主要功能是对射频信号进行测量和控制&#xff0c;提供用户友好的界面来进行各种操作。 硬件组成 射频信号发生器&#xff1a;用于生成特定频率和功率的射频信号。 射频功率计&#…

Mistral新旗舰决战Llama 3.1,最强开源Large 2 123B,扛鼎多语言编程全能王

【新智元导读】紧跟着Meta的重磅发布&#xff0c;Mistral Large 2也带着权重一起上新了&#xff0c;而且参数量仅为Llama 3.1 405B的三分之一。不仅在编码、数学和多语言等专业领域可与SOTA模型直接竞争&#xff0c;还支持单节点部署。 昨天正式发布的Llama 3.1模型&#xff0…

paddle ocr 文字识别模型训练 svtr

训练模型方法参考&#xff1a;https://github.com/PaddlePaddle/PaddleOCR/blob/main/doc/doc_ch/recognition.md 实践&#xff1a;https://aistudio.baidu.com/projectdetail/4482681 SVTR 算法原理 SVTR: Scene Text Recognition with a Single Visual Model Yongkun Du a…

小论文写不出来?一文告别没思路!SCI级新算法闪耀登场,完整代码及应用直接获取

最近稍微有点忙&#xff0c;事情比较多&#xff0c;构思灵感花费了不少时间。这次发布的算法和前几个基于数学基本思想开发的算法不一样&#xff0c;是一种基于动物的一种算法&#xff0c;从动物的本能和行为中汲取灵感。本算法的开发&#xff0c;灵感撰写以及完整的算法已经全…

基于微信小程序+SpringBoot+Vue的资料分享系统(带1w+文档)

基于微信小程序SpringBootVue的资料分享系统(带1w文档) 基于微信小程序SpringBootVue的资料分享系统(带1w文档) 校园资料分享微信小程序可以实现论坛管理&#xff0c;教师管理&#xff0c;公告信息管理&#xff0c;文件信息管理&#xff0c;文件收藏管理等功能。该系统采用了Sp…

学习大数据DAY22 Linux 基 本 指 令 3与 在 Linux 系 统 中 配 置MySQL 和 Oracle

目录 网络配置类 ps 显示系统执行的进程 kill systemctl 服务管理 配置静态 ip 常见错误---虚拟机重启网卡失败或者网卡丢失 mysql 操作 上机练习 6---安装 mysql---参考《mysql 安装》文档 解锁 scott 重启后的步骤 上机练习 7---安装 oracle---参考《oracle 安装》…

【Gin】深度解析:在Gin框架中优化应用程序流程的责任链设计模式(下)

【Gin】深度解析&#xff1a;在Gin框架中优化应用程序流程的责任链设计模式(下) 大家好 我是寸铁&#x1f44a; 【Gin】深度解析&#xff1a;在Gin框架中优化应用程序流程的责任链设计模式(下)✨ 喜欢的小伙伴可以点点关注 &#x1f49d; 前言 本次文章分为上下两部分&#xf…

docker发布镜像到自己远程私有仓库

1、登录docker hub创建自己的仓库地址&#xff1a;https://hub.docker.com/repository/create 输入仓库名称 2.构建镜像 略过。。。。请自己查找别的资料&#xff0c;此篇文章只讲述镜像推送到远程 3.推送 假设你已经构建了一个镜像 web/online-editor:latest&#xff0c;现…

开源AI智能名片O2O商城小程序在拼团模式下的创新应用与策略分析

摘要 在数字化浪潮的推动下&#xff0c;社交电商以其独特的社交属性和裂变效应&#xff0c;成为电商领域的一股不可忽视的力量。拼团模式作为社交电商的重要分支&#xff0c;通过用户间的自发传播与集体购买行为&#xff0c;有效降低了商品价格&#xff0c;增强了用户粘性&…

Docker安装oracle19c

文章目录 Docker安装oracle19c1. 拉取镜像2. 创建目录并赋权3. 构建容器并启动4. 查看日志5. 登录docker容器里面6. 登录sqlplus 创建PDB用户7. 查看show pdbs7. 切换数据库8. 创建用户9. 授权10. 使用navicat连接11. 参考和感谢 Docker安装oracle19c 1. 拉取镜像 docker pul…

机器学习 | 回归算法原理——最小二乘法

Hi&#xff0c;大家好&#xff0c;我是半亩花海。很早便想学习并总结一本很喜欢的机器学习图书——立石贤吾的《白话机器学习的数学》&#xff0c;可谓通俗易懂&#xff0c;清晰形象。那就在此分享并作为学习笔记来记录我的学习过程吧&#xff01;本章的回归算法原理基于《基于…