Image processing method, image processing apparatus, and electronic device

By using an external chip in a mobile device to receive and convert user-defined image effect files, the problem that mobile devices cannot import customized effects is solved, and personalized image processing effects are achieved.

WO2025195278A1PCT designated stage Publication Date: 2025-09-25VIVO MOBILE COMM CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/082421
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-03-19
Filing Date
2025-03-13
Publication Date
2025-09-25

AI Technical Summary

Technical Problem

The image editing function or software on the mobile device cannot realize the user's personalized image effect processing, and cannot import the user-defined effect file for image processing.

Method used

By assembling an external chip, such as an IC chip, in the electronic device, receiving the user-defined image effect file, converting it into a file format that is easy to process using the JNI conversion library, and generating an effect identifier, personalized effect processing of the image is achieved.

Benefits of technology

It enables the import and processing of user-defined image effects, improving the personalization and flexibility of image editing, and users can apply customized effects during the shooting and editing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025082421_25092025_PF_FP_ABST
    Figure CN2025082421_25092025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of image processing, and discloses an image processing method, an image processing apparatus, and an electronic device. The method is applied to an electronic device. The electronic device comprises a first chip. The method comprises: receiving a first input, wherein the first input is used for importing a first image effect file to the first chip; in response to the first input, generating a first effect identifier corresponding to the first image effect file, and converting, by means of the first chip, the first image effect file into a first file associated with the first effect identifier; receiving a second input, wherein the second input is used for processing a first image into an image having an effect corresponding to a second effect identifier, and the first effect identifier comprises the second effect identifier; and in response to the second input, by means of the first chip, using a second file associated with the second effect identifier to perform effect processing on the first image to obtain a second image.
Need to check novelty before this filing date? Find Prior Art

Description

Image processing method, image processing device, and electronic equipment

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on March 19, 2024, with application number 202410310117.3 and titled “Image Processing Method, Image Processing Device and Electronic Device,” the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present application belongs to the field of image processing technology, and specifically relates to an image processing method, an image processing device and an electronic device. Background Art

[0004] With the widespread use of mobile device camera functions, users can use image editing functions or image editing software on mobile devices to edit the effects of photos, videos, and other images, such as filters. However, the image effects provided by image editing functions or image editing software on mobile devices are fixed and cannot achieve user-customized image effect processing. Summary of the Invention

[0005] The purpose of the embodiments of the present application is to provide an image processing method, an image processing device and an electronic device, which can use an external chip to store user-defined effect files, and use the effect files to process the effects of the image, thereby realizing user-personalized image effect processing.

[0006] In a first aspect, an embodiment of the present application provides an image processing method, which is used in an electronic device, wherein the electronic device includes a first chip, and the method includes:

[0007] receiving a first input, wherein the first input is used to import a first image effect file into the first chip;

[0008] In response to the first input, generating a first effect identifier corresponding to the first image effect file, and converting the first image effect file into a first file associated with the first effect identifier through the first chip;

[0009] receiving a second input, wherein the second input is used to process the first image into an image having an effect corresponding to a second effect identifier, the first effect identifier including the second effect identifier;

[0010] In response to the second input, the first chip uses a second file associated with the second effect identifier to perform effect processing on the first image to obtain a second image.

[0011] In a second aspect, an embodiment of the present application provides an image processing device for use in an electronic device, wherein the electronic device includes a first chip, and the device includes:

[0012] a first receiving module, configured to receive a first input, wherein the first input is used to import a first image effect file into the first chip;

[0013] a first response module, configured to generate a first effect identifier corresponding to the first image effect file in response to the first input, and convert the first image effect file into a first file associated with the first effect identifier via the first chip; wherein the first input is used to import the first image effect file into the first chip;

[0014] a second receiving module, configured to receive a second input, wherein the second input is used to process the first image into an image having an effect corresponding to a second effect identifier, the first effect identifier including the second effect identifier;

[0015] The second response module is configured to respond to the second input and, through the first chip, use a second file associated with the second effect identifier to perform effect processing on the first image to obtain a second image.

[0016] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0017] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0018] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method described in the first aspect.

[0019] In a sixth aspect, an embodiment of the present application provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps in the method described in the first aspect.

[0020] In a seventh aspect, an embodiment of the present application provides an electronic device, which is configured to perform the steps of the method described in the first aspect.

[0021] In an embodiment of the present application, an electronic device is equipped with a first chip, which receives a first input, wherein the first input is used to import a first image effect file into the first chip; in response to the first input, generates a first effect identifier corresponding to the first image effect file, and converts the first image effect file into a first file associated with the first effect identifier via the first chip; receives a second input, wherein the second input is used to process a first image into an image having an effect corresponding to a second effect identifier, wherein the first effect identifier includes the second effect identifier; and in response to the second input, performs effect processing on the first image using the second file associated with the second effect identifier via the first chip to obtain a second image. When an effect file customized by a user or generated by other means is imported into the electronic device, the first chip can convert the effect file into a first file that facilitates effect processing, and generate a corresponding effect identifier, which is used to identify the user-defined image effect and the corresponding first file. In this way, during subsequent image processing, if the user selects a customized image effect, the first chip can find the corresponding first file based on the effect identifier of the customized image effect and use the first file to perform effect processing, thereby achieving user-customized image effect processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] FIG1 is a flow chart of an image processing method provided by an embodiment of the present application;

[0023] FIG2 is a flow chart of importing custom effects in an embodiment of the present application;

[0024] FIG3 is a schematic diagram of an interface interaction for importing a custom effect in an embodiment of the present application;

[0025] FIG4 is a flowchart of a custom effect processing in an embodiment of the present application;

[0026] FIG5 is a flowchart of a custom effect shooting embodiment of the present application;

[0027] FIG6 is a flowchart of post-processing of custom effects in an embodiment of the present application;

[0028] FIG7 is a schematic structural diagram of an image processing device provided in an embodiment of the present application;

[0029] FIG8 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0030] FIG9 is a schematic diagram of the hardware structure of a terminal provided in an embodiment of the present application. Specific embodiments

[0031] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.

[0032] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.

[0033] With the increasing popularity of mobile device camera functions, more and more users want to customize their photos and add different effects and filters to them. These individual users are not satisfied with the existing effects on their devices and want to import their own effects and apply them to their photos or videos. However, mobile camera devices such as mobile phones in the related art do not support importing user-defined effects and applying them to photos or videos taken by users.

[0034] The embodiment of the present application is used to import user-defined or external device-acquired effect files into mobile electronic devices such as mobile phones, iPads, and cameras, and the effect files can be used to perform image effect processing using a first chip (such as an external chip or an external integrated circuit (IC) chip) installed in the mobile electronic device to obtain photos or videos with effects customized by the user or designed by an external device.

[0035] The image processing method, image processing device, and electronic device provided by the embodiments of the present application are described in detail below with reference to specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0036] 1 , an image processing method provided in an embodiment of the present application is executed by an electronic device including a first chip.

[0037] In some embodiments, the electronic device in the embodiments of the present application may be a terminal, or may be other devices other than a terminal. For example, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc., and may also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), an ATM or a self-service machine, etc., which is not specifically limited in the embodiments of the present application. For ease of explanation, in the embodiments of the present application, an electronic device is taken as an example to illustrate.

[0038] In some embodiments, the first chip is an external display enhancement chip specifically used to implement the import and processing of custom effects, or a location chip, an IC chip, or a chip device detachably connected to the electronic device. For ease of explanation, in the embodiments of this application, the electronic device is generally a mobile phone, and the first chip is an IC chip within the mobile phone.

[0039] As shown in FIG1 , the image processing method includes the following steps:

[0040] Step 101: Receive a first input, wherein the first input is used to import a first image effect file into the first chip.

[0041] Step 102: In response to the first input, generate a first effect identifier corresponding to the first image effect file, and convert the first image effect file into a first file associated with the first effect identifier through the first chip; wherein the first input is used to import the first image effect file into the first chip.

[0042] Step 103: Receive a second input, wherein the second input is used to process the first image into an image having an effect corresponding to a second effect identifier, and the first effect identifier includes the second effect identifier.

[0043] Step 104 : In response to the second input, the first chip uses a second file associated with the second effect identifier to perform effect processing on the first image to obtain a second image.

[0044] The first image effect file refers to an image effect file customized by the user or designed using other effect design software, that is, the image effect corresponding to the first image effect file is not configured in the camera application or album application installed in the electronic device.

[0045] In some implementations, the number of the first image effect files may be one or at least two.

[0046] In some embodiments, the user can store the external first image effect file in a designated file directory of the electronic device using wired or wireless data transmission, or can create the first image effect file in the designated file directory of the electronic device by designing the effect using effect design software on the electronic device. In this way, when importing the image effect file, the first image effect file to be imported can be found in the file directory.

[0047] In some embodiments, the first image effect file may be a multi-dimensional cube file, such as a cubic matrix of floating-point data. The cube file contains character data, which makes it inconvenient to directly perform effect processing on the cube file.

[0048] In some embodiments, the first file and the second file represent files that are suitable for effect processing, and specifically can be files containing byte-type data, such as bin files. For ease of explanation, in the embodiments of this application, the first file and the second file are generally illustrated as bin files. In this case, the first file can also be referred to as a first bin file, and the second file can also be referred to as a second bin file. Of course, the first file and the second file can also be other types of files that can be processed by effects, and this does not constitute a specific limitation here.

[0049] In some embodiments, the electronic device includes a Java Native Interface (JNI) conversion library. JNI is a technology that allows Java code to interact with code written in other languages. Thus, the electronic device can use the JNI conversion library to convert the Cube file into byte data, and use the first chip to generate a bin file based on the byte data that can be used for effect processing.

[0050] For example, as shown in FIG2 , assuming that the first chip is an IC chip and the effect identifier is an effect ID, the process of the IC chip converting the user-defined effect file into a bin file associated with the effect ID includes:

[0051] 1) After the user imports a custom effect file, the camera software generates an effect ID to identify the effect.

[0052] 2) The camera software converts the effect file into byte data using the JNI conversion library.

[0053] Among them, after obtaining the effect file, the JNI conversion library obtains byte data in BGR format through string to float processing, 17^3 data compression processing, byte mapping processing, and conversion from RGB to BGR.

[0054] 3) Send the byte data in BGR format to the IC chip through the interface provided by the IC chip. The IC chip saves the byte data to a bin file named after the effect ID.

[0055] For example, as shown in FIG3 , LUT1, LUT2, LUT3, and LUT4 included in the camera shooting preview interface are all LUT effects that come with the camera software. The camera shooting preview interface also includes an “Import” button. When the user clicks the “Import” button, it will jump to all cube files in the mobile phone memory card directory, that is, all optional image effect files to be imported. When the user selects DIY1.CUBE for import, a LUT effect button named after the DIY1.CUBE file name (i.e., DIY1) will be generated in the camera shooting preview interface. At this time, the user clicks the DIY1 effect button to select the effect and perform effect processing on the image in the camera shooting preview interface. In this embodiment, the first input can include a click operation on the “Import” button and a selection operation on the DIY1.CUBE file; the second input can include a click operation on the DIY1 effect button.

[0056] It should be noted that the above embodiments illustrate the generation of effect IDs by camera software. The camera software may be responsible for displaying and saving images captured by the camera, as well as interacting with the user during shooting. In other embodiments, the effect ID may be generated by photo album software. For example, when an image effect file is imported into the image editing interface of the photo album, an effect ID is generated and the newly generated effect ID option is displayed in the image editing interface. The photo album software may be responsible for displaying and editing photos or videos captured by the user.

[0057] In some implementations, the effect ID corresponds one-to-one to the image effect file imported by the user. The effect ID can be a number.

[0058] In some implementations, the bin file in the embodiments of the present application may be a file named with the corresponding effect ID+fixed prefix+lut file name and with a suffix of .bin.

[0059] For example, if the effect ID corresponding to the file natural_portrait.cube is 10000, the bin file generated by the IC is named natural_portrait_10000.bin; if the effect ID corresponding to the file summer_sea.cube is 10001, the bin file generated by the IC is named summer_sea_10001.bin. In this way, the camera software sends 100001 to the IC chip, and the chip can find the corresponding summer_sea_10001.bin.

[0060] In some implementations, the second input may be any selection operation on the second effect identifier. For example, when an icon corresponding to the second effect identifier is displayed, if the user clicks the icon, it indicates that the second effect identifier is selected.

[0061] In some embodiments, the first image may be a shooting preview image displayed in a shooting preview interface of camera software (i.e., a shooting application). For example, as shown in FIG4 , after displaying the shooting preview image and candidate effect identifiers in the shooting preview interface, upon learning that the user has selected a second effect identifier, the camera software sends the shooting preview image and the second effect identifier to the first chip. In this way, the first chip can find the corresponding second bin file based on the second effect identifier and use the second bin file to perform image effect processing on the shooting preview image to obtain a second image with the corresponding effect. Thereafter, the first chip can feed the second image back to the camera software to preview the second image in the shooting preview interface of the camera software. In this way, a camera-captured image with a user-defined effect can be previewed in the shooting preview interface.

[0062] It should be noted that the bin file in the embodiments of the present application can be a three-dimensional matrix. In this case, applying effect processing to the image can be performed by multiplying the image data with the three-dimensional matrix to obtain a new image. In this case, it can be considered that after the original image is converted into a three-dimensional matrix, the effect represented by the three-dimensional matrix is ​​added to the original image, and this process is equivalent to applying effect processing to the image.

[0063] In some embodiments, the first image may be an image displayed in the editing interface of an album software (i.e., an album application), for example: a photo or video to be edited and candidate effect identifiers are displayed in the photo editing interface. When the user selects the second effect identifier, the album software sends the photo or video to be edited and the second effect identifier to the first chip. In this way, the first chip can find the corresponding second bin file based on the second effect identifier, and use the second bin file to perform image effect processing on the photo or video to be edited to obtain a second image with a corresponding effect. Then, the first chip can feed the second image back to the album software to preview the second image in the editing interface of the camera album, or store the second image in the album.

[0064] In some embodiments, the second effect identifier may be one or at least two of the first effect identifiers. Wherein, when the second effect identifier is at least two of the first effect identifiers, the effect of the second image may be superimposed.

[0065] In an embodiment of the present application, an electronic device is equipped with a first chip. Upon receiving a first input, the chip generates a first effect identifier corresponding to a first image effect file, and uses the first chip to convert the first image effect file into a first file associated with the first effect identifier. The first input is used to import the first image effect file into the first chip. Upon receiving a second input, the chip uses the second file associated with the second effect identifier to perform effect processing on the first image, thereby obtaining a second image. The second input is used to process the first image into an image having the effect corresponding to the second effect identifier, and the first effect identifier includes the second effect identifier. When an effect file customized by a user or generated by other means is imported into the electronic device, the chip can convert the effect file into a first file that facilitates effect processing and generates a corresponding effect identifier. The effect identifier is then used to identify the user-defined image effect and the corresponding first file. In this way, during subsequent image processing, if a user selects a customized image effect, the chip can find the corresponding first file based on the customized image effect's effect identifier and use the first file to perform effect processing, thereby achieving personalized image effect processing.

[0066] As an optional implementation manner, the receiving the first input includes: receiving an image effect import operation from a user when a shooting preview interface of a shooting application is displayed;

[0067] The step of generating a first effect identifier corresponding to the first image effect file in response to the first input includes:

[0068] In response to the image effect import operation, displaying a first file directory, wherein the first file directory includes a first image effect file to be imported;

[0069] The receiving of the first input further includes:

[0070] receiving a user's selection operation of the first image effect file;

[0071] The step of generating a first effect identifier corresponding to the first image effect file in response to the first input further includes:

[0072] In response to the selection operation, generating an effect identifier corresponding to the first image effect file through the shooting application, and displaying the effect identifier in the shooting preview interface;

[0073] The first input includes the image effect importing operation and the selection operation.

[0074] In some implementations, the first file directory may be a file directory that pre-stores image effect files to be imported.

[0075] In some implementations, an “Import” button may be displayed in the shooting preview interface. In this case, the image effect import operation may be a touch operation on the “Import” button.

[0076] Of course, in other implementations, the import of image effects may be triggered by other preset hardware operations, which are not specifically limited here.

[0077] In this embodiment, the image effect file can be imported into the shooting preview interface, and the shooting application is used to generate an effect identifier for identifying each effect, and the effect identifier is displayed in the shooting preview interface. In this way, the effect that needs to be previewed in the camera-captured image can be selected in the shooting preview interface.

[0078] As an optional implementation manner, in response to the second input, performing effect processing on the first image using a second file associated with the second effect identifier via the first chip to obtain a second image includes:

[0079] In response to the second input, when the target interface is displayed, controlling the first chip to obtain a second file associated with the second effect identifier, and performing effect processing on the first image using the second file to obtain a second image;

[0080] The target interface includes a shooting preview interface or an image editing interface, and the target interface includes a first image and the second effect identifier.

[0081] In some embodiments, an icon corresponding to each image effect may be displayed in the target interface. In this case, the second input may be a touch input to the icon corresponding to the second effect identifier.

[0082] In some implementations, when the target interface is a shooting preview interface, the first image may be a shooting preview image captured by a camera in real time.

[0083] In some implementations, when the target interface is an image editing interface, the first image is an image to be edited in the image editing interface.

[0084] In some embodiments, in response to the second input, the first chip is controlled to retrieve a second file associated with the second effect identifier and use the second file to perform effect processing on the first image. An application corresponding to the target interface (such as a camera application or an album application) may send the second effect identifier and the first image to the first chip, so that the first chip finds the second file based on the second effect identifier and then uses the second file to perform effect processing on the received first image.

[0085] In this embodiment, a desired effect can be selected in the shooting preview interface or the image editing interface, and the first chip is used to perform effect processing on the first image displayed in the shooting preview interface or the image editing interface according to the selected effect. Thereafter, the shooting preview image with the selected effect can be previewed in the shooting preview interface, or the edited image with the selected effect can be previewed in the image editing interface.

[0086] As an optional implementation manner, after, in response to the second input, performing effect processing on the first image using the second file associated with the second effect identifier via the first chip to obtain the second image, the method further includes:

[0087] storing the second image in an album;

[0088] Associating the first image with the second effect identifier and storing it in a target file, where the target file is a hidden file;

[0089] The second image is associated with the first image.

[0090] In some implementations, only the second image, ie, the image with the effect, can be viewed in the album interface.

[0091] In some implementations, the hidden file is hidden from the user, that is, the hidden file is stored in a hidden file directory that is not accessible to the user.

[0092] In some embodiments, by associating the second image with the first image, it is possible to associate the image with the effect with its original image. In this way, when the user needs to obtain the original image, he can select the second image from the album to obtain the first image associated with the second image.

[0093] For example, after performing effect processing on the first image to obtain the second image, other post-editing operations such as effects may be performed on the second image. In this case, post-editing needs to be performed based on the original image (i.e., the first image) corresponding to the second image.

[0094] For another example, as shown in Figure 5, when a user selects a specific effect to capture Photo 1 (or Video 1), the camera software displays the processed image based on the external chip on the screen and saves the processed image to Photo 1 (or Video 1). Furthermore, the camera software receives the original image from the external chip without any processing effects and saves it, along with the previously generated effect ID, as Photo 2 (or Video 2). After both Photo 1 (or Video 1) and Photo 2 (or Video 2) are generated, Photo 1 (or Video 1) is saved in the album, while Photo 2 (or Video 2) is saved in a hidden file directory that is inaccessible to the user. This means that each recording by the user generates two photos (or MP4 videos): Photo 1 (or Video 1) for display, and Photo 2 (or Video 2) for subsequent editing.

[0095] It is worth noting that after the user enters the album, Photo 1 (or Video 1) is viewed. Only when the user clicks the Edit button to trigger the editing operation of Photo 1 (or Video 1) will Photo 2 (or Video 2) be used for post-editing. This is because Photo 1 (or Video 1) is a video with corresponding effects and can be played directly, while Photo 2 (or Video 2) is the original image, which has no corresponding effects and is only suitable for post-editing. When post-editing an image is required, Photo 1 (or Video 1) with the effect cannot be used, and Photo 2 (or Video 2) without the corresponding effect must be used. In this way, the image data of Photo 2 (or Video 2) is processed by an external chip to produce an image with the corresponding effect.

[0096] In this embodiment, after using the first chip to perform effect processing on the first image to obtain a second image with a specified effect, the second image is stored in a first album viewable by the user, the first image is stored in a target file invisible to the user, and the second image is associated with the corresponding first image. In this way, when it is necessary to obtain the original image without the added effect, the associated first image can be obtained based on the second image displayed in the album.

[0097] As an optional implementation, the method further includes:

[0098] receiving a third input of the second image, wherein the third input is used to enable an effect editing function;

[0099] In response to the third input, displaying the first image in an effect editing interface;

[0100] receiving a fourth input in the effect editing interface, wherein the fourth input is used to replace the processing effect on the first image with an effect corresponding to a third effect identifier, the first effect identifier including the third effect identifier;

[0101] In response to the fourth input, the first chip performs effect processing on the first image using a third file corresponding to the third effect identifier to obtain a third image.

[0102] In some implementations, the third file is a file that facilitates effect processing and may be of the same type as the first and second files, such as a bin file. In this case, the third file may also be referred to as a third bin file.

[0103] In some implementations, the third input may be an operation of triggering an effect editing function after selecting the second image in the photo album software.

[0104] In some embodiments, when the effect editing function of the second image is triggered, based on the association relationship between the second image and the first image in the above embodiment, the first image associated with the second image is called to perform effect editing on the first image.

[0105] For example, as shown in Figure 6, a user can use the photo album software to readjust the effects of a photo or video. If the user chooses to edit a second image with an effect, the photo album software can retrieve the first image and the effect ID associated with it from the target file based on the association between the second image and the first image, and then send the effect ID and the first image to the IC chip. If the user does not select a new effect in the effect editing interface, the IC chip will reuse the bin file corresponding to the effect ID to process the first image, and then feed the processed image with the effect back to the photo album software for display in the effect editing interface.

[0106] Of course, after the album software sends the effect ID and the first image to the IC chip, if the user selects a new effect in the effect editing interface, the album software will send the new effect ID to the IC chip. At this time, the IC chip can use the bin file corresponding to the new effect ID to process the first image, and then feed the processed image with the effect back to the album software to display the image with the new effect in the effect editing interface, thereby realizing the function of changing the effect type of the first image.

[0107] In some embodiments, the effect editing interface may display candidate effect identifiers. In this case, if the user selects a third effect identifier that is user-defined and different from the first effect identifier, the third effect identifier and the first image may be sent to the first chip, so that the first chip searches for a third bin file corresponding to the third effect identifier based on the third effect identifier, and performs effect processing on the received first image based on the third bin file to obtain the third image. This process is similar to the process of using the first chip to perform effect processing on the first image using the second bin file associated with the second effect identifier to obtain the second image. The differences include: this embodiment is a post-editing process for the second image, while step 102 shown in FIG. 1 is an effect editing process for the first image. How the first chip searches for the third bin file corresponding to the third effect identifier based on the third effect identifier, and how the first image is processed based on the third bin file, will not be elaborated on here.

[0108] In this embodiment, after the first image is associated with the second image and stored in a target file invisible to the user, when the post-editing process is triggered based on the user's operation on the second image, the first image associated with the second image can be called for post-editing, thereby improving the flexibility and scalability of image effect processing.

[0109] In summary, the embodiments of the present application can achieve at least one of the following solutions:

[0110] 1) Custom effect import solution: After the user imports a custom effect file, the shooting software generates an effect ID to identify the effect. The effect file is then converted into byte data using the JNI conversion library. The byte data is saved to the corresponding directory using an external chip, generating a bin file named after the effect ID.

[0111] 2) Custom effect processing solution: After the user selects a custom effect, the shooting software sends the corresponding effect ID and the preview image in the shooting preview interface to the external chip. The external chip processes the image and sends the processed image to the shooting software, which then displays the processed effect image on the screen.

