Electronic business card generation method and device, electronic equipment and storage medium

Through the electronic business card generation method of electronic devices, the problems of cumbersome and high cost of updating paper business card information are solved, and the visual generation and personalized settings of electronic business cards are realized, which improves the user experience.

CN119762630APending Publication Date: 2025-04-04BOE TECHNOLOGY GROUP CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202510006218.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-02
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

Existing paper business cards are difficult to carry a lot of information, information updates are cumbersome and increase user usage costs.

Method used

An electronic business card generation method is provided through electronic devices, display the information display interface in response to user instructions, obtain and display user information, and draw electronic business cards in real time based on user information and preset templates.

Benefits of technology

The visual generation of electronic business cards is realized, and users can adjust business card information according to their needs, update the information without increasing the usage cost, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119762630A_ABST
    Figure CN119762630A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an electronic business card generation method and device, electronic equipment and a storage medium, and relates to the technical field of electronic business card management. The method comprises the steps of displaying an information display interface of an electronic business card application program in response to an electronic business card generation instruction sent by a user; obtaining user information for generating the electronic business card, and displaying the user information in the information display interface; and in response to a confirmation operation of the user for the user information, drawing the electronic business card based on the user information and a preset business card template, and displaying the electronic business card in the information display interface in real time. Therefore, the information display interface of the electronic business card application program can display the user information and display the preview effect of the electronic business card in real time, so that the visualization of the electronic business card generation process is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic business card management, and in particular to an electronic business card generation method, device, electronic equipment and storage medium. Background Art

[0002] In social activities, people usually exchange paper business cards to identify themselves and provide contact information. However, due to size limitations, paper business cards cannot carry too much information, and the information content of paper business cards is fixed. Once generated, user information cannot be modified. To update user information, paper business cards need to be customized again. The information update process is cumbersome and increases user costs. Summary of the invention

[0003] The purpose of the embodiments of the present invention is to provide a method, device, electronic device and storage medium for generating an electronic business card, so as to realize the visualization of the electronic business card generation process. The specific technical solution is as follows:

[0004] In a first aspect, an embodiment of the present invention provides a method for generating an electronic business card, the method comprising:

[0005] In response to an electronic business card generation instruction issued by a user, an information display interface of an electronic business card application is displayed;

[0006] Acquire user information used to generate an electronic business card, and display the user information in the information display interface;

[0007] In response to the user's confirmation operation on the user information, an electronic business card is drawn based on the user information and a preset business card template, and the electronic business card is displayed in real time in the information display interface.

[0008] Optionally, the step of obtaining user information for generating an electronic business card includes at least one of the following:

[0009] Acquire a paper business card image, and perform character recognition on the paper business card image to obtain user information for generating an electronic business card;

[0010] Calling a preset user information acquisition interface, based on the user identifier indicated by the electronic business card generation instruction, acquiring the user information corresponding to the user identifier;

[0011] Obtain user information entered by the user in the information display interface.

[0012] Optionally, the step of acquiring a paper business card image includes:

[0013] In response to a shooting operation issued by the user, calling a device camera, and in response to a shooting object determination operation issued by the user, controlling the device camera to shoot an image to obtain a paper business card image; or,

[0014] In response to the album display operation issued by the user, the device album is called, the images included in the device album are displayed in the album display interface, and the image selected by the user in the album display interface is used as the paper business card image.

[0015] Optionally, before the step of performing character recognition on the paper business card image, the method further includes:

[0016] In response to the user's editing instruction for the paper business card image, displaying an editing interface for the paper business card image;

[0017] Based on the editing operation issued by the user in the editing interface, the paper business card image is edited, and the edited paper business card image is used as the paper business card image.

[0018] Optionally, the editing interface includes a preset cropping frame, and the preset cropping frame is displayed on an upper layer of the paper business card image;

[0019] The step of editing the paper business card image based on the editing operation issued by the user in the editing interface includes:

[0020] In response to the user's adjustment operation on the preset cropping frame or the paper business card image, updating the image area surrounded by the current cropping frame in the editing interface;

[0021] In response to the user's cropping instruction for the image area, the image area is cropped from the paper business card image to obtain an edited paper business card image.

[0022] Optionally, the information display interface includes a first area and a second area, the first area displays the user information, and the second area displays the electronic business card; the method further includes:

[0023] In response to the user's update operation on the user information in the first area, displaying updated user information in the first area;

[0024] According to the display position of each piece of user information included in the preset business card template, the target display position of the updated user information is determined, and the updated user information is displayed at the target display position in the second area.

[0025] Optionally, the information display interface includes an information clearing trigger interface;

[0026] The step of displaying updated user information in the first area in response to the user's update operation on the user information in the first area includes:

[0027] In response to the user's triggering operation on the information clearing triggering interface, the user information displayed in the first area is cleared, and the user information in the electronic business card displayed in the second area is cleared.

[0028] Optionally, the information display interface includes a business card saving trigger interface; the method further includes:

[0029] In response to the user's trigger operation on the business card saving trigger interface, the electronic business card is encoded according to a preset encoding method, and the encoded electronic business card is saved to a device album, wherein the preset encoding method is an encoding method supported by the device album.

[0030] Optionally, the step of drawing an electronic business card based on the user information and a preset business card template includes:

[0031] Loading the external font file by using a preset external font calling interface and the URL of the external font file;

[0032] The external font file is called, and each user information is drawn at a display position corresponding to each user information in the preset business card template according to the font format indicated by the external font file.

[0033] In a second aspect, an embodiment of the present invention provides a device for generating an electronic business card, the device comprising:

[0034] A generating instruction response module, used to respond to an electronic business card generating instruction issued by a user and display an information display interface of the electronic business card application program;

[0035] A user information acquisition module, used to acquire user information used to generate an electronic business card, and display the user information in the information display interface;

[0036] The electronic business card drawing module is used to respond to the user's confirmation operation on the user information, draw an electronic business card based on the user information and a preset business card template, and display the electronic business card in real time in the information display interface.

[0037] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0038] Memory, used to store computer programs;

[0039] The processor is used to implement any method step described in the first aspect when executing the program stored in the memory.

[0040] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of the first aspects are implemented.

[0041] Beneficial effects of the embodiments of the present invention:

[0042] In the solution provided by the embodiment of the present invention, the electronic device can display the information display interface of the electronic business card application in response to the electronic business card generation instruction issued by the user; obtain the user information used to generate the electronic business card, and display the user information in the information display interface; in response to the user's confirmation operation on the user information, draw the electronic business card based on the user information and the preset business card template, and display the electronic business card in real time in the information display interface. Compared with paper business cards, the electronic business card generated by the electronic business card generation program can adjust the user information in the electronic business card according to the user's needs, and updating the user information in the electronic business card will not increase the user's usage cost. In addition, since the information display interface of the electronic business card application can display the user information and display the electronic business card drawn based on the user information in real time, the visualization of the electronic business card generation process is realized. The user can adjust the electronic business card according to his own needs during the electronic business card generation process by adjusting the user information in the information display interface, which meets the user's needs for personalized electronic business card settings and improves the user's usage experience. Of course, any product or method implementing the present invention does not necessarily need to achieve all the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0044] Figure 1 A flowchart of a method for generating an electronic business card provided by an embodiment of the present invention;

[0045] Figure 2 A schematic diagram of the overall architecture of an electronic business card application provided by an embodiment of the present invention;

[0046] Figure 3 A schematic diagram of an information display interface of an electronic business card application provided by an embodiment of the present invention;

[0047] Figure 4 Another schematic diagram of the information display interface of the electronic business card application provided by the embodiment of the present invention;

[0048] Figure 5 Another schematic diagram of the information display interface of the electronic business card application provided by the embodiment of the present invention;

[0049] Figure 6 A schematic diagram of a method for obtaining user information provided by an embodiment of the present invention;

[0050] Figure 7 Another schematic diagram of a method for obtaining user information provided by an embodiment of the present invention;

[0051] Figure 8 A schematic diagram of a photo taking interface provided by an embodiment of the present invention;

[0052] Fig. 9 A schematic diagram of a photo confirmation interface provided by an embodiment of the present invention;

[0053] Fig.10 A schematic diagram of a successful recognition prompt message provided by an embodiment of the present invention;

[0054] Fig.11 Another schematic diagram of a method for obtaining user information provided by an embodiment of the present invention;

[0055] Fig.12 A flowchart of another method for generating an electronic business card provided by an embodiment of the present invention;

[0056] Fig.13 A schematic diagram of an editing interface provided by an embodiment of the present invention;

[0057] Fig.14 A flowchart of an example of generating an electronic business card provided by an embodiment of the present invention;

[0058] Fig.15 A flowchart of another method for generating an electronic business card provided by an embodiment of the present invention;

[0059] Fig.16 A schematic diagram of an information clearing trigger interface provided by an embodiment of the present invention;

[0060] Fig.17 A schematic diagram of saving to a mobile phone interface provided by an embodiment of the present invention;

[0061] Fig.18 A schematic diagram of a reminder message saved to a mobile phone provided by an embodiment of the present invention;

[0062] Fig.19A flowchart of another example of generating an electronic business card provided by an embodiment of the present invention;

[0063] Fig. 20 A schematic diagram of the structure of an electronic business card generation device provided by an embodiment of the present invention;

[0064] Fig.21 The present invention is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0065] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field based on the present invention belong to the scope of protection of the present invention.

[0066] In order to realize the visualization of the electronic business card generation process, the embodiment of the present invention provides a method, device, electronic device and storage medium, computer readable storage medium and computer program product for generating an electronic business card. The following first introduces an electronic business card generation method provided by the embodiment of the present invention.

[0067] like Figure 1 As shown, a method for generating an electronic business card, the method comprising:

[0068] S101, in response to an electronic business card generation instruction issued by a user, displaying an information display interface of an electronic business card application.

[0069] S102, obtaining user information for generating an electronic business card, and displaying the user information in the information display interface.

[0070] S103, in response to the user's confirmation operation on the user information, drawing an electronic business card based on the user information and a preset business card template, and displaying the electronic business card in real time in the information display interface.

[0071] It can be seen that in the embodiment of the present invention, the electronic device can display the information display interface of the electronic business card application in response to the electronic business card generation instruction issued by the user; obtain the user information used to generate the electronic business card, and display the user information in the information display interface; in response to the user's confirmation operation on the user information, draw the electronic business card based on the user information and the preset business card template, and display the electronic business card in real time in the information display interface. Compared with paper business cards, the electronic business card generated by the electronic business card generation program can adjust the user information in the electronic business card according to the user's needs, and updating the user information in the electronic business card will not increase the user's usage cost. In addition, since the information display interface of the electronic business card application can display the user information and display the electronic business card drawn based on the user information in real time, the visualization of the electronic business card generation process is realized. During the electronic business card generation process, the user can adjust the electronic business card by adjusting the user information in the information display interface according to their own needs, which meets the user's needs for personalized electronic business cards and improves the user's usage experience.

[0072] The present invention provides an electronic business card application for generating an electronic business card, wherein the electronic business card application can be an application in various forms, for example, it can be an HTML (HyperText Markup Language) 5 application, referred to as an H5 application, it can be an application (Application, referred to as APP) installed in an electronic device, it can be a small program on a platform, it can also be a web (webpage) application, etc., without limitation herein.

[0073] In one implementation, the electronic business card application provided by the present invention is an H5 application based on the Apache Cordova framework, which can be quickly developed and iterated, and has many advantages such as strong compatibility and easy interaction. Among them, Apache Cordova is an open source mobile application development framework that supports the development of cross-platform mobile applications using standard web development technologies. The electronic business card application can be deployed on a mobile portal. The overall architecture of the electronic business card application is as follows: Figure 2 As shown, the electronic business card application may include a Web APP (web application) layer, a WebView (web view) layer, and a Cordova Plugins (plug-in) layer.

[0074] Among them, the Web APP layer is the code written by the developer. The electronic business card application is presented in the form of a web page, and the various WebResources (resources) required by the electronic business card application are referenced in the local page file index (index).html, such as: HTML (Hypertext Markup Language), CSS (Cascading Style Sheets, Cascading Style Sheets), JavaScript (script, abbreviated as JS), images, audio and video files and other Resouroes (resources), as well as the Config (configuration).xml (Extensible Markup Language) file that saves the configuration information of the electronic business card application.

[0075] The WebView layer includes an HTML Rendering Engine, which is used to present the user interface. For example, in the Android platform, the WebView layer includes a WebView control, which is used to present the web page.

[0076] The Cordova Plugins layer is mainly used to call native functions of various platforms in JavaScript code. Cordova projects can include multiple Plugins, such as Camera, Media, Device, Network, Contacts, Storage, and Custom Plugins. There are multiple APIs (Application Programming Interfaces) between the electronic business card application and the electronic device. When you want to access the native functions of the device such as battery, camera, address book, etc., to obtain the Graphics, Services, and Sensors data in the electronic device, you can call the corresponding plug-in to access it. By calling the corresponding plug-in, the electronic device can be input / output through the corresponding interface, for example, the address book data of the electronic device can be obtained and stored in the generated electronic business card. Of course, developers can also develop custom plugins to achieve the required functions.

[0077] In step S101, the electronic device may display an information display interface of an electronic business card application in response to an electronic business card generation instruction issued by a user.

[0078] The electronic device can display the program display interface where the electronic business card application is located. When the user hopes to use the electronic business card application to create an electronic business card, the user can issue an electronic business card generation instruction to the electronic device. In this way, when the electronic device detects the electronic business card generation instruction issued by the user, it can respond to the electronic business card generation instruction and display the information display interface of the electronic business card application.

[0079] Among them, the above-mentioned electronic business card generation instruction is actually used to instruct the electronic device to display the information display interface of the electronic business card application, and the electronic business card generation instruction can be issued by the user through a selection operation on the electronic business card application in the program display interface displayed by the electronic device, or it can be issued by the user through voice input to the electronic device. This is all reasonable and is not specifically limited here.

[0080] In one implementation, an electronic device can display a program display interface where an electronic business card application is located. When a user wishes to create an electronic business card, the user can perform a selection operation on the electronic business card application in the program display interface to issue an electronic business card generation instruction. When the electronic device detects the electronic business card generation instruction, it can respond to the electronic business card generation instruction and display the information display interface of the electronic business card application.

[0081] In one implementation, a user can voice input "open electronic business card application" or "start making electronic business card" in an electronic device to issue an electronic business card generation instruction to the electronic device. When the electronic business card receives the electronic business card generation instruction, the electronic business card can perform semantic analysis on the electronic business card generation instruction. When the key information of the electronic business card is extracted, the electronic device can display the information display interface of the electronic business card application.

[0082] Exemplarily, the information display interface of the electronic business card application includes the type of user information used to generate the electronic business card and the information display position corresponding to each user information. Figure 3As shown, the information display interface of the electronic business card application includes the types of user information such as name, mobile phone number, landline number, email address, job title, department name, and company name, and when the user information is not obtained, the information display position corresponding to the name can display "Please enter name", the information display position corresponding to the mobile phone number can display "Please enter mobile phone number", the information display position corresponding to the landline number can display "Please enter landline number", the information display position corresponding to the email address can display "Please enter email address", the information display position corresponding to the job title can display "Please enter job title", the information display position corresponding to the department name can display "Please enter department name", and the information display position corresponding to the company name can display "Please enter company name" to prompt the user to enter user information. The user can edit the business card information by entering the corresponding user information in each information display position, that is, the user can enter the name that the electronic business card wants to display in the name display position, enter the mobile phone number in the mobile phone number display position, enter the landline number in the landline number display position, enter the email address in the email address display position, enter the job title in the job title display position, enter the department name in the department name display position, and enter the company name in the company name display position. In addition, the information display interface also includes an operation option of "Take a photo of a paper business card and automatically enter information". This operation option is a device camera trigger interface. Users can operate this operation option to call the device camera to take a photo of a paper business card image, and obtain user information by identifying the paper business card image, and then display the user information in the information display position corresponding to each user information.

[0083] In step S102, the electronic device may obtain user information for generating an electronic business card, and display the user information in an information display interface.

[0084] Since electronic business cards are used to display user information, that is, electronic business cards are generated based on user information, before generating the electronic business card, the electronic device needs to first obtain the user information used to generate the electronic business card, where the user information may include name, mobile phone number, landline number, email address, job title, department name, company name, company address, etc.

[0085] An electronic device can obtain user information in various ways. For example, an electronic device can perform character recognition on a paper business card image to obtain user information used to generate an electronic business card; an electronic device can obtain user information corresponding to a user identifier based on a user identifier indicated by an electronic business card generation instruction; an electronic device can obtain user information input by a user, etc. These are all reasonable and the specific ways in which the electronic device obtains user information are not specifically limited herein.

[0086] Furthermore, after obtaining the user information, the electronic device can display the obtained user information in the information display interface. Specifically, after obtaining the user information, the electronic device can determine the display position of each user information in the user information display area of ​​the information display interface, and display each user information at the corresponding display position.

[0087] The above process of obtaining user information and displaying the user information in the information display interface is the initialization process of the user information.

[0088] The electronic device can display each user's information in the information display interface. For example, Figure 4 As shown, the user can edit the business card information in the information display interface, and trigger the "shoot paper business card, automatically enter information" operation option in the information display interface. When the electronic device detects the trigger operation issued by the user, it can call the device camera to shoot the paper business card image, and obtain the user information by identifying the paper business card image. After obtaining the user information, the electronic device can display the recognized name XX in the display position corresponding to the name, display the recognized mobile phone number aaaaaaaaaaaaa in the display position corresponding to the mobile phone number, and because the user's landline number is not recognized, it is not necessary to display the landline number in the landline number display position, display the recognized email address bbbbbbb-bbb@A.xxx.xx in the display position corresponding to the email address, display the recognized job title B Post in the display position corresponding to the job title, display the recognized department name C Center in the display position corresponding to the department name, display the recognized company name A Company in the display position corresponding to the company name, and display the recognized company address XX City XX District XX Road in the display position corresponding to the company address.

[0089] The user can confirm the user information displayed on the information display interface, and when the user information is confirmed to be correct, perform a confirmation operation on the user information in the information display interface. Then in step S103, the electronic device can respond to the user's confirmation operation on the user information, draw an electronic business card based on the user information and a preset business card template, and display the electronic business card in real time in the information display interface.

[0090] When the electronic device detects a confirmation operation of the user on the user information, it can draw an electronic business card based on the user information and a preset business card template.

[0091] The preset business card template may be a default template of the electronic business card application layer program, may be a business card template selected by the user from various preset business card templates included in the electronic business card application program, or may be a business card template uploaded by the user, etc., which is not limited here. In addition, the preset business card template may include a display position corresponding to each user information.

[0092] In one implementation, the electronic business card application is an H5 application, and the electronic device can use the canvas drawing technology provided by HTML5 to draw the LOGO icon and various user information texts in the electronic business card. When drawing the LOGO icon, the icon drawing parameters such as the image, icon height, and width of the LOGO icon can be set drawImage (drawing) (Image (image), dx, dy, dWidth, dHeight), and then the LOGO icon is drawn using the canvas graphics drawing technology and the icon drawing parameters. When drawing various user information texts, the text drawing parameters fillText (fill text) (Text (text), dx, dy) of the position coordinates of each user information can be set, and then the user information text is drawn using the canvas text drawing technology and the text drawing parameters. The position coordinates of each user information are different.

[0093] In order to facilitate users to view the preview effect of the drawn electronic business card, the electronic device can display the drawn electronic business card in real time in the information display interface after drawing the electronic business card to realize the real-time preview of the electronic business card. In this way, the user can view the real-time preview effect of the electronic business card and adjust the electronic business card according to the real-time preview effect of the electronic business card, for example, adjust the user information, change the business card template, etc., so that the finally generated electronic business card meets the personalized needs of the user. In addition, since the user information and the preview effect of the electronic business card are visible in real time during the process of generating the electronic business card, the visualization of the electronic business card process is realized, and the user experience is improved. In addition, since the process of generating the electronic business card is based on the interaction between the user and the electronic device, the user's sense of participation is improved.

[0094] For example, Figures 4 to 5As shown, according to the acquired user information and the preset business card template, the electronic device can draw the LOGO icon of Company A at the display position 510 of the LOGO icon in the preset business card template, draw the name text "XX" at the display position corresponding to the name in the preset business card template, draw the position name text "B Post" at the display position corresponding to the position name in the preset business card template, draw the department name text "C Center" at the display position corresponding to the department name in the preset business card template, draw the company name text "Company A" at the display position corresponding to the company name in the preset business card template, draw the email address text "bbbbbbb-bbb@A.xxx.xx" at the display position corresponding to the email address in the preset business card template, draw the mobile phone number text "aaaaaaaaaaaa" at the display position corresponding to the mobile phone number in the preset business card template, draw the company address text "XX Road, XX District, XX City" at the display position corresponding to the company address in the preset business card template, and draw the postal code text "cccccc" at the display position corresponding to the postal code in the preset business card template, so as to obtain an electronic business card and display the electronic business card in real time above the user information display area in the information display interface. In this way, users can edit business card information, view edited user information, and electronic business cards generated based on user information by "taking a photo of a paper business card and automatically entering information" in the information display interface.

[0095] Furthermore, when the electronic device obtains user information input by the user, each time the user inputs user information, the electronic device can display the user information at a display position corresponding to the user information in the information display interface, and draw the user information at a display position corresponding to the user information in the electronic business card. For example, when a user enters a name "XX" in the information display interface, "XX" can be displayed at the display position corresponding to the name in the information display interface, and "XX" can be drawn at the display position corresponding to the name in the electronic business card, and the electronic business card with "XX" drawn on it can be displayed; when a user enters a job title "B" in the information display interface, "B" can be displayed at the display position corresponding to the job title in the information display interface, and "B" can be drawn at the display position corresponding to the job title in the electronic business card, and the electronic business card with "XX" and "B" drawn on it can be displayed; when a user enters a mobile phone number "aaaaaaaaaaaaa" in the information display interface, "B" can be displayed at the display position corresponding to the mobile phone number in the information display interface, and "aaaaaaaaaaaaa" can be drawn at the display position corresponding to the mobile phone number in the electronic business card, and the electronic business card with "XX", "B" and "aaaaaaaaaaaaa" drawn on it can be displayed. In this way, the electronic business card application can update the information display interface in real time based on user operations, and the user can preview the user information and the electronic business card drawing in real time, realizing the visualization of the electronic business card generation process.

