Closed
Description
The HTML code for changing image resolution inside const uint8_t index_ov2640_html_gz[] = {}
in camera_index.h is wrong and because of that it isn't possible to activate 1600x1200 resolution and all picture resolutions are wrong. To fix the code, instead of:
<div class="input-group" id="framesize-group">
<label for="framesize">Resolution</label>
<select id="framesize" class="default-action">
<option value="10">UXGA(1600x1200)</option>
<option value="9">SXGA(1280x1024)</option>
<option value="8">XGA(1024x768)</option>
<option value="7">SVGA(800x600)</option>
<option value="6">VGA(640x480)</option>
<option value="5" selected="selected">CIF(400x296)</option>
<option value="4">QVGA(320x240)</option>
<option value="3">HQVGA(240x176)</option>
<option value="0">QQVGA(160x120)</option>
</select>
</div>
it should be:
<div class="input-group" id="framesize-group">
<label for="framesize">Resolution</label>
<select id="framesize" class="default-action">
<option value="13">UXGA(1600x1200)</option>
<option value="12">SXGA(1280x1024)</option>
<option value="10">XGA(1024x768)</option>
<option value="9">SVGA(800x600)</option>
<option value="8">VGA(640x480)</option>
<option value="6" selected="selected">CIF(400x296)</option>
<option value="5">QVGA(320x240)</option>
<option value="3">HQVGA(240x176)</option>
<option value="1">QQVGA(160x120)</option>
</select>
</div>
Use Cyberchef online tool to decode the array into HTML (from hex, gunzip), change the HTML and then encode it back into gunzipped array of hex. Recipe to decode the array:
From_Hex('Auto')
Gunzip()
Recipe to encode the HTML back into array of hex:
Encode_text('UTF-8 (65001)')
Gzip('Dynamic Huffman Coding','','',false)
To_Hex('0x with comma',16)