Author Topic: RPi/SBC/Topdon TC001/clone Tester request (Thermal Camera Redux v0.9.3) Github  (Read 14979 times)

0 Members and 1 Guest are viewing this topic.

Offline G28Topic starter

  • Regular Contributor
  • *
  • Posts: 74
  • Country: us
    • Thermal Camera Redux
Github Version 0.9.2 changes pushed - Locked Auto Ranging
« Reply #100 on: January 26, 2024, 06:03:18 am »
UPDATE:

2024-01-25: Version 0.9.2 modifications have been pushed to github to optionally lock out camera's colormap auto-ranging.
2024-01-18: Version 0.9.1 modifications have been pushed to github for weak and single threaded/single core hardware.

https://github.com/92es/Thermal-Camera-Redux

The ability to lock the camera's colormap auto ranging has been pushed to the github repository.

The user can optionally enable / disable auto ranging.
The user can optionally cycle through temperature pixel to color pixel mapping methods.
These mapping methods are a WIP and may change over time with user feedback.

The 'l' key cycles between unlocked, static band pass and dynamic band pass.
Static band pass will clip temps outside of the band pass range established at the time the lock was set.
Dynamic band pass will dynamically grow, but not shrink from the time the lock was set.

The 'i' and 'k' keys will allow the user to cycle through mapping options.  No mapping is also included in the cycle so one can view the default images as displayed in the first row below.

The left or top window ( normally the image window ) will display the range locked view while the right or bottom ( normally thermal window ) will display the live auto-ranging for side-by-side real time comparison. 

The user can optionally display any of the single and double window layouts as before as well as change colormaps or any other configuration option.

Note 1:   Colormap / Mapping permutations vary in utility.

Note 2:   This feature utilizes more CPU cycles and will be optimized over time.  Plan accordingly for entry level SBCs.

In offline mode, the right/bottom window will display the same mapping methods when locking is enabled for offline use of these maps.

Here are some example permutations:

Image and Thermal windows with Auto Ranging Disabled ( or map option 0 ):



Locked and Unlocked windows with the left window using mapping option 1



Locked and Unlocked windows with the left window using mapping option 5



Please post any feedback you may have.  It will be greatly appreciated.
« Last Edit: January 26, 2024, 06:47:48 am by G28 »
 
The following users thanked this post: RO, Amish Technician

Offline Amish Technician

  • Contributor
  • Posts: 30
  • Country: gb
OpenCV copyMakeBorder demo attached.
 

Offline G28Topic starter

  • Regular Contributor
  • *
  • Posts: 74
  • Country: us
    • Thermal Camera Redux
OpenCV copyMakeBorder demo attached.

Here is an initial cut.

It scales dynamically based on font/text widths.

This will probably be a compile flag to switch between borders and no borders.


Key map overlap:

« Last Edit: January 27, 2024, 07:53:16 am by G28 »
 
The following users thanked this post: Amish Technician

Offline Amish Technician

  • Contributor
  • Posts: 30
  • Country: gb
Thank you G28 for implementing my layout suggestions!  :-+ :-+ :-+

« Last Edit: January 28, 2024, 02:15:38 am by Amish Technician »
 
The following users thanked this post: G28

Offline G28Topic starter

  • Regular Contributor
  • *
  • Posts: 74
  • Country: us
    • Thermal Camera Redux
Thanks for testing. 

I am updating the HUD display with the various auto-ranging lock permutations and will push the changes to git hub within a day.
 
The following users thanked this post: Amish Technician

Offline G28Topic starter

  • Regular Contributor
  • *
  • Posts: 74
  • Country: us
    • Thermal Camera Redux
Github push: Optional dynamic boarder layout build.
« Reply #105 on: January 28, 2024, 02:46:24 am »
UPDATE:

2024-01-27: Version 0.9.3 modifications have been pushed to github to optionally build with dynamic border layout.
2024-01-25: Version 0.9.2 modifications have been pushed to github to optionally lock out camera's colormap auto-ranging.
2024-01-18: Version 0.9.1 modifications have been pushed to github for weak and single threaded/single core hardware.

https://github.com/92es/Thermal-Camera-Redux

 
The following users thanked this post: Amish Technician

Offline Amish Technician

  • Contributor
  • Posts: 30
  • Country: gb
Full screen aspect ratio fixed  :-+  Many thanks G28

 
The following users thanked this post: G28

Offline G28Topic starter

  • Regular Contributor
  • *
  • Posts: 74
  • Country: us
    • Thermal Camera Redux
Full screen aspect ratio fixed  :-+  Many thanks G28

(Attachment Link)

Just added the border layout feature description page to github.

https://github.com/92es/Thermal-Camera-Redux/blob/main/doc/BORDER_LAYOUT.md
« Last Edit: January 28, 2024, 11:39:21 pm by G28 »
 
The following users thanked this post: Amish Technician

Offline Amish Technician

  • Contributor
  • Posts: 30
  • Country: gb
I've discovered using the screen configuration utility included with raspberry pi OS to flip the display output can noticeably lower the frame rate. Around 15fps on Pi Zero 2W at 2x scale full screen instead of 25.

Performance appears negligibly affected by the addition of 'borders'.

Clearer fonts  :-+
 

Offline Amish Technician

  • Contributor
  • Posts: 30
  • Country: gb
Edit: Display configured 800x480
But build_redux configured
DISPLAY_WIDTH/HEIGHT 480x800
max scale, full screen.
Rotation:
0, 90,
180, 270

'BeltsAndSuspenders' 1





'BeltsAndSuspenders' 2


« Last Edit: February 01, 2024, 06:13:14 pm by Amish Technician »
 
The following users thanked this post: G28

Offline Amish Technician

  • Contributor
  • Posts: 30
  • Country: gb
Mock-up of 480x800 portrait layout

 

Offline Amish Technician

  • Contributor
  • Posts: 30
  • Country: gb
The attachment 'Rotations.7z' contains full screen resolution captures of all combinations of;

build_redux
Code: [Select]
-DDISPLAY_WIDTH=800 -DDISPLAY_HEIGHT=480 and
Code: [Select]
-DDISPLAY_WIDTH=480 -DDISPLAY_HEIGHT=800
OS (xrandr) rotation 0 and 90,
Camera 0 and 90,
Display 0 and 90.

I've omitted 180 and 270 as they produce the same layout as as 0 and 90, just rotated 180 degrees.

OS (xrandr) rotation not recommended on lower performing devices, frame rate drops to ~15-16fps on pi zero 2w. It's still useful for testing portrait layouts as there are pi displays with native portrait resolutions.


These combinations are currently working well making good use of the available resolution to display the thermal image as large as possible without stretching/distorting it, overlapped minimally by HUD elements:

800x480_OS-0_Cam0_Display0


800x480_OS-90_Cam0_Display90



Edit: a miss labelled Display180 appears to have sneaked in called 800x480_OS-0_Cam90_Display90
« Last Edit: February 06, 2024, 10:28:39 pm by Amish Technician »
 
The following users thanked this post: G28


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf