摘要:
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 protecting electronic keys sets a plurality of hash functions, divides an electronic key into a plurality of key segments, creates a data storage structure for each of the key segments, and calculates a hash address for each of the key segments of the electronic key using each of the hash functions. The method further obtains a plurality of hash addresses of the plurality of key segments corresponding to the plurality of hash functions, stores information of the data storage structure of each key segment in a hash table according to the hash address of the key segment corresponding to one of the hash functions.
摘要:
A method embeds product information in videos with product placements using an electronic device. The electronic device converts product information of products into advertisement information, and saves the advertisement information in an ad database. The advertisement information includes product images and advertisements of the products. The electronic device exports the advertisement of a presented product displayed on a display device from the ad database according to the product images during the video broadcasts. The advertisement of the presented product is displayed on the display device.
摘要:
A method embeds product information in TV programs with product placements using an electronic device. The electronic device defines keywords and advertising information of products presented on a TV program, and further defines appearance times of the keywords according to product presented times. During the TV program broadcasts, the electronic device currently displays the keywords and the presented products on a display device according to the appearance times, receives a selection operation on a product presented on the display device, exports the advertising information of the selected product. The advertising information is displayed on the display device.
摘要:
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 server communicates with at least one client. If the server wants to transmit streaming media to a client, the client sends a package to the server. The package indicates if the client can decode the streaming media. If the client can decode the streaming media, the server decodes the streaming media and outputs the decoded streaming media on a display of the server. The server sends the streaming media to the client. The client decodes the streaming media and outputs the decoded streaming media on a display of the client. If the client cannot decode the streaming media, the server obtains the streaming media on the desktop of the server and compresses the streaming media to a compressed file. The client receives the compressed file from the server, and decompresses the compressed file. The decompressed files are output on the display of the client.
摘要:
A method searches product information in TV programs with product placements using an electronic device. The electronic device encloses presented products of the TV program in a graphic box, and defines keywords related to the presented products. During the TV program broadcasts, the electronic device receives a selection operation on a product displayed on a display device, and uses a search engine to search for related information of the selected product according to keywords. The searched information is displayed on the display device for users to browse.
摘要:
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 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 method searches related terms using an electronic device. The method adds time stamps to one or more electronic documents, and obtains related terms according to the electronic documents. The method further calculates a time gap between each related term and a preset query term, obtains updated related terms 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.