HDW5231R-ZE settings for LPR

Discussion in 'LPR' started by carbonita, Nov 4, 2018.

Share This Page

  1. carbonita

    carbonita n3wb

    Joined:
    Oct 15, 2018
    Messages:
    19
    Likes Received:
    4
    Location:
    SFBayArea
    How are folks tuning your cams for those wonderful night plate captures? I've been twiddling with a HDW5231R-ZE as an upgrade to an older non-Dahua camera for about a week. Daytime images are good, but night and twilight are problematic. Below are the settings I've tried, but I've yet to get a legible capture for 30mph vehicles on an non-street lit road.

    Exposure: Shutter priority at 0-1ms. Tried 2ms, 4ms to reduce noise at twilight.
    Auto Iris: On
    3dnr: Tried off and on. Tried grade of 9 and 50 (presume this is proportional to the time-averaged frames?)
    Sharpness: Tried 50-60.
    Contrast: Tried 50-60.
    HLC: Tried 40-75.
    WB: Outdoor
    IR: Tried SmartIR and Off (external IR sources).

    System Version 2.622.0000000.31.R, Build Date: 2018-08-13
    WEB Version V3.2.1.616707

    Can someone share settings (or even better, their tuning process) that works for this camera? Below is a typical night image, same vehicle front and (illuminated) rear plate.
    Capture1.JPG

    Capture.JPG
     
  2. bigredfish

    bigredfish Known around here

    Joined:
    Sep 5, 2016
    Messages:
    1,308
    Likes Received:
    1,111
    Location:
    Florida USA
    Shutter manual 1/2000
    Gain 10-40
    Iris 40
    HLC 65
    3dnr 45
    Smart IR on

    You may need more or less HLC depending on the angle of the headlights to the camera

    Note that when switching from color to B&W/IR the camera tends to lose focus. Seems to be somewhat dependent on how far you zoom. More zoom = more chance it loses focus. Read up on the focus issue in this forum...
     
    carbonita and catcamstar like this.
  3. carbonita

    carbonita n3wb

    Joined:
    Oct 15, 2018
    Messages:
    19
    Likes Received:
    4
    Location:
    SFBayArea
    @bigredfish -- thanks, I'll give this a go tonight (I only see auto-iris on/off though, no numerical setting visible). I've been manually focusing after BW switch based on the focus issue, and will script fix (AFAIK the only way to remedy) once the cam passes testing.
     
  4. richardgohth

    richardgohth n3wb

    Joined:
    Jun 23, 2017
    Messages:
    24
    Likes Received:
    1
    Gain is too high
    Exposure ( not exposure time ) is too high
     
    Last edited: Nov 4, 2018
  5. bigredfish

    bigredfish Known around here

    Joined:
    Sep 5, 2016
    Messages:
    1,308
    Likes Received:
    1,111
    Location:
    Florida USA
    Agree probably.

    Mine seems good at 10-30 or 10-40 no more.

    Also @carbonita you may play with the exposure a bit, 1/1000 or 1/2000 should work fine. See pics, you should just see a wee bit of light where the tailights are and the IR reflection off the plate.

    Some plates are better than others. Some are dirty, old or have an anti reflective cover. Some are so mangled you just aint gonna read them..
     

    Attached Files:

    carbonita likes this.
  6. carbonita

    carbonita n3wb

    Joined:
    Oct 15, 2018
    Messages:
    19
    Likes Received:
    4
    Location:
    SFBayArea
    Them there are some sweet captures. Can't wait for nightfall ;)

    Edit: Gain and shutter prio appear to be mutually exclusive (using web activex gui). LMK if I can constrain shutter AND gain concurrently. I was guessing that when the exposure time was decreased, the camera increased the gain in response, since the visual noise increases with shorter times.
     
    Last edited: Nov 4, 2018
  7. bigredfish

    bigredfish Known around here

    Joined:
    Sep 5, 2016
    Messages:
    1,308
    Likes Received:
    1,111
    Location:
    Florida USA
  8. carbonita

    carbonita n3wb

    Joined:
    Oct 15, 2018
    Messages:
    19
    Likes Received:
    4
    Location:
    SFBayArea
    Thanks @bigredfish and whoa! -- first night plate is mighty nice :)

    Capture.JPG
     
    richardgohth likes this.
  9. bigredfish

    bigredfish Known around here

    Joined:
    Sep 5, 2016
    Messages:
    1,308
    Likes Received:
    1,111
    Location:
    Florida USA
  10. richardgohth

    richardgohth n3wb

    Joined:
    Jun 23, 2017
    Messages:
    24
    Likes Received:
    1
  11. carbonita

    carbonita n3wb

    Joined:
    Oct 15, 2018
    Messages:
    19
    Likes Received:
    4
    Location:
    SFBayArea
    @richardgohth No OCR software capability connected (yet). Wetware (eyeballs) declare initial success though.
     
    Last edited: Nov 5, 2018
    catcamstar and richardgohth like this.
  12. bigredfish

    bigredfish Known around here

    Joined:
    Sep 5, 2016
    Messages:
    1,308
    Likes Received:
    1,111
    Location:
    Florida USA
    From here, play with just one setting at a time. Exposure (probably choose between 1/1000 and 1/2000), then HLC (maybe a bit more), then Gain (maybe a bit less), then Iris (again maybe a bit less).

    Ive found 3DNR will cause blur over 45-50 so keep under that, WDR will also. Other than those, motion blur seems to be primarily exposure speed.
     
    carbonita likes this.
  13. carbonita

    carbonita n3wb

    Joined:
    Oct 15, 2018
    Messages:
    19
    Likes Received:
    4
    Location:
    SFBayArea
    First masked plate. I've gimp'd around the vehicle, and reduced resolution, since these images were shared with neighbors, who might inadvertently share.
     

    Attached Files:

  14. carbonita

    carbonita n3wb

    Joined:
    Oct 15, 2018
    Messages:
    19
    Likes Received:
    4
    Location:
    SFBayArea
    The plate image attached reads as T U S N O B O in cloud.google.com/vision -- pretty close. Using the settings below, one profile for day and night seems to work fine (as does focus set with IR cut filter off):

    Anti-flicker outdoor
    Mode manual
    Shutter 1/500
    Gain 10-40
    Auto Iris On
    3dnr On , Grade 45
    HLC 70
    IR: SmartIR

    Impressed with this IMX291 sensor (and this forum!).
     

    Attached Files:

  15. bigredfish

    bigredfish Known around here

    Joined:
    Sep 5, 2016
    Messages:
    1,308
    Likes Received:
    1,111
    Location:
    Florida USA
    Excellent!

    May try 1/1000 just to see if it reduces the headlight glare a bit more
     
  16. richardgohth

    richardgohth n3wb

    Joined:
    Jun 23, 2017
    Messages:
    24
    Likes Received:
    1
    reduce the gain for the headlights
    exposure time is fine
     
  17. carbonita

    carbonita n3wb

    Joined:
    Oct 15, 2018
    Messages:
    19
    Likes Received:
    4
    Location:
    SFBayArea
    I'll give all suggestions a try -- too bad I'm not on a busier street ;) . During the daytime, a motorcycle plate shot is not so hot. I have my camera ~9ft up, which helped to avoid headlight flare with the previous camera -- maybe this cam's HLC is good enough to mount lower, and catch these smaller and angled downward plates (?)
     

    Attached Files:

  18. richardgohth

    richardgohth n3wb

    Joined:
    Jun 23, 2017
    Messages:
    24
    Likes Received:
    1
    gain too high
    bitrate too low
     
    carbonita likes this.
  19. bigredfish

    bigredfish Known around here

    Joined:
    Sep 5, 2016
    Messages:
    1,308
    Likes Received:
    1,111
    Location:
    Florida USA
    agree with @richardgohth now that I look at your images on laptop instead of phone, Gain is too high.

    As to Bitrate and FPS, I run max on both for the tag cameras and it works well. 30fps and 8192 bitrate. I run 1/1000 on the one cam at the culdesac and 1/2000 on the Entrance cam as cars are traveling 25-30mph and need the faster shutter to reduce blur. This IR illuminator helps ;) Tendelux BI18

    2 captures from each from last night
     

    Attached Files:

    carbonita and spencnor like this.
  20. carbonita

    carbonita n3wb

    Joined:
    Oct 15, 2018
    Messages:
    19
    Likes Received:
    4
    Location:
    SFBayArea
    @richardgohth , @bigredfish -- I'll give it a go today. I've tried 1/1000 shutter, but plates get too dark/noisy. I have so many illuminators that the neighbors (with Nest cam) were wondering what was up ;)
     

    Attached Files:

  21. bigredfish

    bigredfish Known around here

    Joined:
    Sep 5, 2016
    Messages:
    1,308
    Likes Received:
    1,111
    Location:
    Florida USA
    Though some will disagree, and I'm simply an enthusiast not a Pro, I like CBR for tag cameras because VBR doesnt seem to react as quickly when youre talking about 6-8 frames of a passing car in about 1/3 second. I also like to match frame rate and iframe interval
     
  22. richardgohth

    richardgohth n3wb

    Joined:
    Jun 23, 2017
    Messages:
    24
    Likes Received:
    1
    Though some will disagree, I am a pro not simply an enthusiast... juz kidding
    The most important setting is the maximum bit rate.
    Constant bit rate does not make sense becos video encoding is basically using the difference between frames
    hence if there is no motion and the scene is completely still the bitrate is theorectically zero. Not sure how to force a constant
    bit rate out of a still scene.
     
  23. bigredfish

    bigredfish Known around here

    Joined:
    Sep 5, 2016
    Messages:
    1,308
    Likes Received:
    1,111
    Location:
    Florida USA
  24. carbonita

    carbonita n3wb

    Joined:
    Oct 15, 2018
    Messages:
    19
    Likes Received:
    4
    Location:
    SFBayArea
    Y'all suggest I get another exact cam to test different settings on the same live subject ? ;)

    I had a defocus issue today, while the cam was in color mode. Earlier captures in focus, later captures out of focus -- both daytime. No clues in the log.
     
  25. carbonita

    carbonita n3wb

    Joined:
    Oct 15, 2018
    Messages:
    19
    Likes Received:
    4
    Location:
    SFBayArea
    Slightly better with 8mpbs -- nice. Matched iframe to fps, but lowered to 16, since the IVS seemed to have higher false negative rate at high fps(?) I'm imagining that the cpu is too busy (but can't check the cpu usage log with the restricted shell commands). Images for ~25mph vehicle 20' from camera at max zoom.

    Capture.PNG Capture.PNG Capture0.PNG Capture1.PNG
     
  26. bigredfish

    bigredfish Known around here

    Joined:
    Sep 5, 2016
    Messages:
    1,308
    Likes Received:
    1,111
    Location:
    Florida USA
    Not bad, you may be dealing with a tough angle as well...? Still some motion blur, You say trying 1/1000 didnt allow you to see the IR reflection from the plate?
     
  27. dannieboiz

    dannieboiz Getting the hang of it

    Joined:
    May 13, 2015
    Messages:
    222
    Likes Received:
    24
    Wait... you can use non LPR cameras to make it work?

    sorry to be off topic...
     
  28. bigredfish

    bigredfish Known around here

    Joined:
    Sep 5, 2016
    Messages:
    1,308
    Likes Received:
    1,111
    Location:
    Florida USA
    This camera isnt designated as an LPR camera.

    By and large other than those that have built in software to recognize and record plates, any good camera within reason can perform LPR duties if all you want to do is be able to capture them. As long as you have enough zoom, IR, and access to exposure settings, good angle, and plenty of patience, it can be done. Its part art part science ;)
    There are plenty of old analog cameras out there that have been doing it for years.
     
  29. carbonita

    carbonita n3wb

    Joined:
    Oct 15, 2018
    Messages:
    19
    Likes Received:
    4
    Location:
    SFBayArea
    @bigredfish the shots were noisy, but in retrospect, possibly this was due to high gain. Also I was calculating that at 25mph for a plate traveling at 20 degrees off the optical axis, that the plate movement would be 8 mm in 1/500 s, which seemed small. But this is actually fairly large relative to the plate letters. So it turns out that 1/1000 s is better (yes, I should have just paid attention, but I'm working on it). Still can't get that pesky motorcycle plate at dusk -- but probably going faster than 25mph. Images at daytime truck, dusk truck, dusk motorcycle.
     

    Attached Files:

  30. richardgohth

    richardgohth n3wb

    Joined:
    Jun 23, 2017
    Messages:
    24
    Likes Received:
    1