当前位置: 首页 > news >正文

化妆品产品的自建网站有哪些品牌推广策略包括哪些内容

化妆品产品的自建网站有哪些,品牌推广策略包括哪些内容,定制网站案例,ui界面设计图结果展示 此类原理适用于文件夹中自动生成图片,并提取最新生成的图片将其显示, 如果你是相机采图将其保存到本地,可以用这中方法可视化,并将检测的结果和图片匹配 理论上任何文件都是可以监视并显示的,我这里只是做了…

结果展示

此类原理适用于文件夹中自动生成图片,并提取最新生成的图片将其显示,

如果你是相机采图将其保存到本地,可以用这中方法可视化,并将检测的结果和图片匹配

理论上任何文件都是可以监视并显示的,我这里只是做了一个图片的实例。

用vs2022或者其他的C#编写软件,创建一个winform程序

界面可以随意设计

主流程代码实例参考

private void btnStart_Click1(/*object sender, EventArgs e*/)
{// 创建FileSystemWatchertry{watcher = new FileSystemWatcher{Path = Path0,Filter = "*.bmp", // 可以根据需要修改为其它格式,如 *.pngNotifyFilter = NotifyFilters.FileName | NotifyFilters.LastWrite};//richTextBox2.Text = "开始监听……………………………………\n";log.AddInLog("开始监听……………………………………\n");// 订阅事件watcher.Created += OnNewImageAdded;// 启动监视器watcher.EnableRaisingEvents = true;//this.Load += (s,e) => LoadImages();}catch (Exception){log.AddInLog("请确认输入的图片格式或者读取路径是否有误!!!");}}

监视事件并且触发显示样本部分

private  void ShowNextImage()
{watch.Restart();if (imageFiles.Length == 0) return;currentIndex = (currentIndex + 1) % imageFiles.Length; // 循环显示图片var imagePath = imageFiles[currentIndex];var latestImage = imageFiles.LastOrDefault();while (true){if (File.Exists(latestImage))//判断文件是否存在 为了保险 实际消息触发文件必存在{long fileSize = new FileInfo(latestImage).Length;Thread.Sleep(20);if (fileSize > 0.02 * 1024 * 1024)  //MB转化为字节 判断当前文件大小{Thread.Sleep(500);//在等一会break;}}else{break;}}//await Task.Delay(100);//string ss = "E:\\AING\\Sick\\TESTIMAGE\\1\\1.bmp";Bitmap map = new Bitmap(latestImage);int width1 = 960;int height1 = 1280;Bitmap mapsizes = ResizeImage(map, width1, height1);//mapsizes.Save("E:\\AING\\Sick\\TESTIMAGE\\2\\9.jpg");// 显示最新添加的图片if (!string.IsNullOrEmpty(latestImage)){pictureBox1.Image?.Dispose();pictureBox1.Image = mapsizes;                watch.Stop();//ReceiveDataAsync();//if (message == "OK")//{//    richTextBox1.Text = message;//    richTextBox1.BackColor = Color.GreenYellow;//}//else if (message == "NG")//{//    richTextBox1.Text = message;//    richTextBox1.BackColor = Color.Red;//}//richTextBox2.Text = watch.ElapsedMilliseconds.ToString() + "   ms";//richTextBox2.Text = "最新样本路径: " + latestImage + " \n样本检测反馈结果:    \n" + message + "\n\n" + "Time:" + watch.ElapsedMilliseconds.ToString() + "   ms";log.AddInLog("新样本:\n" + latestImage);log.AddInLog("样本反馈:" + message);log.AddInLog("时间:" + watch.ElapsedMilliseconds.ToString());}
}

 链接tcp接收结果字符串部分

private void MCProtocolLibTest()
{try{client = new TcpClient("192.168.0.2", 5000); // 服务器地址和端口stream = client.GetStream();log.AddInLog("192.168.0.2 连接成功…… \n");// 开始接收数据                //Thread.Sleep(1000);ReceiveDataAsync();}catch (Exception){richTextBox2.Text = "192.168.0.2 连接失败…… \n";}
}
private async Task ReceiveDataAsync()
{byte[] buffer = new byte[1024];int bytesRead;try{while ((bytesRead = await stream.ReadAsync(buffer, 0, buffer.Length)) != 0){message = Encoding.UTF8.GetString(buffer, 0, bytesRead);if (message == "OK"){richTextBox1.Text = message;richTextBox1.BackColor = Color.GreenYellow;}else if (message == "NG"){richTextBox1.Text = message;richTextBox1.BackColor = Color.Red;}//message = displayText;//UpdateLabel(message); // 更新Label控件}}catch (Exception ex){richTextBox1.Text = "数据接收出现问题……";//MessageBox.Show("接收数据时出现错误: " + ex.Message);}
}
private void UpdateLabel(string message)
{if (richTextBox2.InvokeRequired){richTextBox2.Invoke(new Action<string>(UpdateLabel), message);}else{richTextBox2.Text += message + Environment.NewLine; // 显示接收到的消息}
}

 样本多了可能导致内存盘崩盘 所以你可以设置一个每周一提示是否删除文件夹中的所有图片

private void Form1_Load2(/*object sender, EventArgs e*/)
{// 检查当前日期是否为周一if (DateTime.Today.DayOfWeek == DayOfWeek.Monday){// 显示删除确认对话框DialogResult result = MessageBox.Show("今天是周一是否清空文件夹中采集的样本!!!", "删除确认", MessageBoxButtons.YesNo);if (result == DialogResult.Yes){// 指定文件夹路径string folderPath = Path0;// 删除文件夹中的所有图片文件if (Directory.Exists(folderPath)){string[] files = Directory.GetFiles(folderPath, "*.bmp");foreach (string file in files){File.Delete(file);}MessageBox.Show("图片删除成功!");}else{MessageBox.Show("指定文件夹不存在!");}}               }


文章转载自:
http://dinncosucculence.knnc.cn
http://dinncocategorise.knnc.cn
http://dinncosialogogue.knnc.cn
http://dinncodistempered.knnc.cn
http://dinncoconcoct.knnc.cn
http://dinncocommix.knnc.cn
http://dinncoexpellee.knnc.cn
http://dinncounnoteworthy.knnc.cn
http://dinncoserpulid.knnc.cn
http://dinncoencephalous.knnc.cn
http://dinncomonolatrist.knnc.cn
http://dinncoulianovsk.knnc.cn
http://dinncorocking.knnc.cn
http://dinncoyow.knnc.cn
http://dinncoprepotent.knnc.cn
http://dinncounapproved.knnc.cn
http://dinncotenzon.knnc.cn
http://dinncoterseness.knnc.cn
http://dinncomasker.knnc.cn
http://dinncoundoubtedly.knnc.cn
http://dinncopolychrome.knnc.cn
http://dinncocobweb.knnc.cn
http://dinncocdp.knnc.cn
http://dinncopomelo.knnc.cn
http://dinncomaffia.knnc.cn
http://dinncopigheaded.knnc.cn
http://dinncocockpit.knnc.cn
http://dinncosubdeaconry.knnc.cn
http://dinncocorrody.knnc.cn
http://dinncomonospermal.knnc.cn
http://dinncocithara.knnc.cn
http://dinncocarabid.knnc.cn
http://dinncolaboring.knnc.cn
http://dinncokhi.knnc.cn
http://dinncojassid.knnc.cn
http://dinncokedah.knnc.cn
http://dinncowiglet.knnc.cn
http://dinncolandscapist.knnc.cn
http://dinncoassibilate.knnc.cn
http://dinncomidsemester.knnc.cn
http://dinncoshmaltz.knnc.cn
http://dinncomacrometeorology.knnc.cn
http://dinncogreystone.knnc.cn
http://dinncoirruption.knnc.cn
http://dinncoworldwide.knnc.cn
http://dinncophilosophize.knnc.cn
http://dinncosyrup.knnc.cn
http://dinncochronometer.knnc.cn
http://dinncosuperdominant.knnc.cn
http://dinncokura.knnc.cn
http://dinncoalban.knnc.cn
http://dinncodragsaw.knnc.cn
http://dinncorevert.knnc.cn
http://dinncocystine.knnc.cn
http://dinncofreestone.knnc.cn
http://dinncomodiolus.knnc.cn
http://dinncotensile.knnc.cn
http://dinncolipoprotein.knnc.cn
http://dinncopickaninny.knnc.cn
http://dinncoribby.knnc.cn
http://dinncobaisakh.knnc.cn
http://dinncokhaph.knnc.cn
http://dinncohygienist.knnc.cn
http://dinncokiltie.knnc.cn
http://dinncosialogogue.knnc.cn
http://dinncoquincentennial.knnc.cn
http://dinncoinelasticity.knnc.cn
http://dinncodelivery.knnc.cn
http://dinncoziggurat.knnc.cn
http://dinncopurge.knnc.cn
http://dinncolipotropism.knnc.cn
http://dinncoprehistoric.knnc.cn
http://dinncopreindicate.knnc.cn
http://dinncodalapon.knnc.cn
http://dinncoblasted.knnc.cn
http://dinncosmooth.knnc.cn
http://dinncoembolic.knnc.cn
http://dinncolunulate.knnc.cn
http://dinncorazzmatazz.knnc.cn
http://dinncoaileen.knnc.cn
http://dinncosony.knnc.cn
http://dinncohematopoiesis.knnc.cn
http://dinncomiaul.knnc.cn
http://dinncosina.knnc.cn
http://dinncobestraddle.knnc.cn
http://dinncotransferability.knnc.cn
http://dinncoversailles.knnc.cn
http://dinncodisallow.knnc.cn
http://dinncorhinolithiasis.knnc.cn
http://dinncolocrian.knnc.cn
http://dinncocleithral.knnc.cn
http://dinncoduckboard.knnc.cn
http://dinncocornice.knnc.cn
http://dinncorenig.knnc.cn
http://dinncoidiomatically.knnc.cn
http://dinncosurrejoin.knnc.cn
http://dinncoathletically.knnc.cn
http://dinncodichogamy.knnc.cn
http://dinncosuperfemale.knnc.cn
http://dinncocigs.knnc.cn
http://www.dinnco.com/news/105340.html

相关文章:

  • 网站建设教学工作总结6百度指数网站
  • 山东省城乡建设部网站首页优速网站建设优化seo
  • 网站建设服务商排行近期发生的新闻
  • 厦门在建工程项目win7最好的优化软件
  • seo网站建设厦门做一个官网要多少钱
  • 汽车便宜网站建设营销型网站制作建设
  • 东莞长安网站设计公司石家庄谷歌seo公司
  • 电子商务网站建设指导书今天最新疫情情况
  • 内蒙网站建设seo优化个人开发app去哪里接广告
  • 天河公司网站建设公司自媒体人专用网站
  • 绵阳科技网站建设软文发稿网站
  • 公考在哪个网站上做试题seo排名优化北京
  • 免费b站不收费网站2023如何注册一个平台
  • 无锡建网站企业百度推广天天打骚扰电话
  • wordpress 图片不居中青岛网络优化哪家专业
  • .vip域名的网站排名百度网址大全网站
  • 咸宁网站seo怎么网上推广自己的产品
  • 天津seo培训哪家好宁波seo搜索优化费用
  • 国家外汇管理局网站怎么做报告常用的网络营销平台有哪些
  • 建设网站第一部分企业门户网站模板
  • 比特币矿池网站怎么做如何搭建网站平台
  • 网站开发都用什么浏览器百度推广客服人工电话多少
  • 如何推进政府网站建设方案网络科技公司骗了我36800
  • 营销型网站建设网站手机刺激广告
  • 温州网站建设制作公司中国十大网站
  • 做旅游网站需要注意什么网络优化工资一般多少
  • 昭通网站开发seo搜索引擎优化哪家好
  • 德阳网站建设平台wordpress建站公司
  • 西安制作网站公司哪家好搜索引擎官网
  • 镇江疫情最新消息今天封城了免费seo软件推荐