摘要:
A screen recording method computes an encoding delay for each frame of a screen of an electronic device. The frame is encoded by a first compression algorithm if the encoding delay is short. The frame is encoded by an second compression algorithm if the encoding delay is middle and a time interval between the encoding time of a previous frame and the encoding time of a current frame does not exceed a first preset time interval. The frame is encoded by a third compression algorithm if the encoding delay is long and a time interval between the encoding time of a previous frame and the encoding time of a current frame exceeds a second preset time interval.
摘要:
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.
摘要:
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.
摘要:
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.
摘要:
An electronic confidential document viewing method is performed by an electronic device in electronic communication with a pair of eyeglasses. In response to display a confidential document on a display device, a protection image is generated based on a security image of the confidential document. The protection image is a copy of the security image that is offset from the security image by a predetermined distance in a vertical direction or a horizontal direction. The security image and the protection image are synchronously transmitted to the display device. The display device displays an overlapping picture based on the two images. The eyeglasses receive the overlapping picture, and separate the overlapping picture into two images. One of the two images is viewable by the left eye of a viewer, and another image is viewable by the right eye of the viewer.
摘要:
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.
摘要:
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.
摘要:
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.
摘要:
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.
摘要:
An image retrieval method applies an application server, one or more calculating servers, and a sorting server to perform image retrieval. The application server extracts visual features of an exemplary image. The one or more calculating servers calculate similarities of available images according to the visual features of the exemplary image. The sorting server sorts the available images according to the similarities so as to obtain images similar to the exemplary image.