Search found 94 matches

by Craige Hales
Sat Sep 11, 2021 12:49 pm
Forum: General Discussion
Topic: What is the dot-product of two images?
Replies: 4
Views: 4824

Re: What is the dot-product of two images?

https://github.com/espressif/esp-dsp/blob/master/modules/dotprod/include/dspi_dotprod.h is the only info I found. It might be the sum of the pixel-by-pixel product. If the image pixels are signed, between -1 and 1, the result might be a correlation between the images...negative total if most pixels ...
by Craige Hales
Wed Sep 08, 2021 12:51 pm
Forum: ESP-IDF
Topic: sntp: how to know if the time sync is done properly
Replies: 14
Views: 13077

Re: sntp: how to know if the time sync is done properly

I'm pretty sure the callback only happens when the time has been correctly parsed from the time server. sntp_set_time_sync_notification_cb(time_sync_notification_cb); Until the callback happens, assume the time has not been set. The callback will be called periodically. By default it seems to be onc...
by Craige Hales
Tue Sep 07, 2021 12:25 pm
Forum: ESP-IDF
Topic: webserver - how to get incoming http request IP address
Replies: 4
Views: 8741

Re: webserver - how to get incoming http request IP address

Thanks! Pretty sure the IPv6 call should use AF_INET6: inet_ntop(AF_INET6, &addr.sin6_addr, ipstr, sizeof(ipstr)); I wanted to understand the [3] for the IPv4 call, here's some info: https://datatracker.ietf.org/doc/html/rfc4291#section-2.5.5.2 : IPv4-Mapped IPv6 Address A second type of IPv6 addres...