CN108717370B - Gray image GUI design method for cooling and heating imaging movement startup picture - Google Patents

Gray image GUI design method for cooling and heating imaging movement startup picture Download PDF

Info

Publication number
CN108717370B
CN108717370B CN201810428491.8A CN201810428491A CN108717370B CN 108717370 B CN108717370 B CN 108717370B CN 201810428491 A CN201810428491 A CN 201810428491A CN 108717370 B CN108717370 B CN 108717370B
Authority
CN
China
Prior art keywords
memory
value
gui
display
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810428491.8A
Other languages
Chinese (zh)
Other versions
CN108717370A (en
Inventor
袁秀阳
李鹏
王宇星
任雪丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinan Hope Wish Photoelectronic Technology Co ltd
Original Assignee
Jinan Hope Wish Photoelectronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jinan Hope Wish Photoelectronic Technology Co ltd filed Critical Jinan Hope Wish Photoelectronic Technology Co ltd
Priority to CN201810428491.8A priority Critical patent/CN108717370B/en
Publication of CN108717370A publication Critical patent/CN108717370A/en
Application granted granted Critical
Publication of CN108717370B publication Critical patent/CN108717370B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Studio Circuits (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention relates to a method for designing a gray level image GUI (graphical user interface) of a starting picture of a refrigerating and heating imaging machine core, which comprises the following steps: defining a word stock file and compiling a memory read-write function; the method comprises the steps of modifying position data of video data stored in a memory, and displaying temperature change, time and progress bars on a screen.

Description

Gray image GUI design method for cooling and heating imaging movement startup picture
Technical Field
The invention belongs to the technical field of refrigeration and thermal imaging, and particularly relates to a gray image GUI (graphical user interface) design method for a startup picture of a refrigeration and thermal imaging machine core.
Background
The heating and cooling imaging movement can be normally displayed only by reducing the temperature to a certain numerical value, the movement needs to be started to display the temperature change and the temperature reduction progress in the process, the nios ii CPU has limited processing capacity, the memory allocated to the CPU in the FPGA design is small, and if the existing GUIs such as the CPU/GUI are directly transplanted, the GUI display refreshing is slow, the visual effect is poor, and a large memory is needed. This is a disadvantage of the prior art.
Disclosure of Invention
The invention aims to overcome the problem of the existing GUI migrating to nios ii, and designs a grayscale image GUI for a startup picture of a refrigerating and heating imager core.
The technical scheme of the invention is as follows:
the method for designing the gray image GUI of the starting picture of the refrigerating and heating imager core comprises the following steps:
defining a word stock file and compiling a memory read-write function;
and modifying the position data of the video data stored in the memory to generate the GUI content to be displayed.
Further, the word stock file is an array comprising an array of ASCII characters and a character horizontal start length and a horizontal length.
Further, the step of modifying the location data of the video data stored in the memory, and generating the GUI content to be displayed includes: and modifying the position data of the video data stored in the memory, and displaying the temperature change, the time and the progress bar on the screen.
Further, the implementation process of writing the memory read-write function is as follows:
the method comprises the steps of searching a library file array of a character array according to an input character string by defining an initial address of a character or a character string in an image, writing a corresponding position in a memory into a background pixel value or a foreground pixel value according to elements in the library file array, and displaying the background pixel value or the foreground pixel value on a screen when the image is read;
defining the display initial position and the width and the height of the progress bar in the image, writing the corresponding position in the memory into a first pixel value, writing the corresponding position in the memory into a second pixel value according to the progress requirement, the initial position and the width are unchanged, the length is in accordance with the progress, reading the numerical value of the image in the memory, and transmitting the numerical value to the display to display the progress bar.
Further, the first pixel value and the second pixel value are different.
Further, the step of modifying the position data of the video data stored in the memory and displaying the temperature change, the time and the progress bar on the screen includes the following specific implementation steps:
s6-1: writing a fixed value in the position of the image data stored in the memory through a memset function;
s6-2: reading the current temperature as an initial temperature;
s6-3: calling a GUI main function, displaying fixed characters and numbers, and displaying the bottom color of the progress bar to be completely black;
s6-4: if the read current temperature is higher than the set temperature, calling a GUI main function to display a changed temperature value, a changed time value, calculating a cooling progress according to the current temperature value, an initial temperature value and the set temperature value, and configuring different progress bar white foreground lengths and display percentages;
s6-5: and reading the data at the fixed position in the memory, and sending the data to a display for display.
Further, the step of modifying the location data of the video data stored in the memory and displaying the temperature change, time and progress bar on the screen further includes:
s6-6: if the read current temperature is less than or equal to the set temperature, writing a fixed value in the position of the image data stored in the memory through a memset function; and (5) stopping the GUI display picture after the temperature reduction is finished, and normally displaying by the cooling and heating imaging camera.
Further, the position of the image data stored in the memory is written with a fixed value by the memset function, and the fixed value is consistent with the background color.
The method has the advantages that through the nios ii cpu software program, the word stock file is defined, the memory read-write function is compiled, the data of the position where the video data are stored in the memory are modified, and GUI content needing to be displayed is generated.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
Fig. 1 is a flowchart of a method for designing a gray-scale image GUI for a startup picture of a cooling/heating camera according to an embodiment of the present invention.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings by way of specific examples, which are illustrative of the present invention and are not limited to the following embodiments.
The embodiment of the invention provides a gray image GUI design method for a starting picture of a refrigerating and heating imaging movement, which comprises the following steps:
defining a word stock file and compiling a memory read-write function;
and modifying the position data of the video data stored in the memory to generate the GUI content to be displayed.
In this embodiment, the font library file is an array, and includes an ASCII character array, a character horizontal start length, and a horizontal length; the ASCII character array is an array which is fixed longitudinally and changes transversely according to the number of bytes (for example, the character transversely occupies one byte, the character array transversely is 1), each element represents that 8 pixels transversely display background color or foreground color, and the foreground colors of the whole array are combined together to display the character; because each character does not fill the whole character array in the horizontal direction, the starting position of the character foreground in the horizontal direction of the character array and the horizontal size of the character need to be known when the character string is displayed, and the consistent interval between the characters is ensured.
The function of reading and writing the memory can display characters or character strings, and the process is as follows:
by defining the initial address of the character or the character string in the image, searching the library file array of the character array according to the input character string, writing the corresponding position in the memory into a background pixel value or a foreground pixel value (the pixel value is a number from 0 to 255) according to the elements in the library file array, and displaying the background pixel value or the foreground pixel value on a screen when the hardware module reads the image.
The function of reading and writing the memory can also display the progress bar, and the process is as follows:
the method comprises the steps of defining the display initial position and the width and the height of a progress bar in an image, writing the corresponding position in a memory into a first pixel value completely, writing the corresponding position in the memory into a second pixel value according to the progress requirement, wherein the initial position and the width are unchanged, the length is larger than the progress, the corresponding position in the memory is written into the second pixel value, the first pixel value is different from the second pixel value, reading the numerical value of the image in the memory continuously through hardware, and transmitting the numerical value to a display to display the progress bar.
As shown in fig. 1, the specific steps of the nios ii-based GUI design method according to the embodiment of the present invention are as follows:
step 1: assigning a background color to the location where the video data is stored in the memory by a memset function, the value being 128;
step 2: reading the current temperature of the detector as an initial temperature;
and step 3: calling GUI _ DispHarAt by a GUI main function, and writing a character 'Hope-Wish' in a corresponding position of a memory; "TFPA: xxx K" (xxx is the three digit decimal number of the initial temperature); "Time: 00:00: 00"; "0%"; calling the GUI _ RectangleFill, writing 0 in a corresponding address of a memory, and generating a black rectangle with the length of 200 pixels and the width of 25 pixels to represent a progress bar;
and 4, step 4: reading the current temperature of the detector, comparing the current temperature with the set temperature, if the current temperature is higher than the set temperature, executing the step 5, and if not, executing the step 7;
and 5: the GUI main function calls GUI _ DispHarAt to change the "xxx" in the character "TFPA: xxx K" (xxx is the three-digit decimal number of the current temperature) in the corresponding position in the memory; three xx (three xx respectively represent Time, minutes and seconds and are counted by a timer) in the "Time: xx: xx: xx" are provided; "xxx" (xxx represents a number from 0 to 100, and if the high order is 0, the high order is not displayed) in the "xxx%", calling GUI _ RectangleFill, writing 255 in a corresponding address in a memory, generating a white rectangle with the length multiplied by 200 pixels according to a cooling proportion and the width of 25 pixels, and representing a progress bar;
step 6: reading the data of the fixed position in the memory by the FPGA hardware program, sending the data to the display for displaying, and executing the step 4 again;
and 7: a fixed value is written to the location of the memory storing image data by the memset function, and this value coincides with the background color.
And 8: and (5) stopping the GUI display picture after the temperature reduction is finished, and normally displaying by the cooling and heating imaging camera.
The above disclosure is only for the preferred embodiments of the present invention, but the present invention is not limited thereto, and any non-inventive changes that can be made by those skilled in the art and several modifications and amendments made without departing from the principle of the present invention shall fall within the protection scope of the present invention.

Claims (6)

1. The method for designing the gray image GUI of the starting picture of the refrigerating and heating imager core is characterized by comprising the following steps of:
defining a word stock file and compiling a memory read-write function;
modifying the position data of the video data stored in the memory to generate GUI content to be displayed; the step of modifying the location data of the stored video data in the memory, generating GUI content to be displayed includes: modifying the position data of the video data stored in the memory, and displaying temperature change, time and progress bars on a screen;
the step of modifying the position data of the video data stored in the memory and displaying the temperature change, the time and the progress bar on the screen comprises the following specific implementation steps:
s6-1: writing a fixed value in the position of the image data stored in the memory through a memset function;
s6-2: reading the current temperature as an initial temperature;
s6-3: calling a GUI main function, displaying fixed characters and numbers, and displaying the bottom color of the progress bar to be completely black;
s6-4: if the read current temperature is higher than the set temperature, calling a GUI main function to display a changed temperature value, a changed time value, calculating a cooling progress according to the current temperature value, an initial temperature value and the set temperature value, and configuring different progress bar white foreground lengths and display percentages;
s6-5: and reading the data at the fixed position in the memory, and sending the data to a display for display.
2. The method according to claim 1, wherein the library file is an array including an ASCII character array and a character horizontal start length and a horizontal length.
3. The method for designing the gray image GUI for the cooling/heating imager core startup picture according to claim 2, wherein writing the memory read/write function is implemented as follows:
the method comprises the steps of searching a library file array of a character array according to an input character string by defining an initial address of a character or a character string in an image, writing a corresponding position in a memory into a background pixel value or a foreground pixel value according to elements in the library file array, and displaying the background pixel value or the foreground pixel value on a screen when the image is read;
defining the display initial position and the width and the height of the progress bar in the image, writing the corresponding position in the memory into a first pixel value, writing the corresponding position in the memory into a second pixel value according to the progress requirement, the initial position and the width are unchanged, the length is in accordance with the progress, reading the numerical value of the image in the memory, and transmitting the numerical value to the display to display the progress bar.
4. The method according to claim 3, wherein the first pixel value and the second pixel value are different from each other.
5. The method according to claim 4, wherein said step modifies the position data of the video data stored in the memory and displays the temperature change, time and progress bar on the screen, and further comprises:
s6-6: if the read current temperature is less than or equal to the set temperature, writing a fixed value in the position of the image data stored in the memory through a memset function; and (5) stopping the GUI display picture after the temperature reduction is finished, and normally displaying by the cooling and heating imaging camera.
6. The method for designing a grayscale image GUI of a cooling/heating imager core startup picture according to claim 5, wherein the position of the memory storage image data is written with a fixed value by the memset function, and the fixed value is consistent with the background color.
CN201810428491.8A 2018-05-07 2018-05-07 Gray image GUI design method for cooling and heating imaging movement startup picture Active CN108717370B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810428491.8A CN108717370B (en) 2018-05-07 2018-05-07 Gray image GUI design method for cooling and heating imaging movement startup picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810428491.8A CN108717370B (en) 2018-05-07 2018-05-07 Gray image GUI design method for cooling and heating imaging movement startup picture

Publications (2)

Publication Number Publication Date
CN108717370A CN108717370A (en) 2018-10-30
CN108717370B true CN108717370B (en) 2020-12-11

Family

ID=63899446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810428491.8A Active CN108717370B (en) 2018-05-07 2018-05-07 Gray image GUI design method for cooling and heating imaging movement startup picture

Country Status (1)

Country Link
CN (1) CN108717370B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008229008A (en) * 2007-03-20 2008-10-02 Toshiba Corp Magnetic resonance imaging apparatus
CN101526905A (en) * 2009-04-17 2009-09-09 四川长虹电器股份有限公司 Method for displaying starting up progress of embedded device
CN103674261A (en) * 2012-09-21 2014-03-26 杭州美盛红外光电技术有限公司 Infrared information display control device and method
CN105928627A (en) * 2016-04-08 2016-09-07 北京航天计量测试技术研究所 Method for eliminating image reproduction non-uniformity of refrigeration type thermal imager

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5510058B2 (en) * 2010-05-19 2014-06-04 株式会社リコー Image forming apparatus
EP3258378B1 (en) * 2016-06-14 2022-05-04 Qoitech AB Measurement coordination by monitoring of program code execution

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008229008A (en) * 2007-03-20 2008-10-02 Toshiba Corp Magnetic resonance imaging apparatus
CN101526905A (en) * 2009-04-17 2009-09-09 四川长虹电器股份有限公司 Method for displaying starting up progress of embedded device
CN103674261A (en) * 2012-09-21 2014-03-26 杭州美盛红外光电技术有限公司 Infrared information display control device and method
CN105928627A (en) * 2016-04-08 2016-09-07 北京航天计量测试技术研究所 Method for eliminating image reproduction non-uniformity of refrigeration type thermal imager

Also Published As

Publication number Publication date
CN108717370A (en) 2018-10-30

Similar Documents

Publication Publication Date Title
CN109978972B (en) Method and device for editing characters in picture
EP2464093B1 (en) Image file generation device, image processing device, image file generation method, and image processing method
US11972514B2 (en) Animation file processing method and apparatus, computer-readable storage medium, and computer device
CN101662616B (en) Character rolling display method
CN109949391B (en) Image-text drawing method, image-text drawing device, electronic equipment and storage medium
US10311060B2 (en) Glyph management in texture atlases
US11616895B2 (en) Method and apparatus for converting image data, and storage medium
CN108717370B (en) Gray image GUI design method for cooling and heating imaging movement startup picture
CN113038141B (en) Video frame processing method and electronic equipment
CN112419456B (en) Special effect picture generation method and device
CN106959897A (en) A kind of optimization method and system based on Unity3D image renderings
CN109214977B (en) Image processing apparatus and control method thereof
CN112114919A (en) Screen rotation display optimization method and device
CN112882672B (en) Near-eye display control method and device and near-eye display equipment
CN107273072B (en) Picture display method and device and electronic equipment
CN114756189A (en) Display data processing method and device, display driving chip and display equipment
US8106908B2 (en) Image generating apparatus and method, and image display apparatus and method
CN102902534A (en) Transparent OSD (Optical Scanning Device) software realization method
CN110225177B (en) Interface adjusting method, computer storage medium and terminal equipment
CN107509103B (en) Method for storage management and page layout of EPG data of smart television
CN103826058A (en) Image processing method and device for enhancing image quality by using different coefficients according to regions
CN110457623A (en) Acquisition methods, server and the storage medium of webpage frame
CN106027925A (en) OSD menu display control method and device
CN109286801B (en) Image color display method, storage medium and smart television
WO2023087827A1 (en) Rendering method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant