当前位置:网站首页>How to solve the problem that the ID is not displayed when easycvr edits the national standard channel?
How to solve the problem that the ID is not displayed when easycvr edits the national standard channel?
2022-06-23 20:40:00 【Tsingsee green rhino video】
Video fusion cloud service platform EasyCVR There is no need to adjust the existing monitoring architecture , Support CDN Push flow , Flexible to adapt to the original architecture ; And flexible expansion on demand 、 Shrinking resources , No plug-in installation 、 Browser restrictions, etc , No plug-ins are implemented 、 Multi platform free viewing playback . Besides , We will also pay attention to... From time to time EasyCVR Adjust and add the original functions of , To meet the needs of different users or projects .
In the new version EasyCVR When testing , Edit the national standard channel in equipment management , Find out id It doesn't show , View the data returned by the backend interface , Find the data returned from the interface , The channel is missing id Field of .
Add the following code , When the front end passes in the channel device number to the back end , Back end to judge , If it is a national standard type , Here will be the corresponding equipment id Return to the interface called by the front end .
for _, value := range *channels {
if value.ChannelType == cvrdo.TypeGB() {
gbschannels := make([]*models.Channel, 0)
q := db.SQLite.Model(models.Channel{}).Where("`index`= ?", value.ChannelID)
q.Find(&gbschannels)
if len(gbschannels) != 1 {
continue
}
// Under the equipment channel [ name ][ Enable ][ On-line ][ videotape ][ Audio ][ On demand ] Field conversion
//[ On-line ]
if gbschannels[0].Online() {
value.Online = 1
} else {
value.Online = 0
}Look again , When editing a device channel , GB type channel id Everything is all right .
As TSINGSEE Green rhino video is a platform with a wide range of access protocols ,EasyCVR Has been expanding related functions such as intelligent analysis , Among them, face recognition function and traffic statistics function have been applied in some projects , Soon traffic statistics 、 License plate recognition and other functions will also be online .
边栏推荐
- [open source] goravel (golang Web Framework) - new cache module
- How to solve the problem of large traffic audio audit? What are the common approval methods?
- [golang] type conversion summary
- [golang] quick review guide quickreview (IV) -- functions
- Add two factor authentication, not afraid of password disclosure, let alone 123456
- How to deal with product pictures? How to select mapping software?
- What technology is used for video intelligent audit? Difficulties encountered in video audit?
- LeetCode 260. Number III that appears only once
- Gaussdb (DWS) database intelligent monitoring operation and maintenance service - node monitoring indicators
- [golang] quick review guide quickreview (x) -- goroutine pool
猜你喜欢

Eight misunderstandings, broken one by one (final): the cloud is difficult to expand, the customization is poor, and the administrator will lose control?

测试的重要性及目的

Interview with Mo Tianlun | ivorysql wangzhibin - ivorysql, an Oracle compatible open source database based on PostgreSQL

Kubernetes resource topology aware scheduling optimization

Technology sharing | wvp+zlmediakit realizes streaming playback of camera gb28181

SQL联合查询(内联、左联、右联、全联)的语法

Syntaxe des requêtes fédérées SQL (inline, left, right, full)

35歲危機?內卷成程序員代名詞了…

Leaders of Hangcheng street, Bao'an District and their delegation visited lianchengfa for investigation

Official announcement. Net 7 preview 5
随机推荐
[golang] follow the object pool sync Pool
Official announcement. Net 7 preview 5
Teach you how to develop desktop applications with web pages
Implementing MySQL fuzzy search with node and express
December 29, 2021: the elimination rules of a subsequence are as follows: 1. In a subsequence
How to solve the problem of large traffic audio audit? What are the common approval methods?
UST 崩盘后,稳定币市场格局将迎来新机遇?
Digital procurement transformation solution: SaaS procurement management platform promotes enterprise sunshine procurement
想开个户,在股票网上开户安全吗?资金会被骗走吗?
How to open a domestic futures account? Which futures company is safer to open an account?
Yaokui tower in Fengjie, Chongqing, after its completion, will be the safety tower for Sichuan river shipping with five local scholars in the company
@@Script implementation of ishell automatic deployment
手续费佣金低的券商,华泰证券网上开户安全吗
【Golang】跟着源码学技巧系列之对象池sync.Pool
Interpreting the 2022 agile coaching industry status report
Want to open an account, is it safe to open an account on the stock Internet? Will the funds be cheated away?
国元期货交易软件正规吗?如何安全下载?
How to make a material identification sheet
Importance and purpose of test
【Golang】来几道题以加强Slice