[0096] It can be seen that in the embodiment of the present invention, the electronic device can display the information display interface of the electronic business card application in response to the electronic business card generation instruction issued by the user; obtain the user information used to generate the electronic business card, and display the user information in the information display interface; in response to the user's confirmation operation on the user information, draw the electronic business card based on the user information and the preset business card template, and display the electronic business card in real time in the information display interface. Compared with paper business cards, the electronic business card generated by the electronic business card generation program can adjust the user information in the electronic business card according to the user's needs, and updating the user information in the electronic business card will not increase the user's usage cost. In addition, since the information display interface of the electronic business card application can display the user information and display the electronic business card drawn based on the user information in real time, the visualization of the electronic business card generation process is realized. During the electronic business card generation process, the user can adjust the electronic business card by adjusting the user information in the information display interface according to their own needs, which meets the user's needs for personalized electronic business cards and improves the user's usage experience.

[0097] As an implementation of the embodiment of the present invention, the electronic device can implement the above step S102, that is, the step of obtaining the user information for generating an electronic business card, in at least one of the following three ways:

[0098] Method 1: Acquire a paper business card image, and perform character recognition on the paper business card image to obtain user information for generating an electronic business card;

[0099] The electronic device can obtain the paper business card image.

[0100] In one implementation, the electronic device may call the device camera and capture the paper business card image according to a subject confirmation operation issued by the user.

[0101] In another implementation, the electronic device may access a device album and obtain an image corresponding to the image selection operation issued by the user as a paper business card image.

[0102] Since the paper business card has user information printed on it, the user information can be used to generate an electronic business card. Based on this, after obtaining the paper business card image, the electronic device can perform character recognition on the paper business card image to obtain the user information used to generate the electronic business card. For example, the electronic device can perform OCR (Optical Character Recognition) on the paper business card image to recognize the characters in the paper business card image and obtain the user information used to generate the electronic business card, wherein performing OCR on the paper business card image means that the electronic device detects the characters in the paper business card image, determines the shape of each character by detecting the dark and light patterns, and then uses the character recognition method to translate the shape into computer text; for another example, the electronic device can input the paper business card image into a preset character recognition network, and obtain the characters output by the preset character recognition network to obtain the user information used to generate the electronic business card.

[0103] Furthermore, after the user information is identified, each user information may be displayed at a display position corresponding to the user information in the information display interface.

[0104] Method 2: calling a preset user information acquisition interface, and acquiring the user information corresponding to the user identifier based on the user identifier indicated by the electronic business card generation instruction;

[0105] When a user wishes to generate an electronic business card for a certain user, the user may send an electronic business card generation instruction carrying the user's user ID to the electronic device. The user ID may be information for uniquely identifying the user. For example, the user ID may be a user name, a user ID, etc., which are not specifically limited here.

[0106] In one implementation, the user can click on the program logo of the electronic business card application in the program display interface, and then click on the user logo in the user logo display interface of the electronic business card application to send an electronic business card generation instruction carrying the user logo to the electronic device.

[0107] In another implementation, the user may voice input an electronic business card generation instruction carrying the user identification to the electronic device. For example, the user may voice input "generate XX's electronic business card", where XX is the name to be displayed in the electronic business card.

[0108] The electronic device obtains the user information corresponding to the user identifier according to the user identifier indicated by the electronic business card generation instruction.

[0109] In one implementation, the electronic business card application is an H5 application, and Cordova provides a set of device function-related APIs, through which the electronic business card application can access native device functions such as the camera and the mobile phone number address book. This set of APIs includes a preset user information acquisition interface, and the electronic device can call the preset user information acquisition interface to obtain the user information corresponding to the user identifier according to the user identifier indicated by the electronic business card generation instruction issued by the user. For example, the preset user information acquisition interface is used to call the address book, and the electronic device can call the address book through the above preset user information acquisition interface and read the user information corresponding to the user identifier in the address book; for another example, the preset user information acquisition interface is used to access the user database, and the electronic device can access the user database through the above preset user information acquisition interface, and determine the user information corresponding to the user identifier according to the user identifier and the corresponding relationship between the user identifier and the user information stored in the user database.

[0110] Furthermore, after the user information is acquired, each user information may be displayed at a display position corresponding to the user information in the information display interface.

[0111] Method three: obtaining the user information input by the user in the information display interface.

[0112] The information display interface of the electronic business card application includes the type of user information used to generate the electronic business card and the information display position corresponding to each user information. The user can input the user information that the electronic business card wants to display in each information display position.

[0113] In one implementation, the user may enter the user information at the information display location of the information display interface, and the electronic device may obtain the user information entered by the user.

[0114] In another implementation, the user can enter the user information in the information display interface by voice input, and the electronic device can perform semantic analysis on the language entered by the user to obtain the user information entered by the user.

[0115] For example, the information display interface of the electronic business card application includes the type of user information used to generate the electronic business card and the information display position corresponding to each user information. The information display interface of the electronic business card may also include an option of "shooting a paper business card and automatically entering information". Figure 6As shown, the information display interface of the electronic business card application can display "Please enter your name" at the information display position corresponding to the name, "Please enter your mobile phone number" at the information display position corresponding to the mobile phone number, "Please enter your landline number" at the information display position corresponding to the landline number, "Please enter your email address" at the information display position corresponding to the email address, "Please enter your job title" at the information display position corresponding to the job title, "Please enter your department name" at the information display position corresponding to the department name, and "Please enter your company name" at the information display position corresponding to the company name to prompt the user to enter user information. The user can perform a selection operation on the display position corresponding to the name. When a selection operation issued by the user is detected, the electronic device can convert the "Please enter your name" displayed at the information display position corresponding to the name into an input cursor, and the user can enter a name at the information display position to edit the name in the business card information.

[0116] The electronic business card application can support multiple user information acquisition methods, and the electronic device can input user information through one or more of the multiple methods. In the case of acquiring user information through two methods together, for example, the user can type in part of the user information and the electronic device can acquire the user information typed by the user. The electronic device can also acquire a paper business card image and perform character recognition on the paper business card image to acquire other user information used to generate the electronic business card. When the electronic device acquires user information through two or more methods, the multiple methods complement and verify each other.

[0117] It can be seen that in the embodiment of the present invention, the electronic device can obtain a paper business card image, perform character recognition on the paper business card image, and obtain user information for generating an electronic business card; call a preset user information acquisition interface, and obtain user information corresponding to the user identifier based on the user identifier indicated by the electronic business card generation instruction; and obtain user information by at least one of the following methods: obtaining user information input by the user in the information display interface. By providing users with multiple user information input methods, the user experience can be improved.

[0118] As an implementation of an embodiment of the present invention, the step of acquiring a paper business card image may include:

