Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8 improve save functionality for isp modules #9

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

marianadeem-10xe
Copy link
Contributor

Currently save method works fine for modules that output an RGB image but the current output for modules in Bayer raw and YUV do not visually depict the actual result. The saved Bayer raw appear bluish and the YUV images appear pink due to the default cmap (viridis) used to save the image with matplotlib.

To improve the appearance of the saved results, the Bayer raw image is converted to RGB image by inserting zeros in place of unknown values in the respective channels and YUV image is also converted to RGB before saving.
image
The results are shown in the issues tab.

bakhtawar-10xe and others added 2 commits September 21, 2023 14:49
* Added Sharpen Module

* Updated block diagram, readme, user guide

* parameters tuning for Shar[en Filter

* Updated Results and Algo Description Document

* Minor error fixing in Readme

* RTL recommended changes made in AE and AWB

* Removed Linting Errors
- added function raw_to_rgb to ceate 3channel
rgb image to save module level output for modules
that work with raw image.
-  added yuv_to_rgb function from RGBC to utils.
This function is used to convert yuv image to rgb
image to save module output  for for modules that
work with yuv image.
@marianadeem-10xe marianadeem-10xe linked an issue Sep 25, 2023 that may be closed by this pull request
sohaibimran-10xe pushed a commit that referenced this pull request Aug 21, 2024
Added features: Automation Script configs.yaml file format preservation and Results folder preservation

* automate_execution currently works on config_automate file to
generate RTL compatible results.

* added in_single_folder flag to set the structure
of the out_for_RTL folder.
If True, all input files are saved in a single folder.

* - automate_execution.py works on configs.yml now
instead of a separate config_automate.yml.
- added is_save flag in configs.yml

* - verified results by matching .npy files,
they match.
- exception added if ValueError is encountered while loading np arrays.

* - foldername(line 63) now specified by datetime obj
- added compare_output file (Inprogress)
-  made chnages to handle new foldername in rename_to_RTL in utils.py

* output of the default modules can now by saved using
is_save flag in automate_execution script.

* To test multiple modules, type of DUT changed from str to
list.

* added input_ext variable to specify raw file
extension.

* created Results folder in out_for_RTL.
This folder will save the input and output arrays to ISP piepline,
whether generted while executing isp_pipeline.py individually or
using the auatomation script.

* Added functions in utils.py to dump config file in a more readable format.

* added .gitkeep file in results

* added .gitkeep file in out_for _RTL

---------

Co-authored-by: taimur-10xe <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve save functionality for ISP modules
2 participants