Commit Graph

19 Commits

Author SHA1 Message Date
devdesk
373b17d8a5 web interface 2024-02-23 01:38:32 +02:00
devdesk
24b65a8ee5 turn into an executable instead of a library
burns the python library to the ground though. but I'm just doing
a web service now, so it would be simpler to just use that,
and for live python has the implementation as well still
2024-02-20 21:23:26 +02:00
devdesk
005292adfc tweaking the color 2024-02-20 21:02:14 +02:00
devdesk
a512e710fa correct for both 4 bytes per pixel and 2 bytes 2024-02-19 22:38:58 +02:00
devdesk
e43f8b0efb correct for rotation and axes for greyscale 2024-02-19 22:31:07 +02:00
devdesk
2ba4528c1d rgb for cutoff temperature 2024-02-19 22:26:25 +02:00
devdesk
0af76ed532 add cutoff grayscale 2024-02-19 22:02:27 +02:00
devdesk
2347158093 add command line options and temperature calibration
without temperature calibration 0.3%
with ~5%

model name	: Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz
2024-02-19 21:53:25 +02:00
devdesk
6bcc541c86 working v4l2 in rust, swapping bytes 2024-02-17 17:21:01 +02:00
devdesk
e74fa87103 fourcc wip 2024-02-17 16:59:29 +02:00
devdesk
0ff8d2b1fb v4l by rust process, still sudo, endianess reversed 2024-02-17 16:55:53 +02:00
devdesk
a917f75ce0 avoid reallocating the frame, just use a static buffer 2024-02-17 15:56:05 +02:00
devdesk
49f9aa98ed remove indicatif, add dotenv, write to stdout, gst to v4lsink, usable with ffplay, still some hiccups, not cpu related 2024-02-17 15:43:20 +02:00
devdesk
4f638cdd64 remove unused import 2024-02-16 00:42:01 +02:00
devdesk
c29499d9b0 to fifo and gst-launch 2024-02-16 00:41:39 +02:00
devdesk
45ec502eca add a rust replay example, packet has identical data, src port, dest port, dest address
existing:

397	2041.095533360	192.168.0.1	192.168.0.255	UDP	252	8091 → 8092 [BAD UDP LENGTH 217 > IP PAYLOAD LENGTH] Len=209

new:

396	2008.927877440	192.168.0.1	192.168.0.255	UDP	70	8091 → 8092 Len=28

old bytes:

0000   ff ff ff ff ff ff 00 01 6c 59 f0 0a 08 00 45 00   ........lY....E.
0010   00 38 28 1d 00 00 80 11 90 47 c0 a8 00 01 c0 a8   .8(......G......
0020   00 ff 1f 9b 1f 9c 00 d9 00 00 01 20 01 80 1b 40   ........... ...@
0030   00 20 00 00 00 00 00 00 00 0f 00 00 00 01 00 00   . ..............
0040   01 00 00 20 2b 00 00 00 00 00 00 00 00 00 00 00   ... +...........
0050   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
0060   00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
0070   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
0080   ff 00 00 00 00 00 00 00 02 01 00 00 00 00 00 00   ................
0090   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00a0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00b0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00c0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00d0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00e0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00f0   00 00 00 00 00 00 00 00 00 00 00 00               ............

new bytes:

0000   ff ff ff ff ff ff a8 20 66 11 cb 49 08 00 45 00   ....... f..I..E.
0010   00 38 2b 75 40 00 40 11 8c ef c0 a8 00 01 c0 a8   .8+u@.@.........
0020   00 ff 1f 9b 1f 9c 00 24 82 86 01 20 01 80 1b 40   .......$... ...@
0030   00 20 00 00 00 00 00 00 00 0f 00 00 00 01 00 00   . ..............
0040   01 00 00 20 2b 00                                 ... +.
2024-01-19 23:39:23 +02:00
Alon Levy
3ea0c74e7f rust: create target dir, use frames/basename as decode.py 2023-12-31 14:17:03 +02:00
Alon Levy
5f5834835c rust version iterator based, 3.5 MB memory turning 5 GB frames to files on disk, 10MiB/second 2023-12-31 01:20:44 +02:00
Alon Levy
9b2f8d9377 move rust to root, make a separate main example, start using iterator 2023-12-31 00:19:24 +02:00