[0119] In response to a shooting operation issued by the user, a device camera is called, and in response to a shooting object determination operation issued by the user, the device camera is controlled to shoot an image to obtain a paper business card image.

[0120] The electronic business card application includes a preset device camera calling interface, and provides an operation option for triggering the preset device camera calling interface on the information display interface. For example, the information display interface includes an operation option of "shooting a paper business card and automatically entering information".

[0121] When the user wishes to capture an image of a paper business card, the user can perform a shooting operation on the operation option in the information display interface that is used to trigger the preset device camera call interface. For example, the user can select the operation option in the information display interface that is used to trigger the preset device camera call interface to issue a shooting operation; for another example, the user can voice-enter a shooting command to issue a shooting operation, etc.

[0122] When the electronic device detects a shooting operation initiated by the user, it can respond to the shooting operation and call the device camera. In the process of calling the device camera, the user can place the paper business card within the image acquisition range of the device camera and perform a shooting object determination operation. For example, the user can select a shooting key in the device camera to issue a shooting object determination operation. When the electronic device detects a shooting object determination operation initiated by the user, it can respond to the shooting object determination operation and control the device camera to capture an image, thereby obtaining a paper business card image.

[0123] After acquiring the paper business card image, the electronic device can perform character recognition on the paper business card image to obtain user information for generating the electronic business card. After the recognition is completed, the recognized user information can be automatically filled in the user information display area of ​​the information display interface, and the business card preview effect of the electronic business card is updated.

[0124] For example, in Figure 3 On the basis of Figure 7 As shown, since the information display interface of the electronic business card application may include an operation option of "shoot a paper business card and automatically enter information", when the user wishes to shoot a paper business card, the user may click on "shoot a paper business card and automatically enter information" to initiate a shooting operation. When the user's shooting operation is detected, the electronic device may call the device camera through a preset device camera calling interface, i.e., display a shooting interface. Figure 8 As shown, the paper business card includes the name "XX", the job title "Position B", the department name "C Center", the company name "Company A", the email address "bbbbbbb-bbb@A.xxx.xx", the mobile phone number "aaaaaaaaaaaa", the company address "XX Road, XX District, XX City", "Postal Code cccccc" and the logo of Company A. The user can adjust the electronic device or the paper business card so that the paper business card is within the viewfinder of the device camera. The viewfinder includes a photo button, as well as parameter adjustment options such as lens rotation, W, 1X, and 2X. The user can then click the photo button to initiate a subject confirmation operation, and the electronic device can respond to the subject confirmation operation to control the device camera to shoot. Figure 8 The image of the paper business card shown in Fig. 9The photo confirmation interface shown in the figure displays the captured image, the photo confirmation button "√" in the upper right corner, and the cancel button "×" in the upper left corner. When the user clicks the cancel button, the electronic device can respond to the user's operation to cancel the currently captured image and re-enter the photo interface. If the user clicks the photo confirmation button in the upper right corner, the electronic device can respond to the user's operation to use the captured image as a paper business card image, then jump to the information display interface, and call the OCR recognition algorithm to perform character recognition on the paper business card image. The recognition process depends on network latency and usually lasts 1-2 seconds. When the recognition is completed, the information display interface can display a mask prompt of "Recognizing". After the recognition is completed, such as Fig.10 The information display interface shown can display a prompt message of "Recognition successful" and automatically fill in the recognized user information in the user information display area of ​​the information display interface, and update the business card preview effect of the electronic business card, that is, the recognized name "XX", position name "Position B", department name "C Center", company name "Company A", email address "bbbbbbb-bbb@A.xxx.xx", mobile phone number "aaaaaaaaaaaa", company address "XX Road, XX District, XX City" and "Postal Code cccccc" are displayed in the information display interface, and the real-time preview effect of the electronic business card is displayed above the user information display area.

[0125] It can be seen that in the embodiment of the present invention, the electronic device can call the device camera in response to the shooting operation issued by the user, and control the device camera to shoot an image in response to the shooting object determination operation issued by the user to obtain a paper business card image. Based on the operation issued by the user, the electronic device can collect the paper business card image by calling the device camera, so that the acquisition process of the paper business card image can be intuitively reflected so that the user can determine the acquired paper business card.

[0126] As an implementation of an embodiment of the present invention, the step of acquiring a paper business card image may include:

[0127] In response to the album display operation issued by the user, the device album is called, the images included in the device album are displayed in the album display interface, and the image selected by the user in the album display interface is used as the paper business card image.

[0128] The electronic business card application includes a preset device album calling interface, and provides an operation option for triggering the preset device album calling interface on the information display interface. For example, the information display interface may include an operation option of "accessing the album".

[0129] When the user wants to read a paper business card image from the album, he can perform the album display operation on the operation option in the information display interface for triggering the preset device album call interface. For example, the user can select the operation option in the information display interface for triggering the preset device album call interface to issue the album display operation; for another example, the user can record the album display instruction by voice to issue the album display operation, etc.

[0130] When the electronic device detects the album display operation issued by the user, it can respond to the album display operation, call the device album, and display the images included in the device album in the information display interface. The user can select an image for generating an electronic business card from the images included in the device album. When the electronic device detects the user's selection operation for the image, it can use the image selected by the user as the paper business card image.

[0131] After acquiring the paper business card image, the electronic device can perform character recognition on the paper business card image to obtain user information for generating an electronic business card.

[0132] For example, in Figure 3 On the basis of Fig.11 As shown, the information display interface may include an operation option of "visiting photo album", and the user may click on the operation option of "visiting photo album". When the electronic device detects the clicking operation of "visiting photo album" issued by the user, it may call the device album and display the images included in the device album in the information display interface. After that, the user may select an image from the device album, and the electronic device may use the image selected by the user as a paper business card image.

[0133] It can be seen that in the embodiment of the present invention, the electronic device responds to the album display operation issued by the user, calls the device album, displays the images included in the device album in the album display interface, and uses the image selected by the user in the album display interface as the paper business card image. Based on the operation issued by the user, the electronic device can obtain the paper business card image by calling the device album, so that the acquisition process of the paper business card image can be intuitively reflected so that the user can determine the acquired paper business card.

[0134] As an implementation method of the embodiment of the present invention, Fig.12 As shown, before the above step of performing character recognition on the paper business card image, the method for generating an electronic business card provided by the present invention may further include:

[0135] S1201, in response to the user's editing instruction for the paper business card image, displaying an editing interface for the paper business card image;

[0136] S1202: based on the editing operation issued by the user in the editing interface, edit the paper business card image, and use the edited paper business card image as the paper business card image.

[0137] Since the acquired paper business card image may include image content other than the paper business card, for example, the paper business card image may include the paper business card and the desktop where the business card is located, and the desktop occupies a large proportion of the image; and in the collected paper business card image, due to the problem of shooting angle, the font in the business card is tilted and other situations that affect the efficiency and effect of character recognition, in order to improve the recognition effect of the paper business card image, the paper business card can be edited after it is acquired.

[0138] Specifically, when there are factors in the paper business card image that affect the recognition efficiency and recognition effect, the user can issue an editing instruction for the paper business card image. For example, after collecting the paper business card image, the user can edit the image effect of the collected paper business card image in the following manner: Fig. 9 In the photo confirmation interface shown, click the photo confirmation button in the upper right corner. After detecting the user's click operation on the photo confirmation button, the electronic device can display the editing interface of the paper business card image. For another example, after acquiring the paper business card image, an editing button for the paper business card image can be displayed. The user can click the editing button. After detecting the user's click operation on the editing button, the electronic device can display the editing interface of the paper business card image.