[0112] 3) Customized effect shooting scheme: Users shoot photos or videos with customized effects. The shooting software displays the processed effect image on the screen and also saves the original image as a photo or video in a hidden file associated with the album.

[0113] 4) Customized post-processing solution: Users can use other post-editing software (or the post-editing function in the album software) to readjust the effects of photos or videos.

[0114] The image processing method provided in the embodiment of the present application can be executed by an image processing device. In the embodiment of the present application, the image processing device provided in the embodiment of the present application is described by taking the image processing device executing the image processing method as an example.

[0115] Referring to FIG. 7 , the image processing device provided in an embodiment of the present application may be a device in an electronic device. The electronic device includes a first chip. As shown in FIG. 7 , the image processing device 700 includes the following modules:

[0116] A first receiving module 701 is configured to receive a first input, wherein the first input is used to import a first image effect file into the first chip;

[0117] A first response module 702 is configured to generate a first effect identifier corresponding to the first image effect file in response to the first input, and convert the first image effect file into a first file associated with the first effect identifier via the first chip; wherein the first input is used to import the first image effect file into the first chip;

[0118] A second receiving module 703 is configured to receive a second input, wherein the second input is used to process the first image into an image having an effect corresponding to a second effect identifier, and the first effect identifier includes the second effect identifier;

[0119] The second responding module 704 is configured to respond to the second input and, through the first chip, use a second file associated with the second effect identifier to perform effect processing on the first image to obtain a second image.

[0120] Optionally, the first receiving module 701 includes:

[0121] A first display unit, configured to display a shooting preview interface of a shooting application;

[0122] A first receiving unit, configured to receive an image effect import operation from a user;

[0123] The first response module 702 includes:

[0124] a first response unit, configured to control the first display unit to display a first file directory in response to the image effect import operation, wherein the first file directory includes a first image effect file to be imported;

[0125] The first receiving module 701 further includes:

[0126] a second receiving unit, configured to receive a user's selection operation of the first image effect file;

[0127] The first response module 702 further includes:

[0128] a second response unit, configured to generate, in response to the selection operation, an effect identifier corresponding to the first image effect file through the shooting application, and control the first display unit to display the effect identifier in the shooting preview interface;

[0129] The first input includes the image effect importing operation and the selection operation.

[0130] Optionally, the second response module 704 includes:

[0131] A second display unit, configured to display a target interface;

[0132] a third response unit, configured to, in response to the second input, control the first chip to obtain a second file associated with the second effect identifier, and perform effect processing on the first image using the second file to obtain a second image;

[0133] The target interface includes a shooting preview interface or an image editing interface, and the target interface includes a first image and the second effect identifier.

[0134] Optionally, the image processing apparatus 700 further includes:

[0135] A first storage module, configured to store the second image in an album;

[0136] A second storage module is configured to associate the first image with the second effect identifier and store the associated image in a target file, where the target file is a hidden file;

[0137] The second image is associated with the first image.

[0138] Optionally, the image processing apparatus 700 further includes:

[0139] a third receiving module, configured to receive a third input of the second image, wherein the third input is used to enable an effect editing function;

[0140] a third response module, configured to display the first image in the effect editing interface in response to the third input;

[0141] a fourth receiving module, configured to receive a fourth input in the effect editing interface, wherein the fourth input is used to replace the processing effect on the first image with an effect corresponding to a third effect identifier, wherein the first effect identifier includes the third effect identifier;

[0142] The fourth response module is configured to perform effect processing on the first image by using the first chip and a third file corresponding to the third effect identifier to obtain a third image.

[0143] The image processing device 700 in the embodiment of the present application can be an electronic device, or a component in an electronic device, such as an integrated circuit or a chip, which is not specifically limited here.

[0144] The image processing device 700 in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0145] The image processing device 700 provided in the embodiment of the present application can implement each process implemented in the aforementioned image processing method embodiment, and can achieve the same beneficial effects as the aforementioned image processing method embodiment. To avoid repetition, it will not be described here.

[0146] Optionally, as shown in Figure 8, an embodiment of the present application also provides an electronic device 800, including a processor 801 and a memory 802, and the memory 802 stores a program or instruction that can be run on the processor 801. When the program or instruction is executed by the processor 801, the various steps of the above-mentioned image processing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0147] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0148] FIG9 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0149] The electronic device 900 includes but is not limited to components such as a radio frequency unit 901 , a network module 902 , an audio output unit 903 , an input unit 904 , a sensor 905 , a display unit 906 , a user input unit 907 , an interface unit 908 , a memory 909 , and a processor 910 .

[0150] Those skilled in the art will appreciate that the electronic device 900 may further include a power source (e.g., a battery) to power various components. The power source may be logically connected to the processor 910 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The electronic device structure shown in FIG9 does not limit the electronic device. The electronic device may include more or fewer components than shown, or may combine certain components or arrange the components differently, which will not be described in detail here.

