Abstract:
A method for storing node information of a Huffman tree. The method creates an index of each node in the Huffman tree using a breadth first search (BFS) algorithm. The method further reads each node of the Huffman tree beginning from a root node according to a sequence of the index of each node, and stores node information of each node into an array of the Huffman tree.
Abstract:
A method for filtering noise in an image filters noise pixels in a discrepant block between a current image and a background image firstly, and further filter each small block whose area is less than a preset value from the discrepant block. The method further calculates a total area of each big block whose area is greater than or equal to the preset value from the discrepant block, and adds the current image to a background list of the current image if the total area is less than another preset value.
Abstract:
A method for seeking a file position of a file first seeks an estimated file position corresponding to a specified time point in the file, and adjusts the estimated file position according to a preset estimation formula. The method further determines the estimated file position is an accurate file position of the specified time point in the file until a difference between the estimated file position and the specified time point is less than a preset value.
Abstract:
An exemplary backlight module (3) includes a light guide plate (32) and a frame (34) accommodating the light guide plate. The light guide plate includes a main body including two side surfaces (321), and two sliding strips (325). The sliding strips extend outward from the side surfaces of the main body. Each sliding strip includes a flexible detent (326). The frame includes two opposite first walls (341). The first walls defines two sliding guides (3411) slidably receiving the light guide plate whereby the light guide plate is slidable into the frame and detachably fixed in the frame by snapping engagement of the flexible detents with the frame.
Abstract:
An exemplary liquid crystal display (1) includes a liquid crystal panel (13) and a frame (12) receiving the liquid crystal panel. The frame includes a stopper (126) configured for blocking the liquid crystal panel from being pulled up. The liquid crystal display further includes a light guide plate (17) having a light incident surface (172). Light beams emitted from a plurality of point illuminators (18) enter the light incident surface (172) of the light guide plate 17, and the desired optical performance of liquid crystal display is stably maintained.
Abstract:
A method for merging separated pixel blocks into an integral image of an object is provided. The method performs binary image processing on an obtained image to obtain a binary image, finds pixel blocks in the binary image whose area is greater than a first preset value, and stores a position and a size of each found pixel block in a data structure. The method further merges two pixel blocks in the data structure if a distance between the two pixel blocks is less than a second preset value, so as to generate the integral image of the object.
Abstract:
An electronic device includes a base, an intermediate member and a lens. The base includes a guiding portion, and a first, second and third connecting portions. The intermediate member includes a first, second and third engaging portions connected to the first, second and third connecting portions, respectively. The lens is disposed at a predetermined position via the intermediate member. When the first engaging portion situated in a first position is connected to the first connecting portion, the intermediate member has at least two degrees of freedom. When the intermediate member is positioned at a second position from the first position by the guide of the guiding portion, the second and third engaging portions are connected to the second and third connecting portions, wherein the intermediate member has zero degree of freedom, and the lens is disposed at the predetermined position via the intermediate member.
Abstract:
A file decoding method uses a master server to decode multimedia files. The method records statuses of a plurality of slave servers in a status table, receives a decoding request to decode the multimedia file from a web server, and selects one slave server from the status table to process the decoding request by the master server. The method further sends an Internet protocol (IP) address of the selected slave server to a web browser by the web server, sends a decoding command to the selected slave server by the web browser, decodes the multimedia file by the selected slave server, and transmits decoded data of the multimedia file to the web browser.
Abstract:
The present disclosure provides a method for searching related terms using an electronic device. The method adds time stamps to one or more electronic documents, and obtains related terms by calculating a relevance score between every two terms of the electronic documents within a specified time range. The method further calculates a time gap between each related term and a preset query term, obtains updated related terms that have a time relationship with the preset query term by removing specified related terms whose time gap is greater than a preset value, and obtains search results from a data source by performing a search operation according to the updated related terms.
Abstract:
A method for filtering noise in an image filters noise pixels in a discrepant block between a current image and a background image firstly, and further filter each small block whose area is less than a preset value from the discrepant block. The method further calculates a total area of each big block whose area is greater than or equal to the preset value from the discrepant block, and adds the current image to a background list of the current image if the total area is less than another preset value.