注册 登录
编程论坛 VFP论坛

还是车牌识别问题,有从事这行的么?

sam_jiang 发布于 2023-08-29 12:25, 863 次点击
最近需要做个小工程,给充电桩安装一个自动识别车牌的系统,凡是新能源车停靠,就放下地锁,燃油车过来则升起地锁,防止燃油车站位。

社群里有没有从事监控安防工作的?可以帮忙解释一下吗?是自己用,淘了个二手的摄像头,还有2个遥控地锁,没有说明书,一切靠摸索。

先发2张图片:
只有本站会员才能查看附件,请 登录

只有本站会员才能查看附件,请 登录
16 回复
#2
iswith2023-08-29 14:45
你逻辑就有问题,凡是新能源车停靠,就放下地锁,燃油车过来则升起地锁,防止燃油车站位,人家都不按你规则玩,你又如何。。。。。?过闸那是没有办法只有这这条路这个位置
#3
sam_jiang2023-08-29 15:45
回复 2楼 iswith
过闸跟升锁是一个道理,只不过闸改成升锁。。。
#4
iswith2023-08-29 16:44
应该要这样,不是新能源车,停到这个位置,就升锁,把你锁死,你车技好跳锁就警报,是新能源车WX支付成功就降锁走人。。。。。这个研发起来也很麻烦!首先有几个方面的技术架框要搞!回调支付成功要搞吧!你这个没有说明书要估计 哪几个孔接是锁开关,这个控制源码也要搞,还要车牌识别一套下来都要源码开发!这工作量就挺大的。。。。,你不如找个硬件商直接拿它的SDK,开发不是容易些。。。。

[此贴子已经被作者于2023-8-29 16:47编辑过]

#5
sam_jiang2023-08-29 16:57
回复 4楼 iswith
那相当于停车收费了,小区已经收过费了,我是要管理充电车位,否则燃油车占位,新能源车没法充电。。。
#6
iswith2023-08-29 21:11
可问题你有这么多逻辑在里面呀!
#7
ljb88642023-08-30 08:48
直接用海康威识别摄像头,或使用文通摄像头
#8
hu9jj2023-08-30 10:55
以下是引用iswith在2023-8-29 14:45:20的发言:

你逻辑就有问题,凡是新能源车停靠,就放下地锁,燃油车过来则升起地锁,防止燃油车站位,人家都不按你规则玩,你又如何。。。。。?过闸那是没有办法只有这这条路这个位置

您的方法也行,楼主的方法也没错,依我看还更好些,不让非新能源车停进来,而不是不让非新能源车开走。
#9
iswith2023-08-30 11:10
实际你操作一下明白了!逻辑看前者更好!实际有些人,简真就是有点空都要占。。。。
#10
chen272882272023-08-30 16:43
相机的jdk中有车牌识别回调函数,通常会返回车牌号、车牌颜色等信息,还有控制继电器的函数。
#11
sam_jiang2023-08-30 16:46
回复 10楼 chen27288227
没有说明书,有没有类似的资料?
#12
sam_jiang2023-08-30 19:41
通过ie浏览器脸上摄像机,界面如图:
只有本站会员才能查看附件,请 登录
#13
sam_jiang2023-08-30 19:44
查看网页的源代码有用吗?
哪里可以查看js源码?

<!doctype html>
<html>
  <head>
    <meta charset="utf-8"/>
    <title>系统设置</title>
   
    <script src="js/jquery-1.12.4.js"></script>
    <script src="js/jquery-ui.js"></script>
    <link rel="stylesheet" href="css/jquery-ui.css">
    <script src="js/json2.js"></script>
    <script src="js/setGuidingHtml.js"></script>
    <link rel="stylesheet" href="css/setGuidingHtml.css">
    <script type="text/javascript">
         var arrBaundRate=new Array(1200,2400,4800,9600,14400,19200,38400,56000,57600,115200,128000,256000);
           var arrProvience=new Array("京","津","冀","晋","蒙","辽","吉","黑","沪","苏","浙","皖","闽","赣",
    "鲁","豫","鄂","湘","粤","桂","琼","渝","川","贵","云","藏","陕","甘","青","宁","新","港","澳");
           var g_minVolume = 0;
           var g_maxVolume = 100;
            var g_lastPageIndex = 1;
            var g_totalWhteNamesPages = 0;
            var g_lastWhiteNames = undefined;
            var g_curPageWhiteListNumbers = undefined;
            var g_currentEditedPlate = undefined;
            var g_currentEditType = undefined;
    </script>
  </head>
  <body ondragstart="return false">
    <div id = "top"></div>
    <div id="divSettingLeadingTabs">
       <div id="divMyTabs">
            <a onclick="selectTab('wizard',this)" class="mytab active" href="javascript:void(0);">向导</a>
            <a onclick="selectTab('mode',this)" class="mytab" href="javascript:void(0);">模式</a>
            <a onclick="selectTab('audio',this)" class="mytab" href="javascript:void(0);">音频</a>
            <a onclick="selectTab('whiteName',this)" class="mytab" href="javascript:void(0);">白名单</a>
            <a onclick="selectTab('inputOutput',this)" class="mytab" href="javascript:void(0);">输入输出</a>
            <a onclick="selectTab('serialPort',this)" class="mytab" href="javascript:void(0);">透明串口</a>
            <a onclick="selectTab('dataUpload',this)" class="mytab" href="javascript:void(0);">平台对接</a>
        </div>
        <div id="wizard" style="margin-top:20px;">
            <div>
                <p>
                    
                     <label for="radioVideoRecoEnable">视频识别</label>
                     
                    <label for="radioCoilRecoEnable">线圈识别</label>
                </p>
                <fieldset>
                    <legend>车牌校准</legend>
                    <p>
                        
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        
                        <label for="checkboxCoilEnable">虚拟线圈识别 </label>
                    </p>
                </fieldset>
                <fieldset>
                    <legend>车牌配置</legend>
                       <table>
                           <tr>
                               <td>默认省份</td>
                               <td>
                                   <select data-field="reco.provience" id="selectDefaultProvience">
                                    <option value="京">京</option>
                                    <option value="津">津</option>
                                    <option value="冀">冀</option>
                                    <option value="晋">晋</option>
                                    <option value="蒙">蒙</option>
                                    <option value="辽">辽</option>
                                    <option value="吉">吉</option>
                                    <option value="黑">黑</option>
                                    <option value="沪">沪</option>
                                    <option value="苏">苏</option>
                                    <option value="浙">浙</option>
                                    <option value="皖">皖</option>
                                    <option value="闽">闽</option>
                                    <option value="赣">赣</option>
                                    <option value="鲁">鲁</option>
                                    <option value="豫">豫</option>
                                    <option value="鄂">鄂</option>
                                    <option value="湘">湘</option>
                                    <option value="粤">粤</option>
                                    <option value="桂">桂</option>
                                    <option value="琼">琼</option>
                                    <option value="渝">渝</option>
                                    <option value="川">川</option>
                                    <option value="贵">贵</option>
                                    <option value="云">云</option>
                                    <option value="藏">藏</option>
                                    <option value="陕">陕</option>
                                    <option value="甘">甘</option>
                                    <option value="青">青</option>
                                    <option value="宁">宁</option>
                                    <option value="新">新</option>
                                    <option value="港">港</option>
                                    <option value="澳">澳</option>
                                </select>
                               </td>
                               <td>
                                   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                   
                                      <label for="checkboxDrawRecoAreaVideo">在实时视频中显示识别区域</label>
                               </td>
                           </tr>
                           <tr>
                               <td>相同车牌上报间隔(秒)</td>
                               <td>
                                   
                               </td>
                               <td>
                                   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                   
                                   <label for="checkboxDrawRecoArea">在抓拍图片中叠加车牌信息</label>
                               </td>
                           </tr>
                       </table>   
                </fieldset>
            </div>
            <div>
                <fieldset>
                    <legend>其他选项</legend>
                    <p>
                        
                        &nbsp;
                        <label>继电器</label>
                        <select id="selectOpenGateIndex">
                            <option value="0">1</option>
                            <option value="1">2</option>
                            <option value="2">3</option>
                        </select>
                        
                        <label>(500-5000毫秒)</label>
                    </p>
                    <p>
                         &nbsp;&nbsp;&nbsp;&nbsp;
                            <label>O&nbsp;S&nbsp;D&nbsp;</label>
                            &nbsp;&nbsp;&nbsp;&nbsp;
                        
                         &nbsp;&nbsp;
                        <label>车辆通过方向</label>
                        <select name="" data-field="park.drive_direction" id="selectDriveDirection">
                              <option value="0">双向</option>
                              <option value="1">由上至下</option>
                              <option value="2">由下至上</option>
                        </select>
                    </p>
                    <p>
                        <label>控灯模式</label>
                        &nbsp;&nbsp;&nbsp;
                        <select name="" id="selectCtrlLightMode">
                              <option value="0">常亮</option>
                              <option value="1">智能控灯</option>
                              <option value="2">常闭</option>
                              <option value="3">线圈闪光</option>
                         </select>
                         &nbsp;
                        
                         <label for="checkboxFlashSyncOut1" id = "labelFlashFyncOut1">同步输出out2</label>
                    </p>
                    <table id="tableOtherOption">
                        <tr>
                            <td width="10%">灯   亮   度</td>
                            <td width="50%"><div id="light_slider"></div></td>
                            <td id="show_light_value" style="padding:0 0 0 15px;">1</td>
                        </tr>
                        <tr>
                            <td width="10%">亮度阈值</td>
                            <td width="50%"><div id="daybrightness_slider"></div></td>
                            <td id="show_daybrightness_value" style="padding:0 0 0 15px;">60</td>
                        </tr>
                    </table>
                </fieldset>
            </div>
            <div style="text-align: center;" class="divFreshSetLeadPage">
               
               
            </div>
        </div>
        <div id="mode" style="display:none;margin-top:20px;" >
            <div>
                <fieldset>
                    <legend>在线离线模式</legend>
                    <p>
                        
                        <label for="radioOnoff_auto">自动模式(主机在线则为在线模式,否则为离线模式)</label>
                    </p>
                    <p>
                        
                        <label for="radioOnoff_online">在线模式(主机控制白名单对比、开闸、语言播报)</label>
                    </p>
                    <p>
                        
                        <label for="radioOnoff_offline">离线模式(相机控制白名单对比、开闸、语言播报)</label>
                    </p>
                </fieldset>
                <fieldset>
                    <legend>车牌匹配</legend>
                    <p>
                        
                        <label for="radioAmbiguityMatchBit">模糊比对(位)</label>
                        <select data-field="park.same_count" id="selectAmbiguityMatchBit">
                            <option value="3">3</option>
                            <option value="4">4</option>
                            <option value="5">5</option>
                        </select>
                         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        
                        <label for="radioAccuracyMatchBit">精确比对</label>
                    </p>
                </fieldset>
                <fieldset>
                    <legend>开闸模式</legend>
                    <p>
                        
                        <label for="radioAlarmOut_whitelist">白名单开闸</label>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        
                        <label for="radioAlarmOut_vehicle">过车开闸</label>
                    </p>
                </fieldset>
                <p>
                    脱机数据
                    
                    <label for="checkboxtransferOfflineData">允许上传脱机数据</label>
                </p>
            </div>
            <div style="text-align: center;" class="divFreshSetLeadPage">
               
               
            </div>
        </div>
        <div id="audio" style="display:none;margin-top:20px;">
            <div>
                <table id="tableAudioLevel">
                    <tr>
                        <td class="myfStdSliderTdOne">音&nbsp;&nbsp;量</td>
                        <td class="myfStdSliderTdTwo"><div id="audioLevel_slider"></div></td>
                        <td class="myfStdSliderTdThree" id="showAudioLevelvalue">0%</td>
                    </tr>
                </table>
            </div>
            <div>
                <table id="tableAudioList" class="mydefaultTable">
                    <thead>
                        <tr>
                            <td style="font-weight:bold; text-align:center">ID</td>
                            <td style="font-weight:bold;">音频描述</td>
                        </tr>
                    </thead>
                    <tbody id="audioListTableBody">
                    </tbody>
                </table>
            </div>
            <div style="text-align: center;" class="divFreshSetLeadPage">
               
               
            </div>
        </div>
        <div id="whiteName" style="display:none;margin-top:20px;">
            <div style="margin-left:2%">
                 <p>
                    <label>搜索</label>
                    
                 </p>
            </div>
            <div id="divAddEditWhiteList" style="margin-left:2%">
                <p>
                    <label>车牌号码</label>
                    
                    &nbsp;&nbsp;
                    <label>有效期止</label>     
                    
                    
                    &nbsp;
                    <button class="close verticalCenter" id="closeWhiteNameEditPane" value="关闭"><span>&times;</span></button>
                </p>
            </div>
            <div>
                <table id="whiteNameList" class="mydefaultTable">
                    <thead>
                        <tr>
                            <!--
                            <th>车牌号码</th>
                            <th>过期日期</th>
                            -->
                            <td style="font-weight:bold;">车牌号码</td>
                            <td style="font-weight:bold;">过期日期</td>
                        </tr>
                    </thead>
                    <tbody id="whiteNameTableBody">
                    </tbody>
                </table>
            </div>
            <div>
                <p id = "pWhiteListControls">
                    <a href="#" id="prevPage">上一页</a>
                    <label id="pagePosition">0/0</label>
                    <a href="#" id="nextPage">下一页</a>
                     &nbsp;&nbsp;
                     <label>转到</label>
                    <select id="selectCurrentPage"></select>
                    <label>页</label>
                    
                    
                    <button id="clearWhiteName" class="myButton verticalCenter">清空</button>
                    <button id="addWhiteName" class="myButton verticalCenter">添加</button>
                </p>
            </div>
            <div style="text-align: center;" class="divFreshSetLeadPage">
               
               
            </div>
        </div>
        <div id="inputOutput"  style="display:none;margin-top:20px;">
            <div>
                <fieldset>
                <legend>GPIO输入触发相机</legend>
                <p>
                    
                    <label for="checkboxGPIOIn1">IN1</label>
                    &nbsp;&nbsp;
                    
                    <label for="checkboxGPIOIn2">IN2</label>
                    &nbsp;&nbsp;
                    
                    <label for="checkboxGPIOIn3">IN3</label>
                </p>
                </fieldset>
            </div>
            <div>
               
               
            </div>
        </div>
        <div id="serialPort" style="display:none;margin-top:20px;">
            <div>
                <table id="tableSerialData">
                    <tr>
                        <td>
                            <fieldset id = "fieldsetSerialData">
                                <legend>串口数据</legend>
                                <textarea id="textareaSerialData"></textarea>
                            </fieldset>
                        </td>
                        <td>
                            <fieldset  id="fieldsetSerialSet">
                                <legend>串口设置</legend>
                                <ul>
                                    <li>
                                        <label>串口号</label>
                                        <select id="selectSerialPortIndex">
                                            <option selected>1</option>
                                            <option >2</option>
                                            <option >3</option>
                                            <option >4</option>
                                        </select>
                                    </li>
                                    <li>
                                        <label>波特率</label>
                                        <select id="selectBaundRate">
                                            <option value="1200">1200</option>
                                            <option value="2400">2400</option>
                                            <option value="4800">4800</option>
                                            <option value="9600">9600</option>
                                            <option value="14400">14400</option>
                                            <option value="19200" selected>19200</option>
                                            <option value="38400">38400</option>
                                            <option value="56000">56000</option>
                                            <option value="57600">57600</option>
                                            <option value="115200">115200</option>
                                            <option value="128000">128000</option>
                                            <option value="256000">256000</option>
                                        </select>
                                    </li>
                                    <li>
                                        <label>停止位</label>
                                        <select id="selectStopBits">
                                            <option value="1" selected>1</option>
                                            <option value="2">2</option>
                                        </select>
                                    </li>
                                    <li>
                                        <label>数据位</label>
                                        <select id="selectDataBits">
                                            <option value="1">5</option>
                                            <option value="2">6</option>
                                            <option value="3">7</option>
                                            <option value="4" selected>8</option>
                                        </select>
                                    </li>
                                    <li>
                                        <label>校验位</label>
                                        <select id="selectParity" value="0">
                                            <option value="0" selected>none</option>
                                            <option value="1">odd</option>
                                            <option value="2">even</option>
                                            <option value="3">mark</option>
                                            <option value="4">space</option>
                                        </select>
                                    </li>
                                </ul>
                            </fieldset>
                        </td>
                    </tr>
                    <tr  style="height:30%;">
                        <td  style="height:100%">
                            <fieldset  style="height:100px">
                                <legend>发送数据(十六进制&nbsp;&nbsp;格式:ff 0 51 0 0 0 0 51)</legend>
                                &nbsp;
                                
                            </fieldset>
                        </td>
                        <td>
                             
                        </td>
                    </tr>
                </table>
            </div>
            <div style="text-align: center;"  class="divFreshSetLeadPage">
                 
                 
            </div>
        </div>
        <div id="dataUpload" style="display:none;margin-top:20px;">
           <div id="tabsPlatformDocking">
               <ul>
                  <li><a href="#tabsDataUpload">数据上传</a></li>
                  <li><a href="#tabsCentralServer">中心服务器</a></li>
              </ul>
              <div id="tabsDataUpload">
                   <p></p>
                    <fieldset>
                          <legend>点位信息</legend>
                          <table>
                               <tr>
                                   <td>点位编号</td>
                                   <td></td>
                               </tr>
                               <tr>
                                   <td>方向编号</td>
                                   <td></td>
                               </tr>
                          </table>
                    </fieldset>
                    <fieldset>
                          <legend>数据上传方式</legend>
                          <p>
                                 
                                <lable for="checkbox_tcp_enable">TCP</label>
                          </p>
                          <table>
                                <tr>
                              <td>服务器IP</td>
                              <td></td>
                          </tr>
                          <tr>
                              <td>服务器端口</td>
                              <td></td>
                          </tr>
                          </table>
                    </fieldset>
              </div>
              <div id="tabsCentralServer">
                  <p></p>
                  <div>
                      <table id="tableCentralServer">
                          <tr>
                              <td>服务器地址</td>
                              <td></td>
                          </tr>
                          <tr>
                              <td>端口</td>
                              <td></td>
                          </tr>
                          <tr>
                              <td>SSL连接</td>
                              <td>
                                 
                                  <label for="checkboxEnableSsl">开启</label>
                              </td>
                          </tr>
                          <tr>
                              <td>SSL端口</td>
                              <td></td>
                          </tr>
                          <tr>
                              <td>超时时间(s)</td>
                              <td></td>
                          </tr>
                          <tr>
                              <td>设备注册</td>
                              <td>
                                 
                                  <label for="checkboxEnableReg">开启</label>
                              </td>
                          </tr>
                          <tr>
                              <td>URL地址</td>
                              <td></td>
                          </tr>
                          <tr>
                              <td>推送车牌识别结果</td>
                              <td>
                                 
                                  <label for="checkboxPostVehicle">开启</label>
                              </td>
                          </tr>
                          <tr>
                              <td>URL</td>
                              <td></td>
                          </tr>
                          <tr>
                              <td>内容详细等级</td>
                              <td>
                                  <select id="selectVehicleLevel" data-field="http.vehicle_level">
                                      <option>全部</option>
                                      <option>较详细</option>
                                      <option>较简略</option>
                                      <option>简略</option>
                                  </select>
                              </td>
                          </tr>
                          <tr>
                              <td>发送图片</td>
                              <td>
                                 
                                  <label for="checkboxEnableImg">开启</label>
                              </td>
                          </tr>
                          <tr>
                              <td>发送小图片</td>
                              <td>
                                 
                                  <label for="checkboxEnablePlateImg">开启</label>
                              </td>
                          </tr>
                      </table>
                  </div>
              </div>
           </div>
           <div style="text-align: center;"  class="divFreshSetLeadPage">
                 
                 
            </div>
        </div>
    </div>
    <script src="js/datetime.js"></script>
    <div id = "bot"></div>
  </body>
</html>


[此贴子已经被作者于2023-8-30 19:46编辑过]

#14
chen272882272023-08-30 20:21
你的相机是什么型号?
只有本站会员才能查看附件,请 登录

只有本站会员才能查看附件,请 登录
#15
sam_jiang2023-08-30 20:51
回复 14楼 chen27288227
好像是华为的。RG荣耀系列车牌识别摄像机,型号RG-CPY-D,用的好像是海思芯片。

从相机里下载了相机ocx控件,另外也下载了8段js源码,明天再研究一下,谢谢你的sdk手册,太感谢了!!!

据从业者说,摄像头行业的代码都是你抄我,我抄你的,所以你给的sdk会非常有用!

再次感谢
#16
sam_jiang2023-08-30 21:07
回复 14楼 chen27288227
可以从文件名判别是哪个品牌的摄像机吗?

只有本站会员才能查看附件,请 登录
#17
chen272882272023-08-31 11:11
回复 15楼 sam_jiang
不客气!如果对你有帮助,也是让我很愉快的一件事
1