[0151] It should be understood that in an embodiment of the present application, the input unit 904 may include a graphics processing unit (GPU) 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and at least one of other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here.

[0152] The memory 909 can be used to store software programs and various data. The memory 909 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 909 may include a volatile memory or a non-volatile memory, or the memory 909 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 909 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0153] Processor 910 may include one or more processing units. Optionally, processor 910 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 910.

[0154] The user input unit 907 is configured to receive a first input, wherein the first input is used to import a first image effect file into the first chip;

[0155] Processor 910, configured to generate, in response to the first input, a first effect identifier corresponding to the first image effect file, and convert the first image effect file into a first file associated with the first effect identifier through the first chip;

[0156] The user input unit 907 is further configured to receive a second input, wherein the second input is used to process the first image into an image having an effect corresponding to a second effect identifier, wherein the first effect identifier includes the second effect identifier;

[0157] The processor 910 is further configured to, in response to the second input, perform effect processing on the first image using the second file associated with the second effect identifier via the first chip to obtain a second image.

[0158] Optionally, the receiving of the first input performed by the user input unit 907 includes:

[0159] When the display unit 906 displays a shooting preview interface of the shooting application, receiving an image effect import operation from the user;

[0160] The processor 910 generates, in response to the first input, a first effect identifier corresponding to the first image effect file, including:

[0161] In response to the image effect import operation, displaying a first file directory, wherein the first file directory includes a first image effect file to be imported;

[0162] The receiving of the first input performed by the user input unit 907 further includes:

[0163] receiving a user's selection operation of the first image effect file;

[0164] The step of generating, in response to the first input, a first effect identifier corresponding to the first image effect file executed by the processor 910 further includes:

[0165] In response to the selection operation, generating an effect identifier corresponding to the first image effect file through the shooting application, and controlling the display unit 906 to display the effect identifier in the shooting preview interface;

[0166] The first input includes the image effect importing operation and the selection operation.

[0167] Optionally, the step of performing, in response to the second input, effect processing on the first image using a second file associated with the second effect identifier through the first chip to obtain a second image, performed by the processor 910, includes:

[0168] In response to the second input, when the display unit 906 displays the target interface, controlling the first chip to obtain a second file associated with the second effect identifier, and performing effect processing on the first image using the second file to obtain a second image;

[0169] The target interface includes a shooting preview interface or an image editing interface, and the target interface includes a first image and the second effect identifier.

[0170] Optionally, after executing the step of performing, in response to the second input, effect processing on the first image using the second file associated with the second effect identifier through the first chip to obtain the second image, the processor 910 is further configured to:

[0171] Controlling the memory 909 to store the second image in an album;

[0172] Controlling the memory 909 to associate the first image with the second effect identifier and store it in a target file, where the target file is a hidden file;

[0173] The second image is associated with the first image.

[0174] Optionally, the user input unit 907 is further configured to receive a third input on the second image, wherein the third input is used to enable an effect editing function;

[0175] The processor 910 is further configured to control the display unit 906 to display the first image in the effect editing interface in response to the third input;

[0176] The user input unit 907 is further configured to receive a fourth input in the effect editing interface, wherein the fourth input is configured to change the processing effect on the first image to an effect corresponding to a third effect identifier, wherein the first effect identifier includes the third effect identifier;

[0177] The processor 910 is further configured to, in response to the fourth input, perform effect processing on the first image using a third file corresponding to the third effect identifier through the first chip to obtain a third image.

[0178] It can be understood that the implementation process of each implementation method mentioned in this embodiment can refer to the relevant description of the aforementioned image processing method embodiment and achieve the same or corresponding technical effects. To avoid repetition, it will not be described here.

[0179] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the aforementioned image processing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0180] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0181] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the aforementioned image processing method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0182] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0183] An embodiment of the present application provides a computer program product, which is executed by at least one processor to implement the various processes of the aforementioned image processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0184] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising 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, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0185] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0186] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. An image processing method for an electronic device, wherein the electronic device includes a first chip, the method comprising: receiving a first input, wherein the first input is used to import a first image effect file into the first chip; In response to the first input, generating a first effect identifier corresponding to the first image effect file, and converting the first image effect file into a first file associated with the first effect identifier through the first chip; receiving a second input, wherein the second input is used to process the first image into an image having an effect corresponding to a second effect identifier, the first effect identifier including the second effect identifier; In response to the second input, the first chip performs effect processing on the first image using a second file associated with the second effect identifier to obtain a second image.

2. The method according to claim 1, wherein The receiving of the first input includes: receiving an image effect import operation from a user when a shooting preview interface of a shooting application is displayed; The step of generating a first effect identifier corresponding to the first image effect file in response to the first input includes: In response to the image effect import operation, displaying a first file directory, wherein the first file directory includes a first image effect file to be imported; The receiving of the first input further includes: receiving a user's selection operation of the first image effect file; The step of generating a first effect identifier corresponding to the first image effect file in response to the first input further includes: In response to the selection operation, generating an effect identifier corresponding to the first image effect file through the shooting application, and displaying the effect identifier in the shooting preview interface; The first input includes the image effect importing operation and the selection operation.