[0139] Among them, the editing interface includes multiple editing operation buttons, such as a rotation button, a crop confirmation button, a zoom in button, a zoom out button, etc. The user can issue corresponding editing operations in the editing interface. When the electronic device detects the editing operation issued by the user, it can perform corresponding edits on the paper business card image and update the edited paper business card image to a paper business card image used to generate an electronic business card.

[0140] It can be seen that in the embodiment of the present invention, the electronic device can display an editing interface of the paper business card image in response to the user's editing instruction for the paper business card image; based on the editing operation issued by the user in the editing interface, the paper business card image is edited, and the edited paper business card image is used as the paper business card image. The user can edit the paper business card image according to the image effect of the paper business card image, so that the edited paper business card image removes the factors affecting character recognition, which can improve the efficiency and effect of character recognition.

[0141] As an implementation of the embodiment of the present invention, the editing interface includes a preset cropping frame, and the preset cropping frame is displayed on an upper layer of the paper business card image;

[0142] The above step S1202, i.e., the step of editing the paper business card image based on the editing operation issued by the user in the editing interface, may include:

[0143] In response to the user's adjustment operation on the preset cropping frame or the paper business card image, updating the image area surrounded by the current cropping frame in the editing interface;

[0144] In response to the user's cropping instruction for the image area, the image area is cropped from the paper business card image to obtain an edited paper business card image.

[0145] The editing interface of the paper business card image may include a preset cropping frame, which is displayed on the upper layer of the paper business card image, and the aspect ratio of the preset cropping frame is set during the initial configuration of the Cropper plug-in. The initial value of the aspect ratio of the preset cropping frame is the aspect ratio of the preset business card template, 1.45:1. Fig.13 As shown, in Fig. 9 On the basis of, the editing interface includes multiple editing operation buttons, for example, a rotation button, a cropping confirmation button, a zoom-in button, a zoom-out button, etc., and the editing interface includes a preset cropping box 1310.

[0146] When it is desired to crop the invalid area in the paper business card image and retain only the valid part of the paper business card image, the user can adjust the preset cropping frame or the paper business card image to update the image area surrounded by the current cropping frame in the editing interface.

[0147] In one implementation, the user can adjust the aspect ratio of the preset cropping frame by dragging the preset cropping frame, or adjust the surrounding area of ​​the preset cropping frame by moving it, so that the adjusted current cropping frame only surrounds the text area of ​​the paper business card image.

[0148] In another implementation, the user can reduce or enlarge the paper business card image by dragging the paper business card image. When the preset cropping frame remains unchanged, the size of the paper business card image is adjusted, and the image area of ​​the paper business card image in the current cropping frame changes.

[0149] When the image area of ​​the paper business card image included in the current cropping frame is determined, the user can issue a cropping instruction regarding the image area. For example, the user can click an OK edit button to issue a cropping instruction, or the user can input a voice cropping instruction, etc. The electronic device can respond to the cropping instruction issued by the user and can crop the image area enclosed by the current cropping frame from the paper business card image to obtain an edited paper business card image.

[0150] In one implementation, the electronic device can use getCroppedCanvas of the Cropper plug-in to crop the image area surrounded by the current cropping frame, and encode the cropped image area to obtain the base64 encoding of the image area, so that the OCR recognition algorithm can recognize the image area.

[0151] The process of generating electronic business cards is as follows Fig.14 As shown, the following steps may be included:

[0152] S1401: Electronic business card initialization completed;

[0153] The electronic device can respond to the electronic business card generation instruction issued by the user, display the information display interface of the electronic business card application program, and implement the electronic business card initialization.

[0154] S1402: Click the photo button;

[0155] The user can click the photo button in the information display interface. When the electronic device detects the user's click operation, it can call the device camera and display the photo confirmation interface.

[0156] S1403: taking photos;

[0157] The user can perform an operation to determine the subject to be photographed, and the electronic device can take a photo when detecting the user operation.

[0158] S1404: Photo editing (cropping, rotation);

[0159] The user can click the photo confirmation button. When the electronic device detects the user operation, it can display an editing interface. The user can select the editing options in the editing interface. The electronic device can perform cropping, rotation and other processing on the photo according to the user operation.

[0160] S1405: Is it confirmed? If yes, execute S1406; if no, execute S1403;

[0161] S1406: text recognition;

[0162] When a confirmation operation of the user is detected, OCR text recognition is performed on the paper business card image. When no confirmation operation of the user is detected, the system can return to the photo taking interface to continue taking photos.

[0163] S1407: Automatically fill in user information and update the business card preview effect.

[0164] After the OCR recognition of the paper business card image is completed, the recognized user information can be automatically filled into the corresponding display position, the electronic business card is drawn based on the user information, and the business card preview effect of the electronic business card is updated.

[0165] It can be seen that in the embodiment of the present invention, in response to the user's adjustment operation on the preset cropping frame or the paper business card image, the image area surrounded by the current cropping frame in the editing interface is updated; in response to the user's cropping instruction on the image area, the image area is cropped from the paper business card image to obtain the edited paper business card image. The user can adjust the image area surrounded by the cropping frame by adjusting the preset cropping frame or the paper business card image in the editing interface.

[0166] As an implementation manner of the embodiment of the present invention, the information display interface includes a first area and a second area, the first area displays the user information, and the second area displays the electronic business card;

[0167] like Fig.15 As shown, a method for generating an electronic business card provided by an embodiment of the present invention may further include:

[0168] S1501, in response to the user's update operation on the user information in the first area, displaying updated user information in the first area;

[0169] S1502: Determine a target display position of the updated user information according to the display position of each piece of user information included in the preset business card template, and display the updated user information at the target display position in the second area.

[0170] The information display interface may include a first area and a second area, wherein the first area is used to display user information, and the second area is used to display an electronic business card.

[0171] During the creation of the electronic business card, the user can perform an update operation on the user information displayed in the first area to update the user information in the first area. In response to the user's update operation on the user information in the first area, the electronic device can display the updated user information in the first area. The update operation includes adding, changing and deleting.

[0172] Furthermore, according to the display positions of each piece of user information included in the preset business card template, the target display position of the updated user information is determined, and then the updated user information is displayed at the target display position in the second area.

[0173] It can be seen that in the embodiment of the present invention, during the electronic business card generation process, the user can modify the user information at any time, and corresponding to the modification of the user information, the user information displayed in the electronic business card will also be modified accordingly, that is, the information display interface can update the preview effect of the electronic business card in real time according to the user's operation instructions, so that the user can try to check the information modification effect, thereby improving the user experience.

[0174] As an implementation method of the embodiment of the present invention, the information display interface includes an information clearing trigger interface;

[0175] The above step S702, i.e., the step of displaying updated user information in the first area in response to the user's update operation on the user information in the first area, may include:

[0176] In response to the user's triggering operation on the information clearing triggering interface, the user information displayed in the first area is cleared, and the user information in the electronic business card displayed in the second area is cleared.

[0177] The information display interface may include an information clearing trigger interface, by which all user information in the information display interface may be cleared with one click, and correspondingly, the user information in the electronic business card will also be cleared.

[0178] When wishing to clear user information, the user can issue a trigger operation for the information clearing trigger interface to eliminate all user information with one click. The electronic device can respond to the user's trigger operation for the information clearing trigger interface and can instantly clear the user information displayed in the first area, and correspondingly, clear the user information in the electronic business card displayed in the second area.