3. The method according to claim 1, wherein In response to the second input, performing effect processing on the first image using a second file associated with the second effect identifier through the first chip to obtain a second image includes: In response to the second input, when the target interface is displayed, controlling the first chip to obtain a second file associated with the second effect identifier, and performing effect processing on the first image using the second file to obtain a second image; The target interface includes a shooting preview interface or an image editing interface, and the target interface includes a first image and the second effect identifier.

4. The method according to any one of claims 1 to 3, wherein After, in response to the second input, performing effect processing on the first image using the second file associated with the second effect identifier through the first chip to obtain a second image, the method further includes: storing the second image in an album; Associating the first image with the second effect identifier and storing it in a target file, where the target file is a hidden file; The second image is associated with the first image.

5. The method according to claim 4, wherein The method further comprises: receiving a third input of the second image, wherein the third input is used to enable an effect editing function; In response to the third input, displaying the first image in an effect editing interface; receiving a fourth input in the effect editing interface, wherein the fourth input is used to replace the processing effect on the first image with an effect corresponding to a third effect identifier, the first effect identifier including the third effect identifier; In response to the fourth input, the first chip performs effect processing on the first image using a third file corresponding to the third effect identifier to obtain a third image.

6. An image processing device for an electronic device, the electronic device comprising a first chip, the device comprising: a first receiving module, configured to receive a first input, wherein the first input is used to import a first image effect file into the first chip; a first response module, configured to generate a first effect identifier corresponding to the first image effect file in response to the first input, and convert the first image effect file into a first file associated with the first effect identifier via the first chip; wherein the first input is used to import the first image effect file into the first chip; a second receiving module, configured to receive a second input, wherein the second input is used to process the first image into an image having an effect corresponding to a second effect identifier, the first effect identifier including the second effect identifier; The second response module is configured to respond to the second input and, through the first chip, use a second file associated with the second effect identifier to perform effect processing on the first image to obtain a second image.

7. The device according to claim 6, wherein: The first receiving module includes: A first display unit, configured to display a shooting preview interface of a shooting application; A first receiving unit, configured to receive an image effect import operation from a user; The first response module includes: a first response unit, configured to control the first display unit to display a first file directory in response to the image effect import operation, wherein the first file directory includes a first image effect file to be imported; The first receiving module further includes: a second receiving unit, configured to receive a user's selection operation of the first image effect file; The first response module further includes: a second response unit, configured to generate, in response to the selection operation, an effect identifier corresponding to the first image effect file through the shooting application, and control the first display unit to display the effect identifier in the shooting preview interface; The first input includes the image effect importing operation and the selection operation.

8. The device according to claim 6, wherein The second response module includes: A second display unit, configured to display a target interface; a third response unit, configured to, in response to the second input, control the first chip to obtain a second file associated with the second effect identifier, and perform effect processing on the first image using the second file to obtain a second image; The target interface includes a shooting preview interface or an image editing interface, and the target interface includes a first image and the second effect identifier.

9. The device according to any one of claims 6 to 8, wherein The device further comprises: A first storage module, configured to store the second image in an album; A second storage module is configured to associate the first image with the second effect identifier and store the associated image in a target file, where the target file is a hidden file; The second image is associated with the first image.

10. The device according to claim 9, wherein The device further comprises: a third receiving module, configured to receive a third input of the second image, wherein the third input is used to enable an effect editing function; a third response module, configured to display the first image in the effect editing interface in response to the third input; a fourth receiving module, configured to receive a fourth input in the effect editing interface, wherein the fourth input is used to replace the processing effect on the first image with an effect corresponding to a third effect identifier, wherein the first effect identifier includes the third effect identifier; The fourth response module is configured to perform effect processing on the first image by using the first chip and a third file corresponding to the third effect identifier to obtain a third image.

11. An electronic device comprising: A memory, a processor, and a computer program stored on the memory and executable on the processor; The processor is configured to read a program in a memory to implement the steps of the image processing method according to any one of claims 1 to 5.

12. A readable storage medium storing a program or instruction, wherein the program or instruction, when executed by a processor, implements the steps of the image processing method according to any one of claims 1 to 5.

13. A chip comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is configured to execute a program or instruction to implement the steps of the image processing method according to any one of claims 1 to 5.

14. A computer program product, wherein the computer program product is executed by at least one processor to implement the steps of the image processing method according to any one of claims 1 to 5. 15 . An electronic device, configured to execute the steps of the image processing method according to claim 1 .

Citation Information

Patent Citations

  • Shooting method and device, electronic equipment and medium

    CN114979482A

  • Output color adjustment method and device, equipment and storage medium

    CN117676024A

  • Image processing method, image processing device and electronic equipment

    CN118467464A

  • Search results output tool

    US20100250521A1