[0179] For example, Fig.16 As shown, in Figure 4 On the basis of the above, the information display interface also includes an information clearing trigger interface of "clearing filled information with one click", and the user can trigger the information clearing trigger interface to clear the user information and the preview effect of the electronic business card displayed on the information display interface with one click, and obtain the following Figure 3 The initial information display interface shown.

[0180] It can be seen that in an embodiment of the present invention, the information display interface may include an information clearing trigger interface, and the user can use the information clearing trigger interface to clear all user information in the information display interface with one click, and the user information in the electronic business card will also be cleared accordingly, without the need to clear each user information one by one, thereby improving the user experience.

[0181] As an implementation of an embodiment of the present invention, the information display interface includes a business card saving trigger interface; an electronic business card generation method provided by an embodiment of the present invention may also include:

[0182] In response to the user's trigger operation on the business card saving trigger interface, the electronic business card is encoded according to a preset encoding method, and the encoded electronic business card is saved to a device album, wherein the preset encoding method is an encoding method supported by the device album.

[0183] In order to facilitate users to save the generated electronic business cards, the information display interface of the electronic business card application also includes a business card save trigger interface; by triggering the business card save trigger interface, the electronic business card can be saved to a preset save location, such as a local photo album, electronic business card library, etc.

[0184] If the user wishes to save the generated electronic business card, the user can perform a trigger operation on the business card save trigger interface. When the electronic device detects that the user has performed a trigger operation on the business card save trigger interface, it can respond to the trigger operation, encode the electronic business card according to a preset encoding method supported by the device album, and save the encoded electronic business card to the device album.

[0185] For example, the user can click the "One-click Generate" button at the bottom of the information display interface to jump to the save interface, such as Fig.17 As shown, the interface may include a business card that can be displayed, such as Figure 4 The previewed electronic business card and the "Save to mobile phone" business card saving trigger interface, the user can click "Save to mobile phone", and when the electronic device detects the user operation, it can use the canvas's toData URL (Uniform Resource Locator) method to convert the electronic business card into a base 64 encoded string including the image, and save the encoded string in the mobile phone album. Fig.18 As shown, in Fig.17 On this basis, a prompt message of "saved to mobile phone album" is displayed, thereby realizing the function of saving the business card to the album.

[0186] It can be seen that in the embodiment of the present invention, the information display interface of the electronic business card application also includes a business card save trigger interface. By triggering the business card save trigger interface, the electronic business card can be saved to the device album. This makes it convenient for users to save and view the electronic business card in the device album, thereby improving the user experience.

[0187] As an implementation of an embodiment of the present invention, in the above step S103, the step of drawing an electronic business card based on the user information and the preset business card template may include:

[0188] Loading the external font file by using a preset external font calling interface and the URL of the external font file;

[0189] The external font file is called, and each user information is drawn at a display position corresponding to each user information in the preset business card template according to the font format indicated by the external font file.

[0190] When using canvas to draw text, some of the fonts used may not be the browser's own fonts. In order to improve the display effect of the electronic business card, it is often necessary to load external font files.

[0191] Since the electronic business card application is an application deployed on an H5 web page, the size of the application is limited to a certain extent, and it is impossible to package all the required external font files into the electronic business card application.

[0192] Based on this, the electronic device can use a preset font loading interface, such as the FontFaceAPI provided by the browser, to dynamically load the external font file in real time according to the user's electronic business card generation instruction, font loading interface, external font file name and URL. Specifically, the external font file can be loaded through the following logic:

[0193]

[0194] When drawing an electronic business card, an external font file can be called, and each user information is drawn in the display position corresponding to each user information in the preset business card template according to the font format indicated by the external font file.

[0195] The electronic business card generation process is as follows: Fig.19 As shown, the specific steps include:

[0196] S1901: Enter the application;

[0197] In response to an electronic business card generation instruction issued by the user, an application is entered and an information display interface of the electronic business card application is displayed.

[0198] S1902: Load the required external fonts;

[0199] According to the electronic business card generation instruction, the required external font file is loaded using the FontFace API provided by the browser.

[0200] S1903: Obtain user information data;

[0201] Gets user information data used to generate an electronic business card.

[0202] S1904: Initialize each user's information;

[0203] Initialize each user's information and display the user's information data on the information display interface.

[0204] S1905: Draw business card effect;

[0205] S1906: Electronic business card initialization is completed.

[0206] Draw an electronic business card based on user information data and a preset business card template, and display a preview of the electronic business card.

[0207] It can be seen that in the embodiment of the present invention, the electronic device can load the external font file through the preset external font calling interface and the URL of the external font file; call the external font file, and draw each user information in the display position corresponding to each user information in the preset business card template according to the font format indicated by the external font file. In this way, there is no need to expand the program scale of the electronic business card application, and the drawing effect of the electronic business card is improved, thereby improving the user experience.

[0208] Corresponding to the above-mentioned method for generating an electronic business card, an embodiment of the present invention further provides an electronic business card generating device. The following is an introduction to an electronic business card generating device provided by an embodiment of the present invention.

[0209] like Fig. 20 As shown, a device for generating an electronic business card, the device comprising:

[0210] A generating instruction response module 2001 is used to respond to an electronic business card generating instruction issued by a user and display an information display interface of an electronic business card application program;

[0211] A user information acquisition module 2002, used to acquire user information used to generate an electronic business card, and to display the user information in the information display interface;

[0212] The electronic business card drawing module 2003 is used to draw an electronic business card in response to the user's confirmation operation on the user information based on the user information and a preset business card template, and display the electronic business card in real time in the information display interface.

[0213] It can be seen that in the embodiment of the present invention, the electronic device can display the information display interface of the electronic business card application in response to the electronic business card generation instruction issued by the user; obtain the user information used to generate the electronic business card, and display the user information in the information display interface; in response to the user's confirmation operation on the user information, draw the electronic business card based on the user information and the preset business card template, and display the electronic business card in real time in the information display interface. Compared with paper business cards, the electronic business card generated by the electronic business card generation program can adjust the user information in the electronic business card according to the user's needs, and updating the user information in the electronic business card will not increase the user's usage cost. In addition, since the information display interface of the electronic business card application can display the user information and display the electronic business card drawn based on the user information in real time, the visualization of the electronic business card generation process is realized. During the electronic business card generation process, the user can adjust the electronic business card by adjusting the user information in the information display interface according to their own needs, which meets the user's needs for personalized electronic business cards and improves the user's usage experience.

[0214] As an implementation of the embodiment of the present invention, the user information acquisition module 2002 includes at least one of the following:

[0215] An image acquisition submodule is used to acquire a paper business card image and perform character recognition on the paper business card image to obtain user information used to generate an electronic business card;

[0216] A first information acquisition submodule, configured to call a preset user information acquisition interface, and based on the user identifier indicated by the electronic business card generation instruction, acquire user information corresponding to the user identifier;

[0217] The second information acquisition submodule is used to acquire user information input by the user in the information display interface.

[0218] As an implementation manner of the embodiment of the present invention, the image acquisition submodule includes:

[0219] a shooting unit, configured to call a device camera in response to a shooting operation issued by the user, and control the device camera to shoot an image in response to a shooting object determination operation issued by the user, so as to obtain a paper business card image; or

[0220] The shooting unit is used to call the device album in response to the album display operation issued by the user, display the images included in the device album in the album display interface, and use the image selected by the user in the album display interface as a paper business card image.

[0221] As an implementation manner of the embodiment of the present invention, the device further includes:

[0222] An editing interface display module, used for displaying an editing interface of the paper business card image in response to an editing instruction of the user for the paper business card image before the step of performing character recognition on the paper business card image;

[0223] The editing module is used to edit the paper business card image based on the editing operation issued by the user in the editing interface, and use the edited paper business card image as the paper business card image.

[0224] As an implementation of the embodiment of the present invention, the editing interface includes a preset cropping frame, and the preset cropping frame is displayed on an upper layer of the paper business card image;

[0225] The editing module comprises:

[0226] An image area updating submodule, configured to update the image area surrounded by the current cropping frame in the editing interface in response to the user's adjustment operation on the preset cropping frame or the paper business card image;

[0227] The cropping submodule is used to crop the image area from the paper business card image in response to the user's cropping instruction for the image area, so as to obtain an edited paper business card image.

[0228] As an implementation manner of an embodiment of the present invention, the information display interface includes a first area and a second area, the first area displays the user information, and the second area displays the electronic business card; the device also includes:

[0229] an update operation response module, configured to display updated user information in the first area in response to an update operation by the user on the user information in the first area;

[0230] The position determination module is used to determine the target display position of the updated user information according to the display position of each user information included in the preset business card template, and display the updated user information at the target display position in the second area.

[0231] As an implementation method of the embodiment of the present invention, the information display interface includes an information clearing trigger interface;

[0232] The update operation response module includes:

[0233] The information clearing submodule is used to clear the user information displayed in the first area and clear the user information in the electronic business card displayed in the second area in response to the trigger operation of the user on the information clearing trigger interface.

[0234] As an implementation of an embodiment of the present invention, the information display interface includes a business card saving trigger interface; the device also includes:

[0235] The encoding module is used to encode the electronic business card according to a preset encoding method in response to the user's trigger operation on the business card saving trigger interface, and save the encoded electronic business card to the device album, wherein the preset encoding method is an encoding method supported by the device album.

[0236] As an implementation of the embodiment of the present invention, the electronic business card drawing module 2003 includes:

[0237] A file loading submodule, used to load the external font file through a preset external font calling interface and the URL of the external font file;

[0238] The drawing submodule is used to call the external font file, and draw each user information at the display position corresponding to each user information in the preset business card template according to the font format indicated by the external font file.

[0239] The embodiment of the present invention further provides an electronic device, such as Fig.21 As shown, it includes a processor 2101 , a communication interface 2102 , a memory 2103 and a communication bus 2104 , wherein the processor 2101 , the communication interface 2102 , and the memory 2103 communicate with each other via the communication bus 2104 .

[0240] Memory 2103, used for storing computer programs;

[0241] The processor 2101 is used to implement the method for generating an electronic business card described in any of the above embodiments when executing the program stored in the memory 2103.

[0242] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0243] The communication interface is used for communication between the above electronic device and other devices.

[0244] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0245] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0246] In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods for generating an electronic business card are implemented.

[0247] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes any method for generating an electronic business card in the above embodiments.

[0248] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0249] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0250] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, electronic device and storage medium, computer-readable storage medium and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0251] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A method for generating an electronic business card, characterized in that: The method comprises: In response to an electronic business card generation instruction issued by a user, an information display interface of an electronic business card application is displayed; Acquire user information used to generate an electronic business card, and display the user information in the information display interface; In response to the user's confirmation operation on the user information, an electronic business card is drawn based on the user information and a preset business card template, and the electronic business card is displayed in real time in the information display interface.

2. The method according to claim 1, characterized in that The step of obtaining user information for generating an electronic business card includes at least one of the following: Acquire a paper business card image, and perform character recognition on the paper business card image to obtain user information for generating an electronic business card; Calling a preset user information acquisition interface, based on the user identifier indicated by the electronic business card generation instruction, acquiring the user information corresponding to the user identifier; Obtain user information entered by the user in the information display interface.

3. The method according to claim 1, characterized in that The step of obtaining a paper business card image includes: In response to a shooting operation issued by the user, calling a device camera, and in response to a shooting object determination operation issued by the user, controlling the device camera to shoot an image to obtain a paper business card image; or, In response to the album display operation issued by the user, the device album is called, the images included in the device album are displayed in the album display interface, and the image selected by the user in the album display interface is used as the paper business card image.

4. The method according to claim 3, characterized in that Before the step of performing character recognition on the paper business card image, the method further includes: In response to the user's editing instruction for the paper business card image, displaying an editing interface for the paper business card image; Based on the editing operation issued by the user in the editing interface, the paper business card image is edited, and the edited paper business card image is used as the paper business card image.

5. The method according to claim 4, characterized in that The editing interface includes a preset cropping frame, and the preset cropping frame is displayed on the upper layer of the paper business card image; The step of editing the paper business card image based on the editing operation issued by the user in the editing interface includes: In response to the user's adjustment operation on the preset cropping frame or the paper business card image, updating the image area surrounded by the current cropping frame in the editing interface; In response to the user's cropping instruction for the image area, the image area is cropped from the paper business card image to obtain an edited paper business card image.

6. The method according to any one of claims 1 to 5, characterized in that: The information display interface includes a first area and a second area, the first area displays the user information, and the second area displays the electronic business card; the method further includes: In response to the user's update operation on the user information in the first area, displaying updated user information in the first area; According to the display positions of each piece of user information included in the preset business card template, a target display position of the updated user information is determined, and the updated user information is displayed at the target display position in the second area.

7. The method according to claim 6, characterized in that The information display interface includes an information clearing trigger interface; The step of displaying updated user information in the first area in response to the user's update operation on the user information in the first area includes: In response to the user's triggering operation on the information clearing triggering interface, the user information displayed in the first area is cleared, and the user information in the electronic business card displayed in the second area is cleared.

8. The method according to any one of claims 1 to 5, characterized in that: The information display interface includes a business card saving trigger interface; the method also includes: In response to the user's trigger operation on the business card saving trigger interface, the electronic business card is encoded according to a preset encoding method, and the encoded electronic business card is saved to a device album, wherein the preset encoding method is an encoding method supported by the device album.

9. The method according to any one of claims 1 to 5, characterized in that: The step of drawing an electronic business card based on the user information and a preset business card template includes: Loading the external font file by using a preset external font calling interface and the URL of the external font file; The external font file is called, and each user information is drawn at a display position corresponding to each user information in the preset business card template according to the font format indicated by the external font file.

10. An electronic business card generating device, characterized in that: The device comprises: A generating instruction response module, used to respond to an electronic business card generating instruction issued by a user and display an information display interface of the electronic business card application program; A user information acquisition module, used to acquire user information used to generate an electronic business card, and display the user information in the information display interface; The electronic business card drawing module is used to respond to the user's confirmation operation on the user information, draw an electronic business card based on the user information and a preset business card template, and display the electronic business card in real time in the information display interface.

11. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 9 when executing a program stored in a memory.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 9 are implemented.

Citation Information

Patent Citations

  • Multifunctional electronic name card with multimedia information

    CN102508817A

  • Electronic business card and manufacturing method thereof

    CN103020473A

  • Method and system for quickly creating visual-style electronic business card

    CN103488608A

  • Business card OCR data correction method and system based on knowledge base

    CN103488983A

  • Electronic business card generation method and device

    CN107517320A